Package org.jivesoftware.smackx.muc
Class Affiliate
java.lang.Object
org.jivesoftware.smackx.muc.Affiliate
Represents an affiliation of a user to a given room. The affiliate's information will always have
the bare jid of the real user and its affiliation. If the affiliate is an occupant of the room
then we will also have information about the role and nickname of the user in the room.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the affiliation of the affiliated user.getJid()
Returns the bare JID of the affiliated user.getNick()
Returns the current nickname of the affiliated user if the user is currently in the room.getRole()
Returns the current role of the affiliated user if the user is currently in the room.
-
Method Details
-
getJid
Returns the bare JID of the affiliated user. This information will always be available.- Returns:
- the bare JID of the affiliated user.
-
getAffiliation
Returns the affiliation of the affiliated user. Possible affiliations are: "owner", "admin", "member", "outcast". This information will always be available.- Returns:
- the affiliation of the affiliated user.
-
getRole
Returns the current role of the affiliated user if the user is currently in the room. If the user is not present in the room then the answer will be 'none'.- Returns:
- the current role of the affiliated user in the room or null if the user is not in the room.
-
getNick
Returns the current nickname of the affiliated user if the user is currently in the room. If the user is not present in the room then the answer will be null.- Returns:
- the current nickname of the affiliated user in the room or null if the user is not in the room.
-