public final class InvitationEvent
extends java.util.EventObject
The multi-user chat invitation event, which is triggered upon receiving an invitation to a multi-user chat.
Modifier and Type | Method and Description |
---|---|
void |
decline(java.lang.String reason)
Declines the invitation.
|
Jid |
getInviter()
Gets the inviter.
|
java.lang.String |
getPassword()
Gets the password to the room.
|
java.lang.String |
getReason()
Gets the reason for the invitation.
|
Jid |
getRoomAddress()
Gets the room address.
|
java.lang.String |
getThread()
Gets the thread of the continued one-to-one chat session (if any).
|
boolean |
isContinue()
Indicates, whether a one-to-one chat session is continued in the chat room.
|
boolean |
isMediated()
Indicates, whether the invitation is a mediated or direct invitation.
|
public void decline(java.lang.String reason)
Declines the invitation.
reason
- The reason.public Jid getInviter()
Gets the inviter. If the invitation was mediated by the chat room, the inviter can either be a bare or full JID or the in-room JID of an occupant.
public boolean isContinue()
Indicates, whether a one-to-one chat session is continued in the chat room.
getThread()
public Jid getRoomAddress()
Gets the room address.
public java.lang.String getPassword()
Gets the password to the room.
public java.lang.String getReason()
Gets the reason for the invitation.
public java.lang.String getThread()
Gets the thread of the continued one-to-one chat session (if any).
isContinue()
public boolean isMediated()
Indicates, whether the invitation is a mediated or direct invitation.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.