Subversion Repositories SmartDukaan

Rev

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

Rev 1013 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.user;
6
package in.shop2020.model.v1.user;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
/**
23
/**
27
 * dynamic user state
24
 * dynamic user state
28
 * *
25
 * *
29
 */
26
 */
30
public class UserState implements TBase<UserState._Fields>, java.io.Serializable, Cloneable, Comparable<UserState> {
27
public class UserState implements org.apache.thrift.TBase<UserState, UserState._Fields>, java.io.Serializable, Cloneable {
31
  private static final TStruct STRUCT_DESC = new TStruct("UserState");
28
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserState");
32
 
29
 
33
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
30
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
34
  private static final TField LAST_LOGIN_FIELD_DESC = new TField("lastLogin", TType.I64, (short)2);
31
  private static final org.apache.thrift.protocol.TField LAST_LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("lastLogin", org.apache.thrift.protocol.TType.I64, (short)2);
35
  private static final TField LAST_LOGOUT_FIELD_DESC = new TField("lastLogout", TType.I64, (short)3);
32
  private static final org.apache.thrift.protocol.TField LAST_LOGOUT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastLogout", org.apache.thrift.protocol.TType.I64, (short)3);
36
  private static final TField EMAIL_VERIFICATION_SENT_ON_FIELD_DESC = new TField("emailVerificationSentOn", TType.I64, (short)4);
33
  private static final org.apache.thrift.protocol.TField EMAIL_VERIFICATION_SENT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("emailVerificationSentOn", org.apache.thrift.protocol.TType.I64, (short)4);
37
  private static final TField SMS_VERIFICATION_SENT_ON_FIELD_DESC = new TField("smsVerificationSentOn", TType.I64, (short)5);
34
  private static final org.apache.thrift.protocol.TField SMS_VERIFICATION_SENT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("smsVerificationSentOn", org.apache.thrift.protocol.TType.I64, (short)5);
38
  private static final TField IS_EMAIL_VERIFIED_FIELD_DESC = new TField("isEmailVerified", TType.BOOL, (short)6);
35
  private static final org.apache.thrift.protocol.TField IS_EMAIL_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmailVerified", org.apache.thrift.protocol.TType.BOOL, (short)6);
39
  private static final TField IS_SMSVERIFIED_FIELD_DESC = new TField("isSMSVerified", TType.BOOL, (short)7);
36
  private static final org.apache.thrift.protocol.TField IS_SMSVERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("isSMSVerified", org.apache.thrift.protocol.TType.BOOL, (short)7);
40
  private static final TField ACTIVE_SINCE_FIELD_DESC = new TField("activeSince", TType.I64, (short)8);
37
  private static final org.apache.thrift.protocol.TField ACTIVE_SINCE_FIELD_DESC = new org.apache.thrift.protocol.TField("activeSince", org.apache.thrift.protocol.TType.I64, (short)8);
41
  private static final TField IPS_FIELD_DESC = new TField("ips", TType.LIST, (short)9);
38
  private static final org.apache.thrift.protocol.TField IPS_FIELD_DESC = new org.apache.thrift.protocol.TField("ips", org.apache.thrift.protocol.TType.LIST, (short)9);
42
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)10);
39
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)10);
43
 
40
 
44
  private long userId;
41
  private long userId; // required
45
  private long lastLogin;
42
  private long lastLogin; // required
46
  private long lastLogout;
43
  private long lastLogout; // required
47
  private long emailVerificationSentOn;
44
  private long emailVerificationSentOn; // required
48
  private long smsVerificationSentOn;
45
  private long smsVerificationSentOn; // required
49
  private boolean isEmailVerified;
46
  private boolean isEmailVerified; // required
50
  private boolean isSMSVerified;
47
  private boolean isSMSVerified; // required
51
  private long activeSince;
48
  private long activeSince; // required
52
  private List<IPMap> ips;
49
  private List<IPMap> ips; // required
53
  private AccountStatus status;
50
  private AccountStatus status; // required
54
 
51
 
55
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  public enum _Fields implements TFieldIdEnum {
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57
    USER_ID((short)1, "userId"),
54
    USER_ID((short)1, "userId"),
58
    LAST_LOGIN((short)2, "lastLogin"),
55
    LAST_LOGIN((short)2, "lastLogin"),
59
    LAST_LOGOUT((short)3, "lastLogout"),
56
    LAST_LOGOUT((short)3, "lastLogout"),
60
    EMAIL_VERIFICATION_SENT_ON((short)4, "emailVerificationSentOn"),
57
    EMAIL_VERIFICATION_SENT_ON((short)4, "emailVerificationSentOn"),
61
    SMS_VERIFICATION_SENT_ON((short)5, "smsVerificationSentOn"),
58
    SMS_VERIFICATION_SENT_ON((short)5, "smsVerificationSentOn"),
Line 67... Line 64...
67
     * 
64
     * 
68
     * @see AccountStatus
65
     * @see AccountStatus
69
     */
66
     */
70
    STATUS((short)10, "status");
67
    STATUS((short)10, "status");
71
 
68
 
72
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
73
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
69
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
74
 
70
 
75
    static {
71
    static {
76
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
72
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
77
        byId.put((int)field._thriftId, field);
-
 
78
        byName.put(field.getFieldName(), field);
73
        byName.put(field.getFieldName(), field);
79
      }
74
      }
80
    }
75
    }
81
 
76
 
82
    /**
77
    /**
83
     * Find the _Fields constant that matches fieldId, or null if its not found.
78
     * Find the _Fields constant that matches fieldId, or null if its not found.
84
     */
79
     */
