Class MUCUser.Decline
java.lang.Object
org.jivesoftware.smackx.muc.packet.MUCUser.Decline
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
- Enclosing class:
- MUCUser
Represents a rejection to an invitation from another user to a room. The rejection will be
sent to the room which in turn will forward the refusal to the inviting user.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDecline
(String reason, EntityBareJid to) Decline
(String reason, EntityBareJid from, EntityBareJid to) -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.getFrom()
Returns the bare JID of the invitee that rejected the invitation.Returns the root element XML namespace.Returns the message explaining why the invitation was rejected.getTo()
Returns the bare JID of the inviting user.toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
QNAME
-
-
Constructor Details
-
Decline
-
Decline
-
-
Method Details
-
getFrom
Returns the bare JID of the invitee that rejected the invitation. (e.g. 'crone1@shakespeare.lit').- Returns:
- the bare JID of the invitee that rejected the invitation.
-
getReason
Returns the message explaining why the invitation was rejected.- Returns:
- the message explaining the reason for the rejection.
-
getTo
Returns the bare JID of the inviting user. (e.g. 'hecate@shakespeare.lit')- Returns:
- the bare JID of the inviting user.
-
toXML
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-