Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.irc
Class ChatRoomInvitationIrcImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.irc.ChatRoomInvitationIrcImpl
All Implemented Interfaces:
ChatRoomInvitation

public class ChatRoomInvitationIrcImpl
extends Object
implements ChatRoomInvitation

Represents a chat room invitation.

Author:
Stephane Remy, Yana Stamcheva

Constructor Summary
ChatRoomInvitationIrcImpl(ChatRoom chatRoom, String inviter, String reason, byte[] chatRoomPassword)
          Creates a ChatRoomInvitationIrcImpl, by specifying the chatRoom, for which the invitation is, the inviter who sent this invitation and the reason of the invitation.
 
Method Summary
 byte[] getChatRoomPassword()
          Returns the password for the chat room.
 String getInviter()
          Returns the inviter.
 String getReason()
          Returns the reason of this invitation, or null if there is no reason
 ChatRoom getTargetChatRoom()
          Returns the chat room target of this invitation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatRoomInvitationIrcImpl

public ChatRoomInvitationIrcImpl(ChatRoom chatRoom,
                                 String inviter,
                                 String reason,
                                 byte[] chatRoomPassword)
Creates a ChatRoomInvitationIrcImpl, by specifying the chatRoom, for which the invitation is, the inviter who sent this invitation and the reason of the invitation.

Parameters:
chatRoom - the ChatRoom, for which the invitation is
inviter - the person who sent this invitation.
reason - the reason of the invitation
Method Detail

getTargetChatRoom

public ChatRoom getTargetChatRoom()
Returns the chat room target of this invitation

Specified by:
getTargetChatRoom in interface ChatRoomInvitation
Returns:
the ChatRoom target of this invitation

getReason

public String getReason()
Returns the reason of this invitation, or null if there is no reason

Specified by:
getReason in interface ChatRoomInvitation
Returns:
the reason of this invitation, or null if there is no reason

getInviter

public String getInviter()
Returns the inviter.

Specified by:
getInviter in interface ChatRoomInvitation
Returns:
the inviter

getChatRoomPassword

public byte[] getChatRoomPassword()
Returns the password for the chat room.

Specified by:
getChatRoomPassword in interface ChatRoomInvitation
Returns:
the password for the chat room

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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