public class LocalUserAdHocChatRoomPresenceChangeEvent
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 being 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 an ad-hoc chat room.
|
static java.lang.String |
LOCAL_USER_JOINED
Indicates that this event was triggered as a result of the local
participant joining an ad-hoc chat room.
|
static java.lang.String |
LOCAL_USER_LEFT
Indicates that this event was triggered as a result of the local
participant leaving an ad-hoc chat room.
|
Constructor and Description |
---|
LocalUserAdHocChatRoomPresenceChangeEvent(OperationSetAdHocMultiUserChat source,
AdHocChatRoom adHocChatRoom,
java.lang.String eventType,
java.lang.String reason)
Creates an AdHocChatRoomLocalUserPresenceChangeEvent
representing that a change in local participant presence in the source
ad-hoc chat room has occurred.
|
Modifier and Type | Method and Description |
---|---|
AdHocChatRoom |
getAdHocChatRoom()
Returns the AdHocChatRoom, that this event is about.
|
OperationSetAdHocMultiUserChat |
getAdHocMultiUserChatOpSet()
Returns the OperationSetAdHocMultiUserChat, where this event has
occurred.
|
java.lang.String |
getEventType()
Returns the type of this event which could be one of the LOCAL_USER_XXX
member fields.
|
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_DROPPED
public LocalUserAdHocChatRoomPresenceChangeEvent(OperationSetAdHocMultiUserChat source, AdHocChatRoom adHocChatRoom, java.lang.String eventType, java.lang.String reason)
source
- the OperationSetAdHocMultiUserChat, which
produced this eventadHocChatRoom
- the AdHocChatRoom that this event is abouteventType
- the type of this event.reason
- the reason explaining why this event might have occurredpublic OperationSetAdHocMultiUserChat getAdHocMultiUserChatOpSet()
public AdHocChatRoom getAdHocChatRoom()
public java.lang.String getReason()
public java.lang.String getEventType()
public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.