Subversion Repositories SmartDukaan

Rev

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

Rev 7169 Rev 7308
Line 34... Line 34...
34
  private static final org.apache.thrift.protocol.TField SALT_FIELD_DESC = new org.apache.thrift.protocol.TField("salt", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField SALT_FIELD_DESC = new org.apache.thrift.protocol.TField("salt", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)10);
35
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)11);
36
  private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)11);
37
  private static final org.apache.thrift.protocol.TField CIRCLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("circleId", org.apache.thrift.protocol.TType.I64, (short)12);
37
  private static final org.apache.thrift.protocol.TField CIRCLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("circleId", org.apache.thrift.protocol.TType.I64, (short)12);
38
  private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)13);
38
  private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)13);
-
 
39
  private static final org.apache.thrift.protocol.TField LINE1_FIELD_DESC = new org.apache.thrift.protocol.TField("line1", org.apache.thrift.protocol.TType.STRING, (short)14);
-
 
40
  private static final org.apache.thrift.protocol.TField LINE2_FIELD_DESC = new org.apache.thrift.protocol.TField("line2", org.apache.thrift.protocol.TType.STRING, (short)15);
-
 
41
  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)16);
-
 
42
  private static final org.apache.thrift.protocol.TField PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("pin", org.apache.thrift.protocol.TType.STRING, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)18);
-
 
44
  private static final org.apache.thrift.protocol.TField APPROVAL_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("approvalEmail", org.apache.thrift.protocol.TType.STRING, (short)19);
39
 
45
 
40
  private long id; // required
46
  private long id; // required
41
  private String hotspotId; // required
47
  private String hotspotId; // required
42
  private long companyId; // required
48
  private long companyId; // required
43
  private String name; // required
49
  private String name; // required
Line 48... Line 54...
48
  private String salt; // required
54
  private String salt; // required
49
  private String password; // required
55
  private String password; // required
50
  private boolean isActive; // required
56
  private boolean isActive; // required
51
  private long circleId; // required
57
  private long circleId; // required
52
  private String email; // required
58
  private String email; // required
-
 
59
  private String line1; // required
-
 
60
  private String line2; // required
-
 
61
  private String state; // required
-
 
62
  private String pin; // required
-
 
63
  private String phone; // required
-
 
64
  private String approvalEmail; // required
53
 
65
 
54
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56
    ID((short)1, "id"),
68
    ID((short)1, "id"),
57
    HOTSPOT_ID((short)2, "hotspotId"),
69
    HOTSPOT_ID((short)2, "hotspotId"),
Line 63... Line 75...
63
    CREDIT_LIMIT((short)8, "creditLimit"),
75
    CREDIT_LIMIT((short)8, "creditLimit"),
64
    SALT((short)9, "salt"),
76
    SALT((short)9, "salt"),
65
    PASSWORD((short)10, "password"),
77
    PASSWORD((short)10, "password"),
66
    IS_ACTIVE((short)11, "isActive"),
78
    IS_ACTIVE((short)11, "isActive"),
67
    CIRCLE_ID((short)12, "circleId"),
79
    CIRCLE_ID((short)12, "circleId"),
68
    EMAIL((short)13, "email");
80
    EMAIL((short)13, "email"),
-
 
81
    LINE1((short)14, "line1"),
-
 
82
    LINE2((short)15, "line2"),
-
 
83
    STATE((short)16, "state"),
-
 
84
    PIN((short)17, "pin"),
-
 
85
    PHONE((short)18, "phone"),
-
 
86
    APPROVAL_EMAIL((short)19, "approvalEmail");
69
 
87
 
70
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
 
89
 
