This thread is archived
3 Replies Last post: Aug 8, 2005 12:37 PM by Alex Wenckus  
Chien, Pham   12 posts since
Aug 3, 2005
Currently Being Moderated

Aug 7, 2005 11:26 PM

Help me with Occupant in MUC!

Firstly, I add myself in Roster of MUC when I display MUC''s Roster. The node of MUC''s Roster is the class org.jivesoftware.smackx.muc.Occupant. This class is only support for getter methods, but setter methods. Therefore, it''s my problem when I want to add himself to the Roster of MUC when initializing Roster, because we cannot set attributes (jid, nick, affiliation, ...) for new Occupant.

 

Tell me how to set for new Occupant or other solution in this case!

 

Thanks in advance!

Alex Wenckus Jiver 1,029 posts since
Jan 13, 2005
Currently Being Moderated
Aug 8, 2005 8:37 AM in response to: Chien, Pham
Re: Help me with Occupant in MUC!

to add your self to the MUC''s roster you use MultiUserChat#join() or MultiUserChat#create

Alex Wenckus Jiver 1,029 posts since
Jan 13, 2005
Currently Being Moderated
Aug 8, 2005 12:37 PM in response to: Chien, Pham
Re: Help me with Occupant in MUC!

For getting yourself you need to do getOccupant(roomname@hostname/nickname) because the function only accepts a jid. And what are you trying to do to get the roominfo?

More Like This

  • Retrieving data ...