aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/msn/AdHocChatRoomInvitationMsnImpl.java
blob: aeef55ebd6dec126d94045a0441eae74e224590b (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
/*
 * 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.msn;

import net.java.sip.communicator.service.protocol.*;

/**
 * The MSN implementation of the <tt>AdHocChatRoomInvitation</tt> interface.
 *
 * @author Rupert Burchardi
 * @author Yana Stamcheva
 */
public class AdHocChatRoomInvitationMsnImpl
    implements AdHocChatRoomInvitation
{
   /**
    * Corresponding chat room instance.
    */
   private AdHocChatRoom chatRoom;
   /**
    * The name of the inviter.
    */
   private String inviter;

   /**
    * Creates an instance of the <tt>AdHocChatRoomInvitationMsnImpl</tt> by
    * specifying the targetChatRoom, the inviter, the reason and the password.
    *
    * @param targetChatRoom the <tt>AdHocChatRoom</tt> for which the invitation
    * is
    * @param inviter the contact, which sent the invitation
    */
   public AdHocChatRoomInvitationMsnImpl(AdHocChatRoom targetChatRoom,
                                        String inviter)
   {
       this.chatRoom = targetChatRoom;
       this.inviter = inviter;
   }

   /**
    * Returns the corresponding chat room.
    * @return The chat room
    */
   public AdHocChatRoom getTargetAdHocChatRoom()
   {
       return chatRoom;
   }

   /**
    * Returns the corresponding inviter.
    * @return The name of the inviter
    */
   public String getInviter()
   {
       return inviter;
   }

   /**
    * Returns the invitation reason.
    * @return the invitation reason
    */
   public String getReason()
   {
       //Not supported in the Msn protocol.
       return null;
   }
}