CreateChild() method not working

4 views
Skip to first unread message

funnyboy243

unread,
Apr 2, 2010, 12:28:13 AM4/2/10
to Google Wave API
I'm trying to make my bot respond within the same area of the wave,
but for some reason the bot is creating a replay at the bottom of the
wave even when a replay is made to a past blip as an indented reply. I
tried finding something that could do this and I found the
CreateChild() method, but when I try to use it Eclipse complains with
an error saying "the method CreateChild() is undefined for type blip"
even though that doesn't make any sense because it's NOT supposed to
be undefined.

This is what Currently happens:

User Msg
Bot Msg
User 2 Msg
User Msg
Bot Msg
Bot Msg (reply to usr 2)

This is what I want:

User Msg
Bot Msg
User 2 Msg
Bot Msg reply
User Msg
Bot Msg


This is my current code snippet:

@Override
public void onBlipSubmitted(BlipSubmittedEvent event) {
Blip blip = event.getBlip();
event.getWavelet().reply("\n" + GetBotMSG(blip.getContent()));
}

(The GetBotMSG function gets the bot's message using an XML parser)

Kapil Neurgaonkar

unread,
Apr 2, 2010, 7:01:59 AM4/2/10
to google-...@googlegroups.com
Use the reply method of the blip instead of wavelet.

event.getBlip().reply().append("Your content");

Regards,
Kapil Neurgaonkar



--
You received this message because you are subscribed to the Google Groups "Google Wave API" group.
To post to this group, send email to google-...@googlegroups.com.
To unsubscribe from this group, send email to google-wave-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.


funnyboy243

unread,
Apr 2, 2010, 1:12:30 PM4/2/10
to Google Wave API
Thanks! It works now. =)

On Apr 2, 6:01 am, Kapil Neurgaonkar <caps...@gmail.com> wrote:
> Use the reply method of the blip instead of wavelet.
>
> event.getBlip().reply().append("Your content");
>
> Regards,
> Kapil Neurgaonkar
>

> > google-wave-a...@googlegroups.com<google-wave-api%2Bunsu...@googlegroups.com>

Reply all
Reply to author
Forward
0 new messages