Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.icq
Class AdHocChatRoomInvitationIcqImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.icq.AdHocChatRoomInvitationIcqImpl
All Implemented Interfaces:
AdHocChatRoomInvitation

public class AdHocChatRoomInvitationIcqImpl
extends Object
implements AdHocChatRoomInvitation

The ICQ implementation of the ChatRoomInvitation interface for ad-hoc chat rooms.

Author:
Valentin Martinet

Constructor Summary
AdHocChatRoomInvitationIcqImpl(AdHocChatRoom targetChatRoom, String inviter, String reason, byte[] password)
          Creates an instance of the AdHocChatRoomInvitationIcqImpl by specifying the targetChatRoom, the inviter, the reason and the password.
 
Method Summary
 byte[] getAdHocChatRoomPassword()
          Returns the password of the chat room.
 String getInviter()
          Returns the corresponding inviter.
 String getReason()
          Returns the invitation reason.
 AdHocChatRoom getTargetAdHocChatRoom()
          Returns the corresponding ad-hoc chat room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdHocChatRoomInvitationIcqImpl

public AdHocChatRoomInvitationIcqImpl(AdHocChatRoom targetChatRoom,
                                      String inviter,
                                      String reason,
                                      byte[] password)
Creates an instance of the AdHocChatRoomInvitationIcqImpl by specifying the targetChatRoom, the inviter, the reason and the password.

Parameters:
targetChatRoom - The AdHocChatRoom for which the invitation is
inviter - The Contact, which sent the invitation
reason - The Reason for the invitation
password - The password
Method Detail

getTargetAdHocChatRoom

public AdHocChatRoom getTargetAdHocChatRoom()
Returns the corresponding ad-hoc chat room.

Specified by:
getTargetAdHocChatRoom in interface AdHocChatRoomInvitation
Returns:
The ad-hoc chat room

getInviter

public String getInviter()
Returns the corresponding inviter.

Specified by:
getInviter in interface AdHocChatRoomInvitation
Returns:
The name of the inviter

getReason

public String getReason()
Returns the invitation reason.

Specified by:
getReason in interface AdHocChatRoomInvitation
Returns:
the invitation reason

getAdHocChatRoomPassword

public byte[] getAdHocChatRoomPassword()
Returns the password of the chat room.

Returns:
The password

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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