Subversion Repositories SmartDukaan

Rev

Rev 130 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 130 Rev 553
Line 29... Line 29...
29
 */
29
 */
30
public class UserState implements TBase<UserState._Fields>, java.io.Serializable, Cloneable, Comparable<UserState> {
30
public class UserState implements TBase<UserState._Fields>, java.io.Serializable, Cloneable, Comparable<UserState> {
31
  private static final TStruct STRUCT_DESC = new TStruct("UserState");
31
  private static final TStruct STRUCT_DESC = new TStruct("UserState");
32
 
32
 
33
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
33
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
34
  private static final TField IS_EMAIL_VERIFIED_FIELD_DESC = new TField("isEmailVerified", TType.BOOL, (short)2);
34
  private static final TField LAST_LOGIN_FIELD_DESC = new TField("lastLogin", TType.I64, (short)2);
35
  private static final TField LAST_LOGIN_FIELD_DESC = new TField("lastLogin", TType.I64, (short)3);
35
  private static final TField LAST_LOGOUT_FIELD_DESC = new TField("lastLogout", TType.I64, (short)3);
36
  private static final TField LAST_LOGOUT_FIELD_DESC = new TField("lastLogout", TType.I64, (short)4);
36
  private static final TField EMAIL_VERIFICATION_SENT_ON_FIELD_DESC = new TField("emailVerificationSentOn", TType.I64, (short)4);
37
  private static final TField EMAIL_VERIFICATION_SENT_ON_FIELD_DESC = new TField("emailVerificationSentOn", TType.I64, (short)5);
37
  private static final TField SMS_VERIFICATION_SENT_ON_FIELD_DESC = new TField("smsVerificationSentOn", TType.I64, (short)5);
38
  private static final TField SMS_VERIFICATION_SENT_ON_FIELD_DESC = new TField("smsVerificationSentOn", TType.I64, (short)6);
38
  private static final TField IS_EMAIL_VERIFIED_FIELD_DESC = new TField("isEmailVerified", TType.BOOL, (short)6);
39
  private static final TField IS_SMSVERIFIED_FIELD_DESC = new TField("isSMSVerified", TType.BOOL, (short)7);
39
  private static final TField IS_SMSVERIFIED_FIELD_DESC = new TField("isSMSVerified", TType.BOOL, (short)7);
40
  private static final TField ACTIVE_SINCE_FIELD_DESC = new TField("activeSince", TType.I64, (short)8);
40
  private static final TField ACTIVE_SINCE_FIELD_DESC = new TField("activeSince", TType.I64, (short)8);
41
  private static final TField IS_LOGGED_IN_FIELD_DESC = new TField("isLoggedIn", TType.BOOL, (short)9);
-
 
42
  private static final TField IPS_FIELD_DESC = new TField("ips", TType.LIST, (short)10);
41
  private static final TField IPS_FIELD_DESC = new TField("ips", TType.LIST, (short)9);
43
  private static final TField SHOPPING_CART_HANDLE_FIELD_DESC = new TField("shoppingCartHandle", TType.I64, (short)11);
-
 
44
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)12);
42
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)10);
45
 
43
 
46
  private long userId;
44
  private long userId;
47
  private boolean isEmailVerified;
-
 
48
  private long lastLogin;
45
  private long lastLogin;
49
  private long lastLogout;
46
  private long lastLogout;
50
  private long emailVerificationSentOn;
47
  private long emailVerificationSentOn;
51
  private long smsVerificationSentOn;
48
  private long smsVerificationSentOn;
-
 
49
  private boolean isEmailVerified;
52
  private boolean isSMSVerified;
50
  private boolean isSMSVerified;
53
  private long activeSince;
51
  private long activeSince;
54
  private boolean isLoggedIn;
-
 
55
  private List<IPMap> ips;
52
  private List<IPMap> ips;
56
  private long shoppingCartHandle;
-
 
57
  private AccountStatus status;
53
  private AccountStatus status;
58
 
54
 
59
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60
  public enum _Fields implements TFieldIdEnum {
56
  public enum _Fields implements TFieldIdEnum {
61
    USER_ID((short)1, "userId"),
57
    USER_ID((short)1, "userId"),
62
    IS_EMAIL_VERIFIED((short)2, "isEmailVerified"),
-
 
63
    LAST_LOGIN((short)3, "lastLogin"),
58
    LAST_LOGIN((short)2, "lastLogin"),
64
    LAST_LOGOUT((short)4, "lastLogout"),
59
    LAST_LOGOUT((short)3, "lastLogout"),
65
    EMAIL_VERIFICATION_SENT_ON((short)5, "emailVerificationSentOn"),
60
    EMAIL_VERIFICATION_SENT_ON((short)4, "emailVerificationSentOn"),
66
    SMS_VERIFICATION_SENT_ON((short)6, "smsVerificationSentOn"),
61
    SMS_VERIFICATION_SENT_ON((short)5, "smsVerificationSentOn"),
-
 
62
    IS_EMAIL_VERIFIED((short)6, "isEmailVerified"),
67
    IS_SMSVERIFIED((short)7, "isSMSVerified"),
63
    IS_SMSVERIFIED((short)7, "isSMSVerified"),
68
    ACTIVE_SINCE((short)8, "activeSince"),
64
    ACTIVE_SINCE((short)8, "activeSince"),
69
    IS_LOGGED_IN((short)9, "isLoggedIn"),
-
 
70
    IPS((short)10, "ips"),
65
    IPS((short)9, "ips"),
71
    SHOPPING_CART_HANDLE((short)11, "shoppingCartHandle"),
-
 
72
    /**
66
    /**
73
     * 
67
     * 
74
     * @see AccountStatus
68
     * @see AccountStatus
75
     */
69
     */
76
    STATUS((short)12, "status");
70
    STATUS((short)10, "status");
77
 
71
 
78
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
72
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
79
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
73
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
80
 
74
 
81
    static {
75
    static {
Line 126... Line 120...
126
    }
120
    }
127
  }
121
  }
128
 
122
 
129
  // isset id assignments
123
  // isset id assignments
130
  private static final int __USERID_ISSET_ID = 0;
124
  private static final int __USERID_ISSET_ID = 0;
131
  private static final int __ISEMAILVERIFIED_ISSET_ID = 1;
125
  private static final int __LASTLOGIN_ISSET_ID = 1;
132
  private static final int __LASTLOGIN_ISSET_ID = 2;
126
  private static final int __LASTLOGOUT_ISSET_ID = 2;
133
  private static final int __LASTLOGOUT_ISSET_ID = 3;
127
  private static final int __EMAILVERIFICATIONSENTON_ISSET_ID = 3;
134
  private static final int __EMAILVERIFICATIONSENTON_ISSET_ID = 4;
128
  private static final int __SMSVERIFICATIONSENTON_ISSET_ID = 4;
135
  private static final int __SMSVERIFICATIONSENTON_ISSET_ID = 5;