85
    public static _Fields findByThriftId(int fieldId) {
80
    public static _Fields findByThriftId(int fieldId) {
-
 
81
      switch(fieldId) {
-
 
82
        case 1: // USER_ID
-
 
83
          return USER_ID;
-
 
84
        case 2: // LAST_LOGIN
-
 
85
          return LAST_LOGIN;
-
 
86
        case 3: // LAST_LOGOUT
-
 
87
          return LAST_LOGOUT;
-
 
88
        case 4: // EMAIL_VERIFICATION_SENT_ON
-
 
89
          return EMAIL_VERIFICATION_SENT_ON;
-
 
90
        case 5: // SMS_VERIFICATION_SENT_ON
-
 
91
          return SMS_VERIFICATION_SENT_ON;
-
 
92
        case 6: // IS_EMAIL_VERIFIED
-
 
93
          return IS_EMAIL_VERIFIED;
-
 
94
        case 7: // IS_SMSVERIFIED
86
      return byId.get(fieldId);
95
          return IS_SMSVERIFIED;
-
 
96
        case 8: // ACTIVE_SINCE
-
 
97
          return ACTIVE_SINCE;
-
 
98
        case 9: // IPS
-
 
99
          return IPS;
-
 
100
        case 10: // STATUS
-
 
101
          return STATUS;
-
 
102
        default:
-
 
103
          return null;
-
 
104
      }
87
    }
105
    }
88
 
106
 
89
    /**
107
    /**
90
     * Find the _Fields constant that matches fieldId, throwing an exception
108
     * Find the _Fields constant that matches fieldId, throwing an exception
91
     * if it is not found.
109
     * if it is not found.
Line 129... Line 147...
129
  private static final int __ISEMAILVERIFIED_ISSET_ID = 5;
147
  private static final int __ISEMAILVERIFIED_ISSET_ID = 5;
130
  private static final int __ISSMSVERIFIED_ISSET_ID = 6;
148
  private static final int __ISSMSVERIFIED_ISSET_ID = 6;
131
  private static final int __ACTIVESINCE_ISSET_ID = 7;
149
  private static final int __ACTIVESINCE_ISSET_ID = 7;
132
  private BitSet __isset_bit_vector = new BitSet(8);
150
  private BitSet __isset_bit_vector = new BitSet(8);
133
 
151
 
134
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
152
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
135
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
136
        new FieldValueMetaData(TType.I64)));
-
 
137
    put(_Fields.LAST_LOGIN, new FieldMetaData("lastLogin", TFieldRequirementType.DEFAULT, 
-
 
138
        new FieldValueMetaData(TType.I64)));
-
 
139
    put(_Fields.LAST_LOGOUT, new FieldMetaData("lastLogout", TFieldRequirementType.DEFAULT, 
-
 
140
        new FieldValueMetaData(TType.I64)));
-
 
141
    put(_Fields.EMAIL_VERIFICATION_SENT_ON, new FieldMetaData("emailVerificationSentOn", TFieldRequirementType.DEFAULT, 
-
 
142
        new FieldValueMetaData(TType.I64)));
-
 
143
    put(_Fields.SMS_VERIFICATION_SENT_ON, new FieldMetaData("smsVerificationSentOn", TFieldRequirementType.DEFAULT, 
-
 
144
        new FieldValueMetaData(TType.I64)));
-
 
145
    put(_Fields.IS_EMAIL_VERIFIED, new FieldMetaData("isEmailVerified", TFieldRequirementType.DEFAULT, 
-
 
146
        new FieldValueMetaData(TType.BOOL)));
-
 
147
    put(_Fields.IS_SMSVERIFIED, new FieldMetaData("isSMSVerified", TFieldRequirementType.DEFAULT, 
-
 
148
        new FieldValueMetaData(TType.BOOL)));
-
 
149
    put(_Fields.ACTIVE_SINCE, new FieldMetaData("activeSince", TFieldRequirementType.DEFAULT, 
-
 
150
        new FieldValueMetaData(TType.I64)));
-
 
151
    put(_Fields.IPS, new FieldMetaData("ips", TFieldRequirementType.DEFAULT, 
-
 
152
        new ListMetaData(TType.LIST, 
-
 
153
            new StructMetaData(TType.STRUCT, IPMap.class))));
-
 
154
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
155
        new EnumMetaData(TType.ENUM, AccountStatus.class)));
-
 
156
  }});
-
 
157
 
-
 
158
  static {
153
  static {
-
 
154
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
155
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
157
    tmpMap.put(_Fields.LAST_LOGIN, new org.apache.thrift.meta_data.FieldMetaData("lastLogin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
159
    tmpMap.put(_Fields.LAST_LOGOUT, new org.apache.thrift.meta_data.FieldMetaData("lastLogout", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
161
    tmpMap.put(_Fields.EMAIL_VERIFICATION_SENT_ON, new org.apache.thrift.meta_data.FieldMetaData("emailVerificationSentOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
163
    tmpMap.put(_Fields.SMS_VERIFICATION_SENT_ON, new org.apache.thrift.meta_data.FieldMetaData("smsVerificationSentOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
165
    tmpMap.put(_Fields.IS_EMAIL_VERIFIED, new org.apache.thrift.meta_data.FieldMetaData("isEmailVerified", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
167
    tmpMap.put(_Fields.IS_SMSVERIFIED, new org.apache.thrift.meta_data.FieldMetaData("isSMSVerified", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
169
    tmpMap.put(_Fields.ACTIVE_SINCE, new org.apache.thrift.meta_data.FieldMetaData("activeSince", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
171
    tmpMap.put(_Fields.IPS, new org.apache.thrift.meta_data.FieldMetaData("ips", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
172
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
173
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IPMap.class))));
-
 
174
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
175
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AccountStatus.class)));
-
 
176
    metaDataMap = Collections.unmodifiableMap(tmpMap);
159
    FieldMetaData.addStructMetaDataMap(UserState.class, metaDataMap);
177
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserState.class, metaDataMap);
160
  }
178
  }
161
 
179
 
162
  public UserState() {
180
  public UserState() {
163
  }
181
  }
164
 
182
 
Line 223... Line 241...
223
 
241
 
224
  public UserState deepCopy() {
242
  public UserState deepCopy() {
225
    return new UserState(this);
243
    return new UserState(this);
226
  }
244
  }
227
 
245
 
228
  @Deprecated
246
  @Override
229
  public UserState clone() {
247
  public void clear() {
-
 
248
    setUserIdIsSet(false);
-
 
249
    this.userId = 0;
-
 
250
    setLastLoginIsSet(false);
-
 
251
    this.lastLogin = 0;
-
 
252
    setLastLogoutIsSet(false);
-
 
253
    this.lastLogout = 0;
-
 
254
    setEmailVerificationSentOnIsSet(false);
-
 
255
    this.emailVerificationSentOn = 0;
-
 
256
    setSmsVerificationSentOnIsSet(false);
-
 
257
    this.smsVerificationSentOn = 0;
-
 
258
    setIsEmailVerifiedIsSet(false);
-
 
259
    this.isEmailVerified = false;
-
 
260
    setIsSMSVerifiedIsSet(false);
-
 
261
    this.isSMSVerified = false;
230
    return new UserState(this);
262
    setActiveSinceIsSet(false);
-
 
263
    this.activeSince = 0;
-
 
264
    this.ips = null;
-
 
265
    this.status = null;
231
  }
266
  }
232
 
267
 
233
  public long getUserId() {
268
  public long getUserId() {
234
    return this.userId;
269
    return this.userId;
235
  }
270
  }
236
 
271
 
237
  public UserState setUserId(long userId) {
272
  public void setUserId(long userId) {
238
    this.userId = userId;
273
    this.userId = userId;
239
    setUserIdIsSet(true);
274
    setUserIdIsSet(true);
240
    return this;
-
 
241
  }
275
  }
242
 
276
 
243
  public void unsetUserId() {
277
  public void unsetUserId() {
244
    __isset_bit_vector.clear(__USERID_ISSET_ID);
278
    __isset_bit_vector.clear(__USERID_ISSET_ID);
245
  }
279
  }
246
 
280
 
247
  /** Returns true if field userId is set (has been asigned a value) and false otherwise */
