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 package com.tvnavig.server.user.service.common;
42
43 public class UserServiceResult implements java.io.Serializable {
44 private java.lang.String email;
45
46 private java.lang.String firstName;
47
48 private java.lang.String lastName;
49
50 private java.lang.String login;
51
52 private java.lang.Integer userId;
53
54 public UserServiceResult() {
55 }
56
57 public UserServiceResult(
58 java.lang.String email,
59 java.lang.String firstName,
60 java.lang.String lastName,
61 java.lang.String login,
62 java.lang.Integer userId) {
63 this.email = email;
64 this.firstName = firstName;
65 this.lastName = lastName;
66 this.login = login;
67 this.userId = userId;
68 }
69
70
71
72
73
74
75
76 public java.lang.String getEmail() {
77 return email;
78 }
79
80
81
82
83
84
85
86 public void setEmail(java.lang.String email) {
87 this.email = email;
88 }
89
90
91
92
93
94
95
96 public java.lang.String getFirstName() {
97 return firstName;
98 }
99
100
101
102
103
104
105
106 public void setFirstName(java.lang.String firstName) {
107 this.firstName = firstName;
108 }
109
110
111
112
113
114
115
116 public java.lang.String getLastName() {
117 return lastName;
118 }
119
120
121
122
123
124
125
126 public void setLastName(java.lang.String lastName) {
127 this.lastName = lastName;
128 }
129
130
131
132
133
134
135
136 public java.lang.String getLogin() {
137 return login;
138 }
139
140
141
142
143
144
145
146 public void setLogin(java.lang.String login) {
147 this.login = login;
148 }
149
150
151
152
153
154
155
156 public java.lang.Integer getUserId() {
157 return userId;
158 }
159
160
161
162
163
164
165
166 public void setUserId(java.lang.Integer userId) {
167 this.userId = userId;
168 }
169
170 private java.lang.Object __equalsCalc = null;
171 public synchronized boolean equals(java.lang.Object obj) {
172 if (!(obj instanceof UserServiceResult)) return false;
173 UserServiceResult other = (UserServiceResult) obj;
174 if (obj == null) return false;
175 if (this == obj) return true;
176 if (__equalsCalc != null) {
177 return (__equalsCalc == obj);
178 }
179 __equalsCalc = obj;
180 boolean _equals;
181 _equals = true &&
182 ((this.email==null && other.getEmail()==null) ||
183 (this.email!=null &&
184 this.email.equals(other.getEmail()))) &&
185 ((this.firstName==null && other.getFirstName()==null) ||
186 (this.firstName!=null &&
187 this.firstName.equals(other.getFirstName()))) &&
188 ((this.lastName==null && other.getLastName()==null) ||
189 (this.lastName!=null &&
190 this.lastName.equals(other.getLastName()))) &&
191 ((this.login==null && other.getLogin()==null) ||
192 (this.login!=null &&
193 this.login.equals(other.getLogin()))) &&
194 ((this.userId==null && other.getUserId()==null) ||
195 (this.userId!=null &&
196 this.userId.equals(other.getUserId())));
197 __equalsCalc = null;
198 return _equals;
199 }
200
201 private boolean __hashCodeCalc = false;
202 public synchronized int hashCode() {
203 if (__hashCodeCalc) {
204 return 0;
205 }
206 __hashCodeCalc = true;
207 int _hashCode = 1;
208 if (getEmail() != null) {
209 _hashCode += getEmail().hashCode();
210 }
211 if (getFirstName() != null) {
212 _hashCode += getFirstName().hashCode();
213 }
214 if (getLastName() != null) {
215 _hashCode += getLastName().hashCode();
216 }
217 if (getLogin() != null) {
218 _hashCode += getLogin().hashCode();
219 }
220 if (getUserId() != null) {
221 _hashCode += getUserId().hashCode();
222 }
223 __hashCodeCalc = false;
224 return _hashCode;
225 }
226
227
228 private static org.apache.axis.description.TypeDesc typeDesc =
229 new org.apache.axis.description.TypeDesc(UserServiceResult.class, true);
230
231 static {
232 typeDesc.setXmlType(new javax.xml.namespace.QName("http://common.service.user.server.tvnavig.com", "UserServiceResult"));
233 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
234 elemField.setFieldName("email");
235 elemField.setXmlName(new javax.xml.namespace.QName("", "email"));
236 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
237 elemField.setNillable(true);
238 typeDesc.addFieldDesc(elemField);
239 elemField = new org.apache.axis.description.ElementDesc();
240 elemField.setFieldName("firstName");
241 elemField.setXmlName(new javax.xml.namespace.QName("", "firstName"));
242 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
243 elemField.setNillable(true);
244 typeDesc.addFieldDesc(elemField);
245 elemField = new org.apache.axis.description.ElementDesc();
246 elemField.setFieldName("lastName");
247 elemField.setXmlName(new javax.xml.namespace.QName("", "lastName"));
248 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
249 elemField.setNillable(true);
250 typeDesc.addFieldDesc(elemField);
251 elemField = new org.apache.axis.description.ElementDesc();
252 elemField.setFieldName("login");
253 elemField.setXmlName(new javax.xml.namespace.QName("", "login"));
254 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
255 elemField.setNillable(true);
256 typeDesc.addFieldDesc(elemField);
257 elemField = new org.apache.axis.description.ElementDesc();
258 elemField.setFieldName("userId");
259 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
260 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
261 elemField.setNillable(true);
262 typeDesc.addFieldDesc(elemField);
263 }
264
265
266
267
268 public static org.apache.axis.description.TypeDesc getTypeDesc() {
269 return typeDesc;
270 }
271
272
273
274
275 public static org.apache.axis.encoding.Serializer getSerializer(
276 java.lang.String mechType,
277 java.lang.Class _javaType,
278 javax.xml.namespace.QName _xmlType) {
279 return
280 new org.apache.axis.encoding.ser.BeanSerializer(
281 _javaType, _xmlType, typeDesc);
282 }
283
284
285
286
287 public static org.apache.axis.encoding.Deserializer getDeserializer(
288 java.lang.String mechType,
289 java.lang.Class _javaType,
290 javax.xml.namespace.QName _xmlType) {
291 return
292 new org.apache.axis.encoding.ser.BeanDeserializer(
293 _javaType, _xmlType, typeDesc);
294 }
295
296 }