72
    static {
90
    static {
73
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
91
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 104... Line 122...
104
          return IS_ACTIVE;
122
          return IS_ACTIVE;
105
        case 12: // CIRCLE_ID
123
        case 12: // CIRCLE_ID
106
          return CIRCLE_ID;
124
          return CIRCLE_ID;
107
        case 13: // EMAIL
125
        case 13: // EMAIL
108
          return EMAIL;
126
          return EMAIL;
-
 
127
        case 14: // LINE1
-
 
128
          return LINE1;
-
 
129
        case 15: // LINE2
-
 
130
          return LINE2;
-
 
131
        case 16: // STATE
-
 
132
          return STATE;
-
 
133
        case 17: // PIN
-
 
134
          return PIN;
-
 
135
        case 18: // PHONE
-
 
136
          return PHONE;
-
 
137
        case 19: // APPROVAL_EMAIL
-
 
138
          return APPROVAL_EMAIL;
109
        default:
139
        default:
110
          return null;
140
          return null;
111
      }
141
      }
112
    }
142
    }
113
 
143
 
Line 182... Line 212...
182
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
183
    tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
213
    tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
184
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
185
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
215
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
217
    tmpMap.put(_Fields.LINE1, new org.apache.thrift.meta_data.FieldMetaData("line1", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
219
    tmpMap.put(_Fields.LINE2, new org.apache.thrift.meta_data.FieldMetaData("line2", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
221
    tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
223
    tmpMap.put(_Fields.PIN, new org.apache.thrift.meta_data.FieldMetaData("pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
225
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
227
    tmpMap.put(_Fields.APPROVAL_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("approvalEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
228
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
187
    metaDataMap = Collections.unmodifiableMap(tmpMap);
229
    metaDataMap = Collections.unmodifiableMap(tmpMap);
188
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HotspotStore.class, metaDataMap);
230
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HotspotStore.class, metaDataMap);
189
  }
231
  }
190
 
232
 
191
  public HotspotStore() {
233
  public HotspotStore() {
Line 202... Line 244...
202
    long creditLimit,
244
    long creditLimit,
203
    String salt,
245
    String salt,
204
    String password,
246
    String password,
205
    boolean isActive,
247
    boolean isActive,
206
    long circleId,
248
    long circleId,
207
    String email)
249
    String email,
-
 
250
    String line1,
-
 
251
    String line2,
-
 
252
    String state,
-
 
253
    String pin,
-
 
254
    String phone,
-
 
255
    String approvalEmail)
208
  {
256
  {
209
    this();
257
    this();
210
    this.id = id;
258
    this.id = id;
211
    setIdIsSet(true);
259
    setIdIsSet(true);
212
    this.hotspotId = hotspotId;
260
    this.hotspotId = hotspotId;
Line 225... Line 273...
225
    this.isActive = isActive;
273
    this.isActive = isActive;
226
    setIsActiveIsSet(true);
274
    setIsActiveIsSet(true);
227
    this.circleId = circleId;
275
    this.circleId = circleId;
228
    setCircleIdIsSet(true);
276
    setCircleIdIsSet(true);
229
    this.email = email;
277
    this.email = email;
-
 
278
    this.line1 = line1;
-
 
279
    this.line2 = line2;
-
 
280
    this.state = state;
-
 
281
    this.pin = pin;
-
 
282
    this.phone = phone;
-
 
283
    this.approvalEmail = approvalEmail;
230
  }
284
  }
231
 
285
 
232
  /**
286
  /**
233
   * Performs a deep copy on <i>other</i>.
287
   * Performs a deep copy on <i>other</i>.
234
   */
288
   */
Line 258... Line 312...
258
    this.isActive = other.isActive;
312
    this.isActive = other.isActive;
259
    this.circleId = other.circleId;
313
    this.circleId = other.circleId;
260
    if (other.isSetEmail()) {
314
    if (other.isSetEmail()) {
261
      this.email = other.email;
315
      this.email = other.email;
262
    }
316
    }
-
 
317
    if (other.isSetLine1()) {
-
 
318
      this.line1 = other.line1;
-
 
319
    }
-
 
320
    if (other.isSetLine2()) {
-
 
321
      this.line2 = other.line2;
-
 
322
    }
-
 
323
    if (other.isSetState()) {
-
 
324
      this.state = other.state;
-
 
325
    }
-
 
326
    if (other.isSetPin()) {
-
 
327
      this.pin = other.pin;
-
 
328
    }
-
 
329
    if (other.isSetPhone()) {
-
 
330
      this.phone = other.phone;
-
 
331
    }
-
 
332
    if (other.isSetApprovalEmail()) {
-
 
333
      this.approvalEmail = other.approvalEmail;
-
 
334
    }
263
  }
335
  }
264
 
336
 
265
  public HotspotStore deepCopy() {
337
  public HotspotStore deepCopy() {
266
    return new HotspotStore(this);
338
    return new HotspotStore(this);
267
  }
339
  }
Line 286... Line 358...
286
    setIsActiveIsSet(false);
358
    setIsActiveIsSet(false);
287
    this.isActive = false;
359
    this.isActive = false;
288
    setCircleIdIsSet(false);
360
    setCircleIdIsSet(false);
289
    this.circleId = 0;
361
    this.circleId = 0;
290
    this.email = null;
362
    this.email = null;
-
 
363
    this.line1 = null;
-
 
364
    this.line2 = null;
-
 
365
    this.state = null;
-
 
366
    this.pin = null;
-
 
367
    this.phone = null;
-
 
368
    this.approvalEmail = null;
291
  }
369
  }
