Package org.jivesoftware.smackx.muc
Class Occupant
- java.lang.Object
-
- org.jivesoftware.smackx.muc.Occupant
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
MUCAffiliation
getAffiliation()
Returns the affiliation of the occupant.Jid
getJid()
Returns the full JID of the occupant.Resourcepart
getNick()
Returns the current nickname of the occupant in the room.MUCRole
getRole()
Returns the current role of the occupant in the room.int
hashCode()
-
-
-
Method Detail
-
getJid
public Jid getJid()
Returns the full JID of the occupant. If this information was extracted from a presence and the room is semi or full-anonymous then the answer will be null. On the other hand, if this information was obtained while maintaining the voice list or the moderator list then we will always have a full JID.- Returns:
- the full JID of the occupant.
-
getAffiliation
public MUCAffiliation getAffiliation()
Returns the affiliation of the occupant. Possible affiliations are: "owner", "admin", "member", "outcast". This information will always be available.- Returns:
- the affiliation of the occupant.
-
getRole
public MUCRole getRole()
Returns the current role of the occupant in the room. This information will always be available.- Returns:
- the current role of the occupant in the room.
-
getNick
public Resourcepart getNick()
Returns the current nickname of the occupant in the room. If this information was extracted from a presence then the answer will be null.- Returns:
- the current nickname of the occupant in the room or null if this information was obtained from a presence.
-
-