public final class Invite extends Object
<invite/> element.
This class is immutable.
| Constructor and Description |
|---|
Invite(Jid to)
Creates an 'invite' element.
|
Invite(Jid to,
String reason)
Creates an invite element with a reason.
|
Invite(Jid to,
String reason,
String thread)
Creates an 'invite' element with a reason and a 'continue' element.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
getFrom()
Gets the inviter.
|
String |
getReason()
Gets the reason for the invitation.
|
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)
to - The invitee, who will receive the invitation.public Invite(Jid to, String reason)
to - The invitee, who will receive the invitation.reason - The reason.public String getReason()
public Jid getFrom()
public Jid getTo()
public boolean isContinue()
getThread()public String getThread()
isContinue()Copyright © 2014–2018 XMPP.rocks. All rights reserved.