292
 
370
 
293
  public long getId() {
371
  public long getId() {
294
    return this.id;
372
    return this.id;
295
  }
373
  }
Line 580... Line 658...
580
    if (!value) {
658
    if (!value) {
581
      this.email = null;
659
      this.email = null;
582
    }
660
    }
583
  }
661
  }
584
 
662
 
-
 
663
  public String getLine1() {
-
 
664
    return this.line1;
-
 
665
  }
-
 
666
 
-
 
667
  public void setLine1(String line1) {
-
 
668
    this.line1 = line1;
-
 
669
  }
-
 
670
 
-
 
671
  public void unsetLine1() {
-
 
672
    this.line1 = null;
-
 
673
  }
-
 
674
 
-
 
675
  /** Returns true if field line1 is set (has been assigned a value) and false otherwise */
-
 
676
  public boolean isSetLine1() {
-
 
677
    return this.line1 != null;
-
 
678
  }
-
 
679
 
-
 
680
  public void setLine1IsSet(boolean value) {
-
 
681
    if (!value) {
-
 
682
      this.line1 = null;
-
 
683
    }
-
 
684
  }
-
 
685
 
-
 
686
  public String getLine2() {
-
 
687
    return this.line2;
-
 
688
  }
-
 
689
 
-
 
690
  public void setLine2(String line2) {
-
 
691
    this.line2 = line2;
-
 
692
  }
-
 
693
 
-
 
694
  public void unsetLine2() {
-
 
695
    this.line2 = null;
-
 
696
  }
-
 
697
 
-
 
698
  /** Returns true if field line2 is set (has been assigned a value) and false otherwise */
-
 
699
  public boolean isSetLine2() {
-
 
700
    return this.line2 != null;
-
 
701
  }
-
 
702
 
-
 
703
  public void setLine2IsSet(boolean value) {
-
 
704
    if (!value) {
-
 
705
      this.line2 = null;
-
 
706
    }
-
 
707
  }
-
 
708
 
-
 
709
  public String getState() {
-
 
710
    return this.state;
-
 
711
  }
-
 
712
 
-
 
713
  public void setState(String state) {
-
 
714
    this.state = state;
-
 
715
  }
-
 
716
 
-
 
717
  public void unsetState() {
-
 
718
    this.state = null;
-
 
719
  }
-
 
720
 
-
 
721
  /** Returns true if field state is set (has been assigned a value) and false otherwise */
-
 
722
  public boolean isSetState() {
-
 
723
    return this.state != null;
-
 
724
  }
-
 
725
 
-
 
726
  public void setStateIsSet(boolean value) {
-
 
727
    if (!value) {
-
 
728
      this.state = null;
-
 
729
    }
-
 
730
  }
-
 
731
 
-
 
