Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class AdHocChatRoomInvitationRejectedEvent
extends EventObject

AdHocChatRoomInvitationRejectedEvents indicates the reception of a rejection of an invitation.

Author:
Valentin Martinet
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AdHocChatRoomInvitationRejectedEvent(OperationSetAdHocMultiUserChat source, AdHocChatRoom adHocChatRoom, String invitee, String reason, Date timestamp)
          Creates a AdHocChatRoomInvitationRejectedEvent representing the rejection of an invitation, rejected by the given invitee.
 
Method Summary
 AdHocChatRoom getChatRoom()
          Returns the AdHocChatRoom 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 AdHocChatRoomInvitation is rejected.
 OperationSetAdHocMultiUserChat getSourceOperationSet()
          Returns the ad-hoc multi user chat operation set that dispatches this event.
 Date getTimestamp()
          A timestamp indicating the exact date when the event occurred.
 
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

AdHocChatRoomInvitationRejectedEvent

public AdHocChatRoomInvitationRejectedEvent(OperationSetAdHocMultiUserChat source,
                                            AdHocChatRoom adHocChatRoom,
                                            String invitee,
                                            String reason,
                                            Date timestamp)
Creates a AdHocChatRoomInvitationRejectedEvent representing the rejection of an invitation, rejected by the given invitee.

Parameters:
source - the OperationSetAdHocMultiUserChat that dispatches this event
adHocChatRoom - the AdHocChatRoom 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 OperationSetAdHocMultiUserChat getSourceOperationSet()
Returns the ad-hoc multi user chat operation set that dispatches this event.

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

getChatRoom

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

Returns:
the AdHocChatRoom 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 AdHocChatRoomInvitation is rejected.

Returns:
the reason for which the AdHocChatRoomInvitation is rejected.

getTimestamp

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

Returns:
a Date indicating when the event occurred.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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