129
  private static final int __ISEMAILVERIFIED_ISSET_ID = 5;
136
  private static final int __ISSMSVERIFIED_ISSET_ID = 6;
130
  private static final int __ISSMSVERIFIED_ISSET_ID = 6;
137
  private static final int __ACTIVESINCE_ISSET_ID = 7;
131
  private static final int __ACTIVESINCE_ISSET_ID = 7;
138
  private static final int __ISLOGGEDIN_ISSET_ID = 8;
-
 
139
  private static final int __SHOPPINGCARTHANDLE_ISSET_ID = 9;
-
 
140
  private BitSet __isset_bit_vector = new BitSet(10);
132
  private BitSet __isset_bit_vector = new BitSet(8);
141
 
133
 
142
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
134
  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, 
135
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
144
        new FieldValueMetaData(TType.I64)));
136
        new FieldValueMetaData(TType.I64)));
145
    put(_Fields.IS_EMAIL_VERIFIED, new FieldMetaData("isEmailVerified", TFieldRequirementType.DEFAULT, 
-
 
146
        new FieldValueMetaData(TType.BOOL)));
-
 
147
    put(_Fields.LAST_LOGIN, new FieldMetaData("lastLogin", TFieldRequirementType.DEFAULT, 
137
    put(_Fields.LAST_LOGIN, new FieldMetaData("lastLogin", TFieldRequirementType.DEFAULT, 
148
        new FieldValueMetaData(TType.I64)));
138
        new FieldValueMetaData(TType.I64)));
149
    put(_Fields.LAST_LOGOUT, new FieldMetaData("lastLogout", TFieldRequirementType.DEFAULT, 
139
    put(_Fields.LAST_LOGOUT, new FieldMetaData("lastLogout", TFieldRequirementType.DEFAULT, 
150
        new FieldValueMetaData(TType.I64)));
140
        new FieldValueMetaData(TType.I64)));
151
    put(_Fields.EMAIL_VERIFICATION_SENT_ON, new FieldMetaData("emailVerificationSentOn", TFieldRequirementType.DEFAULT, 
141
    put(_Fields.EMAIL_VERIFICATION_SENT_ON, new FieldMetaData("emailVerificationSentOn", TFieldRequirementType.DEFAULT, 
152
        new FieldValueMetaData(TType.I64)));
142
        new FieldValueMetaData(TType.I64)));
153
    put(_Fields.SMS_VERIFICATION_SENT_ON, new FieldMetaData("smsVerificationSentOn", TFieldRequirementType.DEFAULT, 
143
    put(_Fields.SMS_VERIFICATION_SENT_ON, new FieldMetaData("smsVerificationSentOn", TFieldRequirementType.DEFAULT, 
154
        new FieldValueMetaData(TType.I64)));
144
        new FieldValueMetaData(TType.I64)));
-
 
145
    put(_Fields.IS_EMAIL_VERIFIED, new FieldMetaData("isEmailVerified", TFieldRequirementType.DEFAULT, 
-
 
146
        new FieldValueMetaData(TType.BOOL)));
155
    put(_Fields.IS_SMSVERIFIED, new FieldMetaData("isSMSVerified", TFieldRequirementType.DEFAULT, 
147
    put(_Fields.IS_SMSVERIFIED, new FieldMetaData("isSMSVerified", TFieldRequirementType.DEFAULT, 
156
        new FieldValueMetaData(TType.BOOL)));
148
        new FieldValueMetaData(TType.BOOL)));
157
    put(_Fields.ACTIVE_SINCE, new FieldMetaData("activeSince", TFieldRequirementType.DEFAULT, 
149
    put(_Fields.ACTIVE_SINCE, new FieldMetaData("activeSince", TFieldRequirementType.DEFAULT, 
158
        new FieldValueMetaData(TType.I64)));
150
        new FieldValueMetaData(TType.I64)));
159
    put(_Fields.IS_LOGGED_IN, new FieldMetaData("isLoggedIn", TFieldRequirementType.DEFAULT, 
-
 
160
        new FieldValueMetaData(TType.BOOL)));
-
 
161
    put(_Fields.IPS, new FieldMetaData("ips", TFieldRequirementType.DEFAULT, 
151
    put(_Fields.IPS, new FieldMetaData("ips", TFieldRequirementType.DEFAULT, 
162
        new ListMetaData(TType.LIST, 
152
        new ListMetaData(TType.LIST, 
163
            new StructMetaData(TType.STRUCT, IPMap.class))));
153
            new StructMetaData(TType.STRUCT, IPMap.class))));
164
    put(_Fields.SHOPPING_CART_HANDLE, new FieldMetaData("shoppingCartHandle", TFieldRequirementType.DEFAULT, 
-
 
165
        new FieldValueMetaData(TType.I64)));
-
 
166
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
154
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
167
        new EnumMetaData(TType.ENUM, AccountStatus.class)));
155
        new EnumMetaData(TType.ENUM, AccountStatus.class)));
168
  }});
156
  }});
169
 
157
 