732
  public String getPin() {
-
 
733
    return this.pin;
-
 
734
  }
-
 
735
 
-
 
736
  public void setPin(String pin) {
-
 
737
    this.pin = pin;
-
 
738
  }
-
 
739
 
-
 
740
  public void unsetPin() {
-
 
741
    this.pin = null;
-
 
742
  }
-
 
743
 
-
 
744
  /** Returns true if field pin is set (has been assigned a value) and false otherwise */
-
 
745
  public boolean isSetPin() {
-
 
746
    return this.pin != null;
-
 
747
  }
-
 
748
 
-
 
749
  public void setPinIsSet(boolean value) {
-
 
750
    if (!value) {
-
 
751
      this.pin = null;
-
 
752
    }
-
 
753
  }
-
 
754
 
-
 
755
  public String getPhone() {
-
 
756
    return this.phone;
-
 
757
  }
-
 
758
 
-
 
759
  public void setPhone(String phone) {
-
 
760
    this.phone = phone;
-
 
761
  }
-
 
762
 
-
 
763
  public void unsetPhone() {
-
 
764
    this.phone = null;
-
 
765
  }
-
 
766
 
-
 
767
  /** Returns true if field phone is set (has been assigned a value) and false otherwise */
-
 
768
  public boolean isSetPhone() {
-
 
769
    return this.phone != null;
-
 
770
  }
-
 
771
 
-
 
772
  public void setPhoneIsSet(boolean value) {
-
 
773
    if (!value) {
-
 
774
      this.phone = null;
-
 
775
    }
-
 
776
  }
-
 
777
 
-
 
778
  public String getApprovalEmail() {
-
 
779
    return this.approvalEmail;
-
 
780
  }
-
 
781
 
-
 
782
  public void setApprovalEmail(String approvalEmail) {
-
 
783
    this.approvalEmail = approvalEmail;
-
 
784
  }
-
 
785
 
-
 
786
  public void unsetApprovalEmail() {
-
 
787
    this.approvalEmail = null;
-
 
788
  }
-
 
789
 
-
 
790
  /** Returns true if field approvalEmail is set (has been assigned a value) and false otherwise */
-
 
791
  public boolean isSetApprovalEmail() {
-
 
792
    return this.approvalEmail != null;
-
 
793
  }
-
 
794
 
-
 
795
  public void setApprovalEmailIsSet(boolean value) {
-
 
796
    if (!value) {
-
 
797
      this.approvalEmail = null;
-
 
798
    }
-
 
799
  }
-
 
800
 
585
  public void setFieldValue(_Fields field, Object value) {
801
  public void setFieldValue(_Fields field, Object value) {
586
    switch (field) {
802
    switch (field) {
587
    case ID:
803
    case ID:
588
      if (value == null) {
804
      if (value == null) {
589
        unsetId();
805
        unsetId();
Line 686... Line 902...
686
      } else {
902
      } else {
687
        setEmail((String)value);
903
        setEmail((String)value);
688
      }
904
      }
689
      break;
905
      break;
690
 
906
 
-
 
907
    case LINE1:
-
 
908
      if (value == null) {
-
 
909
        unsetLine1();
-
 
910
      } else {
-
 
911
        setLine1((String)value);
-
 
912
      }
-
 
913
      break;
-
 
914
 
-
 
915
    case LINE2:
-
 
916
      if (value == null) {
-
 
917
        unsetLine2();
-
 
918
      } else {
-
 
919
        setLine2((String)value);
-
 
920
      }
-
 
921
      break;
-
 
922
 
-
 
923
    case STATE:
-
 
924
      if (value == null) {
-
 
925
        unsetState();
-
 
926
      } else {
-
 
927
        setState((String)value);
-
 
928
      }
-
 
929
      break;
-
 
930
 
-
 
931
    case PIN:
-
 
932
      if (value == null) {
-
 
933
        unsetPin();
-
 
934
      } else {
-
 
935
        setPin((String)value);
-
 
936
      }
-
 
937
      break;
-
 
938
 
-
 
939
    case PHONE:
-
 
940
      if (value == null) {
-
 
941
        unsetPhone();
-
 
942
      } else {
-
 
943
        setPhone((String)value);
-
 
944
      }
-
 
945
      break;
-
 
946
 
-
 
947
    case APPROVAL_EMAIL:
-
 
948
      if (value == null) {
-
 
949
        unsetApprovalEmail();
-
 
950
      } else {
-
 
951
        setApprovalEmail((String)value);
-
 
952
      }
-
 
953
      break;
-
 
954
 
691
    }
955
    }
692
  }
956
  }