281
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
248
  public boolean isSetUserId() {
282
  public boolean isSetUserId() {
249
    return __isset_bit_vector.get(__USERID_ISSET_ID);
283
    return __isset_bit_vector.get(__USERID_ISSET_ID);
250
  }
284
  }
251
 
285
 
252
  public void setUserIdIsSet(boolean value) {
286
  public void setUserIdIsSet(boolean value) {
Line 255... Line 289...
255
 
289
 
256
  public long getLastLogin() {
290
  public long getLastLogin() {
257
    return this.lastLogin;
291
    return this.lastLogin;
258
  }
292
  }
259
 
293
 
260
  public UserState setLastLogin(long lastLogin) {
294
  public void setLastLogin(long lastLogin) {
261
    this.lastLogin = lastLogin;
295
    this.lastLogin = lastLogin;
262
    setLastLoginIsSet(true);
296
    setLastLoginIsSet(true);
263
    return this;
-
 
264
  }
297
  }
265
 
298
 
266
  public void unsetLastLogin() {
299
  public void unsetLastLogin() {
267
    __isset_bit_vector.clear(__LASTLOGIN_ISSET_ID);
300
    __isset_bit_vector.clear(__LASTLOGIN_ISSET_ID);
268
  }
301
  }
269
 
302
 
270
  /** Returns true if field lastLogin is set (has been asigned a value) and false otherwise */
303
  /** Returns true if field lastLogin is set (has been assigned a value) and false otherwise */
271
  public boolean isSetLastLogin() {
304
  public boolean isSetLastLogin() {
272
    return __isset_bit_vector.get(__LASTLOGIN_ISSET_ID);
305
    return __isset_bit_vector.get(__LASTLOGIN_ISSET_ID);
273
  }
306
  }
274
 
307
 
275
  public void setLastLoginIsSet(boolean value) {
308
  public void setLastLoginIsSet(boolean value) {
Line 278... Line 311...
278
 
311
 
279
  public long getLastLogout() {
312
  public long getLastLogout() {
280
    return this.lastLogout;
313
    return this.lastLogout;
281
  }
314
  }
282
 
315
 
283
  public UserState setLastLogout(long lastLogout) {
316
  public void setLastLogout(long lastLogout) {
284
    this.lastLogout = lastLogout;
317
    this.lastLogout = lastLogout;
285
    setLastLogoutIsSet(true);
318
    setLastLogoutIsSet(true);
286
    return this;
-
 
287
  }
319
  }
288
 
320
 
289
  public void unsetLastLogout() {
321
  public void unsetLastLogout() {
290
    __isset_bit_vector.clear(__LASTLOGOUT_ISSET_ID);
322
    __isset_bit_vector.clear(__LASTLOGOUT_ISSET_ID);
291
  }
323
  }
292
 
324
 
293
  /** Returns true if field lastLogout is set (has been asigned a value) and false otherwise */
325
  /** Returns true if field lastLogout is set (has been assigned a value) and false otherwise */
294
  public boolean isSetLastLogout() {
326
  public boolean isSetLastLogout() {
295
    return __isset_bit_vector.get(__LASTLOGOUT_ISSET_ID);
327
    return __isset_bit_vector.get(__LASTLOGOUT_ISSET_ID);
296
  }
328
  }
297
 
329
 
298
  public void setLastLogoutIsSet(boolean value) {
330
  public void setLastLogoutIsSet(boolean value) {
Line 301... Line 333...
301
 
333
 
302
  public long getEmailVerificationSentOn() {
334
  public long getEmailVerificationSentOn() {
303
    return this.emailVerificationSentOn;
335
    return this.emailVerificationSentOn;
304
  }
336
  }
305
 
337
 
306
  public UserState setEmailVerificationSentOn(long emailVerificationSentOn) {
338
  public void setEmailVerificationSentOn(long emailVerificationSentOn) {
307
    this.emailVerificationSentOn = emailVerificationSentOn;
339
    this.emailVerificationSentOn = emailVerificationSentOn;
308
    setEmailVerificationSentOnIsSet(true);
340
    setEmailVerificationSentOnIsSet(true);
309
    return this;
-
 
310
  }
341
  }
311
 
342
 
312
  public void unsetEmailVerificationSentOn() {
343
  public void unsetEmailVerificationSentOn() {
313
    __isset_bit_vector.clear(__EMAILVERIFICATIONSENTON_ISSET_ID);
344
    __isset_bit_vector.clear(__EMAILVERIFICATIONSENTON_ISSET_ID);
314
  }
345
  }
315
 
346
 
316
  /** Returns true if field emailVerificationSentOn is set (has been asigned a value) and false otherwise */
347
  /** Returns true if field emailVerificationSentOn is set (has been assigned a value) and false otherwise */
317
  public boolean isSetEmailVerificationSentOn() {
348
  public boolean isSetEmailVerificationSentOn() {
318
    return __isset_bit_vector.get(__EMAILVERIFICATIONSENTON_ISSET_ID);
349
    return __isset_bit_vector.get(__EMAILVERIFICATIONSENTON_ISSET_ID);
319
  }
350
  }
320
 
351
 
321
  public void setEmailVerificationSentOnIsSet(boolean value) {
352
  public void setEmailVerificationSentOnIsSet(boolean value) {
Line 324... Line 355...
324
 
355
 
325
  public long getSmsVerificationSentOn() {
356
  public long getSmsVerificationSentOn() {
326
    return this.smsVerificationSentOn;
357
    return this.smsVerificationSentOn;
327
  }
358
  }
328
 
359
 
329
  public UserState setSmsVerificationSentOn(long smsVerificationSentOn) {
360
  public void setSmsVerificationSentOn(long smsVerificationSentOn) {
330
    this.smsVerificationSentOn = smsVerificationSentOn;
361
    this.smsVerificationSentOn = smsVerificationSentOn;
331
    setSmsVerificationSentOnIsSet(true);
362
    setSmsVerificationSentOnIsSet(true);
332
    return this;
-
 
333
  }
363
  }
334
 
364
 
335
  public void unsetSmsVerificationSentOn() {
365
  public void unsetSmsVerificationSentOn() {
336
    __isset_bit_vector.clear(__SMSVERIFICATIONSENTON_ISSET_ID);
366
    __isset_bit_vector.clear(__SMSVERIFICATIONSENTON_ISSET_ID);
337
  }
367
  }
338
 
368
 
339
  /** Returns true if field smsVerificationSentOn is set (has been asigned a value) and false otherwise */
369
  /** Returns true if field smsVerificationSentOn is set (has been assigned a value) and false otherwise */
340
  public boolean isSetSmsVerificationSentOn() {
370
  public boolean isSetSmsVerificationSentOn() {
341
    return __isset_bit_vector.get(__SMSVERIFICATIONSENTON_ISSET_ID);
371
    return __isset_bit_vector.get(__SMSVERIFICATIONSENTON_ISSET_ID);
342
  }
372
  }
343
 
373
 
344
  public void setSmsVerificationSentOnIsSet(boolean value) {
374
  public void setSmsVerificationSentOnIsSet(boolean value) {
Line 347... Line 377...
347
 
377
 
348
  public boolean isIsEmailVerified() {
378
  public boolean isIsEmailVerified() {
349
    return this.isEmailVerified;
379
    return this.isEmailVerified;
350
  }
380
  }
351
 
381
 
352
  public UserState setIsEmailVerified(boolean isEmailVerified) {
382
  public void setIsEmailVerified(boolean isEmailVerified) {
353
    this.isEmailVerified = isEmailVerified;
383
    this.isEmailVerified = isEmailVerified;
354
    setIsEmailVerifiedIsSet(true);
384
    setIsEmailVerifiedIsSet(true);
355
    return this;
-
 
356
  }
385
  }
357
 
386
 
358
  public void unsetIsEmailVerified() {
387
  public void unsetIsEmailVerified() {
359
    __isset_bit_vector.clear(__ISEMAILVERIFIED_ISSET_ID);
388
    __isset_bit_vector.clear(__ISEMAILVERIFIED_ISSET_ID);
360
  }
389
  }
361
 
390
 
362
  /** Returns true if field isEmailVerified is set (has been asigned a value) and false otherwise */
391
  /** Returns true if field isEmailVerified is set (has been assigned a value) and false otherwise */
363
  public boolean isSetIsEmailVerified() {
392
  public boolean isSetIsEmailVerified() {
364
    return __isset_bit_vector.get(__ISEMAILVERIFIED_ISSET_ID);
393
    return __isset_bit_vector.get(__ISEMAILVERIFIED_ISSET_ID);
365
  }
394
  }
366
 
395
 
367
  public void setIsEmailVerifiedIsSet(boolean value) {
396
  public void setIsEmailVerifiedIsSet(boolean value) {
Line 370... Line 399...
370
 
399
 
371
  public boolean isIsSMSVerified() {
400
  public boolean isIsSMSVerified() {
372
    return this.isSMSVerified;
401
    return this.isSMSVerified;
373
  }
402
  }
374
 
403
 
375
  public UserState setIsSMSVerified(boolean isSMSVerified) {
404
  public void setIsSMSVerified(boolean isSMSVerified) {
376
    this.isSMSVerified = isSMSVerified;
405
    this.isSMSVerified = isSMSVerified;
377
    setIsSMSVerifiedIsSet(true);
406
    setIsSMSVerifiedIsSet(true);
378
    return this;
-
 
379
  }
407
  }
380
 
408
 
381
  public void unsetIsSMSVerified() {
409
  public void unsetIsSMSVerified() {
382
    __isset_bit_vector.clear(__ISSMSVERIFIED_ISSET_ID);
410
    __isset_bit_vector.clear(__ISSMSVERIFIED_ISSET_ID);
383
  }
411
  }
384
 
412
 
385
  /** Returns true if field isSMSVerified is set (has been asigned a value) and false otherwise */
413
  /** Returns true if field isSMSVerified is set (has been assigned a value) and false otherwise */
386
  public boolean isSetIsSMSVerified() {
414
  public boolean isSetIsSMSVerified() {
387
    return __isset_bit_vector.get(__ISSMSVERIFIED_ISSET_ID);
415
    return __isset_bit_vector.get(__ISSMSVERIFIED_ISSET_ID);
388
  }
416
  }
389
 
417
 
390
  public void setIsSMSVerifiedIsSet(boolean value) {
418
  public void setIsSMSVerifiedIsSet(boolean value) {
Line 393... Line 421...
393
 
421
 
394
  public long getActiveSince() {
422
  public long getActiveSince() {
395
    return this.activeSince;
423
    return this.activeSince;
396
  }
424
  }
397
 
425
 
398
  public UserState setActiveSince(long activeSince) {
426
  public void setActiveSince(long activeSince) {
399
    this.activeSince = activeSince;
427
    this.activeSince = activeSince;
400
    setActiveSinceIsSet(true);
428
    setActiveSinceIsSet(true);
401
    return this;
-
 
402
  }
429
  }
403
 
430
 
404
  public void unsetActiveSince() {
431
  public void unsetActiveSince() {
405
    __isset_bit_vector.clear(__ACTIVESINCE_ISSET_ID);
432
    __isset_bit_vector.clear(__ACTIVESINCE_ISSET_ID);
406
  }
433
  }
407
 
434
 
408
  /** Returns true if field activeSince is set (has been asigned a value) and false otherwise */
435
  /** Returns true if field activeSince is set (has been assigned a value) and false otherwise */
409
  public boolean isSetActiveSince() {
436
  public boolean isSetActiveSince() {
410
    return __isset_bit_vector.get(__ACTIVESINCE_ISSET_ID);
437
    return __isset_bit_vector.get(__ACTIVESINCE_ISSET_ID);
411
  }
438
  }
412
 
439
 
413
  public void setActiveSinceIsSet(boolean value) {
440
  public void setActiveSinceIsSet(boolean value) {
Line 431... Line 458...
431
 
458
 
432
  public List<IPMap> getIps() {
459
  public List<IPMap> getIps() {
433
    return this.ips;
460
    return this.ips;
434
  }
461
  }
435
 
462
 
436
  public UserState setIps(List<IPMap> ips) {
463
  public void setIps(List<IPMap> ips) {
437
    this.ips = ips;
464
    this.ips = ips;
438
    return this;
-
 
439
  }
465
  }
440
 
466
 
441
  public void unsetIps() {
467
  public void unsetIps() {
442
    this.ips = null;
468
    this.ips = null;
443
  }
469
  }
444
 
470
 
445
  /** Returns true if field ips is set (has been asigned a value) and false otherwise */
471
  /** Returns true if field ips is set (has been assigned a value) and false otherwise */
446
  public boolean isSetIps() {
472
  public boolean isSetIps() {
447
    return this.ips != null;
473
    return this.ips != null;
448
  }
474
  }
449
 
475
 
450
  public void setIpsIsSet(boolean value) {
476
  public void setIpsIsSet(boolean value) {
Line 463... Line 489...
463
 
489
 
464
  /**
490
  /**
465
   * 
491
   * 
466
   * @see AccountStatus
492
   * @see AccountStatus
467
   */
493
   */
468
  public UserState setStatus(AccountStatus status) {
494
  public void setStatus(AccountStatus status) {
469
    this.status = status;
495
    this.status = status;
470
    return this;
-
 
471
  }
496
  }
472
 
497
 
473
  public void unsetStatus() {
498
  public void unsetStatus() {
474
    this.status = null;
499
    this.status = null;
475
  }
500
  }
476
 
501
 
477
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
502
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
478
  public boolean isSetStatus() {
503
  public boolean isSetStatus() {
479
    return this.status != null;
504
    return this.status != null;
480
  }
505
  }
481
 
506
 
482
  public void setStatusIsSet(boolean value) {
507
  public void setStatusIsSet(boolean value) {
Line 568... Line 593...
568
      break;
593
      break;
569
 
594
 
570
    }
595
    }
571
  }
596
  }
572
 
597
 
573
  public void setFieldValue(int fieldID, Object value) {
-
 
574
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
575
  }
-
 
576
 
-
 
577
  public Object getFieldValue(_Fields field) {
598
  public Object getFieldValue(_Fields field) {
578
    switch (field) {
599
    switch (field) {
579
    case USER_ID:
600
    case USER_ID:
580
      return new Long(getUserId());
601
      return Long.valueOf(getUserId());
581
 
602
 
582
    case LAST_LOGIN:
603
    case LAST_LOGIN:
583
      return new Long(getLastLogin());
604
      return Long.valueOf(getLastLogin());
584
 
605
 
585
    case LAST_LOGOUT:
606
    case LAST_LOGOUT:
586
      return new Long(getLastLogout());
607
      return Long.valueOf(getLastLogout());
587
 
608
 
588
    case EMAIL_VERIFICATION_SENT_ON:
609
    case EMAIL_VERIFICATION_SENT_ON:
589
      return new Long(getEmailVerificationSentOn());
610
      return Long.valueOf(getEmailVerificationSentOn());
590
 
611
 
591
    case SMS_VERIFICATION_SENT_ON:
612
    case SMS_VERIFICATION_SENT_ON:
592
      return new Long(getSmsVerificationSentOn());
613
      return Long.valueOf(getSmsVerificationSentOn());
593
 
614
 
594
    case IS_EMAIL_VERIFIED:
615
    case IS_EMAIL_VERIFIED:
595
      return new Boolean(isIsEmailVerified());
616
      return Boolean.valueOf(isIsEmailVerified());
596
 
617
 
597
    case IS_SMSVERIFIED:
618
    case IS_SMSVERIFIED:
598
      return new Boolean(isIsSMSVerified());
619
      return Boolean.valueOf(isIsSMSVerified());
599
 
620
 
600
    case ACTIVE_SINCE:
621
    case ACTIVE_SINCE:
601
      return new Long(getActiveSince());
622
      return Long.valueOf(getActiveSince());
602
 
623
 
603
    case IPS:
624
    case IPS:
604
      return getIps();
625
      return getIps();
605
 
626
 
606
    case STATUS:
627
    case STATUS:
Line 608... Line 629...
608
 
629
 
609
    }
630
    }
610
    throw new IllegalStateException();
631
    throw new IllegalStateException();
611
  }
632
  }
612
 
633
 
613
  public Object getFieldValue(int fieldId) {
-
 
614
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
615
  }
-
 
616
 
-
 
617
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
634
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
618
  public boolean isSet(_Fields field) {
635
  public boolean isSet(_Fields field) {
-
 
636
    if (field == null) {
-
 
637
      throw new IllegalArgumentException();
-
 
638
    }
-
 
639
 
619
    switch (field) {
640
    switch (field) {
620
    case USER_ID:
641
    case USER_ID:
621
      return isSetUserId();
642
      return isSetUserId();
622
    case LAST_LOGIN:
643
    case LAST_LOGIN:
623
      return isSetLastLogin();
644
      return isSetLastLogin();
Line 639... Line 660...
639
      return isSetStatus();
660
      return isSetStatus();
640
    }
661
    }
641
    throw new IllegalStateException();
662
    throw new IllegalStateException();
642
  }
663
  }
643
 
664
 
644
  public boolean isSet(int fieldID) {
-
 
645
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
646
  }
-
 
647
 
-
 
648
  @Override
665
  @Override
649
  public boolean equals(Object that) {
666
  public boolean equals(Object that) {
650
    if (that == null)
667
    if (that == null)
651
      return false;
668
      return false;
652
    if (that instanceof UserState)
669
    if (that instanceof UserState)
Line 762... Line 779...
762
    }
779
    }
763
 
780
 
764
    int lastComparison = 0;
781
    int lastComparison = 0;
765
    UserState typedOther = (UserState)other;
782
    UserState typedOther = (UserState)other;
766
 
783
 
767
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
784
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
768
    if (lastComparison != 0) {
785
    if (lastComparison != 0) {
769
      return lastComparison;
786
      return lastComparison;
770
    }
787
    }
-
 
788
    if (isSetUserId()) {
771
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
789
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
772
    if (lastComparison != 0) {
790
      if (lastComparison != 0) {
773
      return lastComparison;
791
        return lastComparison;
-
 
792
      }
774
    }
793
    }
775
    lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(isSetLastLogin());
794
    lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(typedOther.isSetLastLogin());
776
    if (lastComparison != 0) {
795
    if (lastComparison != 0) {
777
      return lastComparison;
796
      return lastComparison;
778
    }
797
    }
-
 
798
    if (isSetLastLogin()) {
779
    lastComparison = TBaseHelper.compareTo(lastLogin, typedOther.lastLogin);
799
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogin, typedOther.lastLogin);
780
    if (lastComparison != 0) {
800
      if (lastComparison != 0) {
781
      return lastComparison;
801
        return lastComparison;
-
 
802
      }
782
    }
803
    }
783
    lastComparison = Boolean.valueOf(isSetLastLogout()).compareTo(isSetLastLogout());
804
    lastComparison = Boolean.valueOf(isSetLastLogout()).compareTo(typedOther.isSetLastLogout());
784
    if (lastComparison != 0) {
805
    if (lastComparison != 0) {
785
      return lastComparison;
806
      return lastComparison;
786
    }
807
    }
-
 
808
    if (isSetLastLogout()) {
787
    lastComparison = TBaseHelper.compareTo(lastLogout, typedOther.lastLogout);
809
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogout, typedOther.lastLogout);
788
    if (lastComparison != 0) {
810
      if (lastComparison != 0) {
789
      return lastComparison;
811
        return lastComparison;
-
 
812
      }
790
    }
813
    }
791
    lastComparison = Boolean.valueOf(isSetEmailVerificationSentOn()).compareTo(isSetEmailVerificationSentOn());
814
    lastComparison = Boolean.valueOf(isSetEmailVerificationSentOn()).compareTo(typedOther.isSetEmailVerificationSentOn());
792
    if (lastComparison != 0) {
815
    if (lastComparison != 0) {
793
      return lastComparison;
816
      return lastComparison;
794
    }
817
    }
-
 
818
    if (isSetEmailVerificationSentOn()) {
795
    lastComparison = TBaseHelper.compareTo(emailVerificationSentOn, typedOther.emailVerificationSentOn);
819
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailVerificationSentOn, typedOther.emailVerificationSentOn);
796
    if (lastComparison != 0) {
820
      if (lastComparison != 0) {
797
      return lastComparison;
821
        return lastComparison;
-
 
822
      }
798
    }
823
    }
799
    lastComparison = Boolean.valueOf(isSetSmsVerificationSentOn()).compareTo(isSetSmsVerificationSentOn());
824
    lastComparison = Boolean.valueOf(isSetSmsVerificationSentOn()).compareTo(typedOther.isSetSmsVerificationSentOn());
800
    if (lastComparison != 0) {
825
    if (lastComparison != 0) {
801
      return lastComparison;
826
      return lastComparison;
802
    }
827
    }
-
 
828
    if (isSetSmsVerificationSentOn()) {
803
    lastComparison = TBaseHelper.compareTo(smsVerificationSentOn, typedOther.smsVerificationSentOn);
829
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsVerificationSentOn, typedOther.smsVerificationSentOn);
804
    if (lastComparison != 0) {
830
      if (lastComparison != 0) {
805
      return lastComparison;
831
        return lastComparison;
-
 
832
      }
806
    }
833
    }
807
    lastComparison = Boolean.valueOf(isSetIsEmailVerified()).compareTo(isSetIsEmailVerified());
834
    lastComparison = Boolean.valueOf(isSetIsEmailVerified()).compareTo(typedOther.isSetIsEmailVerified());
808
    if (lastComparison != 0) {
835
    if (lastComparison != 0) {
809
      return lastComparison;
836
      return lastComparison;
810
    }
837
    }
-
 
838
    if (isSetIsEmailVerified()) {
811
    lastComparison = TBaseHelper.compareTo(isEmailVerified, typedOther.isEmailVerified);
839
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmailVerified, typedOther.isEmailVerified);
812
    if (lastComparison != 0) {
840
      if (lastComparison != 0) {
813
      return lastComparison;
841
        return lastComparison;
-
 
842
      }
814
    }
843
    }
815
    lastComparison = Boolean.valueOf(isSetIsSMSVerified()).compareTo(isSetIsSMSVerified());
844
    lastComparison = Boolean.valueOf(isSetIsSMSVerified()).compareTo(typedOther.isSetIsSMSVerified());
816
    if (lastComparison != 0) {
845
    if (lastComparison != 0) {
817
      return lastComparison;
846
      return lastComparison;
818
    }
847
    }
-
 
848
    if (isSetIsSMSVerified()) {
819
    lastComparison = TBaseHelper.compareTo(isSMSVerified, typedOther.isSMSVerified);
849
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSMSVerified, typedOther.isSMSVerified);
820
    if (lastComparison != 0) {
850
      if (lastComparison != 0) {
821
      return lastComparison;
851
        return lastComparison;
-
 
852
      }
822
    }
853
    }
823
    lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(isSetActiveSince());
854
    lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(typedOther.isSetActiveSince());
824
    if (lastComparison != 0) {
855
    if (lastComparison != 0) {
825
      return lastComparison;
856
      return lastComparison;
826
    }
857
    }
-
 
858
    if (isSetActiveSince()) {
827
    lastComparison = TBaseHelper.compareTo(activeSince, typedOther.activeSince);
859
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeSince, typedOther.activeSince);
828
    if (lastComparison != 0) {
860
      if (lastComparison != 0) {
829
      return lastComparison;
861
        return lastComparison;
-
 
862
      }
830
    }
863
    }
831
    lastComparison = Boolean.valueOf(isSetIps()).compareTo(isSetIps());
864
    lastComparison = Boolean.valueOf(isSetIps()).compareTo(typedOther.isSetIps());
832
    if (lastComparison != 0) {
865
    if (lastComparison != 0) {
833
      return lastComparison;
866
      return lastComparison;
834
    }
867
    }
-
 
868
    if (isSetIps()) {
835
    lastComparison = TBaseHelper.compareTo(ips, typedOther.ips);
869
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ips, typedOther.ips);
836
    if (lastComparison != 0) {
870
      if (lastComparison != 0) {
837
      return lastComparison;
871
        return lastComparison;
-
 
872
      }
838
    }
873
    }
839
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
874
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
840
    if (lastComparison != 0) {
875
    if (lastComparison != 0) {
841
      return lastComparison;
876
      return lastComparison;
842
    }
877
    }
-
 
878
    if (isSetStatus()) {
843
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
879
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
844
    if (lastComparison != 0) {
880
      if (lastComparison != 0) {
845
      return lastComparison;
881
        return lastComparison;
-
 
882
      }
846
    }
883
    }
847
    return 0;
884
    return 0;
848
  }
885
  }
849
 
886
 
-
 
887
  public _Fields fieldForId(int fieldId) {
-
 
888
    return _Fields.findByThriftId(fieldId);
-
 
889
  }
-
 
890
 
850
  public void read(TProtocol iprot) throws TException {
891
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
851
    TField field;
892
    org.apache.thrift.protocol.TField field;
852
    iprot.readStructBegin();
893
    iprot.readStructBegin();
853
    while (true)
894
    while (true)
854
    {
895
    {
855
      field = iprot.readFieldBegin();
896
      field = iprot.readFieldBegin();
856
      if (field.type == TType.STOP) { 
897
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
857
        break;
898
        break;
858
      }
899
      }
859
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
860
      if (fieldId == null) {
-
 
861
        TProtocolUtil.skip(iprot, field.type);
-
 
862
      } else {
-
 
863
        switch (fieldId) {
900
      switch (field.id) {
864
          case USER_ID:
901
        case 1: // USER_ID
865
            if (field.type == TType.I64) {
902
          if (field.type == org.apache.thrift.protocol.TType.I64) {
866
              this.userId = iprot.readI64();
903
            this.userId = iprot.readI64();
867
              setUserIdIsSet(true);
904
            setUserIdIsSet(true);
868
            } else { 
905
          } else { 
869
              TProtocolUtil.skip(iprot, field.type);
906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
870
            }
907
          }
871
            break;
908
          break;
872
          case LAST_LOGIN:
909
        case 2: // LAST_LOGIN
873
            if (field.type == TType.I64) {
910
          if (field.type == org.apache.thrift.protocol.TType.I64) {
874
              this.lastLogin = iprot.readI64();
911
            this.lastLogin = iprot.readI64();
875
              setLastLoginIsSet(true);
912
            setLastLoginIsSet(true);
876
            } else { 
913
          } else { 
877
              TProtocolUtil.skip(iprot, field.type);
914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
878
            }
915
          }
879
            break;
916
          break;
880
          case LAST_LOGOUT:
917
        case 3: // LAST_LOGOUT
881
            if (field.type == TType.I64) {
918
          if (field.type == org.apache.thrift.protocol.TType.I64) {
882
              this.lastLogout = iprot.readI64();
919
            this.lastLogout = iprot.readI64();
883
              setLastLogoutIsSet(true);
920
            setLastLogoutIsSet(true);
884
            } else { 
921
          } else { 
885
              TProtocolUtil.skip(iprot, field.type);
922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
886
            }
923
          }
887
            break;
924
          break;
888
          case EMAIL_VERIFICATION_SENT_ON:
925
        case 4: // EMAIL_VERIFICATION_SENT_ON
889
            if (field.type == TType.I64) {
926
          if (field.type == org.apache.thrift.protocol.TType.I64) {
890
              this.emailVerificationSentOn = iprot.readI64();
927
            this.emailVerificationSentOn = iprot.readI64();
891
              setEmailVerificationSentOnIsSet(true);
928
            setEmailVerificationSentOnIsSet(true);
892
            } else { 
929
          } else { 
893
              TProtocolUtil.skip(iprot, field.type);
930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
894
            }
931
          }
895
            break;
932
          break;
896
          case SMS_VERIFICATION_SENT_ON:
933
        case 5: // SMS_VERIFICATION_SENT_ON
897
            if (field.type == TType.I64) {
934
          if (field.type == org.apache.thrift.protocol.TType.I64) {
898
              this.smsVerificationSentOn = iprot.readI64();
935
            this.smsVerificationSentOn = iprot.readI64();
899
              setSmsVerificationSentOnIsSet(true);
936
            setSmsVerificationSentOnIsSet(true);
900
            } else { 
937
          } else { 
901
              TProtocolUtil.skip(iprot, field.type);
938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
902
            }
939
          }
903
            break;
940
          break;
904
          case IS_EMAIL_VERIFIED:
941
        case 6: // IS_EMAIL_VERIFIED
905
            if (field.type == TType.BOOL) {
942
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
906
              this.isEmailVerified = iprot.readBool();
943
            this.isEmailVerified = iprot.readBool();
907
              setIsEmailVerifiedIsSet(true);
944
            setIsEmailVerifiedIsSet(true);
908
            } else { 
945
          } else { 
909
              TProtocolUtil.skip(iprot, field.type);
946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
910
            }
947
          }
911
            break;
948
          break;
912
          case IS_SMSVERIFIED:
949
        case 7: // IS_SMSVERIFIED
913
            if (field.type == TType.BOOL) {
950
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
914
              this.isSMSVerified = iprot.readBool();
951
            this.isSMSVerified = iprot.readBool();
915
              setIsSMSVerifiedIsSet(true);
952
            setIsSMSVerifiedIsSet(true);
916
            } else { 
953
          } else { 
917
              TProtocolUtil.skip(iprot, field.type);
954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
918
            }
955
          }
919
            break;
956
          break;
920
          case ACTIVE_SINCE:
957
        case 8: // ACTIVE_SINCE
921
            if (field.type == TType.I64) {
958
          if (field.type == org.apache.thrift.protocol.TType.I64) {
922
              this.activeSince = iprot.readI64();
959
            this.activeSince = iprot.readI64();
923
              setActiveSinceIsSet(true);
960
            setActiveSinceIsSet(true);
924
            } else { 
961
          } else { 
925
              TProtocolUtil.skip(iprot, field.type);
962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
926
            }
963
          }
927
            break;
964
          break;
928
          case IPS:
965
        case 9: // IPS
929
            if (field.type == TType.LIST) {
966
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
967
            {
-
 
968
              org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
-
 
969
              this.ips = new ArrayList<IPMap>(_list0.size);
-
 
970
              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
930
              {
971
              {
931
                TList _list0 = iprot.readListBegin();
-
 
932
                this.ips = new ArrayList<IPMap>(_list0.size);
-
 
933
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
-
 
934
                {
-
 
935
                  IPMap _elem2;
972
                IPMap _elem2; // required
936
                  _elem2 = new IPMap();
973
                _elem2 = new IPMap();
937
                  _elem2.read(iprot);
974
                _elem2.read(iprot);
938
                  this.ips.add(_elem2);
975
                this.ips.add(_elem2);
939
                }
-
 
940
                iprot.readListEnd();
-
 
941
              }
976
              }
942
            } else { 
977
              iprot.readListEnd();
943
              TProtocolUtil.skip(iprot, field.type);
-
 
944
            }
978
            }
-
 
979
          } else { 
-
 
980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
981
          }
945
            break;
982
          break;
946
          case STATUS:
983
        case 10: // STATUS
947
            if (field.type == TType.I32) {
984
          if (field.type == org.apache.thrift.protocol.TType.I32) {
948
              this.status = AccountStatus.findByValue(iprot.readI32());
985
            this.status = AccountStatus.findByValue(iprot.readI32());
949
            } else { 
986
          } else { 
950
              TProtocolUtil.skip(iprot, field.type);
987
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
951
            }
988
          }
952
            break;
989
          break;
953
        }
990
        default:
954
        iprot.readFieldEnd();
991
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
955
      }
992
      }
-
 
993
      iprot.readFieldEnd();
956
    }
994
    }
957
    iprot.readStructEnd();
995
    iprot.readStructEnd();
958
    validate();
996
    validate();
959
  }
997
  }
960
 
998
 
961
  public void write(TProtocol oprot) throws TException {
999
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
962
    validate();
1000
    validate();
963
 
1001
 
964
    oprot.writeStructBegin(STRUCT_DESC);
1002
    oprot.writeStructBegin(STRUCT_DESC);
965
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1003
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
966
    oprot.writeI64(this.userId);
1004
    oprot.writeI64(this.userId);
Line 987... Line 1025...
987
    oprot.writeI64(this.activeSince);
1025
    oprot.writeI64(this.activeSince);
988
    oprot.writeFieldEnd();
1026
    oprot.writeFieldEnd();
989
    if (this.ips != null) {
1027
    if (this.ips != null) {
990
      oprot.writeFieldBegin(IPS_FIELD_DESC);
1028
      oprot.writeFieldBegin(IPS_FIELD_DESC);
991
      {
1029
      {
992
        oprot.writeListBegin(new TList(TType.STRUCT, this.ips.size()));
1030
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.ips.size()));
993
        for (IPMap _iter3 : this.ips)
1031
        for (IPMap _iter3 : this.ips)
994
        {
1032
        {
995
          _iter3.write(oprot);
1033
          _iter3.write(oprot);
996
        }
1034
        }
997
        oprot.writeListEnd();
1035
        oprot.writeListEnd();
Line 1054... Line 1092...
1054
    if (!first) sb.append(", ");
1092
    if (!first) sb.append(", ");
1055
    sb.append("status:");
1093
    sb.append("status:");
1056
    if (this.status == null) {
1094
    if (this.status == null) {
1057
      sb.append("null");
1095
      sb.append("null");
1058
    } else {
1096
    } else {
1059
      String status_name = status.name();
-
 
1060
      if (status_name != null) {
-
 
1061
        sb.append(status_name);
-
 
1062
        sb.append(" (");
-
 
1063
      }
-
 
1064
      sb.append(this.status);
1097
      sb.append(this.status);
1065
      if (status_name != null) {
-
 
1066
        sb.append(")");
-
 
1067
      }
-
 
1068
    }
1098
    }
1069
    first = false;
1099
    first = false;
1070
    sb.append(")");
1100
    sb.append(")");
1071
    return sb.toString();
1101
    return sb.toString();
1072
  }
1102
  }
1073
 
1103
 
1074
  public void validate() throws TException {
1104
  public void validate() throws org.apache.thrift.TException {
1075
    // check for required fields
1105
    // check for required fields
1076
  }
1106
  }
1077
 
1107
 
-
 
1108
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1109
    try {
-
 
1110
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1111
    } catch (org.apache.thrift.TException te) {
-
 
1112
      throw new java.io.IOException(te);
-
 
1113
    }
-
 
1114
  }
-
 
1115
 
-
 
1116
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1117
    try {
-
 
1118
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1119
      __isset_bit_vector = new BitSet(1);
-
 
1120
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1121
    } catch (org.apache.thrift.TException te) {
-
 
1122
      throw new java.io.IOException(te);
-
 
1123
    }
-
 
1124
  }
-
 
1125
 
1078
}
1126
}
1079
 
1127