Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ChatRoomInvitationRejectedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.ChatRoomInvitationRejectedEvent
All Implemented Interfaces:
Serializable

public class ChatRoomInvitationRejectedEvent
extends EventObject

ChatRoomInvitationRejectedEvents indicates the reception of a rejection of an invitation.

Author:
Emil Ivov, Stephane Remy, Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatRoomInvitationRejectedEvent(OperationSetMultiUserChat source, ChatRoom chatRoom, String invitee, String reason, Date timestamp)
          Creates a ChatRoomInvitationRejectedEvent representing the rejection of an invitation, rejected by the given invitee.
 
Method Summary
 ChatRoom getChatRoom()
          Returns the ChatRoom for which the initial invitation was.
 String getInvitee()
          Returns the name of the invitee that rejected the invitation.
 String getReason()
          Returns the reason for which the ChatRoomInvitation is rejected.
 OperationSetMultiUserChat getSourceOperationSet()
          Returns the multi user chat operation set that dispatches this event.
 Date getTimestamp()
          A timestamp indicating the exact date when the event ocurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatRoomInvitationRejectedEvent

public ChatRoomInvitationRejectedEvent(OperationSetMultiUserChat source,
                                       ChatRoom chatRoom,
                                       String invitee,
                                       String reason,
                                       Date timestamp)
Creates a ChatRoomInvitationRejectedEvent representing the rejection of an invitation, rejected by the given invitee.

Parameters:
source - the OperationSetMultiUserChat that dispatches this event
chatRoom - the ChatRoom for which the initial invitation was
invitee - the name of the invitee that rejected the invitation
reason - the reason of the rejection
timestamp - the exact date when the event ocurred
Method Detail

getSourceOperationSet

public OperationSetMultiUserChat getSourceOperationSet()
Returns the multi user chat operation set that dispatches this event.

Returns:
the multi user chat operation set that dispatches this event

getChatRoom

public ChatRoom getChatRoom()
Returns the ChatRoom for which the initial invitation was.

Returns:
the ChatRoom for which the initial invitation was

getInvitee

public String getInvitee()
Returns the name of the invitee that rejected the invitation.

Returns:
the name of the invitee that rejected the invitation

getReason

public String getReason()
Returns the reason for which the ChatRoomInvitation is rejected.

Returns:
the reason for which the ChatRoomInvitation is rejected.

getTimestamp

public Date getTimestamp()
A timestamp indicating the exact date when the event ocurred.

Returns:
a Date indicating when the event ocurred.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.