blob: 12c750ef535e6dd561d1946fba3fb0f8c9b0fdb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/*
* 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.irc;
import net.java.sip.communicator.service.protocol.*;
/**
* Represents a chat room invitation.
*
* @author Stephane Remy
* @author Yana Stamcheva
*/
public class ChatRoomInvitationIrcImpl
implements ChatRoomInvitation
{
/**
* The chat room on which we are invited.
*/
private ChatRoom chatRoom = null;
/**
* The inviter that sent the invitation.
*/
private String inviter = null;
/**
* The reason of the invitation or null if there is no reason.
*/
private String reason = null;
/**
* The password of the chat room.
*/
private byte[] chatRoomPasword;
/**
* Creates a <tt>ChatRoomInvitationIrcImpl</tt>, by specifying the
* <tt>chatRoom</tt>, for which the invitation is, the <tt>inviter</tt> who
* sent this invitation and the <tt>reason</tt> of the invitation.
*
* @param chatRoom the <tt>ChatRoom</tt>, for which the invitation is
* @param inviter the person who sent this invitation.
* @param reason the reason of the invitation
* @param chatRoomPassword password for entering the chat room
*/
public ChatRoomInvitationIrcImpl(final ChatRoom chatRoom,
final String inviter,
final String reason,
final byte[] chatRoomPassword)
{
this.chatRoom = chatRoom;
this.inviter = inviter;
this.reason = reason;
this.chatRoomPasword = chatRoomPassword;
}
/**
* Returns the chat room target of this invitation.
*
* @return the <tt>ChatRoom</tt> target of this invitation
*/
public ChatRoom getTargetChatRoom()
{
return this.chatRoom;
}
/**
* Returns the reason of this invitation, or null if there is no reason.
*
* @return the reason of this invitation, or null if there is no reason
*/
public String getReason()
{
return this.reason;
}
/**
* Returns the inviter.
*
* @return the inviter
*/
public String getInviter()
{
return inviter;
}
/**
* Returns the password for the chat room.
*
* @return the password for the chat room
*/
public byte[] getChatRoomPassword()
{
return chatRoomPasword;
}
}
|