Nope, you have to examine the JsonRpcResponse you get after you submit a new
wave to get the actual wave id.
the wave id starting w/ 'TBD' won't help you at all.
Here's some starter code in Java:
List <JsonRpcResponse> jrrl =
this.submit(originalWavelet, RPC_SERVER_URL);
for (JsonRpcResponse jrr : jrrl) {
LOG.log(Level.WARNING, "JRRL size :" +
jrrl.size());
Map<ParamsProperty, Object> m =
jrr.getData();
if(m!=null)
{
LOG.log(Level.WARNING, "Map size :" +
m.size());
for (Object o : m.values())
{
LOG.log(Level.WARNING, "JRR has value: "
+ ((String) o));
}
}
}
d3developer.com | twitter.com/fractastical | twitter.com/jdietz
On Thu, Jun 3, 2010 at 10:52 AM, balderman <[email protected]> wrote:
>
> Hi
> I am creating waves using the Active API.
> After creating the wave I persist the wave id in the DB.
> Code:
> Wavelet newWavelet = this.newWave(WAVE_DOMAIN, participantsSet);
> this.submit(newWavelet, RPC_SERVER_URL);
> persist(newWavelet.getWaveId().getId());
>
> The wave id looks like : “TBD_-826181704”
>
>
> Later (upon wave event) I try to query the DB using the wave id I get
> in the event. This time the wave id looks like “w+JlEjorZkGy”.
> Code:
> public void onFormButtonClicked(FormButtonClickedEvent
> buttonClickedEvent)
> {
> queryDB(buttonClickedEvent.getWavelet().getWaveId().getId())
> }
>
> Do I have a way to translate between those 2 representations of the
> wave id?
>
> Thanks
>
> Avishay
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-wave-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en.