Class Invite
- java.lang.Object
-
- rocks.xmpp.extensions.muc.model.user.Invite
-
public final class Invite extends Object
The implementation of the<invite/>element.This class is immutable.
- See Also:
- 7.8.2 Mediated Invitation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JidgetFrom()Gets the inviter.StringgetReason()Gets the reason for the invitation.StringgetThread()Gets the thread of the previous one-to-one chat session.JidgetTo()Gets the invitee.booleanisContinue()Indicates, whether a previous one-to-one chat session is continued.
-
-
-
Constructor Detail
-
Invite
public Invite(Jid to)
Creates an 'invite' element.- Parameters:
to- The invitee, who will receive the invitation.
-
Invite
public Invite(Jid to, String reason)
Creates an invite element with a reason.- Parameters:
to- The invitee, who will receive the invitation.reason- The reason.
-
-
Method Detail
-
getReason
public String getReason()
Gets the reason for the invitation.- Returns:
- The reason.
-
getFrom
public Jid getFrom()
Gets the inviter.- Returns:
- The inviter.
-
getTo
public Jid getTo()
Gets the invitee.- Returns:
- The invitee.
-
isContinue
public boolean isContinue()
Indicates, whether a previous one-to-one chat session is continued.- Returns:
- True, if a previous one-to-one chat session is continued.
- See Also:
getThread()
-
getThread
public String getThread()
Gets the thread of the previous one-to-one chat session.- Returns:
- The thread of the previous one-to-one chat session (if any) or null.
- See Also:
isContinue()
-
-