170
  static {
158
  static {
Line 174... Line 162...
174
  public UserState() {
162
  public UserState() {
175
  }
163
  }
176
 
164
 
177
  public UserState(
165
  public UserState(
178
    long userId,
166
    long userId,
179
    boolean isEmailVerified,
-
 
180
    long lastLogin,
167
    long lastLogin,
181
    long lastLogout,
168
    long lastLogout,
182
    long emailVerificationSentOn,
169
    long emailVerificationSentOn,
183
    long smsVerificationSentOn,
170
    long smsVerificationSentOn,
-
 
171
    boolean isEmailVerified,
184
    boolean isSMSVerified,
172
    boolean isSMSVerified,
185
    long activeSince,
173
    long activeSince,
186
    boolean isLoggedIn,
-
 
187
    List<IPMap> ips,
174
    List<IPMap> ips,
188
    long shoppingCartHandle,
-
 
189
    AccountStatus status)
175
    AccountStatus status)
190
  {
176
  {
191
    this();
177
    this();
192
    this.userId = userId;
178
    this.userId = userId;
193
    setUserIdIsSet(true);
179
    setUserIdIsSet(true);
194
    this.isEmailVerified = isEmailVerified;
-
 
195
    setIsEmailVerifiedIsSet(true);
-
 
196
    this.lastLogin = lastLogin;
180
    this.lastLogin = lastLogin;
197
    setLastLoginIsSet(true);
181
    setLastLoginIsSet(true);
198
    this.lastLogout = lastLogout;
182
    this.lastLogout = lastLogout;
199
    setLastLogoutIsSet(true);
183
    setLastLogoutIsSet(true);
200
    this.emailVerificationSentOn = emailVerificationSentOn;
184
    this.emailVerificationSentOn = emailVerificationSentOn;
201
    setEmailVerificationSentOnIsSet(true);
185
    setEmailVerificationSentOnIsSet(true);
202
    this.smsVerificationSentOn = smsVerificationSentOn;
186
    this.smsVerificationSentOn = smsVerificationSentOn;
203
    setSmsVerificationSentOnIsSet(true);
187
    setSmsVerificationSentOnIsSet(true);
-
 
188
    this.isEmailVerified = isEmailVerified;
-
 
189
    setIsEmailVerifiedIsSet(true);
204
    this.isSMSVerified = isSMSVerified;
190
    this.isSMSVerified = isSMSVerified;
205
    setIsSMSVerifiedIsSet(true);
191
    setIsSMSVerifiedIsSet(true);
206
    this.activeSince = activeSince;
192
    this.activeSince = activeSince;
207
    setActiveSinceIsSet(true);
193
    setActiveSinceIsSet(true);
208
    this.isLoggedIn = isLoggedIn;
-
 
209
    setIsLoggedInIsSet(true);
-
 
210
    this.ips = ips;
194
    this.ips = ips;
211
    this.shoppingCartHandle = shoppingCartHandle;
-
 
212
    setShoppingCartHandleIsSet(true);
-
 
213
    this.status = status;
195
    this.status = status;
214
  }
196
  }
215
 
197
 
216
  /**
198
  /**
217
   * Performs a deep copy on <i>other</i>.
199
   * Performs a deep copy on <i>other</i>.
218
   */
200
   */
219
  public UserState(UserState other) {
201
  public UserState(UserState other) {
220
    __isset_bit_vector.clear();
202
    __isset_bit_vector.clear();
221
    __isset_bit_vector.or(other.__isset_bit_vector);
203
    __isset_bit_vector.or(other.__isset_bit_vector);
222
    this.userId = other.userId;
204
    this.userId = other.userId;
223
    this.isEmailVerified = other.isEmailVerified;
-
 
224
    this.lastLogin = other.lastLogin;
205
    this.lastLogin = other.lastLogin;
225
    this.lastLogout = other.lastLogout;
206
    this.lastLogout = other.lastLogout;
226
    this.emailVerificationSentOn = other.emailVerificationSentOn;
207
    this.emailVerificationSentOn = other.emailVerificationSentOn;
227
    this.smsVerificationSentOn = other.smsVerificationSentOn;
208
    this.smsVerificationSentOn = other.smsVerificationSentOn;
-
 
209
    this.isEmailVerified = other.isEmailVerified;
228
    this.isSMSVerified = other.isSMSVerified;
210
    this.isSMSVerified = other.isSMSVerified;
229
    this.activeSince = other.activeSince;
211
    this.activeSince = other.activeSince;
230
    this.isLoggedIn = other.isLoggedIn;
-
 
231
    if (other.isSetIps()) {
212
    if (other.isSetIps()) {
232
      List<IPMap> __this__ips = new ArrayList<IPMap>();
213
      List<IPMap> __this__ips = new ArrayList<IPMap>();
233
      for (IPMap other_element : other.ips) {
214
      for (IPMap other_element : other.ips) {
234
        __this__ips.add(new IPMap(other_element));
215
        __this__ips.add(new IPMap(other_element));
235
      }
216
      }
236
      this.ips = __this__ips;
217
      this.ips = __this__ips;
237
    }
218
    }
238
    this.shoppingCartHandle = other.shoppingCartHandle;
-
 
239
    if (other.isSetStatus()) {
219
    if (other.isSetStatus()) {
240
      this.status = other.status;
220
      this.status = other.status;
241
    }
221
    }
242
  }
222
  }
243
 
223
 
Line 271... Line 251...
271
 
251
 
272
  public void setUserIdIsSet(boolean value) {
252
  public void setUserIdIsSet(boolean value) {
273
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
253
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
274
  }
254
  }
275
 
255
 
276
  public boolean isIsEmailVerified() {
-
 
277
    return this.isEmailVerified;
-
 
278
  }
-
 
279
 
-
 
280
  public UserState setIsEmailVerified(boolean isEmailVerified) {
-
 
281
    this.isEmailVerified = isEmailVerified;
-
 
282
    setIsEmailVerifiedIsSet(true);
-
 
283
    return this;
-
 
284
  }
-
 
285
 
-
 
286
  public void unsetIsEmailVerified() {
-
 
287
    __isset_bit_vector.clear(__ISEMAILVERIFIED_ISSET_ID);
-
 
288
  }
-
 
289
 
-
 
290
  /** Returns true if field isEmailVerified is set (has been asigned a value) and false otherwise */
-
 
291
  public boolean isSetIsEmailVerified() {
-
 
292
    return __isset_bit_vector.get(__ISEMAILVERIFIED_ISSET_ID);
-
 
293
  }
-
 
294
 
-
 
295
  public void setIsEmailVerifiedIsSet(boolean value) {
-
 
296
    __isset_bit_vector.set(__ISEMAILVERIFIED_ISSET_ID, value);
-
 
297
  }
-
 
298
 
-
 
299
  public long getLastLogin() {
256
  public long getLastLogin() {
300
    return this.lastLogin;
257
    return this.lastLogin;
301
  }
258
  }
302
 
259
 
303
  public UserState setLastLogin(long lastLogin) {
260
  public UserState setLastLogin(long lastLogin) {
Line 386... Line 343...
386
 
343
 
387
  public void setSmsVerificationSentOnIsSet(boolean value) {
344
  public void setSmsVerificationSentOnIsSet(boolean value) {
388
    __isset_bit_vector.set(__SMSVERIFICATIONSENTON_ISSET_ID, value);
345
    __isset_bit_vector.set(__SMSVERIFICATIONSENTON_ISSET_ID, value);
389
  }
346
  }
390
 
347
 
-
 
348
  public boolean isIsEmailVerified() {
-
 
349
    return this.isEmailVerified;
-
 
350
  }
-
 
351
 
-
 
352
  public UserState setIsEmailVerified(boolean isEmailVerified) {
-
 
353
    this.isEmailVerified = isEmailVerified;
-
 
354
    setIsEmailVerifiedIsSet(true);
-
 
355
    return this;
-
 
356
  }
-
 
357
 
-
 
358
  public void unsetIsEmailVerified() {
-
 
359
    __isset_bit_vector.clear(__ISEMAILVERIFIED_ISSET_ID);
-
 
360
  }
-
 
361
 
-
 
362
  /** Returns true if field isEmailVerified is set (has been asigned a value) and false otherwise */
-
 
363
  public boolean isSetIsEmailVerified() {
-
 
364
    return __isset_bit_vector.get(__ISEMAILVERIFIED_ISSET_ID);
-
 
365
  }
-
 
366
 
-
 
367
  public void setIsEmailVerifiedIsSet(boolean value) {
-
 
368
    __isset_bit_vector.set(__ISEMAILVERIFIED_ISSET_ID, value);
-
 
369
  }
-
 
370
 
391
  public boolean isIsSMSVerified() {
371
  public boolean isIsSMSVerified() {
392
    return this.isSMSVerified;
372
    return this.isSMSVerified;
393
  }
373
  }
394
 
374
 
395
  public UserState setIsSMSVerified(boolean isSMSVerified) {
375
  public UserState setIsSMSVerified(boolean isSMSVerified) {
Line 432... Line 412...
432
 
412
 
433
  public void setActiveSinceIsSet(boolean value) {
413
  public void setActiveSinceIsSet(boolean value) {
434
    __isset_bit_vector.set(__ACTIVESINCE_ISSET_ID, value);
414
    __isset_bit_vector.set(__ACTIVESINCE_ISSET_ID, value);
435
  }
415
  }
436
 
416
 
437
  public boolean isIsLoggedIn() {
-
 
438
    return this.isLoggedIn;
-
 
439
  }
-
 
440
 
-
 
441
  public UserState setIsLoggedIn(boolean isLoggedIn) {
-
 
442
    this.isLoggedIn = isLoggedIn;
-
 
443
    setIsLoggedInIsSet(true);
-
 
444
    return this;
-
 
445
  }
-
 
446
 
-
 
447
  public void unsetIsLoggedIn() {
-
 
448
    __isset_bit_vector.clear(__ISLOGGEDIN_ISSET_ID);
-
 
449
  }
-
 
450
 
-
 
451
  /** Returns true if field isLoggedIn is set (has been asigned a value) and false otherwise */
-
 
452
  public boolean isSetIsLoggedIn() {
-
 
453
    return __isset_bit_vector.get(__ISLOGGEDIN_ISSET_ID);
-
 
454
  }
-
 
455
 
-
 
456
  public void setIsLoggedInIsSet(boolean value) {
-
 
457
    __isset_bit_vector.set(__ISLOGGEDIN_ISSET_ID, value);
-
 
458
  }
-
 
459
 
-
 
460
  public int getIpsSize() {
417
  public int getIpsSize() {
461
    return (this.ips == null) ? 0 : this.ips.size();
418
    return (this.ips == null) ? 0 : this.ips.size();
462
  }
419
  }
463
 
420
 
464
  public java.util.Iterator<IPMap> getIpsIterator() {
421
  public java.util.Iterator<IPMap> getIpsIterator() {
Line 494... Line 451...
494
    if (!value) {
451
    if (!value) {
495
      this.ips = null;
452
      this.ips = null;
496
    }
453
    }
497
  }
454
  }
498
 
455
 
499
  public long getShoppingCartHandle() {
-
 
500
    return this.shoppingCartHandle;
-
 
501
  }
-
 
502
 
-
 
503
  public UserState setShoppingCartHandle(long shoppingCartHandle) {
-
 
504
    this.shoppingCartHandle = shoppingCartHandle;
-
 
505
    setShoppingCartHandleIsSet(true);
-
 
506
    return this;
-
 
507
  }
-
 
508
 
-
 
509
  public void unsetShoppingCartHandle() {
-
 
510
    __isset_bit_vector.clear(__SHOPPINGCARTHANDLE_ISSET_ID);
-
 
511
  }
-
 
512
 
-
 
513
  /** Returns true if field shoppingCartHandle is set (has been asigned a value) and false otherwise */
-
 
514
  public boolean isSetShoppingCartHandle() {
-
 
515
    return __isset_bit_vector.get(__SHOPPINGCARTHANDLE_ISSET_ID);
-
 
516
  }
-
 
517
 
-
 
518
  public void setShoppingCartHandleIsSet(boolean value) {
-
 
519
    __isset_bit_vector.set(__SHOPPINGCARTHANDLE_ISSET_ID, value);
-
 
520
  }
-
 
521
 
-
 
522
  /**
456
  /**
523
   * 
457
   * 
524
   * @see AccountStatus
458
   * @see AccountStatus
525
   */
459
   */
526
  public AccountStatus getStatus() {
460
  public AccountStatus getStatus() {
Line 559... Line 493...
559
      } else {
493
      } else {
560
        setUserId((Long)value);
494
        setUserId((Long)value);
561
      }
495
      }
562
      break;
496
      break;
563
 
497
 
564
    case IS_EMAIL_VERIFIED:
-
 
565
      if (value == null) {
-
 
566
        unsetIsEmailVerified();
-
 
567
      } else {
-
 
568
        setIsEmailVerified((Boolean)value);
-
 
569
      }
-
 
570
      break;
-
 
571
 
-
 
572
    case LAST_LOGIN:
498
    case LAST_LOGIN:
573
      if (value == null) {
499
      if (value == null) {
574
        unsetLastLogin();
500
        unsetLastLogin();
575
      } else {
501
      } else {
576
        setLastLogin((Long)value);
502
        setLastLogin((Long)value);
Line 599... Line 525...
599
      } else {
525
      } else {
600
        setSmsVerificationSentOn((Long)value);
526
        setSmsVerificationSentOn((Long)value);
601
      }
527
      }
602
      break;
528
      break;
603
 
529
 
-
 
530
    case IS_EMAIL_VERIFIED:
-
 
531
      if (value == null) {
-
 
532
        unsetIsEmailVerified();
-
 
533
      } else {
-
 
534
        setIsEmailVerified((Boolean)value);
-
 
535
      }
-
 
536
      break;
-
 
537
 
604
    case IS_SMSVERIFIED:
538
    case IS_SMSVERIFIED:
605
      if (value == null) {
539
      if (value == null) {
606
        unsetIsSMSVerified();
540
        unsetIsSMSVerified();
607
      } else {
541
      } else {
608
        setIsSMSVerified((Boolean)value);
542
        setIsSMSVerified((Boolean)value);
Line 615... Line 549...
615
      } else {
549
      } else {
616
        setActiveSince((Long)value);
550
        setActiveSince((Long)value);
617
      }
551
      }
618
      break;
552
      break;
619
 
553
 
620
    case IS_LOGGED_IN:
-
 
621
      if (value == null) {
-
 
622
        unsetIsLoggedIn();
-
 
623
      } else {
-
 
624
        setIsLoggedIn((Boolean)value);
-
 
625
      }
-
 
626
      break;
-
 
627
 
-
 
628
    case IPS:
554
    case IPS:
629
      if (value == null) {
555
      if (value == null) {
630
        unsetIps();
556
        unsetIps();
631
      } else {
557
      } else {
632
        setIps((List<IPMap>)value);
558
        setIps((List<IPMap>)value);
633
      }
559
      }
634
      break;
560
      break;
635
 
561
 
636
    case SHOPPING_CART_HANDLE:
-
 
637
      if (value == null) {
-
 
638
        unsetShoppingCartHandle();
-
 
639
      } else {
-
 
640
        setShoppingCartHandle((Long)value);
-
 
641
      }
-
 
642
      break;
-
 
643
 
-
 
644
    case STATUS:
562
    case STATUS:
645
      if (value == null) {
563
      if (value == null) {
646
        unsetStatus();
564
        unsetStatus();
647
      } else {
565
      } else {
648
        setStatus((AccountStatus)value);
566
        setStatus((AccountStatus)value);
Line 659... Line 577...
659
  public Object getFieldValue(_Fields field) {
577
  public Object getFieldValue(_Fields field) {
660
    switch (field) {
578
    switch (field) {
661
    case USER_ID:
579
    case USER_ID:
662
      return new Long(getUserId());
580
      return new Long(getUserId());
663
 
581
 
664
    case IS_EMAIL_VERIFIED:
-
 
665
      return new Boolean(isIsEmailVerified());
-
 
666
 
-
 
667
    case LAST_LOGIN:
582
    case LAST_LOGIN:
668
      return new Long(getLastLogin());
583
      return new Long(getLastLogin());
669
 
584
 
670
    case LAST_LOGOUT:
585
    case LAST_LOGOUT:
671
      return new Long(getLastLogout());
586
      return new Long(getLastLogout());
Line 674... Line 589...
674
      return new Long(getEmailVerificationSentOn());
589
      return new Long(getEmailVerificationSentOn());
675
 
590
 
676
    case SMS_VERIFICATION_SENT_ON:
591
    case SMS_VERIFICATION_SENT_ON:
677
      return new Long(getSmsVerificationSentOn());
592
      return new Long(getSmsVerificationSentOn());
678
 
593
 
-
 
594
    case IS_EMAIL_VERIFIED:
-
 
595
      return new Boolean(isIsEmailVerified());
-
 
596
 
679
    case IS_SMSVERIFIED:
597
    case IS_SMSVERIFIED:
680
      return new Boolean(isIsSMSVerified());
598
      return new Boolean(isIsSMSVerified());
681
 
599
 
682
    case ACTIVE_SINCE:
600
    case ACTIVE_SINCE:
683
      return new Long(getActiveSince());
601
      return new Long(getActiveSince());
684
 
602
 
685
    case IS_LOGGED_IN:
-
 
686
      return new Boolean(isIsLoggedIn());
-
 
687
 
-
 
688
    case IPS:
603
    case IPS:
689
      return getIps();
604
      return getIps();
690
 
605
 
691
    case SHOPPING_CART_HANDLE:
-
 
692
      return new Long(getShoppingCartHandle());
-
 
693
 
-
 
694
    case STATUS:
606
    case STATUS:
695
      return getStatus();
607
      return getStatus();
696
 
608
 
697
    }
609
    }
698
    throw new IllegalStateException();
610
    throw new IllegalStateException();
Line 705... Line 617...
705
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
617
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
706
  public boolean isSet(_Fields field) {
618
  public boolean isSet(_Fields field) {
707
    switch (field) {
619
    switch (field) {
708
    case USER_ID:
620
    case USER_ID:
709
      return isSetUserId();
621
      return isSetUserId();
710
    case IS_EMAIL_VERIFIED:
-
 
711
      return isSetIsEmailVerified();
-
 
712
    case LAST_LOGIN:
622
    case LAST_LOGIN:
713
      return isSetLastLogin();
623
      return isSetLastLogin();
714
    case LAST_LOGOUT:
624
    case LAST_LOGOUT:
715
      return isSetLastLogout();
625
      return isSetLastLogout();
716
    case EMAIL_VERIFICATION_SENT_ON:
626
    case EMAIL_VERIFICATION_SENT_ON:
717
      return isSetEmailVerificationSentOn();
627
      return isSetEmailVerificationSentOn();
718
    case SMS_VERIFICATION_SENT_ON:
628
    case SMS_VERIFICATION_SENT_ON:
719
      return isSetSmsVerificationSentOn();
629
      return isSetSmsVerificationSentOn();
-
 
630
    case IS_EMAIL_VERIFIED:
-
 
631
      return isSetIsEmailVerified();
720
    case IS_SMSVERIFIED:
632
    case IS_SMSVERIFIED:
721
      return isSetIsSMSVerified();
633
      return isSetIsSMSVerified();
722
    case ACTIVE_SINCE:
634
    case ACTIVE_SINCE:
723
      return isSetActiveSince();
635
      return isSetActiveSince();
724
    case IS_LOGGED_IN:
-
 
725
      return isSetIsLoggedIn();
-
 
726
    case IPS:
636
    case IPS:
727
      return isSetIps();
637
      return isSetIps();
728
    case SHOPPING_CART_HANDLE:
-
 
729
      return isSetShoppingCartHandle();
-
 
730
    case STATUS:
638
    case STATUS:
731
      return isSetStatus();
639
      return isSetStatus();
732
    }
640
    }
733
    throw new IllegalStateException();
641
    throw new IllegalStateException();
734
  }
642
  }
Line 757... Line 665...
757
        return false;
665
        return false;
758
      if (this.userId != that.userId)
666
      if (this.userId != that.userId)
759
        return false;
667
        return false;
760
    }
668
    }
761
 
669
 
762
    boolean this_present_isEmailVerified = true;
-
 
763
    boolean that_present_isEmailVerified = true;
-
 
764
    if (this_present_isEmailVerified || that_present_isEmailVerified) {
-
 
765
      if (!(this_present_isEmailVerified && that_present_isEmailVerified))
-
 
766
        return false;
-
 
767
      if (this.isEmailVerified != that.isEmailVerified)
-
 
768
        return false;
-
 
769
    }
-
 
770
 
-
 
771
    boolean this_present_lastLogin = true;
670
    boolean this_present_lastLogin = true;
772
    boolean that_present_lastLogin = true;
671
    boolean that_present_lastLogin = true;
773
    if (this_present_lastLogin || that_present_lastLogin) {
672
    if (this_present_lastLogin || that_present_lastLogin) {
774
      if (!(this_present_lastLogin && that_present_lastLogin))
673
      if (!(this_present_lastLogin && that_present_lastLogin))
775
        return false;
674
        return false;
Line 802... Line 701...
802
        return false;
701
        return false;
803
      if (this.smsVerificationSentOn != that.smsVerificationSentOn)
702
      if (this.smsVerificationSentOn != that.smsVerificationSentOn)
804
        return false;
703
        return false;
805
    }
704
    }
806
 
705
 
-
 
706
    boolean this_present_isEmailVerified = true;
-
 
707
    boolean that_present_isEmailVerified = true;
-
 
708
    if (this_present_isEmailVerified || that_present_isEmailVerified) {
-
 
709
      if (!(this_present_isEmailVerified && that_present_isEmailVerified))
-
 
710
        return false;
-
 
711
      if (this.isEmailVerified != that.isEmailVerified)
-
 
712
        return false;
-
 
713
    }
-
 
714
 
807
    boolean this_present_isSMSVerified = true;
715
    boolean this_present_isSMSVerified = true;
808
    boolean that_present_isSMSVerified = true;
716
    boolean that_present_isSMSVerified = true;
809
    if (this_present_isSMSVerified || that_present_isSMSVerified) {
717
    if (this_present_isSMSVerified || that_present_isSMSVerified) {
810
      if (!(this_present_isSMSVerified && that_present_isSMSVerified))
718
      if (!(this_present_isSMSVerified && that_present_isSMSVerified))
811
        return false;
719
        return false;
Line 820... Line 728...
820
        return false;
728
        return false;
821
      if (this.activeSince != that.activeSince)
729
      if (this.activeSince != that.activeSince)
822
        return false;
730
        return false;
823
    }
731
    }
824
 
732
 
825
    boolean this_present_isLoggedIn = true;
-
 
826
    boolean that_present_isLoggedIn = true;
-
 
827
    if (this_present_isLoggedIn || that_present_isLoggedIn) {
-
 
828
      if (!(this_present_isLoggedIn && that_present_isLoggedIn))
-
 
829
        return false;
-
 
830
      if (this.isLoggedIn != that.isLoggedIn)
-
 
831
        return false;
-
 
832
    }
-
 
833
 
-
 
834
    boolean this_present_ips = true && this.isSetIps();
733
    boolean this_present_ips = true && this.isSetIps();
835
    boolean that_present_ips = true && that.isSetIps();
734
    boolean that_present_ips = true && that.isSetIps();
836
    if (this_present_ips || that_present_ips) {
735
    if (this_present_ips || that_present_ips) {
837
      if (!(this_present_ips && that_present_ips))
736
      if (!(this_present_ips && that_present_ips))
838
        return false;
737
        return false;
839
      if (!this.ips.equals(that.ips))
738
      if (!this.ips.equals(that.ips))
840
        return false;
739
        return false;
841
    }
740
    }
842
 
741
 
843
    boolean this_present_shoppingCartHandle = true;
-
 
844
    boolean that_present_shoppingCartHandle = true;
-
 
845
    if (this_present_shoppingCartHandle || that_present_shoppingCartHandle) {
-
 
846
      if (!(this_present_shoppingCartHandle && that_present_shoppingCartHandle))
-
 
847
        return false;
-
 
848
      if (this.shoppingCartHandle != that.shoppingCartHandle)
-
 
849
        return false;
-
 
850
    }
-
 
851
 
-
 
852
    boolean this_present_status = true && this.isSetStatus();
742
    boolean this_present_status = true && this.isSetStatus();
853
    boolean that_present_status = true && that.isSetStatus();
743
    boolean that_present_status = true && that.isSetStatus();
854
    if (this_present_status || that_present_status) {
744
    if (this_present_status || that_present_status) {
855
      if (!(this_present_status && that_present_status))
745
      if (!(this_present_status && that_present_status))
856
        return false;
746
        return false;
Line 880... Line 770...
880
    }
770
    }
881
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
771
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
882
    if (lastComparison != 0) {
772
    if (lastComparison != 0) {
883
      return lastComparison;
773
      return lastComparison;
884
    }
774
    }
885
    lastComparison = Boolean.valueOf(isSetIsEmailVerified()).compareTo(isSetIsEmailVerified());
-
 
886
    if (lastComparison != 0) {
-
 
887
      return lastComparison;
-
 
888
    }
-
 
889
    lastComparison = TBaseHelper.compareTo(isEmailVerified, typedOther.isEmailVerified);
-
 
890
    if (lastComparison != 0) {
-
 
891
      return lastComparison;
-
 
892
    }
-
 
893
    lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(isSetLastLogin());
775
    lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(isSetLastLogin());
894
    if (lastComparison != 0) {
776
    if (lastComparison != 0) {
895
      return lastComparison;
777
      return lastComparison;
896
    }
778
    }
897
    lastComparison = TBaseHelper.compareTo(lastLogin, typedOther.lastLogin);
779
    lastComparison = TBaseHelper.compareTo(lastLogin, typedOther.lastLogin);
Line 920... Line 802...
920
    }
802
    }
921
    lastComparison = TBaseHelper.compareTo(smsVerificationSentOn, typedOther.smsVerificationSentOn);
803
    lastComparison = TBaseHelper.compareTo(smsVerificationSentOn, typedOther.smsVerificationSentOn);
922
    if (lastComparison != 0) {
804
    if (lastComparison != 0) {
923
      return lastComparison;
805
      return lastComparison;
924
    }
806
    }
925
    lastComparison = Boolean.valueOf(isSetIsSMSVerified()).compareTo(isSetIsSMSVerified());
807
    lastComparison = Boolean.valueOf(isSetIsEmailVerified()).compareTo(isSetIsEmailVerified());
926
    if (lastComparison != 0) {
808
    if (lastComparison != 0) {
927
      return lastComparison;
809
      return lastComparison;
928
    }
810
    }
929
    lastComparison = TBaseHelper.compareTo(isSMSVerified, typedOther.isSMSVerified);
811
    lastComparison = TBaseHelper.compareTo(isEmailVerified, typedOther.isEmailVerified);
930
    if (lastComparison != 0) {
812
    if (lastComparison != 0) {
931
      return lastComparison;
813
      return lastComparison;
932
    }
814
    }
933
    lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(isSetActiveSince());
815
    lastComparison = Boolean.valueOf(isSetIsSMSVerified()).compareTo(isSetIsSMSVerified());
934
    if (lastComparison != 0) {
816
    if (lastComparison != 0) {
935
      return lastComparison;
817
      return lastComparison;
936
    }
818
    }
937
    lastComparison = TBaseHelper.compareTo(activeSince, typedOther.activeSince);
819
    lastComparison = TBaseHelper.compareTo(isSMSVerified, typedOther.isSMSVerified);
938
    if (lastComparison != 0) {
820
    if (lastComparison != 0) {
939
      return lastComparison;
821
      return lastComparison;
940
    }
822
    }
941
    lastComparison = Boolean.valueOf(isSetIsLoggedIn()).compareTo(isSetIsLoggedIn());
823
    lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(isSetActiveSince());
942
    if (lastComparison != 0) {
824
    if (lastComparison != 0) {
943
      return lastComparison;
825
      return lastComparison;
944
    }
826
    }
945
    lastComparison = TBaseHelper.compareTo(isLoggedIn, typedOther.isLoggedIn);
827
    lastComparison = TBaseHelper.compareTo(activeSince, typedOther.activeSince);
946
    if (lastComparison != 0) {
828
    if (lastComparison != 0) {
947
      return lastComparison;
829
      return lastComparison;
948
    }
830
    }
949
    lastComparison = Boolean.valueOf(isSetIps()).compareTo(isSetIps());
831
    lastComparison = Boolean.valueOf(isSetIps()).compareTo(isSetIps());
950
    if (lastComparison != 0) {
832
    if (lastComparison != 0) {
Line 952... Line 834...
952
    }
834
    }
953
    lastComparison = TBaseHelper.compareTo(ips, typedOther.ips);
835
    lastComparison = TBaseHelper.compareTo(ips, typedOther.ips);
954
    if (lastComparison != 0) {
836
    if (lastComparison != 0) {
955
      return lastComparison;
837
      return lastComparison;
956
    }
838
    }
957
    lastComparison = Boolean.valueOf(isSetShoppingCartHandle()).compareTo(isSetShoppingCartHandle());
-
 
958
    if (lastComparison != 0) {
-
 
959
      return lastComparison;
-
 
960
    }
-
 
961
    lastComparison = TBaseHelper.compareTo(shoppingCartHandle, typedOther.shoppingCartHandle);
-
 
962
    if (lastComparison != 0) {
-
 
963
      return lastComparison;
-
 
964
    }
-
 
965
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
839
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
966
    if (lastComparison != 0) {
840
    if (lastComparison != 0) {
967
      return lastComparison;
841
      return lastComparison;
968
    }
842
    }
969
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
843
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
Line 993... Line 867...
993
              setUserIdIsSet(true);
867
              setUserIdIsSet(true);
994
            } else { 
868
            } else { 
995
              TProtocolUtil.skip(iprot, field.type);
869
              TProtocolUtil.skip(iprot, field.type);
996
            }
870
            }
997
            break;
871
            break;
998
          case IS_EMAIL_VERIFIED:
-
 
999
            if (field.type == TType.BOOL) {
-
 
1000
              this.isEmailVerified = iprot.readBool();
-
 
1001
              setIsEmailVerifiedIsSet(true);
-
 
1002
            } else { 
-
 
1003
              TProtocolUtil.skip(iprot, field.type);
-
 
1004
            }
-
 
1005
            break;
-
 
1006
          case LAST_LOGIN:
872
          case LAST_LOGIN:
1007
            if (field.type == TType.I64) {
873
            if (field.type == TType.I64) {
1008
              this.lastLogin = iprot.readI64();
874
              this.lastLogin = iprot.readI64();
1009
              setLastLoginIsSet(true);
875
              setLastLoginIsSet(true);
1010
            } else { 
876
            } else { 
Line 1033... Line 899...
1033
              setSmsVerificationSentOnIsSet(true);
899
              setSmsVerificationSentOnIsSet(true);
1034
            } else { 
900
            } else { 
1035
              TProtocolUtil.skip(iprot, field.type);
901
              TProtocolUtil.skip(iprot, field.type);
1036
            }
902
            }
1037
            break;
903
            break;
-
 
904
          case IS_EMAIL_VERIFIED:
-
 
905
            if (field.type == TType.BOOL) {
-
 
906
              this.isEmailVerified = iprot.readBool();
-
 
907
              setIsEmailVerifiedIsSet(true);
-
 
908
            } else { 
-
 
909
              TProtocolUtil.skip(iprot, field.type);
-
 
910
            }
-
 
911
            break;
1038
          case IS_SMSVERIFIED:
912
          case IS_SMSVERIFIED:
1039
            if (field.type == TType.BOOL) {
913
            if (field.type == TType.BOOL) {
1040
              this.isSMSVerified = iprot.readBool();
914
              this.isSMSVerified = iprot.readBool();
1041
              setIsSMSVerifiedIsSet(true);
915
              setIsSMSVerifiedIsSet(true);
1042
            } else { 
916
            } else { 
Line 1049... Line 923...
1049
              setActiveSinceIsSet(true);
923
              setActiveSinceIsSet(true);
1050
            } else { 
924
            } else { 
1051
              TProtocolUtil.skip(iprot, field.type);
925
              TProtocolUtil.skip(iprot, field.type);
1052
            }
926
            }
1053
            break;
927
            break;
1054
          case IS_LOGGED_IN:
-
 
1055
            if (field.type == TType.BOOL) {
-
 
1056
              this.isLoggedIn = iprot.readBool();
-
 
1057
              setIsLoggedInIsSet(true);
-
 
1058
            } else { 
-
 
1059
              TProtocolUtil.skip(iprot, field.type);
-
 
1060
            }
-
 
1061
            break;
-
 
1062
          case IPS:
928
          case IPS:
1063
            if (field.type == TType.LIST) {
929
            if (field.type == TType.LIST) {
1064
              {
930
              {
1065
                TList _list8 = iprot.readListBegin();
931
                TList _list0 = iprot.readListBegin();
1066
                this.ips = new ArrayList<IPMap>(_list8.size);
932
                this.ips = new ArrayList<IPMap>(_list0.size);
1067
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
933
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
1068
                {
934
                {
1069
                  IPMap _elem10;
935
                  IPMap _elem2;
1070
                  _elem10 = new IPMap();
936
                  _elem2 = new IPMap();
1071
                  _elem10.read(iprot);
937
                  _elem2.read(iprot);
1072
                  this.ips.add(_elem10);
938
                  this.ips.add(_elem2);
1073
                }
939
                }
1074
                iprot.readListEnd();
940
                iprot.readListEnd();
1075
              }
941
              }
1076
            } else { 
942
            } else { 
1077
              TProtocolUtil.skip(iprot, field.type);
943
              TProtocolUtil.skip(iprot, field.type);
1078
            }
944
            }
1079
            break;
945
            break;
1080
          case SHOPPING_CART_HANDLE:
-
 
1081
            if (field.type == TType.I64) {
-
 
1082
              this.shoppingCartHandle = iprot.readI64();
-
 
1083
              setShoppingCartHandleIsSet(true);
-
 
1084
            } else { 
-
 
1085
              TProtocolUtil.skip(iprot, field.type);
-
 
1086
            }
-
 
1087
            break;
-
 
1088
          case STATUS:
946
          case STATUS:
1089
            if (field.type == TType.I32) {
947
            if (field.type == TType.I32) {
1090
              this.status = AccountStatus.findByValue(iprot.readI32());
948
              this.status = AccountStatus.findByValue(iprot.readI32());
1091
            } else { 
949
            } else { 
1092
              TProtocolUtil.skip(iprot, field.type);
950
              TProtocolUtil.skip(iprot, field.type);
Line 1105... Line 963...
1105
 
963
 
1106
    oprot.writeStructBegin(STRUCT_DESC);
964
    oprot.writeStructBegin(STRUCT_DESC);
1107
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
965
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1108
    oprot.writeI64(this.userId);
966
    oprot.writeI64(this.userId);
1109
    oprot.writeFieldEnd();
967
    oprot.writeFieldEnd();
1110
    oprot.writeFieldBegin(IS_EMAIL_VERIFIED_FIELD_DESC);
-
 
1111
    oprot.writeBool(this.isEmailVerified);
-
 
1112
    oprot.writeFieldEnd();
-
 
1113
    oprot.writeFieldBegin(LAST_LOGIN_FIELD_DESC);
968
    oprot.writeFieldBegin(LAST_LOGIN_FIELD_DESC);
1114
    oprot.writeI64(this.lastLogin);
969
    oprot.writeI64(this.lastLogin);
1115
    oprot.writeFieldEnd();
970
    oprot.writeFieldEnd();
1116
    oprot.writeFieldBegin(LAST_LOGOUT_FIELD_DESC);
971
    oprot.writeFieldBegin(LAST_LOGOUT_FIELD_DESC);
1117
    oprot.writeI64(this.lastLogout);
972
    oprot.writeI64(this.lastLogout);
Line 1120... Line 975...
1120
    oprot.writeI64(this.emailVerificationSentOn);
975
    oprot.writeI64(this.emailVerificationSentOn);
1121
    oprot.writeFieldEnd();
976
    oprot.writeFieldEnd();
1122
    oprot.writeFieldBegin(SMS_VERIFICATION_SENT_ON_FIELD_DESC);
977
    oprot.writeFieldBegin(SMS_VERIFICATION_SENT_ON_FIELD_DESC);
1123
    oprot.writeI64(this.smsVerificationSentOn);
978
    oprot.writeI64(this.smsVerificationSentOn);
1124
    oprot.writeFieldEnd();
979
    oprot.writeFieldEnd();
-
 
980
    oprot.writeFieldBegin(IS_EMAIL_VERIFIED_FIELD_DESC);
-
 
981
    oprot.writeBool(this.isEmailVerified);
-
 
982
    oprot.writeFieldEnd();
1125
    oprot.writeFieldBegin(IS_SMSVERIFIED_FIELD_DESC);
983
    oprot.writeFieldBegin(IS_SMSVERIFIED_FIELD_DESC);
1126
    oprot.writeBool(this.isSMSVerified);
984
    oprot.writeBool(this.isSMSVerified);
1127
    oprot.writeFieldEnd();
985
    oprot.writeFieldEnd();
1128
    oprot.writeFieldBegin(ACTIVE_SINCE_FIELD_DESC);
986
    oprot.writeFieldBegin(ACTIVE_SINCE_FIELD_DESC);
1129
    oprot.writeI64(this.activeSince);
987
    oprot.writeI64(this.activeSince);
1130
    oprot.writeFieldEnd();
988
    oprot.writeFieldEnd();
1131
    oprot.writeFieldBegin(IS_LOGGED_IN_FIELD_DESC);
-
 
1132
    oprot.writeBool(this.isLoggedIn);
-
 
1133
    oprot.writeFieldEnd();
-
 
1134
    if (this.ips != null) {
989
    if (this.ips != null) {
1135
      oprot.writeFieldBegin(IPS_FIELD_DESC);
990
      oprot.writeFieldBegin(IPS_FIELD_DESC);
1136
      {
991
      {
1137
        oprot.writeListBegin(new TList(TType.STRUCT, this.ips.size()));
992
        oprot.writeListBegin(new TList(TType.STRUCT, this.ips.size()));
1138
        for (IPMap _iter11 : this.ips)
993
        for (IPMap _iter3 : this.ips)
1139
        {
994
        {
1140
          _iter11.write(oprot);
995
          _iter3.write(oprot);
1141
        }
996
        }
1142
        oprot.writeListEnd();
997
        oprot.writeListEnd();
1143
      }
998
      }
1144
      oprot.writeFieldEnd();
999
      oprot.writeFieldEnd();
1145
    }
1000
    }
1146
    oprot.writeFieldBegin(SHOPPING_CART_HANDLE_FIELD_DESC);
-
 
1147
    oprot.writeI64(this.shoppingCartHandle);
-
 
1148
    oprot.writeFieldEnd();
-
 
1149
    if (this.status != null) {
1001
    if (this.status != null) {
1150
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1002
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1151
      oprot.writeI32(this.status.getValue());
1003
      oprot.writeI32(this.status.getValue());
1152
      oprot.writeFieldEnd();
1004
      oprot.writeFieldEnd();
1153
    }
1005
    }
Line 1162... Line 1014...
1162
 
1014
 
1163
    sb.append("userId:");
1015
    sb.append("userId:");
1164
    sb.append(this.userId);
1016
    sb.append(this.userId);
1165
    first = false;
1017
    first = false;
1166
    if (!first) sb.append(", ");
1018
    if (!first) sb.append(", ");
1167
    sb.append("isEmailVerified:");
-
 
1168
    sb.append(this.isEmailVerified);
-
 
1169
    first = false;
-
 
1170
    if (!first) sb.append(", ");
-
 
1171
    sb.append("lastLogin:");
1019
    sb.append("lastLogin:");
1172
    sb.append(this.lastLogin);
1020
    sb.append(this.lastLogin);
1173
    first = false;
1021
    first = false;
1174
    if (!first) sb.append(", ");
1022
    if (!first) sb.append(", ");
1175
    sb.append("lastLogout:");
1023
    sb.append("lastLogout:");
Line 1182... Line 1030...
1182
    if (!first) sb.append(", ");
1030
    if (!first) sb.append(", ");
1183
    sb.append("smsVerificationSentOn:");
1031
    sb.append("smsVerificationSentOn:");
1184
    sb.append(this.smsVerificationSentOn);
1032
    sb.append(this.smsVerificationSentOn);
1185
    first = false;
1033
    first = false;
1186
    if (!first) sb.append(", ");
1034
    if (!first) sb.append(", ");
-
 
1035
    sb.append("isEmailVerified:");
-
 
1036
    sb.append(this.isEmailVerified);
-
 
1037
    first = false;
-
 
1038
    if (!first) sb.append(", ");
1187
    sb.append("isSMSVerified:");
1039
    sb.append("isSMSVerified:");
1188
    sb.append(this.isSMSVerified);
1040
    sb.append(this.isSMSVerified);
1189
    first = false;
1041
    first = false;
1190
    if (!first) sb.append(", ");
1042
    if (!first) sb.append(", ");
1191
    sb.append("activeSince:");
1043
    sb.append("activeSince:");
1192
    sb.append(this.activeSince);
1044
    sb.append(this.activeSince);
1193
    first = false;
1045
    first = false;
1194
    if (!first) sb.append(", ");
1046
    if (!first) sb.append(", ");
1195
    sb.append("isLoggedIn:");
-
 
1196
    sb.append(this.isLoggedIn);
-
 
1197
    first = false;
-
 
1198
    if (!first) sb.append(", ");
-
 
1199
    sb.append("ips:");
1047
    sb.append("ips:");
1200
    if (this.ips == null) {
1048
    if (this.ips == null) {
1201
      sb.append("null");
1049
      sb.append("null");
1202
    } else {
1050
    } else {
1203
      sb.append(this.ips);
1051
      sb.append(this.ips);
1204
    }
1052
    }
1205
    first = false;
1053
    first = false;
1206
    if (!first) sb.append(", ");
1054
    if (!first) sb.append(", ");
1207
    sb.append("shoppingCartHandle:");
-
 
1208
    sb.append(this.shoppingCartHandle);
-
 
1209
    first = false;
-
 
1210
    if (!first) sb.append(", ");
-
 
1211
    sb.append("status:");
1055
    sb.append("status:");
1212
    if (this.status == null) {
1056
    if (this.status == null) {
1213
      sb.append("null");
1057
      sb.append("null");
1214
    } else {
1058
    } else {
1215
      String status_name = status.name();
1059
      String status_name = status.name();