693
 
957
 
694
  public Object getFieldValue(_Fields field) {
958
  public Object getFieldValue(_Fields field) {
695
    switch (field) {
959
    switch (field) {
Line 730... Line 994...
730
      return Long.valueOf(getCircleId());
994
      return Long.valueOf(getCircleId());
731
 
995
 
732
    case EMAIL:
996
    case EMAIL:
733
      return getEmail();
997
      return getEmail();
734
 
998
 
-
 
999
    case LINE1:
-
 
1000
      return getLine1();
-
 
1001
 
-
 
1002
    case LINE2:
-
 
1003
      return getLine2();
-
 
1004
 
-
 
1005
    case STATE:
-
 
1006
      return getState();
-
 
1007
 
-
 
1008
    case PIN:
-
 
1009
      return getPin();
-
 
1010
 
-
 
1011
    case PHONE:
-
 
1012
      return getPhone();
-
 
1013
 
-
 
1014
    case APPROVAL_EMAIL:
-
 
1015
      return getApprovalEmail();
-
 
1016
 
735
    }
1017
    }
736
    throw new IllegalStateException();
1018
    throw new IllegalStateException();
737
  }
1019
  }
738
 
1020
 
739
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1021
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 767... Line 1049...
767
      return isSetIsActive();
1049
      return isSetIsActive();
768
    case CIRCLE_ID:
1050
    case CIRCLE_ID:
769
      return isSetCircleId();
1051
      return isSetCircleId();
770
    case EMAIL:
1052
    case EMAIL:
771
      return isSetEmail();
1053
      return isSetEmail();
-
 
1054
    case LINE1:
-
 
1055
      return isSetLine1();
-
 
1056
    case LINE2:
-
 
1057
      return isSetLine2();
-
 
1058
    case STATE:
-
 
1059
      return isSetState();
-
 
1060
    case PIN:
-
 
1061
      return isSetPin();
-
 
1062
    case PHONE:
-
 
1063
      return isSetPhone();
-
 
1064
    case APPROVAL_EMAIL:
-
 
1065
      return isSetApprovalEmail();
772
    }
1066
    }
773
    throw new IllegalStateException();
1067
    throw new IllegalStateException();
774
  }
1068
  }
775
 
1069
 
776
  @Override
1070
  @Override
Line 901... Line 1195...
901
        return false;
1195
        return false;
902
      if (!this.email.equals(that.email))
1196
      if (!this.email.equals(that.email))
903
        return false;
1197
        return false;
904
    }
1198
    }
905
 
1199
 
-
 
1200
    boolean this_present_line1 = true && this.isSetLine1();
-
 
1201
    boolean that_present_line1 = true && that.isSetLine1();
-
 
1202
    if (this_present_line1 || that_present_line1) {
-
 
1203
      if (!(this_present_line1 && that_present_line1))
-
 
1204
        return false;
-
 
1205
      if (!this.line1.equals(that.line1))
-
 
1206
        return false;
-
 
1207
    }
-
 
1208
 
-
 
1209
    boolean this_present_line2 = true && this.isSetLine2();
-
 
1210
    boolean that_present_line2 = true && that.isSetLine2();
-
 
1211
    if (this_present_line2 || that_present_line2) {
-
 
1212
      if (!(this_present_line2 && that_present_line2))
-
 
1213
        return false;
-
 
1214
      if (!this.line2.equals(that.line2))
-
 
1215
        return false;
-
 
1216
    }
