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