Thanks Telixeira, I just found that too...
My silly mistake was looking the get functions only after the getParticipants() in the G sections, even I did a serach, but I didn't scroll up... You mentioned do not forget to update the version number, why is that so important? cheers, Wes. On Jan 6, 5:06 pm, Tiago Teixeira <[email protected]> wrote: > Hi, > > First make sure that in the capabilities.xml file you have the line > "<w:capability name="WAVELET_PARTICIPANTS_CHANGED" content="true" />" below > the "<w:capabilities>" section. > If not, just add it and do not forget to change the version number as well. > > When someone is added or removed int the wave the event > "WAVELET_PARTICIPANTS_CHANGED" will be triggered. > In java you can use this: > > public void processEvents(RobotMessageBundle bundle) > { > for (Event e: bundle.getEvents()) > { > if(e.getType() == EventType.WAVELET_PARTICIPANTS_CHANGED) > { > //Use the folowing functions bellow and get the participants. > e.getAddedParticipants(); > e.getRemovedParticipants(); > > } > } > > } > > Code is only showing you the methods, you shall iterate through the > collection returned by the functions and get the last position of the > collection. > > HTH, > Teixeira > > > > On Wed, Jan 6, 2010 at 9:49 AM, Wes <[email protected]> wrote: > > I have browsed through the Wave API and can't seem to find the > > function that can get me the name of the just added participant. I'm > > trying to create a robot that log who has been added or removed and > > when. > > > -- > > 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%2Bunsubscribe@ > > googlegroups.com> > > . > > 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.
