how can I get the position of blip. Replies

0 views
Skip to first unread message

Artiom

unread,
Jan 3, 2010, 7:52:13 PM1/3/10
to Google Wave API
Hey guys!
I'm developing a robot in Java and I can't find a way how can find out
is blip a reply for another blip or not.

I mean if u enumerate children of the root blip like this
@Override
public void processEvents(RobotMessageBundle bundle) {
Wavelet wavelet = bundle.getWavelet();
Blip root= wavelet.getRootBlip();
for (Blip blip: root.getChildren())
{
}
u get all the blips from wavelet. I thought blips which are replies
(created by reply button) should have that blip as a parent, not root
one... But it seems like I was wrong

Does anyone know a way how can I get the position of blip (which blip
is above or below the blip)?

And I need need to buid a "chains" of replies... Any ideas?

Thanks

Ian Gough

unread,
Jan 5, 2010, 8:57:38 PM1/5/10
to google-...@googlegroups.com

Its an odd thing. The Google Wave Client shows the blips arranged in a
particular structure and yet the API does not return the same
structure. Instead it flattens the structure of all of the blips
within a wavelet to be children of the root blip. There does not seem
to be any way to extract the anchorBlip for a reply. At first I
thought the API was just returning bad information, but after thinking
about it, it would seem that the API is also deficient. For example,
if you add a reply to the middle of a blip (text above and below the
reply), there is nothing in the API that I can find that tells you
*where* the reply is within that blip.

artanck

unread,
Jan 11, 2010, 8:44:59 AM1/11/10
to Google Wave API
This is interesting, if the Google Wave Client has been using this
same API for managing the blips. Either Google has not published the
full API, or Google has not bothered and keep using this "deficient"
API??

On Jan 6, 1:57 am, Ian Gough <igoug...@gmail.com> wrote:

boaz sapir

unread,
Jan 11, 2010, 2:22:38 PM1/11/10
to Google Wave API
Looks like this behavior has now changed. myblip.getChildren() only
returns the blips which are replies to 'myblip' + the one blip which
immediately follows 'myblip' at the same level of the tree.
However there is a new problem now: the getter methods return empty
information for blips which are more than one level bellow the root.
In particular getChildren returns an empty list even if there are
chidlren. This is documented in a different thread titled: New issue
in the getChildren() method
Reply all
Reply to author
Forward
0 new messages