public class AdHocChatRoomParticipantPresenceChangeEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTACT_JOINED
Indicates that this event was triggered as a result of the participant
joining the source ad-hoc chat room.
|
static java.lang.String |
CONTACT_LEFT
Indicates that this event was triggered as a result of the participant
leaving the source ad-hoc chat room.
|
static java.lang.String |
CONTACT_QUIT
Indicates that this event was triggered as a result of the participant
being disconnected from the server brutally, or due to a ping timeout.
|
static java.lang.String |
REASON_USER_LIST
The well-known reason for a
AdHocChatRoomParticipantPresenceChangeEvent to occur as part
of an operation which lists all users in an AdHocChatRoom . |
Constructor and Description |
---|
AdHocChatRoomParticipantPresenceChangeEvent(AdHocChatRoom sourceAdHocRoom,
Contact sourceParticipant,
java.lang.String eventType,
java.lang.String reason)
Creates an AdHocChatRoomParticipantPresenceChangeEvent
representing that a change in the presence of an Contact
has occurred.
|
Modifier and Type | Method and Description |
---|---|
AdHocChatRoom |
getAdHocChatRoom()
Returns the ad-hoc chat room that produced this event.
|
java.lang.String |
getEventType()
Returns the type of this event which could be one of the MEMBER_XXX
member field values.
|
Contact |
getParticipant()
Returns the participant that this event is about.
|
java.lang.String |
getReason()
A reason String indicating a human readable reason for this event.
|
boolean |
isReasonUserList()
Gets the indicator which determines whether this event has occurred with
the well-known reason of listing all users in a
ChatRoom . |
java.lang.String |
toString()
Returns a String representation of this event.
|
public static final java.lang.String CONTACT_JOINED
public static final java.lang.String CONTACT_LEFT
public static final java.lang.String CONTACT_QUIT
public static final java.lang.String REASON_USER_LIST
AdHocChatRoomParticipantPresenceChangeEvent
to occur as part
of an operation which lists all users in an AdHocChatRoom
.public AdHocChatRoomParticipantPresenceChangeEvent(AdHocChatRoom sourceAdHocRoom, Contact sourceParticipant, java.lang.String eventType, java.lang.String reason)
sourceAdHocRoom
- the AdHocChatRoom that produced this
eventsourceParticipant
- the Contact that this event is abouteventType
- the event type; one of the CONTACT_XXX constantsreason
- the reason explaining why this event might have occurredpublic AdHocChatRoom getAdHocChatRoom()
public Contact getParticipant()
public java.lang.String getReason()
public boolean isReasonUserList()
ChatRoom
.ChatRoom
i.e.
getReason()
returns a value of REASON_USER_LIST
;
otherwise, falsepublic 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.