-
 
1217
 
-
 
1218
    boolean this_present_state = true && this.isSetState();
-
 
1219
    boolean that_present_state = true && that.isSetState();
-
 
1220
    if (this_present_state || that_present_state) {
-
 
1221
      if (!(this_present_state && that_present_state))
-
 
1222
        return false;
-
 
1223
      if (!this.state.equals(that.state))
-
 
1224
        return false;
-
 
1225
    }
-
 
1226
 
-
 
1227
    boolean this_present_pin = true && this.isSetPin();
-
 
1228
    boolean that_present_pin = true && that.isSetPin();
-
 
1229
    if (this_present_pin || that_present_pin) {
-
 
1230
      if (!(this_present_pin && that_present_pin))
-
 
1231
        return false;
-
 
1232
      if (!this.pin.equals(that.pin))
-
 
1233
        return false;
-
 
1234
    }
-
 
1235
 
-
 
1236
    boolean this_present_phone = true && this.isSetPhone();
-
 
1237
    boolean that_present_phone = true && that.isSetPhone();
-
 
1238
    if (this_present_phone || that_present_phone) {
-
 
1239
      if (!(this_present_phone && that_present_phone))
-
 
1240
        return false;
-
 
1241
      if (!this.phone.equals(that.phone))
-
 
1242
        return false;
-
 
1243
    }
-
 
1244
 
-
 
1245
    boolean this_present_approvalEmail = true && this.isSetApprovalEmail();
-
 
1246
    boolean that_present_approvalEmail = true && that.isSetApprovalEmail();
-
 
1247
    if (this_present_approvalEmail || that_present_approvalEmail) {
-
 
1248
      if (!(this_present_approvalEmail && that_present_approvalEmail))
-
 
1249
        return false;
-
 
1250
      if (!this.approvalEmail.equals(that.approvalEmail))
-
 
1251
        return false;
-
 
1252
    }
-
 
1253
 
906
    return true;
1254
    return true;
907
  }
1255
  }
908
 
1256
 
909
  @Override
1257
  @Override
910
  public int hashCode() {
1258
  public int hashCode() {
Line 1047... Line 1395...
1047
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1048
      if (lastComparison != 0) {
1396
      if (lastComparison != 0) {
1049
        return lastComparison;
1397
        return lastComparison;
1050
      }
1398
      }
1051
    }
1399
    }
-
 
1400
    lastComparison = Boolean.valueOf(isSetLine1()).compareTo(typedOther.isSetLine1());
-
 
1401
    if (lastComparison != 0) {
-
 
1402
      return lastComparison;
-
 
1403
    }
-
 
1404
    if (isSetLine1()) {
-
 
1405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line1, typedOther.line1);
-
 
1406
      if (lastComparison != 0) {
-
 
1407
        return lastComparison;
-
 
1408
      }
-
 
1409
    }
-
 
1410
    lastComparison = Boolean.valueOf(isSetLine2()).compareTo(typedOther.isSetLine2());
-
 
1411
    if (lastComparison != 0) {
-
 
1412
      return lastComparison;
-
 
1413
    }
-
 
1414
    if (isSetLine2()) {
-
 
1415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line2, typedOther.line2);
-
 
1416
      if (lastComparison != 0) {
-
 
1417
        return lastComparison;
-
 
1418
      }
-
 
1419
    }
-
 
1420
    lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
-
 
1421
    if (lastComparison != 0) {
-
 
1422
      return lastComparison;
-
 
1423
    }
-
 
1424
    if (isSetState()) {
-
 
1425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
-
 
1426
      if (lastComparison != 0) {
-
 
1427
        return lastComparison;
-
 
1428
      }
-
 
1429
    }
-
 
1430
    lastComparison = Boolean.valueOf(isSetPin()).compareTo(typedOther.isSetPin());
-
 
1431
    if (lastComparison != 0) {
-
 
1432
      return lastComparison;
-
 
1433
    }
