net.java.sip.communicator.service.protocol.event
Class ChatRoomLocalUserRoleChangeEvent
java.lang.Object
java.util.EventObject
net.java.sip.communicator.service.protocol.event.ChatRoomLocalUserRoleChangeEvent
- All Implemented Interfaces:
- Serializable
public class ChatRoomLocalUserRoleChangeEvent
- extends EventObject
Dispatched to notify interested parties that a change in our role in the
source chat room has occurred. Changes may include us being granted admin
permissions, or other permissions.
- Author:
- Emil Ivov, Stephane Remy
- See Also:
ChatRoomMemberRole,
Serialized Form
ChatRoomLocalUserRoleChangeEvent
public ChatRoomLocalUserRoleChangeEvent(ChatRoom sourceRoom,
ChatRoomMemberRole previousRole,
ChatRoomMemberRole newRole)
- Creates a ChatRoomLocalUserRoleChangeEvent representing that
a change in local participant role in the source chat room has
occured.
- Parameters:
sourceRoom - the ChatRoom that produced the eventpreviousRole - the previous role that local participant hadnewRole - the new role that local participant get
getNewRole
public ChatRoomMemberRole getNewRole()
- Returns the new role the local participant get.
- Returns:
- newRole the new role the local participant get
getPreviousRole
public ChatRoomMemberRole getPreviousRole()
- Returns the previous role that local participant had.
- Returns:
- previousRole the previous role that local participant had
getSourceChatRoom
public ChatRoom getSourceChatRoom()
- Returns the ChatRoom, where this event occured.
- Returns:
- the ChatRoom, where this event occured
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.