KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > protocols > comvc > JBuddyDetails


1 /*
2     =========================================================================
3     Package comvc - Implements the ComVc Protocol.
4
5     This module is developed and maintained by PlanetaMessenger.org.
6     Specs, New and updated versions can be found in
7     http://www.planetamessenger.org
8     If you want contact the Team please send a email to Project Manager
9     Leidson Campos Alves Ferreira at leidson@planetamessenger.org
10
11     Copyright (C) since 2001 by PlanetaMessenger.org
12     
13     This library is free software; you can redistribute it and/or
14     modify it under the terms of the GNU Lesser General Public
15     License as published by the Free Software Foundation; either
16     version 2.1 of the License, or (at your option) any later version.
17
18     This library is distributed in the hope that it will be useful,
19     but WITHOUT ANY WARRANTY; without even the implied warranty of
20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21     Lesser General Public License for more details.
22
23     You should have received a copy of the GNU Lesser General Public
24     License along with this library; if not, write to the Free Software
25     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27     =========================================================================
28 */

29 /**
30  *
31  * $Id: JBuddyDetails.java,v 1.3 2007/01/28 17:39:21 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.3 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.protocols.comvc;
40
41
42
43 public class JBuddyDetails {
44   
45   protected java.lang.String JavaDoc strUserId;
46   protected java.lang.String JavaDoc strUserName;
47   protected java.lang.String JavaDoc strLastName;
48   protected java.lang.String JavaDoc strNickName;
49   protected java.lang.String JavaDoc strEmail;
50   long nStatus;
51   
52
53   /**
54    * Constructor. Initializes all class
55    * data.
56    */

57   public JBuddyDetails() {
58     
59     strUserId = "";
60     strUserName = "";
61     strNickName = "";
62     strEmail = "";
63     nStatus = -1;
64   }
65
66   /**
67    * Set the object's user id;
68    * @param strUserId The user id;
69    */

70   public void setUserId( java.lang.String JavaDoc strUserId ) {
71     
72     this.strUserId = strUserId;
73   }
74
75   /**
76    * Get the object's user id.
77    */

78   public java.lang.String JavaDoc getUserId() {
79     
80     return strUserId;
81   }
82
83   /**
84    * Set the object's user name;
85    * @param strUserName The user name;
86    */

87   public void setUserName( java.lang.String JavaDoc strUserName ) {
88
89     this.strUserName = strUserName;
90   }
91
92   /**
93    * Get the object's user name.
94    */

95   public java.lang.String JavaDoc getUserName() {
96     
97     return strUserName;
98   }
99
100   /**
101    * Set the object's user last name;
102    * @param strUserName The user last name;
103    */

104   public void setLastName( java.lang.String JavaDoc strLastName ) {
105
106     this.strLastName = strLastName;
107   }
108
109   /**
110    * Get the object's user last name.
111    */

112   public java.lang.String JavaDoc getLastName() {
113     
114     return strLastName;
115   }
116
117   /**
118    * Set the object's user NickName;
119    * @param strNickName The user NickName;
120    */

121   public void setNickName( java.lang.String JavaDoc strNickName ) {
122     
123     this.strNickName = strNickName;
124   }
125
126   /**
127    * Get the object's nick name.
128    */

129   public java.lang.String JavaDoc getNickName() {
130     
131     return strNickName;
132   }
133
134   /**
135    * Set the user email.
136    * @param strEmail The user email;
137    */

138   public void setEmail( java.lang.String JavaDoc strEmail ) {
139     
140     this.strEmail = strEmail;
141   }
142
143   /**
144    * Get the object user email.
145    */

146   public java.lang.String JavaDoc getEmail() {
147     
148     return strEmail;
149   }
150
151   /**
152    * Set the object user status.
153    * @param nStatus The user status;
154    */

155   public void setStatus( long nStatus ) {
156     
157     this.nStatus = nStatus;
158   }
159
160   /**
161    * Get the object user status.
162    */

163   public long getStatus() {
164     
165     return nStatus;
166   }
167 }
168
169 // JBuddyDetails class
170
Popular Tags