-
 
1434
    if (isSetPin()) {
-
 
1435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pin, typedOther.pin);
-
 
1436
      if (lastComparison != 0) {
-
 
1437
        return lastComparison;
-
 
1438
      }
-
 
1439
    }
-
 
1440
    lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
-
 
1441
    if (lastComparison != 0) {
-
 
1442
      return lastComparison;
-
 
1443
    }
-
 
1444
    if (isSetPhone()) {
-
 
1445
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
-
 
1446
      if (lastComparison != 0) {
-
 
1447
        return lastComparison;
-
 
1448
      }
-
 
1449
    }
-
 
1450
    lastComparison = Boolean.valueOf(isSetApprovalEmail()).compareTo(typedOther.isSetApprovalEmail());
-
 
1451
    if (lastComparison != 0) {
-
 
1452
      return lastComparison;
-
 
1453
    }
-
 
1454
    if (isSetApprovalEmail()) {
-
 
1455
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.approvalEmail, typedOther.approvalEmail);
-
 
1456
      if (lastComparison != 0) {
-
 
1457
        return lastComparison;
-
 
1458
      }
-
 
1459
    }
1052
    return 0;
1460
    return 0;
1053
  }
1461
  }
1054
 
1462
 
1055
  public _Fields fieldForId(int fieldId) {
1463
  public _Fields fieldForId(int fieldId) {
1056
    return _Fields.findByThriftId(fieldId);
1464
    return _Fields.findByThriftId(fieldId);
Line 1162... Line 1570...
1162
            this.email = iprot.readString();
1570
            this.email = iprot.readString();
1163
          } else { 
1571
          } else { 
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1572
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1165
          }
1573
          }
1166
          break;
1574
          break;
-
 
1575
        case 14: // LINE1
-
 
1576
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1577
            this.line1 = iprot.readString();
-
 
1578
          } else { 
-
 
1579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1580
          }
-
 
1581
          break;
-
 
1582
        case 15: // LINE2
-
 
1583
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1584
            this.line2 = iprot.readString();
-
 
1585
          } else { 
-
 
1586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1587
          }
-
 
1588
          break;
-
 
1589
        case 16: // STATE
-
 
1590
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1591
            this.state = iprot.readString();
-
 
1592
          } else { 
-
 
1593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1594
          }
-
 
1595
          break;
-
 
1596
        case 17: // PIN
-
 
1597
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1598
            this.pin = iprot.readString();
-
 
1599
          } else { 
-
 
1600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1601
          }
-
 
1602
          break;
-
 
1603
        case 18: // PHONE
-
 
1604
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1605
            this.phone = iprot.readString();
-
 
1606
          } else { 
-
 
1607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1608
          }
-
 
1609
          break;
-
 
1610
        case 19: // APPROVAL_EMAIL
-
 
1611
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1612
            this.approvalEmail = iprot.readString();
-
 
1613
          } else { 
-
 
1614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1615
          }
-
 
1616
          break;
1167
        default:
1617
        default:
1168
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1618
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1169
      }
1619
      }
1170
      iprot.readFieldEnd();
1620
      iprot.readFieldEnd();
1171
    }
1621
    }
Line 1226... Line 1676...
1226
    if (this.email != null) {
1676
    if (this.email != null) {
1227
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1677
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1228
      oprot.writeString(this.email);
1678
      oprot.writeString(this.email);
1229
      oprot.writeFieldEnd();
1679
      oprot.writeFieldEnd();
1230
    }
1680
    }
-
 
1681
    if (this.line1 != null) {
-
 
1682
      oprot.writeFieldBegin(LINE1_FIELD_DESC);
-
 
1683
      oprot.writeString(this.line1);
-
 
1684
      oprot.writeFieldEnd();
-
 
1685
    }
-
 
1686
    if (this.line2 != null) {
-
 
1687
      oprot.writeFieldBegin(LINE2_FIELD_DESC);
-
 
1688
      oprot.writeString(this.line2);
-
 
1689
      oprot.writeFieldEnd();
-
 
1690
    }
