public class MUCUser extends Object implements PacketExtension
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.Destroy
Represents a notification that the room has been destroyed.
|
static class |
MUCUser.Invite
Represents an invitation for another user to a room.
|
static class |
MUCUser.Item
Item child that holds information about roles, affiliation, jids and nicks.
|
static class |
MUCUser.Status
Status code assists in presenting notification messages.
|
Constructor and Description |
---|
MUCUser() |
Modifier and Type | Method and Description |
---|---|
MUCUser.Decline |
getDecline()
Returns the rejection to an invitation from another user to a room.
|
MUCUser.Destroy |
getDestroy()
Returns the notification that the room has been destroyed.
|
String |
getElementName()
Returns the root element name.
|
MUCUser.Invite |
getInvite()
Returns the invitation for another user to a room.
|
MUCUser.Item |
getItem()
Returns the item child that holds information about roles, affiliation, jids and nicks.
|
String |
getNamespace()
Returns the root element XML namespace.
|
String |
getPassword()
Returns the password to use to enter Password-Protected Room.
|
MUCUser.Status |
getStatus()
Returns the status which holds a code that assists in presenting notification messages.
|
void |
setDecline(MUCUser.Decline decline)
Sets the rejection to an invitation from another user to a room.
|
void |
setDestroy(MUCUser.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(MUCUser.Item item)
Sets the item child that holds information about roles, affiliation, jids and nicks.
|
void |
setPassword(String string)
Sets the password to use to enter Password-Protected Room.
|
void |
setStatus(MUCUser.Status status)
Sets the status which holds a code that assists in presenting notification messages.
|
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public MUCUser()
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension
public MUCUser.Invite getInvite()
public MUCUser.Decline getDecline()
public MUCUser.Item getItem()
public String getPassword()
public MUCUser.Status getStatus()
public MUCUser.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(MUCUser.Item item)
item
- the item child that holds information about roles, affiliation, jids and nicks.public void setPassword(String string)
string
- the password to use to enter Password-Protected Room.public void setStatus(MUCUser.Status status)
status
- the status which holds a code that assists in presenting notification
messages.public void setDestroy(MUCUser.Destroy destroy)
destroy
- the notification that the room has been destroyed.