public class MUCItem
extends java.lang.Object
implements org.jivesoftware.smack.packet.NamedElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT |
Constructor and Description |
---|
MUCItem(MUCAffiliation affiliation) |
MUCItem(MUCAffiliation affiliation,
MUCRole role,
java.lang.String actor,
java.lang.String reason,
java.lang.String jid,
java.lang.String nick)
Creates a new item child.
|
MUCItem(MUCAffiliation affiliation,
java.lang.String jid) |
MUCItem(MUCAffiliation affiliation,
java.lang.String jid,
java.lang.String reason) |
MUCItem(MUCRole role) |
MUCItem(MUCRole role,
java.lang.String nick) |
MUCItem(MUCRole role,
java.lang.String nick,
java.lang.String reason) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActor()
Returns the actor (JID of an occupant in the room) that was kicked or banned.
|
MUCAffiliation |
getAffiliation()
Returns the occupant's affiliation to the room.
|
java.lang.String |
getElementName() |
java.lang.String |
getJid()
Returns the
|
java.lang.String |
getNick()
Returns the new nickname of an occupant that is changing his/her nickname.
|
java.lang.String |
getReason()
Returns the reason for the item child.
|
MUCRole |
getRole()
Returns the temporary position or privilege level of an occupant within a room.
|
org.jivesoftware.smack.util.XmlStringBuilder |
toXML() |
public static final java.lang.String ELEMENT
public MUCItem(MUCAffiliation affiliation)
public MUCItem(MUCRole role)
public MUCItem(MUCRole role, java.lang.String nick)
public MUCItem(MUCAffiliation affiliation, java.lang.String jid, java.lang.String reason)
public MUCItem(MUCAffiliation affiliation, java.lang.String jid)
public MUCItem(MUCRole role, java.lang.String nick, java.lang.String reason)
public MUCItem(MUCAffiliation affiliation, MUCRole role, java.lang.String actor, java.lang.String reason, java.lang.String jid, java.lang.String nick)
affiliation
- the actor's affiliation to the roomrole
- the privilege level of an occupant within a room.actor
- reason
- jid
- nick
- public java.lang.String getActor()
public java.lang.String getReason()
public MUCAffiliation getAffiliation()
public java.lang.String getJid()
public java.lang.String getNick()
public MUCRole getRole()
public org.jivesoftware.smack.util.XmlStringBuilder toXML()
toXML
in interface org.jivesoftware.smack.packet.Element
public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.NamedElement