-
 
1691
    if (this.state != null) {
-
 
1692
      oprot.writeFieldBegin(STATE_FIELD_DESC);
-
 
1693
      oprot.writeString(this.state);
-
 
1694
      oprot.writeFieldEnd();
-
 
1695
    }
-
 
1696
    if (this.pin != null) {
-
 
1697
      oprot.writeFieldBegin(PIN_FIELD_DESC);
-
 
1698
      oprot.writeString(this.pin);
-
 
1699
      oprot.writeFieldEnd();
-
 
1700
    }
-
 
1701
    if (this.phone != null) {
-
 
1702
      oprot.writeFieldBegin(PHONE_FIELD_DESC);
-
 
1703
      oprot.writeString(this.phone);
-
 
1704
      oprot.writeFieldEnd();
-
 
1705
    }
-
 
1706
    if (this.approvalEmail != null) {
-
 
1707
      oprot.writeFieldBegin(APPROVAL_EMAIL_FIELD_DESC);
-
 
1708
      oprot.writeString(this.approvalEmail);
-
 
1709
      oprot.writeFieldEnd();
-
 
1710
    }
1231
    oprot.writeFieldStop();
1711
    oprot.writeFieldStop();
1232
    oprot.writeStructEnd();
1712
    oprot.writeStructEnd();
1233
  }
1713
  }
1234
 
1714
 
1235
  @Override
1715
  @Override
Line 1310... Line 1790...
1310
      sb.append("null");
1790
      sb.append("null");
1311
    } else {
1791
    } else {
1312
      sb.append(this.email);
1792
      sb.append(this.email);
1313
    }
1793
    }
1314
    first = false;
1794
    first = false;
-
 
1795
    if (!first) sb.append(", ");
-
 
1796
    sb.append("line1:");
-
 
1797
    if (this.line1 == null) {
-
 
1798
      sb.append("null");
-
 
1799
    } else {
-
 
1800
      sb.append(this.line1);
-
 
1801
    }
-
 
1802
    first = false;
-
 
1803
    if (!first) sb.append(", ");
-
 
1804
    sb.append("line2:");
-
 
1805
    if (this.line2 == null) {
-
 
1806
      sb.append("null");
-
 
1807
    } else {
-
 
1808
      sb.append(this.line2);
-
 
1809
    }
-
 
1810
    first = false;
-
 
1811
    if (!first) sb.append(", ");
-
 
1812
    sb.append("state:");
-
 
1813
    if (this.state == null) {
-
 
1814
      sb.append("null");
-
 
1815
    } else {
-
 
1816
      sb.append(this.state);
-
 
1817
    }
-
 
1818
    first = false;
-
 
1819
    if (!first) sb.append(", ");
-
 
1820
    sb.append("pin:");
-
 
1821
    if (this.pin == null) {
-
 
1822
      sb.append("null");
-
 
1823
    } else {
-
 
1824
      sb.append(this.pin);
-
 
1825
    }
-
 
1826
    first = false;
-
 
1827
    if (!first) sb.append(", ");
-
 
1828
    sb.append("phone:");
-
 
1829
    if (this.phone == null) {
-
 
1830
      sb.append("null");
-
 
1831
    } else {
-
 
1832
      sb.append(this.phone);
-
 
1833
    }
-
 
1834
    first = false;
-
 
1835
    if (!first) sb.append(", ");
-
 
1836
    sb.append("approvalEmail:");
-
 
1837
    if (this.approvalEmail == null) {
-
 
1838
      sb.append("null");
-
 
1839
    } else {
-
 
1840
      sb.append(this.approvalEmail);
-
 
1841
    }
-
 
1842
    first = false;
1315
    sb.append(")");
1843
    sb.append(")");
1316
    return sb.toString();
1844
    return sb.toString();
1317
  }
1845
  }
1318
 
1846
 
1319
  public void validate() throws org.apache.thrift.TException {
1847
  public void validate() throws org.apache.thrift.TException {