public class LocalUserChatRoomPresenceChangeEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_USER_DROPPED
Indicates that this event was triggered as a result of the local
participant beeing disconnected from the server brutally, or ping timeout.
|
static java.lang.String |
LOCAL_USER_JOIN_FAILED
Indicates that this event was triggered as a result of the local
participant failed to join a chat room.
|
static java.lang.String |
LOCAL_USER_JOINED
Indicates that this event was triggered as a result of the local
participant joining a chat room.
|
static java.lang.String |
LOCAL_USER_KICKED
Indicates that this event was triggered as a result of the local
participant being kicked from a chat room.
|
static java.lang.String |
LOCAL_USER_LEFT
Indicates that this event was triggered as a result of the local
participant leaving a chat room.
|
Constructor and Description |
---|
LocalUserChatRoomPresenceChangeEvent(OperationSetMultiUserChat source,
ChatRoom chatRoom,
java.lang.String eventType,
java.lang.String reason)
Creates a ChatRoomLocalUserPresenceChangeEvent representing that
a change in local participant presence in the source chat room has
occured.
|
LocalUserChatRoomPresenceChangeEvent(OperationSetMultiUserChat source,
ChatRoom chatRoom,
java.lang.String eventType,
java.lang.String reason,
java.lang.String alternateAddress)
Creates a ChatRoomLocalUserPresenceChangeEvent representing that
a change in local participant presence in the source chat room has
occured.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlternateAddress()
An optional String indicating new address for the room, normally
send when room is destroyed.
|
ChatRoom |
getChatRoom()
Returns the ChatRoom, that this event is about.
|
java.lang.String |
getEventType()
Returns the type of this event which could be one of the LOCAL_USER_XXX
member fields.
|
OperationSetMultiUserChat |
getMultiUserChatOpSet()
Returns the OperationSetMultiUserChat, where this event has
occurred.
|
java.lang.String |
getReason()
A reason string indicating a human readable reason for this event.
|
java.lang.String |
toString()
Returns a String representation of this event.
|
public static final java.lang.String LOCAL_USER_JOINED
public static final java.lang.String LOCAL_USER_JOIN_FAILED
public static final java.lang.String LOCAL_USER_LEFT
public static final java.lang.String LOCAL_USER_KICKED
public static final java.lang.String LOCAL_USER_DROPPED
public LocalUserChatRoomPresenceChangeEvent(OperationSetMultiUserChat source, ChatRoom chatRoom, java.lang.String eventType, java.lang.String reason)
source
- the OperationSetMultiUserChat, which produced this
eventchatRoom
- the ChatRoom that this event is abouteventType
- the type of this event.reason
- the reason explaining why this event might have occurredpublic LocalUserChatRoomPresenceChangeEvent(OperationSetMultiUserChat source, ChatRoom chatRoom, java.lang.String eventType, java.lang.String reason, java.lang.String alternateAddress)
source
- the OperationSetMultiUserChat, which produced this
eventchatRoom
- the ChatRoom that this event is abouteventType
- the type of this event.reason
- the reason explaining why this event might have occurredpublic OperationSetMultiUserChat getMultiUserChatOpSet()
public ChatRoom getChatRoom()
public java.lang.String getReason()
public java.lang.String getEventType()
public java.lang.String getAlternateAddress()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.