Class MUCUser.Invite
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.MUCUser.Invite
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement
- Enclosing class:
- MUCUser
public static class MUCUser.Invite extends java.lang.Object implements org.jivesoftware.smack.packet.NamedElementRepresents an invitation for another user to a room. The sender of the invitation must be an occupant of the room. The invitation will be sent to the room which in turn will forward the invitation to the invitee.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetElementName()org.jxmpp.jid.EntityJidgetFrom()Returns the bare JID of the inviting user or, optionally, the room JID.java.lang.StringgetReason()Returns the message explaining the invitation.org.jxmpp.jid.EntityBareJidgetTo()Returns the bare JID of the invitee.org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFrom
public org.jxmpp.jid.EntityJid getFrom()
Returns the bare JID of the inviting user or, optionally, the room JID. (e.g. 'crone1@shakespeare.lit/desktop').- Returns:
- the room's occupant that sent the invitation.
-
getReason
public java.lang.String getReason()
Returns the message explaining the invitation.- Returns:
- the message explaining the invitation.
-
getTo
public org.jxmpp.jid.EntityBareJid getTo()
Returns the bare JID of the invitee. (e.g. 'hecate@shakespeare.lit')- Returns:
- the bare JID of the invitee.
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
-