public class MUCUser
extends java.lang.Object
implements org.jivesoftware.smack.packet.ExtensionElement
Modifier and Type | Class and Description |
---|---|
static class |
MUCUser.Decline
Represents a rejection to an invitation from another user to a room.
|
static class |
MUCUser.Invite
Represents an invitation for another user to a room.
|
static class |
MUCUser.Status
Status code assists in presenting notification messages.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
Constructor and Description |
---|
MUCUser() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusCode(MUCUser.Status status)
Add a status code which hold a code that assists in presenting notification messages.
|
void |
addStatusCodes(java.util.Set<MUCUser.Status> statusCodes)
Add the status codes which holds the codes that assists in presenting notification messages.
|
static MUCUser |
from(org.jivesoftware.smack.packet.Stanza packet)
Retrieve the MUCUser PacketExtension from packet, if any.
|
MUCUser.Decline |
getDecline()
Returns the rejection to an invitation from another user to a room.
|
Destroy |
getDestroy()
Returns the notification that the room has been destroyed.
|
java.lang.String |
getElementName() |
static MUCUser |
getFrom(org.jivesoftware.smack.packet.Stanza packet)
Deprecated.
use
from(Stanza) instead |
MUCUser.Invite |
getInvite()
Returns the invitation for another user to a room.
|
MUCItem |
getItem()
Returns the item child that holds information about roles, affiliation, jids and nicks.
|
java.lang.String |
getNamespace() |
java.lang.String |
getPassword()
Returns the password to use to enter Password-Protected Room.
|
java.util.Set<MUCUser.Status> |
getStatus()
Returns a set of status which holds the status code that assist in presenting notification messages.
|
boolean |
hasStatus()
Returns true if this MUCUser instance has also
MUCUser.Status information. |
void |
setDecline(MUCUser.Decline decline)
Sets the rejection to an invitation from another user to a room.
|
void |
setDestroy(Destroy destroy)
Sets the notification that the room has been destroyed.
|
void |
setInvite(MUCUser.Invite invite)
Sets the invitation for another user to a room.
|
void |
setItem(MUCItem item)
Sets the item child that holds information about roles, affiliation, jids and nicks.
|
void |
setPassword(java.lang.String string)
Sets the password to use to enter Password-Protected Room.
|
org.jivesoftware.smack.util.XmlStringBuilder |
toXML() |
public static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.NamedElement
public java.lang.String getNamespace()
getNamespace
in interface org.jivesoftware.smack.packet.ExtensionElement
public org.jivesoftware.smack.util.XmlStringBuilder toXML()
toXML
in interface org.jivesoftware.smack.packet.Element
public MUCUser.Invite getInvite()
public MUCUser.Decline getDecline()
public MUCItem getItem()
public java.lang.String getPassword()
public java.util.Set<MUCUser.Status> getStatus()
public boolean hasStatus()
MUCUser.Status
information.
If true
is returned, then getStatus()
will return a non-empty set.
public Destroy getDestroy()
public void setInvite(MUCUser.Invite invite)
invite
- the invitation for another user to a room.public void setDecline(MUCUser.Decline decline)
decline
- the rejection to an invitation from another user to a room.public void setItem(MUCItem item)
item
- the item child that holds information about roles, affiliation, jids and nicks.public void setPassword(java.lang.String string)
string
- the password to use to enter Password-Protected Room.public void addStatusCodes(java.util.Set<MUCUser.Status> statusCodes)
statusCodes
- the status codes which hold the codes that assists in presenting notification
messages.public void addStatusCode(MUCUser.Status status)
status
- the status code which olds a code that assists in presenting notification messages.public void setDestroy(Destroy destroy)
destroy
- the notification that the room has been destroyed.@Deprecated public static MUCUser getFrom(org.jivesoftware.smack.packet.Stanza packet)
from(Stanza)
insteadpacket
- null
public static MUCUser from(org.jivesoftware.smack.packet.Stanza packet)
packet
- null