KickJava   Java API By Example, From Geeks To Geeks.

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


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: JUserDetails.java,v 1.4 2007/01/28 17:39:21 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.4 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.protocols.comvc;
40
41
42 public class JUserDetails {
43
44   private java.lang.String JavaDoc strNickName;
45   private java.lang.String JavaDoc strEmail;
46   private java.lang.String JavaDoc strName;
47   private java.lang.String JavaDoc strSecondName;
48   private java.lang.String JavaDoc strPassword;
49   private int nShowEmail;
50   private long nUserId;
51   private int nGender;
52   private int nLastStatus;
53
54   
55   public JUserDetails() {
56   /**
57      Constructor. Initializes all class
58     data.
59   */

60   
61     strNickName = "";
62     strEmail = "";
63     strName = "";
64     strSecondName = "";
65     strPassword = "";
66     nShowEmail = 0;
67     nUserId = 0;
68     nGender = 1;
69     nLastStatus = JComVcConstants.STATUS_OFFLINE;
70   }
71   
72   public void setNick( java.lang.String JavaDoc strNickName ) {
73   /**
74      Sets the Nick name of this
75     class.
76     Parameters:
77      * strNickName - Nick to set;
78   */

79     
80     this.strNickName = strNickName;
81   }
82   
83   public java.lang.String JavaDoc getNick() {
84   /**
85      Returns the Nick of
86      this class.
87   */

88    
89     return strNickName;
90   }
91   
92   public void setName( java.lang.String JavaDoc strName ) {
93   /**
94      Set the field Name of this
95      class
96      Parameters:
97       * strName - Name to set;
98   */

99     
100     this.strName = strName;
101   }
102   
103   public java.lang.String JavaDoc getName() {
104   /**
105      Get the field Name of this
106      class.
107   */

108     
109     return strName;
110   }
111   
112   public void setSecondName( java.lang.String JavaDoc strSecondName ) {
113   /**
114      Set the SecondName field of this
115      class.
116      Parameters:
117       * strSecondName - SecondName to set;
118   */

119     
120     this.strSecondName = strSecondName;
121   }
122   
123   public java.lang.String JavaDoc getSecondName() {
124   /**
125      Returns the second name of
126      this class.
127   */

128     
129     return strSecondName;
130   }
131   
132   public void setEmail( java.lang.String JavaDoc strEmail ) {
133   /**
134      Set the email field of this
135      class.
136      Parameters:
137       * strEmail - Email to set;
138   */

139     
140     this.strEmail = strEmail;
141   }
142   
143   public java.lang.String JavaDoc getEmail() {
144   /**
145      Returns the Email field of
146      this class.
147   */

148     
149     return strEmail;
150   }
151   
152   public void setShowEmail( int nShowEmail ) {
153   /**
154      Sets the ShowEmail field of this
155      class.
156      Parameters:
157       * nShowEmail - ShowEmail field to
158         set;
159   */

160     
161     this.nShowEmail = nShowEmail;
162   }
163   
164   public int getShowEmail() {
165   /**
166      Returns the ShowEmail field of
167      this class.
168   */

169     
170     return nShowEmail;
171   }
172   
173   public void setUserId( long nUserId ) {
174   /**
175      Sets the UserId field of this
176      class.
177      Parameters:
178       * nUserId - UserId to set;
179   */

180     
181     this.nUserId = nUserId;
182   }
183   
184   public long getUserId() {
185   /**
186      Returns the UserId field name
187      of this class.
188   */

189     
190     return nUserId;
191   }
192   
193   public void setPassword( java.lang.String JavaDoc strPasswd ) {
194   /**
195      Sets the password field of this
196      class.
197      Parameters:
198       * strPasswd - Password to set;
199   */

200     
201     strPassword = strPasswd;
202   }
203   
204   public java.lang.String JavaDoc getPassword() {
205   /**
206      Returns the password of this
207      class.
208   */

209     
210     return strPassword;
211   }
212   
213   public void setGender( int nGender ) {
214   /**
215      Sets the gender of this class.
216      Parameters:
217       * nGender - Gender field to set;
218   */

219     
220     this.nGender = nGender;
221   }
222   
223   public int getGender() {
224   /**
225      Returns the gender field of this
226      class.
227   */

228     
229     return nGender;
230   }
231   
232   void setStatus( int nStatus ) {
233   /**
234      Sets the Status of this
235      class.
236      Parameters:
237       * nStatus - The new status;
238   */

239     
240     this.nLastStatus = nStatus;
241   }
242   
243   int getStatus() {
244   /**
245      Returns the Status of this
246      class.
247   */

248     
249     return nLastStatus;
250   }
251 }
252
253 // JUserDetails class
Popular Tags