I'm iterating through all of the JsonRpcResponses that come back from the
submit function, and they all return either an empty map or null when I ask
them for their data.



                    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));
                                }
                            }

                        }
There are four responses. 3 have a map size of 0 and 1 returns a null map.


Jd

d3developer.com | twitter.com/fractastical | twitter.com/jdietz


On Thu, Apr 8, 2010 at 1:23 AM, pamela (Google Employee) <
[email protected]> wrote:

> Here's the text of the FAQ:
>
> "When you create a blip using one of the Wave client libraries, the client
> library creates a temporary ID for the blip and stores its properties
> locally. The operations that created the blip must be submitted to the
> server before a permanent ID is known for the blip, since it is the server's
> responsibility to create permanent IDs. So, if your robot needs to track the
> permanent ID of a blip, the robot should do a programmatic submit of the
> operation that created the blip, and then retrieve the ID after that submit.
> Currently, the local Blip object is not updated with the new ID, so the
> retrieval method involves inspecting the returned JSON. This will be
> improved in a later API release. "
>
> I am working on the sample code part of it, but perhaps that gives you a
> start.
>
>
> On Thu, Apr 8, 2010 at 3:15 PM, Joel Dietz <[email protected]> wrote:
>
>> Thanks. I thought even if there was a tricky way of doing this I would
>> have figured it out by now.
>>
>> But apparently not...
>>
>>
>> d3developer.com | twitter.com/fractastical | twitter.com/jdietz
>>
>>
>> On Thu, Apr 8, 2010 at 12:40 AM, pamela (Google Employee) <
>> [email protected]> wrote:
>>
>>> I am working on a FAQ about how to do this. It is not obvious at the
>>> moment. Stay tuned.
>>>
>>> On Thu, Apr 8, 2010 at 1:30 PM, Joel Dietz <[email protected]> wrote:
>>>
>>>> Same problem but doesn't quite answer my question.
>>>>
>>>>
>>>> d3developer.com | twitter.com/fractastical | twitter.com/jdietz
>>>>
>>>>
>>>> On Wed, Apr 7, 2010 at 11:25 PM, atarno <[email protected]> wrote:
>>>>
>>>>> take a look here:
>>>>>
>>>>> https://wave.google.com/wave/#restored:wave:googlewave.com!w%252B-KvGZghcC.2<https://wave.google.com/wave/#restored:wave:googlewave.com%21w%252B-KvGZghcC.2>
>>>>>
>>>>> On Apr 8, 4:01 am, Joel Dietz <[email protected]> wrote:
>>>>> > This feels like a dumb question but since I can't find the answer I
>>>>> am going
>>>>> > to go ahead and ask it anyways.
>>>>> >
>>>>> > If my robot generates a blip how can I figure out what the Id is?
>>>>> >
>>>>> > As far as I can tell the onWaveletCreatedEvent fires only when he
>>>>> first blip
>>>>> > is created and the onBlipSubmittedEvent fires only when a Blip is
>>>>> submitted
>>>>> > by a user.
>>>>> >
>>>>> > Am I missing something?
>>>>> >
>>>>> > Joel
>>>>> >
>>>>> > d3developer.com | twitter.com/fractastical | twitter.com/jdietz
>>>>>
>>>>> --
>>>>> 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]<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]<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]<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]<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.

Reply via email to