| 553 |
chandransh |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.user;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.util.Arrays;
|
|
|
19 |
import org.slf4j.Logger;
|
|
|
20 |
import org.slf4j.LoggerFactory;
|
|
|
21 |
|
|
|
22 |
import org.apache.thrift.*;
|
|
|
23 |
import org.apache.thrift.meta_data.*;
|
|
|
24 |
import org.apache.thrift.protocol.*;
|
|
|
25 |
|
|
|
26 |
/**
|
|
|
27 |
* The user structure holding the basic information that identifies the user.
|
|
|
28 |
* *
|
|
|
29 |
*/
|
| 571 |
rajveer |
30 |
public class User implements TBase<User._Fields>, java.io.Serializable, Cloneable, Comparable<User> {
|
| 553 |
chandransh |
31 |
private static final TStruct STRUCT_DESC = new TStruct("User");
|
|
|
32 |
|
|
|
33 |
private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
|
|
|
34 |
private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)2);
|
|
|
35 |
private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)3);
|
|
|
36 |
private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)4);
|
| 571 |
rajveer |
37 |
private static final TField DATE_OF_BIRTH_FIELD_DESC = new TField("dateOfBirth", TType.STRING, (short)5);
|
| 553 |
chandransh |
38 |
private static final TField SEX_FIELD_DESC = new TField("sex", TType.I32, (short)6);
|
| 571 |
rajveer |
39 |
private static final TField MOBILE_NUMBER_FIELD_DESC = new TField("mobileNumber", TType.STRING, (short)7);
|
| 553 |
chandransh |
40 |
private static final TField SOCIAL_HANDLES_FIELD_DESC = new TField("socialHandles", TType.STRUCT, (short)8);
|
|
|
41 |
private static final TField ADDRESSES_FIELD_DESC = new TField("addresses", TType.LIST, (short)9);
|
|
|
42 |
private static final TField DEFAULT_ADDRESS_ID_FIELD_DESC = new TField("defaultAddressId", TType.I64, (short)10);
|
|
|
43 |
private static final TField COMMUNICATION_EMAIL_FIELD_DESC = new TField("communicationEmail", TType.STRING, (short)11);
|
|
|
44 |
private static final TField ACTIVE_CART_ID_FIELD_DESC = new TField("activeCartId", TType.I64, (short)12);
|
|
|
45 |
private static final TField JSESSION_ID_FIELD_DESC = new TField("jsessionId", TType.STRING, (short)13);
|
|
|
46 |
private static final TField IS_ANONYMOUS_FIELD_DESC = new TField("isAnonymous", TType.BOOL, (short)14);
|
|
|
47 |
|
|
|
48 |
private long userId;
|
|
|
49 |
private String email;
|
|
|
50 |
private String password;
|
|
|
51 |
private String name;
|
| 571 |
rajveer |
52 |
private String dateOfBirth;
|
| 553 |
chandransh |
53 |
private Sex sex;
|
| 571 |
rajveer |
54 |
private String mobileNumber;
|
| 553 |
chandransh |
55 |
private SocialHandles socialHandles;
|
|
|
56 |
private List<Address> addresses;
|
|
|
57 |
private long defaultAddressId;
|
|
|
58 |
private String communicationEmail;
|
|
|
59 |
private long activeCartId;
|
|
|
60 |
private String jsessionId;
|
|
|
61 |
private boolean isAnonymous;
|
|
|
62 |
|
|
|
63 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
64 |
public enum _Fields implements TFieldIdEnum {
|
|
|
65 |
USER_ID((short)1, "userId"),
|
|
|
66 |
EMAIL((short)2, "email"),
|
|
|
67 |
PASSWORD((short)3, "password"),
|
|
|
68 |
NAME((short)4, "name"),
|
|
|
69 |
DATE_OF_BIRTH((short)5, "dateOfBirth"),
|
|
|
70 |
/**
|
|
|
71 |
*
|
|
|
72 |
* @see Sex
|
|
|
73 |
*/
|
|
|
74 |
SEX((short)6, "sex"),
|
| 571 |
rajveer |
75 |
MOBILE_NUMBER((short)7, "mobileNumber"),
|
| 553 |
chandransh |
76 |
SOCIAL_HANDLES((short)8, "socialHandles"),
|
|
|
77 |
ADDRESSES((short)9, "addresses"),
|
|
|
78 |
DEFAULT_ADDRESS_ID((short)10, "defaultAddressId"),
|
|
|
79 |
COMMUNICATION_EMAIL((short)11, "communicationEmail"),
|
|
|
80 |
ACTIVE_CART_ID((short)12, "activeCartId"),
|
|
|
81 |
JSESSION_ID((short)13, "jsessionId"),
|
|
|
82 |
IS_ANONYMOUS((short)14, "isAnonymous");
|
|
|
83 |
|
|
|
84 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
85 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
86 |
|
|
|
87 |
static {
|
|
|
88 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
89 |
byId.put((int)field._thriftId, field);
|
|
|
90 |
byName.put(field.getFieldName(), field);
|
|
|
91 |
}
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
/**
|
|
|
95 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
96 |
*/
|
|
|
97 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
98 |
return byId.get(fieldId);
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
/**
|
|
|
102 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
103 |
* if it is not found.
|
|
|
104 |
*/
|
|
|
105 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
106 |
_Fields fields = findByThriftId(fieldId);
|
|
|
107 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
108 |
return fields;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
/**
|
|
|
112 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
113 |
*/
|
|
|
114 |
public static _Fields findByName(String name) {
|
|
|
115 |
return byName.get(name);
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
private final short _thriftId;
|
|
|
119 |
private final String _fieldName;
|
|
|
120 |
|
|
|
121 |
_Fields(short thriftId, String fieldName) {
|
|
|
122 |
_thriftId = thriftId;
|
|
|
123 |
_fieldName = fieldName;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
public short getThriftFieldId() {
|
|
|
127 |
return _thriftId;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public String getFieldName() {
|
|
|
131 |
return _fieldName;
|
|
|
132 |
}
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
// isset id assignments
|
|
|
136 |
private static final int __USERID_ISSET_ID = 0;
|
| 571 |
rajveer |
137 |
private static final int __DEFAULTADDRESSID_ISSET_ID = 1;
|
|
|
138 |
private static final int __ACTIVECARTID_ISSET_ID = 2;
|
|
|
139 |
private static final int __ISANONYMOUS_ISSET_ID = 3;
|
|
|
140 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 553 |
chandransh |
141 |
|
|
|
142 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
143 |
put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT,
|
|
|
144 |
new FieldValueMetaData(TType.I64)));
|
|
|
145 |
put(_Fields.EMAIL, new FieldMetaData("email", TFieldRequirementType.DEFAULT,
|
|
|
146 |
new FieldValueMetaData(TType.STRING)));
|
|
|
147 |
put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,
|
|
|
148 |
new FieldValueMetaData(TType.STRING)));
|
|
|
149 |
put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT,
|
|
|
150 |
new FieldValueMetaData(TType.STRING)));
|
|
|
151 |
put(_Fields.DATE_OF_BIRTH, new FieldMetaData("dateOfBirth", TFieldRequirementType.DEFAULT,
|
| 571 |
rajveer |
152 |
new FieldValueMetaData(TType.STRING)));
|
| 553 |
chandransh |
153 |
put(_Fields.SEX, new FieldMetaData("sex", TFieldRequirementType.DEFAULT,
|
|
|
154 |
new EnumMetaData(TType.ENUM, Sex.class)));
|
| 571 |
rajveer |
155 |
put(_Fields.MOBILE_NUMBER, new FieldMetaData("mobileNumber", TFieldRequirementType.DEFAULT,
|
|
|
156 |
new FieldValueMetaData(TType.STRING)));
|
| 553 |
chandransh |
157 |
put(_Fields.SOCIAL_HANDLES, new FieldMetaData("socialHandles", TFieldRequirementType.DEFAULT,
|
|
|
158 |
new StructMetaData(TType.STRUCT, SocialHandles.class)));
|
|
|
159 |
put(_Fields.ADDRESSES, new FieldMetaData("addresses", TFieldRequirementType.DEFAULT,
|
|
|
160 |
new ListMetaData(TType.LIST,
|
|
|
161 |
new StructMetaData(TType.STRUCT, Address.class))));
|
|
|
162 |
put(_Fields.DEFAULT_ADDRESS_ID, new FieldMetaData("defaultAddressId", TFieldRequirementType.DEFAULT,
|
|
|
163 |
new FieldValueMetaData(TType.I64)));
|
|
|
164 |
put(_Fields.COMMUNICATION_EMAIL, new FieldMetaData("communicationEmail", TFieldRequirementType.DEFAULT,
|
|
|
165 |
new FieldValueMetaData(TType.STRING)));
|
|
|
166 |
put(_Fields.ACTIVE_CART_ID, new FieldMetaData("activeCartId", TFieldRequirementType.DEFAULT,
|
|
|
167 |
new FieldValueMetaData(TType.I64)));
|
|
|
168 |
put(_Fields.JSESSION_ID, new FieldMetaData("jsessionId", TFieldRequirementType.DEFAULT,
|
|
|
169 |
new FieldValueMetaData(TType.STRING)));
|
|
|
170 |
put(_Fields.IS_ANONYMOUS, new FieldMetaData("isAnonymous", TFieldRequirementType.DEFAULT,
|
|
|
171 |
new FieldValueMetaData(TType.BOOL)));
|
|
|
172 |
}});
|
|
|
173 |
|
|
|
174 |
static {
|
|
|
175 |
FieldMetaData.addStructMetaDataMap(User.class, metaDataMap);
|
|
|
176 |
}
|
|
|
177 |
|
|
|
178 |
public User() {
|
|
|
179 |
}
|
|
|
180 |
|
|
|
181 |
public User(
|
|
|
182 |
long userId,
|
|
|
183 |
String email,
|
|
|
184 |
String password,
|
|
|
185 |
String name,
|
| 571 |
rajveer |
186 |
String dateOfBirth,
|
| 553 |
chandransh |
187 |
Sex sex,
|
| 571 |
rajveer |
188 |
String mobileNumber,
|
| 553 |
chandransh |
189 |
SocialHandles socialHandles,
|
|
|
190 |
List<Address> addresses,
|
|
|
191 |
long defaultAddressId,
|
|
|
192 |
String communicationEmail,
|
|
|
193 |
long activeCartId,
|
|
|
194 |
String jsessionId,
|
|
|
195 |
boolean isAnonymous)
|
|
|
196 |
{
|
|
|
197 |
this();
|
|
|
198 |
this.userId = userId;
|
|
|
199 |
setUserIdIsSet(true);
|
|
|
200 |
this.email = email;
|
|
|
201 |
this.password = password;
|
|
|
202 |
this.name = name;
|
|
|
203 |
this.dateOfBirth = dateOfBirth;
|
|
|
204 |
this.sex = sex;
|
| 571 |
rajveer |
205 |
this.mobileNumber = mobileNumber;
|
| 553 |
chandransh |
206 |
this.socialHandles = socialHandles;
|
|
|
207 |
this.addresses = addresses;
|
|
|
208 |
this.defaultAddressId = defaultAddressId;
|
|
|
209 |
setDefaultAddressIdIsSet(true);
|
|
|
210 |
this.communicationEmail = communicationEmail;
|
|
|
211 |
this.activeCartId = activeCartId;
|
|
|
212 |
setActiveCartIdIsSet(true);
|
|
|
213 |
this.jsessionId = jsessionId;
|
|
|
214 |
this.isAnonymous = isAnonymous;
|
|
|
215 |
setIsAnonymousIsSet(true);
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
/**
|
|
|
219 |
* Performs a deep copy on <i>other</i>.
|
|
|
220 |
*/
|
|
|
221 |
public User(User other) {
|
|
|
222 |
__isset_bit_vector.clear();
|
|
|
223 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
224 |
this.userId = other.userId;
|
|
|
225 |
if (other.isSetEmail()) {
|
|
|
226 |
this.email = other.email;
|
|
|
227 |
}
|
|
|
228 |
if (other.isSetPassword()) {
|
|
|
229 |
this.password = other.password;
|
|
|
230 |
}
|
|
|
231 |
if (other.isSetName()) {
|
|
|
232 |
this.name = other.name;
|
|
|
233 |
}
|
| 571 |
rajveer |
234 |
if (other.isSetDateOfBirth()) {
|
|
|
235 |
this.dateOfBirth = other.dateOfBirth;
|
|
|
236 |
}
|
| 553 |
chandransh |
237 |
if (other.isSetSex()) {
|
|
|
238 |
this.sex = other.sex;
|
|
|
239 |
}
|
| 571 |
rajveer |
240 |
if (other.isSetMobileNumber()) {
|
|
|
241 |
this.mobileNumber = other.mobileNumber;
|
| 553 |
chandransh |
242 |
}
|
|
|
243 |
if (other.isSetSocialHandles()) {
|
|
|
244 |
this.socialHandles = new SocialHandles(other.socialHandles);
|
|
|
245 |
}
|
|
|
246 |
if (other.isSetAddresses()) {
|
|
|
247 |
List<Address> __this__addresses = new ArrayList<Address>();
|
|
|
248 |
for (Address other_element : other.addresses) {
|
|
|
249 |
__this__addresses.add(new Address(other_element));
|
|
|
250 |
}
|
|
|
251 |
this.addresses = __this__addresses;
|
|
|
252 |
}
|
|
|
253 |
this.defaultAddressId = other.defaultAddressId;
|
|
|
254 |
if (other.isSetCommunicationEmail()) {
|
|
|
255 |
this.communicationEmail = other.communicationEmail;
|
|
|
256 |
}
|
|
|
257 |
this.activeCartId = other.activeCartId;
|
|
|
258 |
if (other.isSetJsessionId()) {
|
|
|
259 |
this.jsessionId = other.jsessionId;
|
|
|
260 |
}
|
|
|
261 |
this.isAnonymous = other.isAnonymous;
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
public User deepCopy() {
|
|
|
265 |
return new User(this);
|
|
|
266 |
}
|
|
|
267 |
|
|
|
268 |
@Deprecated
|
|
|
269 |
public User clone() {
|
|
|
270 |
return new User(this);
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
public long getUserId() {
|
|
|
274 |
return this.userId;
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
public User setUserId(long userId) {
|
|
|
278 |
this.userId = userId;
|
|
|
279 |
setUserIdIsSet(true);
|
|
|
280 |
return this;
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
public void unsetUserId() {
|
|
|
284 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
/** Returns true if field userId is set (has been asigned a value) and false otherwise */
|
|
|
288 |
public boolean isSetUserId() {
|
|
|
289 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
public void setUserIdIsSet(boolean value) {
|
|
|
293 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
294 |
}
|
|
|
295 |
|
|
|
296 |
public String getEmail() {
|
|
|
297 |
return this.email;
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
public User setEmail(String email) {
|
|
|
301 |
this.email = email;
|
|
|
302 |
return this;
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
public void unsetEmail() {
|
|
|
306 |
this.email = null;
|
|
|
307 |
}
|
|
|
308 |
|
|
|
309 |
/** Returns true if field email is set (has been asigned a value) and false otherwise */
|
|
|
310 |
public boolean isSetEmail() {
|
|
|
311 |
return this.email != null;
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
public void setEmailIsSet(boolean value) {
|
|
|
315 |
if (!value) {
|
|
|
316 |
this.email = null;
|
|
|
317 |
}
|
|
|
318 |
}
|
|
|
319 |
|
|
|
320 |
public String getPassword() {
|
|
|
321 |
return this.password;
|
|
|
322 |
}
|
|
|
323 |
|
|
|
324 |
public User setPassword(String password) {
|
|
|
325 |
this.password = password;
|
|
|
326 |
return this;
|
|
|
327 |
}
|
|
|
328 |
|
|
|
329 |
public void unsetPassword() {
|
|
|
330 |
this.password = null;
|
|
|
331 |
}
|
|
|
332 |
|
|
|
333 |
/** Returns true if field password is set (has been asigned a value) and false otherwise */
|
|
|
334 |
public boolean isSetPassword() {
|
|
|
335 |
return this.password != null;
|
|
|
336 |
}
|
|
|
337 |
|
|
|
338 |
public void setPasswordIsSet(boolean value) {
|
|
|
339 |
if (!value) {
|
|
|
340 |
this.password = null;
|
|
|
341 |
}
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public String getName() {
|
|
|
345 |
return this.name;
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public User setName(String name) {
|
|
|
349 |
this.name = name;
|
|
|
350 |
return this;
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
public void unsetName() {
|
|
|
354 |
this.name = null;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
/** Returns true if field name is set (has been asigned a value) and false otherwise */
|
|
|
358 |
public boolean isSetName() {
|
|
|
359 |
return this.name != null;
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void setNameIsSet(boolean value) {
|
|
|
363 |
if (!value) {
|
|
|
364 |
this.name = null;
|
|
|
365 |
}
|
|
|
366 |
}
|
|
|
367 |
|
| 571 |
rajveer |
368 |
public String getDateOfBirth() {
|
| 553 |
chandransh |
369 |
return this.dateOfBirth;
|
|
|
370 |
}
|
|
|
371 |
|
| 571 |
rajveer |
372 |
public User setDateOfBirth(String dateOfBirth) {
|
| 553 |
chandransh |
373 |
this.dateOfBirth = dateOfBirth;
|
|
|
374 |
return this;
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
public void unsetDateOfBirth() {
|
| 571 |
rajveer |
378 |
this.dateOfBirth = null;
|
| 553 |
chandransh |
379 |
}
|
|
|
380 |
|
|
|
381 |
/** Returns true if field dateOfBirth is set (has been asigned a value) and false otherwise */
|
|
|
382 |
public boolean isSetDateOfBirth() {
|
| 571 |
rajveer |
383 |
return this.dateOfBirth != null;
|
| 553 |
chandransh |
384 |
}
|
|
|
385 |
|
|
|
386 |
public void setDateOfBirthIsSet(boolean value) {
|
| 571 |
rajveer |
387 |
if (!value) {
|
|
|
388 |
this.dateOfBirth = null;
|
|
|
389 |
}
|
| 553 |
chandransh |
390 |
}
|
|
|
391 |
|
|
|
392 |
/**
|
|
|
393 |
*
|
|
|
394 |
* @see Sex
|
|
|
395 |
*/
|
|
|
396 |
public Sex getSex() {
|
|
|
397 |
return this.sex;
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
/**
|
|
|
401 |
*
|
|
|
402 |
* @see Sex
|
|
|
403 |
*/
|
|
|
404 |
public User setSex(Sex sex) {
|
|
|
405 |
this.sex = sex;
|
|
|
406 |
return this;
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public void unsetSex() {
|
|
|
410 |
this.sex = null;
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
/** Returns true if field sex is set (has been asigned a value) and false otherwise */
|
|
|
414 |
public boolean isSetSex() {
|
|
|
415 |
return this.sex != null;
|
|
|
416 |
}
|
|
|
417 |
|
|
|
418 |
public void setSexIsSet(boolean value) {
|
|
|
419 |
if (!value) {
|
|
|
420 |
this.sex = null;
|
|
|
421 |
}
|
|
|
422 |
}
|
|
|
423 |
|
| 571 |
rajveer |
424 |
public String getMobileNumber() {
|
|
|
425 |
return this.mobileNumber;
|
| 553 |
chandransh |
426 |
}
|
|
|
427 |
|
| 571 |
rajveer |
428 |
public User setMobileNumber(String mobileNumber) {
|
|
|
429 |
this.mobileNumber = mobileNumber;
|
| 553 |
chandransh |
430 |
return this;
|
|
|
431 |
}
|
|
|
432 |
|
| 571 |
rajveer |
433 |
public void unsetMobileNumber() {
|
|
|
434 |
this.mobileNumber = null;
|
| 553 |
chandransh |
435 |
}
|
|
|
436 |
|
| 571 |
rajveer |
437 |
/** Returns true if field mobileNumber is set (has been asigned a value) and false otherwise */
|
|
|
438 |
public boolean isSetMobileNumber() {
|
|
|
439 |
return this.mobileNumber != null;
|
| 553 |
chandransh |
440 |
}
|
|
|
441 |
|
| 571 |
rajveer |
442 |
public void setMobileNumberIsSet(boolean value) {
|
| 553 |
chandransh |
443 |
if (!value) {
|
| 571 |
rajveer |
444 |
this.mobileNumber = null;
|
| 553 |
chandransh |
445 |
}
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
public SocialHandles getSocialHandles() {
|
|
|
449 |
return this.socialHandles;
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
public User setSocialHandles(SocialHandles socialHandles) {
|
|
|
453 |
this.socialHandles = socialHandles;
|
|
|
454 |
return this;
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
public void unsetSocialHandles() {
|
|
|
458 |
this.socialHandles = null;
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
/** Returns true if field socialHandles is set (has been asigned a value) and false otherwise */
|
|
|
462 |
public boolean isSetSocialHandles() {
|
|
|
463 |
return this.socialHandles != null;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
public void setSocialHandlesIsSet(boolean value) {
|
|
|
467 |
if (!value) {
|
|
|
468 |
this.socialHandles = null;
|
|
|
469 |
}
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
public int getAddressesSize() {
|
|
|
473 |
return (this.addresses == null) ? 0 : this.addresses.size();
|
|
|
474 |
}
|
|
|
475 |
|
|
|
476 |
public java.util.Iterator<Address> getAddressesIterator() {
|
|
|
477 |
return (this.addresses == null) ? null : this.addresses.iterator();
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
public void addToAddresses(Address elem) {
|
|
|
481 |
if (this.addresses == null) {
|
|
|
482 |
this.addresses = new ArrayList<Address>();
|
|
|
483 |
}
|
|
|
484 |
this.addresses.add(elem);
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public List<Address> getAddresses() {
|
|
|
488 |
return this.addresses;
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public User setAddresses(List<Address> addresses) {
|
|
|
492 |
this.addresses = addresses;
|
|
|
493 |
return this;
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
public void unsetAddresses() {
|
|
|
497 |
this.addresses = null;
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
/** Returns true if field addresses is set (has been asigned a value) and false otherwise */
|
|
|
501 |
public boolean isSetAddresses() {
|
|
|
502 |
return this.addresses != null;
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
public void setAddressesIsSet(boolean value) {
|
|
|
506 |
if (!value) {
|
|
|
507 |
this.addresses = null;
|
|
|
508 |
}
|
|
|
509 |
}
|
|
|
510 |
|
|
|
511 |
public long getDefaultAddressId() {
|
|
|
512 |
return this.defaultAddressId;
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public User setDefaultAddressId(long defaultAddressId) {
|
|
|
516 |
this.defaultAddressId = defaultAddressId;
|
|
|
517 |
setDefaultAddressIdIsSet(true);
|
|
|
518 |
return this;
|
|
|
519 |
}
|
|
|
520 |
|
|
|
521 |
public void unsetDefaultAddressId() {
|
|
|
522 |
__isset_bit_vector.clear(__DEFAULTADDRESSID_ISSET_ID);
|
|
|
523 |
}
|
|
|
524 |
|
|
|
525 |
/** Returns true if field defaultAddressId is set (has been asigned a value) and false otherwise */
|
|
|
526 |
public boolean isSetDefaultAddressId() {
|
|
|
527 |
return __isset_bit_vector.get(__DEFAULTADDRESSID_ISSET_ID);
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void setDefaultAddressIdIsSet(boolean value) {
|
|
|
531 |
__isset_bit_vector.set(__DEFAULTADDRESSID_ISSET_ID, value);
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
public String getCommunicationEmail() {
|
|
|
535 |
return this.communicationEmail;
|
|
|
536 |
}
|
|
|
537 |
|
|
|
538 |
public User setCommunicationEmail(String communicationEmail) {
|
|
|
539 |
this.communicationEmail = communicationEmail;
|
|
|
540 |
return this;
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public void unsetCommunicationEmail() {
|
|
|
544 |
this.communicationEmail = null;
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
/** Returns true if field communicationEmail is set (has been asigned a value) and false otherwise */
|
|
|
548 |
public boolean isSetCommunicationEmail() {
|
|
|
549 |
return this.communicationEmail != null;
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
public void setCommunicationEmailIsSet(boolean value) {
|
|
|
553 |
if (!value) {
|
|
|
554 |
this.communicationEmail = null;
|
|
|
555 |
}
|
|
|
556 |
}
|
|
|
557 |
|
|
|
558 |
public long getActiveCartId() {
|
|
|
559 |
return this.activeCartId;
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
public User setActiveCartId(long activeCartId) {
|
|
|
563 |
this.activeCartId = activeCartId;
|
|
|
564 |
setActiveCartIdIsSet(true);
|
|
|
565 |
return this;
|
|
|
566 |
}
|
|
|
567 |
|
|
|
568 |
public void unsetActiveCartId() {
|
|
|
569 |
__isset_bit_vector.clear(__ACTIVECARTID_ISSET_ID);
|
|
|
570 |
}
|
|
|
571 |
|
|
|
572 |
/** Returns true if field activeCartId is set (has been asigned a value) and false otherwise */
|
|
|
573 |
public boolean isSetActiveCartId() {
|
|
|
574 |
return __isset_bit_vector.get(__ACTIVECARTID_ISSET_ID);
|
|
|
575 |
}
|
|
|
576 |
|
|
|
577 |
public void setActiveCartIdIsSet(boolean value) {
|
|
|
578 |
__isset_bit_vector.set(__ACTIVECARTID_ISSET_ID, value);
|
|
|
579 |
}
|
|
|
580 |
|
|
|
581 |
public String getJsessionId() {
|
|
|
582 |
return this.jsessionId;
|
|
|
583 |
}
|
|
|
584 |
|
|
|
585 |
public User setJsessionId(String jsessionId) {
|
|
|
586 |
this.jsessionId = jsessionId;
|
|
|
587 |
return this;
|
|
|
588 |
}
|
|
|
589 |
|
|
|
590 |
public void unsetJsessionId() {
|
|
|
591 |
this.jsessionId = null;
|
|
|
592 |
}
|
|
|
593 |
|
|
|
594 |
/** Returns true if field jsessionId is set (has been asigned a value) and false otherwise */
|
|
|
595 |
public boolean isSetJsessionId() {
|
|
|
596 |
return this.jsessionId != null;
|
|
|
597 |
}
|
|
|
598 |
|
|
|
599 |
public void setJsessionIdIsSet(boolean value) {
|
|
|
600 |
if (!value) {
|
|
|
601 |
this.jsessionId = null;
|
|
|
602 |
}
|
|
|
603 |
}
|
|
|
604 |
|
|
|
605 |
public boolean isIsAnonymous() {
|
|
|
606 |
return this.isAnonymous;
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public User setIsAnonymous(boolean isAnonymous) {
|
|
|
610 |
this.isAnonymous = isAnonymous;
|
|
|
611 |
setIsAnonymousIsSet(true);
|
|
|
612 |
return this;
|
|
|
613 |
}
|
|
|
614 |
|
|
|
615 |
public void unsetIsAnonymous() {
|
|
|
616 |
__isset_bit_vector.clear(__ISANONYMOUS_ISSET_ID);
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
/** Returns true if field isAnonymous is set (has been asigned a value) and false otherwise */
|
|
|
620 |
public boolean isSetIsAnonymous() {
|
|
|
621 |
return __isset_bit_vector.get(__ISANONYMOUS_ISSET_ID);
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public void setIsAnonymousIsSet(boolean value) {
|
|
|
625 |
__isset_bit_vector.set(__ISANONYMOUS_ISSET_ID, value);
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
629 |
switch (field) {
|
|
|
630 |
case USER_ID:
|
|
|
631 |
if (value == null) {
|
|
|
632 |
unsetUserId();
|
|
|
633 |
} else {
|
|
|
634 |
setUserId((Long)value);
|
|
|
635 |
}
|
|
|
636 |
break;
|
|
|
637 |
|
|
|
638 |
case EMAIL:
|
|
|
639 |
if (value == null) {
|
|
|
640 |
unsetEmail();
|
|
|
641 |
} else {
|
|
|
642 |
setEmail((String)value);
|
|
|
643 |
}
|
|
|
644 |
break;
|
|
|
645 |
|
|
|
646 |
case PASSWORD:
|
|
|
647 |
if (value == null) {
|
|
|
648 |
unsetPassword();
|
|
|
649 |
} else {
|
|
|
650 |
setPassword((String)value);
|
|
|
651 |
}
|
|
|
652 |
break;
|
|
|
653 |
|
|
|
654 |
case NAME:
|
|
|
655 |
if (value == null) {
|
|
|
656 |
unsetName();
|
|
|
657 |
} else {
|
|
|
658 |
setName((String)value);
|
|
|
659 |
}
|
|
|
660 |
break;
|
|
|
661 |
|
|
|
662 |
case DATE_OF_BIRTH:
|
|
|
663 |
if (value == null) {
|
|
|
664 |
unsetDateOfBirth();
|
|
|
665 |
} else {
|
| 571 |
rajveer |
666 |
setDateOfBirth((String)value);
|
| 553 |
chandransh |
667 |
}
|
|
|
668 |
break;
|
|
|
669 |
|
|
|
670 |
case SEX:
|
|
|
671 |
if (value == null) {
|
|
|
672 |
unsetSex();
|
|
|
673 |
} else {
|
|
|
674 |
setSex((Sex)value);
|
|
|
675 |
}
|
|
|
676 |
break;
|
|
|
677 |
|
| 571 |
rajveer |
678 |
case MOBILE_NUMBER:
|
| 553 |
chandransh |
679 |
if (value == null) {
|
| 571 |
rajveer |
680 |
unsetMobileNumber();
|
| 553 |
chandransh |
681 |
} else {
|
| 571 |
rajveer |
682 |
setMobileNumber((String)value);
|
| 553 |
chandransh |
683 |
}
|
|
|
684 |
break;
|
|
|
685 |
|
|
|
686 |
case SOCIAL_HANDLES:
|
|
|
687 |
if (value == null) {
|
|
|
688 |
unsetSocialHandles();
|
|
|
689 |
} else {
|
|
|
690 |
setSocialHandles((SocialHandles)value);
|
|
|
691 |
}
|
|
|
692 |
break;
|
|
|
693 |
|
|
|
694 |
case ADDRESSES:
|
|
|
695 |
if (value == null) {
|
|
|
696 |
unsetAddresses();
|
|
|
697 |
} else {
|
|
|
698 |
setAddresses((List<Address>)value);
|
|
|
699 |
}
|
|
|
700 |
break;
|
|
|
701 |
|
|
|
702 |
case DEFAULT_ADDRESS_ID:
|
|
|
703 |
if (value == null) {
|
|
|
704 |
unsetDefaultAddressId();
|
|
|
705 |
} else {
|
|
|
706 |
setDefaultAddressId((Long)value);
|
|
|
707 |
}
|
|
|
708 |
break;
|
|
|
709 |
|
|
|
710 |
case COMMUNICATION_EMAIL:
|
|
|
711 |
if (value == null) {
|
|
|
712 |
unsetCommunicationEmail();
|
|
|
713 |
} else {
|
|
|
714 |
setCommunicationEmail((String)value);
|
|
|
715 |
}
|
|
|
716 |
break;
|
|
|
717 |
|
|
|
718 |
case ACTIVE_CART_ID:
|
|
|
719 |
if (value == null) {
|
|
|
720 |
unsetActiveCartId();
|
|
|
721 |
} else {
|
|
|
722 |
setActiveCartId((Long)value);
|
|
|
723 |
}
|
|
|
724 |
break;
|
|
|
725 |
|
|
|
726 |
case JSESSION_ID:
|
|
|
727 |
if (value == null) {
|
|
|
728 |
unsetJsessionId();
|
|
|
729 |
} else {
|
|
|
730 |
setJsessionId((String)value);
|
|
|
731 |
}
|
|
|
732 |
break;
|
|
|
733 |
|
|
|
734 |
case IS_ANONYMOUS:
|
|
|
735 |
if (value == null) {
|
|
|
736 |
unsetIsAnonymous();
|
|
|
737 |
} else {
|
|
|
738 |
setIsAnonymous((Boolean)value);
|
|
|
739 |
}
|
|
|
740 |
break;
|
|
|
741 |
|
|
|
742 |
}
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
746 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
747 |
}
|
|
|
748 |
|
|
|
749 |
public Object getFieldValue(_Fields field) {
|
|
|
750 |
switch (field) {
|
|
|
751 |
case USER_ID:
|
|
|
752 |
return new Long(getUserId());
|
|
|
753 |
|
|
|
754 |
case EMAIL:
|
|
|
755 |
return getEmail();
|
|
|
756 |
|
|
|
757 |
case PASSWORD:
|
|
|
758 |
return getPassword();
|
|
|
759 |
|
|
|
760 |
case NAME:
|
|
|
761 |
return getName();
|
|
|
762 |
|
|
|
763 |
case DATE_OF_BIRTH:
|
| 571 |
rajveer |
764 |
return getDateOfBirth();
|
| 553 |
chandransh |
765 |
|
|
|
766 |
case SEX:
|
|
|
767 |
return getSex();
|
|
|
768 |
|
| 571 |
rajveer |
769 |
case MOBILE_NUMBER:
|
|
|
770 |
return getMobileNumber();
|
| 553 |
chandransh |
771 |
|
|
|
772 |
case SOCIAL_HANDLES:
|
|
|
773 |
return getSocialHandles();
|
|
|
774 |
|
|
|
775 |
case ADDRESSES:
|
|
|
776 |
return getAddresses();
|
|
|
777 |
|
|
|
778 |
case DEFAULT_ADDRESS_ID:
|
|
|
779 |
return new Long(getDefaultAddressId());
|
|
|
780 |
|
|
|
781 |
case COMMUNICATION_EMAIL:
|
|
|
782 |
return getCommunicationEmail();
|
|
|
783 |
|
|
|
784 |
case ACTIVE_CART_ID:
|
|
|
785 |
return new Long(getActiveCartId());
|
|
|
786 |
|
|
|
787 |
case JSESSION_ID:
|
|
|
788 |
return getJsessionId();
|
|
|
789 |
|
|
|
790 |
case IS_ANONYMOUS:
|
|
|
791 |
return new Boolean(isIsAnonymous());
|
|
|
792 |
|
|
|
793 |
}
|
|
|
794 |
throw new IllegalStateException();
|
|
|
795 |
}
|
|
|
796 |
|
|
|
797 |
public Object getFieldValue(int fieldId) {
|
|
|
798 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
799 |
}
|
|
|
800 |
|
|
|
801 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
802 |
public boolean isSet(_Fields field) {
|
|
|
803 |
switch (field) {
|
|
|
804 |
case USER_ID:
|
|
|
805 |
return isSetUserId();
|
|
|
806 |
case EMAIL:
|
|
|
807 |
return isSetEmail();
|
|
|
808 |
case PASSWORD:
|
|
|
809 |
return isSetPassword();
|
|
|
810 |
case NAME:
|
|
|
811 |
return isSetName();
|
|
|
812 |
case DATE_OF_BIRTH:
|
|
|
813 |
return isSetDateOfBirth();
|
|
|
814 |
case SEX:
|
|
|
815 |
return isSetSex();
|
| 571 |
rajveer |
816 |
case MOBILE_NUMBER:
|
|
|
817 |
return isSetMobileNumber();
|
| 553 |
chandransh |
818 |
case SOCIAL_HANDLES:
|
|
|
819 |
return isSetSocialHandles();
|
|
|
820 |
case ADDRESSES:
|
|
|
821 |
return isSetAddresses();
|
|
|
822 |
case DEFAULT_ADDRESS_ID:
|
|
|
823 |
return isSetDefaultAddressId();
|
|
|
824 |
case COMMUNICATION_EMAIL:
|
|
|
825 |
return isSetCommunicationEmail();
|
|
|
826 |
case ACTIVE_CART_ID:
|
|
|
827 |
return isSetActiveCartId();
|
|
|
828 |
case JSESSION_ID:
|
|
|
829 |
return isSetJsessionId();
|
|
|
830 |
case IS_ANONYMOUS:
|
|
|
831 |
return isSetIsAnonymous();
|
|
|
832 |
}
|
|
|
833 |
throw new IllegalStateException();
|
|
|
834 |
}
|
|
|
835 |
|
|
|
836 |
public boolean isSet(int fieldID) {
|
|
|
837 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
838 |
}
|
|
|
839 |
|
|
|
840 |
@Override
|
|
|
841 |
public boolean equals(Object that) {
|
|
|
842 |
if (that == null)
|
|
|
843 |
return false;
|
|
|
844 |
if (that instanceof User)
|
|
|
845 |
return this.equals((User)that);
|
|
|
846 |
return false;
|
|
|
847 |
}
|
|
|
848 |
|
|
|
849 |
public boolean equals(User that) {
|
|
|
850 |
if (that == null)
|
|
|
851 |
return false;
|
|
|
852 |
|
|
|
853 |
boolean this_present_userId = true;
|
|
|
854 |
boolean that_present_userId = true;
|
|
|
855 |
if (this_present_userId || that_present_userId) {
|
|
|
856 |
if (!(this_present_userId && that_present_userId))
|
|
|
857 |
return false;
|
|
|
858 |
if (this.userId != that.userId)
|
|
|
859 |
return false;
|
|
|
860 |
}
|
|
|
861 |
|
|
|
862 |
boolean this_present_email = true && this.isSetEmail();
|
|
|
863 |
boolean that_present_email = true && that.isSetEmail();
|
|
|
864 |
if (this_present_email || that_present_email) {
|
|
|
865 |
if (!(this_present_email && that_present_email))
|
|
|
866 |
return false;
|
|
|
867 |
if (!this.email.equals(that.email))
|
|
|
868 |
return false;
|
|
|
869 |
}
|
|
|
870 |
|
|
|
871 |
boolean this_present_password = true && this.isSetPassword();
|
|
|
872 |
boolean that_present_password = true && that.isSetPassword();
|
|
|
873 |
if (this_present_password || that_present_password) {
|
|
|
874 |
if (!(this_present_password && that_present_password))
|
|
|
875 |
return false;
|
|
|
876 |
if (!this.password.equals(that.password))
|
|
|
877 |
return false;
|
|
|
878 |
}
|
|
|
879 |
|
|
|
880 |
boolean this_present_name = true && this.isSetName();
|
|
|
881 |
boolean that_present_name = true && that.isSetName();
|
|
|
882 |
if (this_present_name || that_present_name) {
|
|
|
883 |
if (!(this_present_name && that_present_name))
|
|
|
884 |
return false;
|
|
|
885 |
if (!this.name.equals(that.name))
|
|
|
886 |
return false;
|
|
|
887 |
}
|
|
|
888 |
|
| 571 |
rajveer |
889 |
boolean this_present_dateOfBirth = true && this.isSetDateOfBirth();
|
|
|
890 |
boolean that_present_dateOfBirth = true && that.isSetDateOfBirth();
|
| 553 |
chandransh |
891 |
if (this_present_dateOfBirth || that_present_dateOfBirth) {
|
|
|
892 |
if (!(this_present_dateOfBirth && that_present_dateOfBirth))
|
|
|
893 |
return false;
|
| 571 |
rajveer |
894 |
if (!this.dateOfBirth.equals(that.dateOfBirth))
|
| 553 |
chandransh |
895 |
return false;
|
|
|
896 |
}
|
|
|
897 |
|
|
|
898 |
boolean this_present_sex = true && this.isSetSex();
|
|
|
899 |
boolean that_present_sex = true && that.isSetSex();
|
|
|
900 |
if (this_present_sex || that_present_sex) {
|
|
|
901 |
if (!(this_present_sex && that_present_sex))
|
|
|
902 |
return false;
|
|
|
903 |
if (!this.sex.equals(that.sex))
|
|
|
904 |
return false;
|
|
|
905 |
}
|
|
|
906 |
|
| 571 |
rajveer |
907 |
boolean this_present_mobileNumber = true && this.isSetMobileNumber();
|
|
|
908 |
boolean that_present_mobileNumber = true && that.isSetMobileNumber();
|
|
|
909 |
if (this_present_mobileNumber || that_present_mobileNumber) {
|
|
|
910 |
if (!(this_present_mobileNumber && that_present_mobileNumber))
|
| 553 |
chandransh |
911 |
return false;
|
| 571 |
rajveer |
912 |
if (!this.mobileNumber.equals(that.mobileNumber))
|
| 553 |
chandransh |
913 |
return false;
|
|
|
914 |
}
|
|
|
915 |
|
|
|
916 |
boolean this_present_socialHandles = true && this.isSetSocialHandles();
|
|
|
917 |
boolean that_present_socialHandles = true && that.isSetSocialHandles();
|
|
|
918 |
if (this_present_socialHandles || that_present_socialHandles) {
|
|
|
919 |
if (!(this_present_socialHandles && that_present_socialHandles))
|
|
|
920 |
return false;
|
|
|
921 |
if (!this.socialHandles.equals(that.socialHandles))
|
|
|
922 |
return false;
|
|
|
923 |
}
|
|
|
924 |
|
|
|
925 |
boolean this_present_addresses = true && this.isSetAddresses();
|
|
|
926 |
boolean that_present_addresses = true && that.isSetAddresses();
|
|
|
927 |
if (this_present_addresses || that_present_addresses) {
|
|
|
928 |
if (!(this_present_addresses && that_present_addresses))
|
|
|
929 |
return false;
|
|
|
930 |
if (!this.addresses.equals(that.addresses))
|
|
|
931 |
return false;
|
|
|
932 |
}
|
|
|
933 |
|
|
|
934 |
boolean this_present_defaultAddressId = true;
|
|
|
935 |
boolean that_present_defaultAddressId = true;
|
|
|
936 |
if (this_present_defaultAddressId || that_present_defaultAddressId) {
|
|
|
937 |
if (!(this_present_defaultAddressId && that_present_defaultAddressId))
|
|
|
938 |
return false;
|
|
|
939 |
if (this.defaultAddressId != that.defaultAddressId)
|
|
|
940 |
return false;
|
|
|
941 |
}
|
|
|
942 |
|
|
|
943 |
boolean this_present_communicationEmail = true && this.isSetCommunicationEmail();
|
|
|
944 |
boolean that_present_communicationEmail = true && that.isSetCommunicationEmail();
|
|
|
945 |
if (this_present_communicationEmail || that_present_communicationEmail) {
|
|
|
946 |
if (!(this_present_communicationEmail && that_present_communicationEmail))
|
|
|
947 |
return false;
|
|
|
948 |
if (!this.communicationEmail.equals(that.communicationEmail))
|
|
|
949 |
return false;
|
|
|
950 |
}
|
|
|
951 |
|
|
|
952 |
boolean this_present_activeCartId = true;
|
|
|
953 |
boolean that_present_activeCartId = true;
|
|
|
954 |
if (this_present_activeCartId || that_present_activeCartId) {
|
|
|
955 |
if (!(this_present_activeCartId && that_present_activeCartId))
|
|
|
956 |
return false;
|
|
|
957 |
if (this.activeCartId != that.activeCartId)
|
|
|
958 |
return false;
|
|
|
959 |
}
|
|
|
960 |
|
|
|
961 |
boolean this_present_jsessionId = true && this.isSetJsessionId();
|
|
|
962 |
boolean that_present_jsessionId = true && that.isSetJsessionId();
|
|
|
963 |
if (this_present_jsessionId || that_present_jsessionId) {
|
|
|
964 |
if (!(this_present_jsessionId && that_present_jsessionId))
|
|
|
965 |
return false;
|
|
|
966 |
if (!this.jsessionId.equals(that.jsessionId))
|
|
|
967 |
return false;
|
|
|
968 |
}
|
|
|
969 |
|
|
|
970 |
boolean this_present_isAnonymous = true;
|
|
|
971 |
boolean that_present_isAnonymous = true;
|
|
|
972 |
if (this_present_isAnonymous || that_present_isAnonymous) {
|
|
|
973 |
if (!(this_present_isAnonymous && that_present_isAnonymous))
|
|
|
974 |
return false;
|
|
|
975 |
if (this.isAnonymous != that.isAnonymous)
|
|
|
976 |
return false;
|
|
|
977 |
}
|
|
|
978 |
|
|
|
979 |
return true;
|
|
|
980 |
}
|
|
|
981 |
|
|
|
982 |
@Override
|
|
|
983 |
public int hashCode() {
|
|
|
984 |
return 0;
|
|
|
985 |
}
|
|
|
986 |
|
| 571 |
rajveer |
987 |
public int compareTo(User other) {
|
|
|
988 |
if (!getClass().equals(other.getClass())) {
|
|
|
989 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
990 |
}
|
|
|
991 |
|
|
|
992 |
int lastComparison = 0;
|
|
|
993 |
User typedOther = (User)other;
|
|
|
994 |
|
|
|
995 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
|
|
|
996 |
if (lastComparison != 0) {
|
|
|
997 |
return lastComparison;
|
|
|
998 |
}
|
|
|
999 |
lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
|
|
|
1000 |
if (lastComparison != 0) {
|
|
|
1001 |
return lastComparison;
|
|
|
1002 |
}
|
|
|
1003 |
lastComparison = Boolean.valueOf(isSetEmail()).compareTo(isSetEmail());
|
|
|
1004 |
if (lastComparison != 0) {
|
|
|
1005 |
return lastComparison;
|
|
|
1006 |
}
|
|
|
1007 |
lastComparison = TBaseHelper.compareTo(email, typedOther.email);
|
|
|
1008 |
if (lastComparison != 0) {
|
|
|
1009 |
return lastComparison;
|
|
|
1010 |
}
|
|
|
1011 |
lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
|
|
|
1012 |
if (lastComparison != 0) {
|
|
|
1013 |
return lastComparison;
|
|
|
1014 |
}
|
|
|
1015 |
lastComparison = TBaseHelper.compareTo(password, typedOther.password);
|
|
|
1016 |
if (lastComparison != 0) {
|
|
|
1017 |
return lastComparison;
|
|
|
1018 |
}
|
|
|
1019 |
lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
|
|
|
1020 |
if (lastComparison != 0) {
|
|
|
1021 |
return lastComparison;
|
|
|
1022 |
}
|
|
|
1023 |
lastComparison = TBaseHelper.compareTo(name, typedOther.name);
|
|
|
1024 |
if (lastComparison != 0) {
|
|
|
1025 |
return lastComparison;
|
|
|
1026 |
}
|
|
|
1027 |
lastComparison = Boolean.valueOf(isSetDateOfBirth()).compareTo(isSetDateOfBirth());
|
|
|
1028 |
if (lastComparison != 0) {
|
|
|
1029 |
return lastComparison;
|
|
|
1030 |
}
|
|
|
1031 |
lastComparison = TBaseHelper.compareTo(dateOfBirth, typedOther.dateOfBirth);
|
|
|
1032 |
if (lastComparison != 0) {
|
|
|
1033 |
return lastComparison;
|
|
|
1034 |
}
|
|
|
1035 |
lastComparison = Boolean.valueOf(isSetSex()).compareTo(isSetSex());
|
|
|
1036 |
if (lastComparison != 0) {
|
|
|
1037 |
return lastComparison;
|
|
|
1038 |
}
|
|
|
1039 |
lastComparison = TBaseHelper.compareTo(sex, typedOther.sex);
|
|
|
1040 |
if (lastComparison != 0) {
|
|
|
1041 |
return lastComparison;
|
|
|
1042 |
}
|
|
|
1043 |
lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(isSetMobileNumber());
|
|
|
1044 |
if (lastComparison != 0) {
|
|
|
1045 |
return lastComparison;
|
|
|
1046 |
}
|
|
|
1047 |
lastComparison = TBaseHelper.compareTo(mobileNumber, typedOther.mobileNumber);
|
|
|
1048 |
if (lastComparison != 0) {
|
|
|
1049 |
return lastComparison;
|
|
|
1050 |
}
|
|
|
1051 |
lastComparison = Boolean.valueOf(isSetSocialHandles()).compareTo(isSetSocialHandles());
|
|
|
1052 |
if (lastComparison != 0) {
|
|
|
1053 |
return lastComparison;
|
|
|
1054 |
}
|
|
|
1055 |
lastComparison = TBaseHelper.compareTo(socialHandles, typedOther.socialHandles);
|
|
|
1056 |
if (lastComparison != 0) {
|
|
|
1057 |
return lastComparison;
|
|
|
1058 |
}
|
|
|
1059 |
lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(isSetAddresses());
|
|
|
1060 |
if (lastComparison != 0) {
|
|
|
1061 |
return lastComparison;
|
|
|
1062 |
}
|
|
|
1063 |
lastComparison = TBaseHelper.compareTo(addresses, typedOther.addresses);
|
|
|
1064 |
if (lastComparison != 0) {
|
|
|
1065 |
return lastComparison;
|
|
|
1066 |
}
|
|
|
1067 |
lastComparison = Boolean.valueOf(isSetDefaultAddressId()).compareTo(isSetDefaultAddressId());
|
|
|
1068 |
if (lastComparison != 0) {
|
|
|
1069 |
return lastComparison;
|
|
|
1070 |
}
|
|
|
1071 |
lastComparison = TBaseHelper.compareTo(defaultAddressId, typedOther.defaultAddressId);
|
|
|
1072 |
if (lastComparison != 0) {
|
|
|
1073 |
return lastComparison;
|
|
|
1074 |
}
|
|
|
1075 |
lastComparison = Boolean.valueOf(isSetCommunicationEmail()).compareTo(isSetCommunicationEmail());
|
|
|
1076 |
if (lastComparison != 0) {
|
|
|
1077 |
return lastComparison;
|
|
|
1078 |
}
|
|
|
1079 |
lastComparison = TBaseHelper.compareTo(communicationEmail, typedOther.communicationEmail);
|
|
|
1080 |
if (lastComparison != 0) {
|
|
|
1081 |
return lastComparison;
|
|
|
1082 |
}
|
|
|
1083 |
lastComparison = Boolean.valueOf(isSetActiveCartId()).compareTo(isSetActiveCartId());
|
|
|
1084 |
if (lastComparison != 0) {
|
|
|
1085 |
return lastComparison;
|
|
|
1086 |
}
|
|
|
1087 |
lastComparison = TBaseHelper.compareTo(activeCartId, typedOther.activeCartId);
|
|
|
1088 |
if (lastComparison != 0) {
|
|
|
1089 |
return lastComparison;
|
|
|
1090 |
}
|
|
|
1091 |
lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(isSetJsessionId());
|
|
|
1092 |
if (lastComparison != 0) {
|
|
|
1093 |
return lastComparison;
|
|
|
1094 |
}
|
|
|
1095 |
lastComparison = TBaseHelper.compareTo(jsessionId, typedOther.jsessionId);
|
|
|
1096 |
if (lastComparison != 0) {
|
|
|
1097 |
return lastComparison;
|
|
|
1098 |
}
|
|
|
1099 |
lastComparison = Boolean.valueOf(isSetIsAnonymous()).compareTo(isSetIsAnonymous());
|
|
|
1100 |
if (lastComparison != 0) {
|
|
|
1101 |
return lastComparison;
|
|
|
1102 |
}
|
|
|
1103 |
lastComparison = TBaseHelper.compareTo(isAnonymous, typedOther.isAnonymous);
|
|
|
1104 |
if (lastComparison != 0) {
|
|
|
1105 |
return lastComparison;
|
|
|
1106 |
}
|
|
|
1107 |
return 0;
|
|
|
1108 |
}
|
|
|
1109 |
|
| 553 |
chandransh |
1110 |
public void read(TProtocol iprot) throws TException {
|
|
|
1111 |
TField field;
|
|
|
1112 |
iprot.readStructBegin();
|
|
|
1113 |
while (true)
|
|
|
1114 |
{
|
|
|
1115 |
field = iprot.readFieldBegin();
|
|
|
1116 |
if (field.type == TType.STOP) {
|
|
|
1117 |
break;
|
|
|
1118 |
}
|
|
|
1119 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1120 |
if (fieldId == null) {
|
|
|
1121 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1122 |
} else {
|
|
|
1123 |
switch (fieldId) {
|
|
|
1124 |
case USER_ID:
|
|
|
1125 |
if (field.type == TType.I64) {
|
|
|
1126 |
this.userId = iprot.readI64();
|
|
|
1127 |
setUserIdIsSet(true);
|
|
|
1128 |
} else {
|
|
|
1129 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1130 |
}
|
|
|
1131 |
break;
|
|
|
1132 |
case EMAIL:
|
|
|
1133 |
if (field.type == TType.STRING) {
|
|
|
1134 |
this.email = iprot.readString();
|
|
|
1135 |
} else {
|
|
|
1136 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1137 |
}
|
|
|
1138 |
break;
|
|
|
1139 |
case PASSWORD:
|
|
|
1140 |
if (field.type == TType.STRING) {
|
|
|
1141 |
this.password = iprot.readString();
|
|
|
1142 |
} else {
|
|
|
1143 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1144 |
}
|
|
|
1145 |
break;
|
|
|
1146 |
case NAME:
|
|
|
1147 |
if (field.type == TType.STRING) {
|
|
|
1148 |
this.name = iprot.readString();
|
|
|
1149 |
} else {
|
|
|
1150 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1151 |
}
|
|
|
1152 |
break;
|
|
|
1153 |
case DATE_OF_BIRTH:
|
| 571 |
rajveer |
1154 |
if (field.type == TType.STRING) {
|
|
|
1155 |
this.dateOfBirth = iprot.readString();
|
| 553 |
chandransh |
1156 |
} else {
|
|
|
1157 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1158 |
}
|
|
|
1159 |
break;
|
|
|
1160 |
case SEX:
|
|
|
1161 |
if (field.type == TType.I32) {
|
|
|
1162 |
this.sex = Sex.findByValue(iprot.readI32());
|
|
|
1163 |
} else {
|
|
|
1164 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1165 |
}
|
|
|
1166 |
break;
|
| 571 |
rajveer |
1167 |
case MOBILE_NUMBER:
|
|
|
1168 |
if (field.type == TType.STRING) {
|
|
|
1169 |
this.mobileNumber = iprot.readString();
|
| 553 |
chandransh |
1170 |
} else {
|
|
|
1171 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1172 |
}
|
|
|
1173 |
break;
|
|
|
1174 |
case SOCIAL_HANDLES:
|
|
|
1175 |
if (field.type == TType.STRUCT) {
|
|
|
1176 |
this.socialHandles = new SocialHandles();
|
|
|
1177 |
this.socialHandles.read(iprot);
|
|
|
1178 |
} else {
|
|
|
1179 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1180 |
}
|
|
|
1181 |
break;
|
|
|
1182 |
case ADDRESSES:
|
|
|
1183 |
if (field.type == TType.LIST) {
|
|
|
1184 |
{
|
| 571 |
rajveer |
1185 |
TList _list4 = iprot.readListBegin();
|
|
|
1186 |
this.addresses = new ArrayList<Address>(_list4.size);
|
|
|
1187 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 553 |
chandransh |
1188 |
{
|
| 571 |
rajveer |
1189 |
Address _elem6;
|
|
|
1190 |
_elem6 = new Address();
|
|
|
1191 |
_elem6.read(iprot);
|
|
|
1192 |
this.addresses.add(_elem6);
|
| 553 |
chandransh |
1193 |
}
|
|
|
1194 |
iprot.readListEnd();
|
|
|
1195 |
}
|
|
|
1196 |
} else {
|
|
|
1197 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1198 |
}
|
|
|
1199 |
break;
|
|
|
1200 |
case DEFAULT_ADDRESS_ID:
|
|
|
1201 |
if (field.type == TType.I64) {
|
|
|
1202 |
this.defaultAddressId = iprot.readI64();
|
|
|
1203 |
setDefaultAddressIdIsSet(true);
|
|
|
1204 |
} else {
|
|
|
1205 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1206 |
}
|
|
|
1207 |
break;
|
|
|
1208 |
case COMMUNICATION_EMAIL:
|
|
|
1209 |
if (field.type == TType.STRING) {
|
|
|
1210 |
this.communicationEmail = iprot.readString();
|
|
|
1211 |
} else {
|
|
|
1212 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1213 |
}
|
|
|
1214 |
break;
|
|
|
1215 |
case ACTIVE_CART_ID:
|
|
|
1216 |
if (field.type == TType.I64) {
|
|
|
1217 |
this.activeCartId = iprot.readI64();
|
|
|
1218 |
setActiveCartIdIsSet(true);
|
|
|
1219 |
} else {
|
|
|
1220 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1221 |
}
|
|
|
1222 |
break;
|
|
|
1223 |
case JSESSION_ID:
|
|
|
1224 |
if (field.type == TType.STRING) {
|
|
|
1225 |
this.jsessionId = iprot.readString();
|
|
|
1226 |
} else {
|
|
|
1227 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1228 |
}
|
|
|
1229 |
break;
|
|
|
1230 |
case IS_ANONYMOUS:
|
|
|
1231 |
if (field.type == TType.BOOL) {
|
|
|
1232 |
this.isAnonymous = iprot.readBool();
|
|
|
1233 |
setIsAnonymousIsSet(true);
|
|
|
1234 |
} else {
|
|
|
1235 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1236 |
}
|
|
|
1237 |
break;
|
|
|
1238 |
}
|
|
|
1239 |
iprot.readFieldEnd();
|
|
|
1240 |
}
|
|
|
1241 |
}
|
|
|
1242 |
iprot.readStructEnd();
|
|
|
1243 |
validate();
|
|
|
1244 |
}
|
|
|
1245 |
|
|
|
1246 |
public void write(TProtocol oprot) throws TException {
|
|
|
1247 |
validate();
|
|
|
1248 |
|
|
|
1249 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1250 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
1251 |
oprot.writeI64(this.userId);
|
|
|
1252 |
oprot.writeFieldEnd();
|
|
|
1253 |
if (this.email != null) {
|
|
|
1254 |
oprot.writeFieldBegin(EMAIL_FIELD_DESC);
|
|
|
1255 |
oprot.writeString(this.email);
|
|
|
1256 |
oprot.writeFieldEnd();
|
|
|
1257 |
}
|
|
|
1258 |
if (this.password != null) {
|
|
|
1259 |
oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
|
|
|
1260 |
oprot.writeString(this.password);
|
|
|
1261 |
oprot.writeFieldEnd();
|
|
|
1262 |
}
|
|
|
1263 |
if (this.name != null) {
|
|
|
1264 |
oprot.writeFieldBegin(NAME_FIELD_DESC);
|
|
|
1265 |
oprot.writeString(this.name);
|
|
|
1266 |
oprot.writeFieldEnd();
|
|
|
1267 |
}
|
| 571 |
rajveer |
1268 |
if (this.dateOfBirth != null) {
|
|
|
1269 |
oprot.writeFieldBegin(DATE_OF_BIRTH_FIELD_DESC);
|
|
|
1270 |
oprot.writeString(this.dateOfBirth);
|
|
|
1271 |
oprot.writeFieldEnd();
|
|
|
1272 |
}
|
| 553 |
chandransh |
1273 |
if (this.sex != null) {
|
|
|
1274 |
oprot.writeFieldBegin(SEX_FIELD_DESC);
|
|
|
1275 |
oprot.writeI32(this.sex.getValue());
|
|
|
1276 |
oprot.writeFieldEnd();
|
|
|
1277 |
}
|
| 571 |
rajveer |
1278 |
if (this.mobileNumber != null) {
|
|
|
1279 |
oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
|
|
|
1280 |
oprot.writeString(this.mobileNumber);
|
| 553 |
chandransh |
1281 |
oprot.writeFieldEnd();
|
|
|
1282 |
}
|
|
|
1283 |
if (this.socialHandles != null) {
|
|
|
1284 |
oprot.writeFieldBegin(SOCIAL_HANDLES_FIELD_DESC);
|
|
|
1285 |
this.socialHandles.write(oprot);
|
|
|
1286 |
oprot.writeFieldEnd();
|
|
|
1287 |
}
|
|
|
1288 |
if (this.addresses != null) {
|
|
|
1289 |
oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
|
|
|
1290 |
{
|
|
|
1291 |
oprot.writeListBegin(new TList(TType.STRUCT, this.addresses.size()));
|
| 571 |
rajveer |
1292 |
for (Address _iter7 : this.addresses)
|
| 553 |
chandransh |
1293 |
{
|
| 571 |
rajveer |
1294 |
_iter7.write(oprot);
|
| 553 |
chandransh |
1295 |
}
|
|
|
1296 |
oprot.writeListEnd();
|
|
|
1297 |
}
|
|
|
1298 |
oprot.writeFieldEnd();
|
|
|
1299 |
}
|
|
|
1300 |
oprot.writeFieldBegin(DEFAULT_ADDRESS_ID_FIELD_DESC);
|
|
|
1301 |
oprot.writeI64(this.defaultAddressId);
|
|
|
1302 |
oprot.writeFieldEnd();
|
|
|
1303 |
if (this.communicationEmail != null) {
|
|
|
1304 |
oprot.writeFieldBegin(COMMUNICATION_EMAIL_FIELD_DESC);
|
|
|
1305 |
oprot.writeString(this.communicationEmail);
|
|
|
1306 |
oprot.writeFieldEnd();
|
|
|
1307 |
}
|
|
|
1308 |
oprot.writeFieldBegin(ACTIVE_CART_ID_FIELD_DESC);
|
|
|
1309 |
oprot.writeI64(this.activeCartId);
|
|
|
1310 |
oprot.writeFieldEnd();
|
|
|
1311 |
if (this.jsessionId != null) {
|
|
|
1312 |
oprot.writeFieldBegin(JSESSION_ID_FIELD_DESC);
|
|
|
1313 |
oprot.writeString(this.jsessionId);
|
|
|
1314 |
oprot.writeFieldEnd();
|
|
|
1315 |
}
|
|
|
1316 |
oprot.writeFieldBegin(IS_ANONYMOUS_FIELD_DESC);
|
|
|
1317 |
oprot.writeBool(this.isAnonymous);
|
|
|
1318 |
oprot.writeFieldEnd();
|
|
|
1319 |
oprot.writeFieldStop();
|
|
|
1320 |
oprot.writeStructEnd();
|
|
|
1321 |
}
|
|
|
1322 |
|
|
|
1323 |
@Override
|
|
|
1324 |
public String toString() {
|
|
|
1325 |
StringBuilder sb = new StringBuilder("User(");
|
|
|
1326 |
boolean first = true;
|
|
|
1327 |
|
|
|
1328 |
sb.append("userId:");
|
|
|
1329 |
sb.append(this.userId);
|
|
|
1330 |
first = false;
|
|
|
1331 |
if (!first) sb.append(", ");
|
|
|
1332 |
sb.append("email:");
|
|
|
1333 |
if (this.email == null) {
|
|
|
1334 |
sb.append("null");
|
|
|
1335 |
} else {
|
|
|
1336 |
sb.append(this.email);
|
|
|
1337 |
}
|
|
|
1338 |
first = false;
|
|
|
1339 |
if (!first) sb.append(", ");
|
|
|
1340 |
sb.append("password:");
|
|
|
1341 |
if (this.password == null) {
|
|
|
1342 |
sb.append("null");
|
|
|
1343 |
} else {
|
|
|
1344 |
sb.append(this.password);
|
|
|
1345 |
}
|
|
|
1346 |
first = false;
|
|
|
1347 |
if (!first) sb.append(", ");
|
|
|
1348 |
sb.append("name:");
|
|
|
1349 |
if (this.name == null) {
|
|
|
1350 |
sb.append("null");
|
|
|
1351 |
} else {
|
|
|
1352 |
sb.append(this.name);
|
|
|
1353 |
}
|
|
|
1354 |
first = false;
|
|
|
1355 |
if (!first) sb.append(", ");
|
|
|
1356 |
sb.append("dateOfBirth:");
|
| 571 |
rajveer |
1357 |
if (this.dateOfBirth == null) {
|
|
|
1358 |
sb.append("null");
|
|
|
1359 |
} else {
|
|
|
1360 |
sb.append(this.dateOfBirth);
|
|
|
1361 |
}
|
| 553 |
chandransh |
1362 |
first = false;
|
|
|
1363 |
if (!first) sb.append(", ");
|
|
|
1364 |
sb.append("sex:");
|
|
|
1365 |
if (this.sex == null) {
|
|
|
1366 |
sb.append("null");
|
|
|
1367 |
} else {
|
|
|
1368 |
String sex_name = sex.name();
|
|
|
1369 |
if (sex_name != null) {
|
|
|
1370 |
sb.append(sex_name);
|
|
|
1371 |
sb.append(" (");
|
|
|
1372 |
}
|
|
|
1373 |
sb.append(this.sex);
|
|
|
1374 |
if (sex_name != null) {
|
|
|
1375 |
sb.append(")");
|
|
|
1376 |
}
|
|
|
1377 |
}
|
|
|
1378 |
first = false;
|
|
|
1379 |
if (!first) sb.append(", ");
|
| 571 |
rajveer |
1380 |
sb.append("mobileNumber:");
|
|
|
1381 |
if (this.mobileNumber == null) {
|
| 553 |
chandransh |
1382 |
sb.append("null");
|
|
|
1383 |
} else {
|
| 571 |
rajveer |
1384 |
sb.append(this.mobileNumber);
|
| 553 |
chandransh |
1385 |
}
|
|
|
1386 |
first = false;
|
|
|
1387 |
if (!first) sb.append(", ");
|
|
|
1388 |
sb.append("socialHandles:");
|
|
|
1389 |
if (this.socialHandles == null) {
|
|
|
1390 |
sb.append("null");
|
|
|
1391 |
} else {
|
|
|
1392 |
sb.append(this.socialHandles);
|
|
|
1393 |
}
|
|
|
1394 |
first = false;
|
|
|
1395 |
if (!first) sb.append(", ");
|
|
|
1396 |
sb.append("addresses:");
|
|
|
1397 |
if (this.addresses == null) {
|
|
|
1398 |
sb.append("null");
|
|
|
1399 |
} else {
|
|
|
1400 |
sb.append(this.addresses);
|
|
|
1401 |
}
|
|
|
1402 |
first = false;
|
|
|
1403 |
if (!first) sb.append(", ");
|
|
|
1404 |
sb.append("defaultAddressId:");
|
|
|
1405 |
sb.append(this.defaultAddressId);
|
|
|
1406 |
first = false;
|
|
|
1407 |
if (!first) sb.append(", ");
|
|
|
1408 |
sb.append("communicationEmail:");
|
|
|
1409 |
if (this.communicationEmail == null) {
|
|
|
1410 |
sb.append("null");
|
|
|
1411 |
} else {
|
|
|
1412 |
sb.append(this.communicationEmail);
|
|
|
1413 |
}
|
|
|
1414 |
first = false;
|
|
|
1415 |
if (!first) sb.append(", ");
|
|
|
1416 |
sb.append("activeCartId:");
|
|
|
1417 |
sb.append(this.activeCartId);
|
|
|
1418 |
first = false;
|
|
|
1419 |
if (!first) sb.append(", ");
|
|
|
1420 |
sb.append("jsessionId:");
|
|
|
1421 |
if (this.jsessionId == null) {
|
|
|
1422 |
sb.append("null");
|
|
|
1423 |
} else {
|
|
|
1424 |
sb.append(this.jsessionId);
|
|
|
1425 |
}
|
|
|
1426 |
first = false;
|
|
|
1427 |
if (!first) sb.append(", ");
|
|
|
1428 |
sb.append("isAnonymous:");
|
|
|
1429 |
sb.append(this.isAnonymous);
|
|
|
1430 |
first = false;
|
|
|
1431 |
sb.append(")");
|
|
|
1432 |
return sb.toString();
|
|
|
1433 |
}
|
|
|
1434 |
|
|
|
1435 |
public void validate() throws TException {
|
|
|
1436 |
// check for required fields
|
|
|
1437 |
}
|
|
|
1438 |
|
|
|
1439 |
}
|
|
|
1440 |
|