public class ChatRoomMemberPresenceChangeEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MEMBER_JOINED
Indicates that this event was triggered as a result of the participant
joining the source chat room.
|
static java.lang.String |
MEMBER_KICKED
Indicates that this event was triggered as a result of the participant
being "kicked" out of the chat room.
|
static java.lang.String |
MEMBER_LEFT
Indicates that this event was triggered as a result of the participant
leaving the source chat room.
|
static java.lang.String |
MEMBER_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
ChatRoomMemberPresenceChangeEvent to occur as part of an
operation which lists all users in a ChatRoom . |
Constructor and Description |
---|
ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom,
ChatRoomMember sourceMember,
ChatRoomMember actorMember,
java.lang.String eventType,
java.lang.String reason)
Creates a ChatRoomMemberPresenceChangeEvent representing that
a change in the presence of a ChatRoomMember has occurred.
|
ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom,
ChatRoomMember sourceMember,
java.lang.String eventType,
java.lang.String reason)
Creates a ChatRoomMemberPresenceChangeEvent representing that
a change in the presence of a ChatRoomMember has occurred.
|
Modifier and Type | Method and Description |
---|---|
ChatRoom |
getChatRoom()
Returns the chat room that produced this event.
|
ChatRoomMember |
getChatRoomMember()
Returns the chat room member that this event is about.
|
java.lang.String |
getEventType()
Returns the type of this event which could be one of the MEMBER_XXX
member field values.
|
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 MEMBER_JOINED
public static final java.lang.String MEMBER_LEFT
public static final java.lang.String MEMBER_KICKED
public static final java.lang.String MEMBER_QUIT
public static final java.lang.String REASON_USER_LIST
ChatRoomMemberPresenceChangeEvent
to occur as part of an
operation which lists all users in a ChatRoom
.public ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom, ChatRoomMember sourceMember, java.lang.String eventType, java.lang.String reason)
sourceRoom
- the ChatRoom that produced this eventsourceMember
- the ChatRoomMember that this event is abouteventType
- the event type; one of the MEMBER_XXX constantsreason
- the reason explaining why this event might have occurredpublic ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom, ChatRoomMember sourceMember, ChatRoomMember actorMember, java.lang.String eventType, java.lang.String reason)
sourceRoom
- the ChatRoom that produced this eventsourceMember
- the ChatRoomMember who this event is aboutactorMember
- the ChatRoomMember who participated as an
actor in the new event. For example, in the case of a
MEMBER_KICKED event the actorMember is the moderator
who kicked the sourceMember.eventType
- the event type; one of the MEMBER_XXX constantsreason
- the reason explaining why this event might have occurredpublic ChatRoom getChatRoom()
public ChatRoomMember getChatRoomMember()
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.