/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.jabber;
import net.java.sip.communicator.service.protocol.*;
/**
* The Jabber implementation of the ChatRoomInvitation interface.
*
* @author Yana Stamcheva
*/
public class ChatRoomInvitationJabberImpl
implements ChatRoomInvitation
{
private ChatRoom chatRoom;
private String inviter;
private String reason;
private byte[] password;
/**
* Creates an invitation for the given targetChatRoom, from the
* given inviter.
*
* @param targetChatRoom the ChatRoom for which the invitation is
* @param inviter the ChatRoomMember, which sent the invitation
* @param reason the reason of the invitation
* @param password the password
*/
public ChatRoomInvitationJabberImpl(ChatRoom targetChatRoom,
String inviter,
String reason,
byte[] password)
{
this.chatRoom = targetChatRoom;
this.inviter = inviter;
this.reason = reason;
this.password = password;
}
public ChatRoom getTargetChatRoom()
{
return chatRoom;
}
public String getInviter()
{
return inviter;
}
public String getReason()
{
return reason;
}
public byte[] getChatRoomPassword()
{
return password;
}
}