public final class Invite
extends java.lang.Object
The implementation of the <invite/>
element.
This class is immutable.
Constructor and Description |
---|
Invite(Jid to)
Creates an ‘invite’ element.
|
Invite(Jid to,
java.lang.String reason)
Creates an invite element with a reason.
|
Invite(Jid to,
java.lang.String reason,
java.lang.String thread)
Creates an ‘invite’ element with a reason and a ‘continue’ element.
|
Modifier and Type | Method and Description |
---|---|
Jid |
getFrom()
Gets the inviter.
|
java.lang.String |
getReason()
Gets the reason for the invitation.
|
java.lang.String |
getThread()
Gets the thread of the previous one-to-one chat session.
|
Jid |
getTo()
Gets the invitee.
|
boolean |
isContinue()
Indicates, whether a previous one-to-one chat session is continued.
|
public Invite(Jid to)
Creates an ‘invite’ element.
to
- The invitee, who will receive the invitation.public Invite(Jid to, java.lang.String reason)
Creates an invite element with a reason.
to
- The invitee, who will receive the invitation.reason
- The reason.public Invite(Jid to, java.lang.String reason, java.lang.String thread)
Creates an ‘invite’ element with a reason and a ‘continue’ element.
to
- The invitee, who will receive the invitation.reason
- The reason.thread
- The thread to continue.public java.lang.String getReason()
Gets the reason for the invitation.
public Jid getFrom()
Gets the inviter.
public Jid getTo()
Gets the invitee.
public boolean isContinue()
Indicates, whether a previous one-to-one chat session is continued.
getThread()
public java.lang.String getThread()
Gets the thread of the previous one-to-one chat session.
isContinue()
Copyright © 2014–2019 XMPP.rocks. All rights reserved.