Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class ChatRoomInvitationJabberImpl

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

public class ChatRoomInvitationJabberImpl
extends Object
implements ChatRoomInvitation

The Jabber implementation of the ChatRoomInvitation interface.

Author:
Yana Stamcheva

Constructor Summary
ChatRoomInvitationJabberImpl(ChatRoom targetChatRoom, String inviter, String reason, byte[] password)
          Creates an invitation for the given targetChatRoom, from the given inviter.
 
Method Summary
 byte[] getChatRoomPassword()
          Returns the password to use when joining the room.
 String getInviter()
          Returns the ChatRoomMember that sent this invitation.
 String getReason()
          Returns the reason of this invitation, or null if there is no reason.
 ChatRoom getTargetChatRoom()
          Returns the ChatRoom, which is the target of this invitation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatRoomInvitationJabberImpl

public ChatRoomInvitationJabberImpl(ChatRoom targetChatRoom,
                                    String inviter,
                                    String reason,
                                    byte[] password)
Creates an invitation for the given targetChatRoom, from the given inviter.

Parameters:
targetChatRoom - the ChatRoom for which the invitation is
inviter - the ChatRoomMember, which sent the invitation
reason - the reason of the invitation
password - the password
Method Detail

getTargetChatRoom

public ChatRoom getTargetChatRoom()
Description copied from interface: ChatRoomInvitation
Returns the ChatRoom, which is the target of this invitation. The chat room returned by this method will be the room to which the user is invited to join to.

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

getInviter

public String getInviter()
Description copied from interface: ChatRoomInvitation
Returns the ChatRoomMember that sent this invitation.

Specified by:
getInviter in interface ChatRoomInvitation
Returns:
the ChatRoomMember that sent this invitation.

getReason

public String getReason()
Description copied from interface: ChatRoomInvitation
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

getChatRoomPassword

public byte[] getChatRoomPassword()
Description copied from interface: ChatRoomInvitation
Returns the password to use when joining the room.

Specified by:
getChatRoomPassword in interface ChatRoomInvitation
Returns:
the password to use when joining the room

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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