I've also not had WAVELET_BLIP_CREATED work for me, but if one keeps
an ArrayList of BlipIds and then checks on BLIP_SUBMITTED if the blip
id is contained in the arraylist, then one can accurately count new
blips by adding them to the list and keeping a counter that resets
however often after firing a special function.

The robot will have many more requests than triggers, but you may be
able to counter the bandwidth sucking via capabilities.xml by setting
content="false" (assuming it still sends the blip but not the blipData
over the wire) on the BLIP_SUBMITTED event. If that wouldn't work for
the Robot, it may soon, as there has been some indication that a new
revision of the API may give Robots access to the entire wave instead
of just the limited context.

On Dec 2, 12:03 am, cmdskp <[email protected]> wrote:
> ATM, you can get all blips & their content (I've tested in the Java
> API) on WAVELET_SELF_ADDED by setting a context="children"
> content="true" in the capabilities.xml (remember to change its version
> number there to ensure Wave picks up the change in event tracking)
>
> You could right now just use .getChildren().size() - but this is
> likely to change and it'd be better to do a recursive count through
> the children and their children's .size().
>
> Then store this total count in the wavelet's data document and
> retrieve it and update that value each time a blip is created/deleted
> (though determining when a NEW blip is created rather than re-
> submitted is non-trivial at present I suspect, since I believe
> WAVELET_BLIP_CREATED has an issue raised on it not triggering except
> on a root blip IIRC).
>
> However, with the above total count you could happily then trigger
> every 100 blips.
>
> On Dec 1, 5:00 pm, Michael <[email protected]> wrote:
>
>
>
> > Is there any way to get the number of blips, as well as the blip at
> > each number in a wave? I would like to have my robot trigger at
> > certain blip numbers (every 100) blips, etc.

--

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