public class ChatRoomLocalUserRoleChangeEvent
extends java.util.EventObject
ChatRoomMemberRole
,
Serialized FormConstructor and Description |
---|
ChatRoomLocalUserRoleChangeEvent(ChatRoom sourceRoom,
ChatRoomMemberRole previousRole,
ChatRoomMemberRole newRole,
boolean isInitial)
Creates a ChatRoomLocalUserRoleChangeEvent representing that
a change in local participant role in the source chat room has
occured.
|
Modifier and Type | Method and Description |
---|---|
ChatRoomMemberRole |
getNewRole()
Returns the new role the local participant get.
|
ChatRoomMemberRole |
getPreviousRole()
Returns the previous role that local participant had.
|
ChatRoom |
getSourceChatRoom()
Returns the ChatRoom, where this event occured.
|
boolean |
isInitial()
Returns true if this is initial role set.
|
public ChatRoomLocalUserRoleChangeEvent(ChatRoom sourceRoom, ChatRoomMemberRole previousRole, ChatRoomMemberRole newRole, boolean isInitial)
sourceRoom
- the ChatRoom that produced the eventpreviousRole
- the previous role that local participant hadnewRole
- the new role that local participant getisInitial
- if true this is initial role set.public ChatRoomMemberRole getNewRole()
public ChatRoomMemberRole getPreviousRole()
public ChatRoom getSourceChatRoom()
public boolean isInitial()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.