Subversion Repositories SmartDukaan

Rev

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

Rev 5813 Rev 5863
Line 30... Line 30...
30
  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)5);
30
  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)5);
31
  private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  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)7);
32
  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)7);
33
  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)8);
33
  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)8);
34
  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)9);
34
  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)9);
-
 
35
  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)10);
35
  private static final org.apache.thrift.protocol.TField ZONE_FIELD_DESC = new org.apache.thrift.protocol.TField("zone", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField ZONE_FIELD_DESC = new org.apache.thrift.protocol.TField("zone", org.apache.thrift.protocol.TType.STRING, (short)11);
36
  private static final org.apache.thrift.protocol.TField BDM_FIELD_DESC = new org.apache.thrift.protocol.TField("bdm", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField BDM_FIELD_DESC = new org.apache.thrift.protocol.TField("bdm", org.apache.thrift.protocol.TType.STRING, (short)12);
37
  private static final org.apache.thrift.protocol.TField BDM_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("bdmEmail", org.apache.thrift.protocol.TType.STRING, (short)12);
38
  private static final org.apache.thrift.protocol.TField BDM_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("bdmEmail", org.apache.thrift.protocol.TType.STRING, (short)13);
38
 
39
 
39
  private long id; // required
40
  private long id; // required
40
  private String hotspotId; // required
41
  private String hotspotId; // required
41
  private String name; // required
42
  private String name; // required
42
  private String line1; // required
43
  private String line1; // required
43
  private String line2; // required
44
  private String line2; // required
44
  private String city; // required
45
  private String city; // required
45
  private String state; // required
46
  private String state; // required
46
  private String pin; // required
47
  private String pin; // required
47
  private String phone; // required
48
  private String phone; // required
-
 
49
  private String email; // required
48
  private String zone; // required
50
  private String zone; // required
49
  private String bdm; // required
51
  private String bdm; // required
50
  private String bdmEmail; // required
52
  private String bdmEmail; // required
51
 
53
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
Line 58... Line 60...
58
    LINE2((short)5, "line2"),
60
    LINE2((short)5, "line2"),
59
    CITY((short)6, "city"),
61
    CITY((short)6, "city"),
60
    STATE((short)7, "state"),
62
    STATE((short)7, "state"),
61
    PIN((short)8, "pin"),
63
    PIN((short)8, "pin"),
62
    PHONE((short)9, "phone"),
64
    PHONE((short)9, "phone"),
-
 
65
    EMAIL((short)10, "email"),
63
    ZONE((short)10, "zone"),
66
    ZONE((short)11, "zone"),
64
    BDM((short)11, "bdm"),
67
    BDM((short)12, "bdm"),
65
    BDM_EMAIL((short)12, "bdmEmail");
68
    BDM_EMAIL((short)13, "bdmEmail");
66
 
69
 
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
70
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
68
 
71
 
69
    static {
72
    static {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
73
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 93... Line 96...
93
          return STATE;
96
          return STATE;
94
        case 8: // PIN
97
        case 8: // PIN
95
          return PIN;
98
          return PIN;
96
        case 9: // PHONE
99
        case 9: // PHONE
97
          return PHONE;
100
          return PHONE;
-
 
101
        case 10: // EMAIL
-
 
102
          return EMAIL;
98
        case 10: // ZONE
103
        case 11: // ZONE
99
          return ZONE;
104
          return ZONE;
100
        case 11: // BDM
105
        case 12: // BDM
101
          return BDM;
106
          return BDM;
102
        case 12: // BDM_EMAIL
107
        case 13: // BDM_EMAIL
103
          return BDM_EMAIL;
108
          return BDM_EMAIL;
104
        default:
109
        default:
105
          return null;
110
          return null;
106
      }
111
      }
107
    }
112
    }
Line 163... Line 168...
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
164
    tmpMap.put(_Fields.PIN, new org.apache.thrift.meta_data.FieldMetaData("pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
    tmpMap.put(_Fields.PIN, new org.apache.thrift.meta_data.FieldMetaData("pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
166
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
173
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
168
    tmpMap.put(_Fields.ZONE, new org.apache.thrift.meta_data.FieldMetaData("zone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
    tmpMap.put(_Fields.ZONE, new org.apache.thrift.meta_data.FieldMetaData("zone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
170
    tmpMap.put(_Fields.BDM, new org.apache.thrift.meta_data.FieldMetaData("bdm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
177
    tmpMap.put(_Fields.BDM, new org.apache.thrift.meta_data.FieldMetaData("bdm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
172
    tmpMap.put(_Fields.BDM_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("bdmEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
    tmpMap.put(_Fields.BDM_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("bdmEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 186... Line 193...
186
    String line2,
193
    String line2,
187
    String city,
194
    String city,
188
    String state,
195
    String state,
189
    String pin,
196
    String pin,
190
    String phone,
197
    String phone,
-
 
198
    String email,
191
    String zone,
199
    String zone,
192
    String bdm,
200
    String bdm,
193
    String bdmEmail)
201
    String bdmEmail)
194
  {
202
  {
195
    this();
203
    this();
Line 201... Line 209...
201
    this.line2 = line2;
209
    this.line2 = line2;
202
    this.city = city;
210
    this.city = city;
203
    this.state = state;
211
    this.state = state;
204
    this.pin = pin;
212
    this.pin = pin;
205
    this.phone = phone;
213
    this.phone = phone;
-
 
214
    this.email = email;
206
    this.zone = zone;
215
    this.zone = zone;
207
    this.bdm = bdm;
216
    this.bdm = bdm;
208
    this.bdmEmail = bdmEmail;
217
    this.bdmEmail = bdmEmail;
209
  }
218
  }
210
 
219
 
Line 237... Line 246...
237
      this.pin = other.pin;
246
      this.pin = other.pin;
238
    }
247
    }
239
    if (other.isSetPhone()) {
248
    if (other.isSetPhone()) {
240
      this.phone = other.phone;
249
      this.phone = other.phone;
241
    }
250
    }
-
 
251
    if (other.isSetEmail()) {
-
 
252
      this.email = other.email;
-
 
253
    }
242
    if (other.isSetZone()) {
254
    if (other.isSetZone()) {
243
      this.zone = other.zone;
255
      this.zone = other.zone;
244
    }
256
    }
245
    if (other.isSetBdm()) {
257
    if (other.isSetBdm()) {
246
      this.bdm = other.bdm;
258
      this.bdm = other.bdm;
Line 264... Line 276...
264
    this.line2 = null;
276
    this.line2 = null;
265
    this.city = null;
277
    this.city = null;
266
    this.state = null;
278
    this.state = null;
267
    this.pin = null;
279
    this.pin = null;
268
    this.phone = null;
280
    this.phone = null;
-
 
281
    this.email = null;
269
    this.zone = null;
282
    this.zone = null;
270
    this.bdm = null;
283
    this.bdm = null;
271
    this.bdmEmail = null;
284
    this.bdmEmail = null;
272
  }
285
  }
273
 
286
 
Line 475... Line 488...
475
    if (!value) {
488
    if (!value) {
476
      this.phone = null;
489
      this.phone = null;
477
    }
490
    }
478
  }
491
  }
479
 
492
 
-
 
493
  public String getEmail() {
-
 
494
    return this.email;
-
 
495
  }
-
 
496
 
-
 
497
  public void setEmail(String email) {
-
 
498
    this.email = email;
-
 
499
  }
-
 
500
 
-
 
501
  public void unsetEmail() {
-
 
502
    this.email = null;
-
 
503
  }
-
 
504
 
-
 
505
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
-
 
506
  public boolean isSetEmail() {
-
 
507
    return this.email != null;
-
 
508
  }
-
 
509
 
-
 
510
  public void setEmailIsSet(boolean value) {
-
 
511
    if (!value) {
-
 
512
      this.email = null;
-
 
513
    }
-
 
514
  }
-
 
515
 
480
  public String getZone() {
516
  public String getZone() {
481
    return this.zone;
517
    return this.zone;
482
  }
518
  }
483
 
519
 
484
  public void setZone(String zone) {
520
  public void setZone(String zone) {
Line 618... Line 654...
618
      } else {
654
      } else {
619
        setPhone((String)value);
655
        setPhone((String)value);
620
      }
656
      }
621
      break;
657
      break;
622
 
658
 
-
 
659
    case EMAIL:
-
 
660
      if (value == null) {
-
 
661
        unsetEmail();
-
 
662
      } else {
-
 
663
        setEmail((String)value);
-
 
664
      }
-
 
665
      break;
-
 
666
 
623
    case ZONE:
667
    case ZONE:
624
      if (value == null) {
668
      if (value == null) {
625
        unsetZone();
669
        unsetZone();
626
      } else {
670
      } else {
627
        setZone((String)value);
671
        setZone((String)value);
Line 674... Line 718...
674
      return getPin();
718
      return getPin();
675
 
719
 
676
    case PHONE:
720
    case PHONE:
677
      return getPhone();
721
      return getPhone();
678
 
722
 
-
 
723
    case EMAIL:
-
 
724
      return getEmail();
-
 
725
 
679
    case ZONE:
726
    case ZONE:
680
      return getZone();
727
      return getZone();
681
 
728
 
682
    case BDM:
729
    case BDM:
683
      return getBdm();
730
      return getBdm();
Line 712... Line 759...
712
      return isSetState();
759
      return isSetState();
713
    case PIN:
760
    case PIN:
714
      return isSetPin();
761
      return isSetPin();
715
    case PHONE:
762
    case PHONE:
716
      return isSetPhone();
763
      return isSetPhone();
-
 
764
    case EMAIL:
-
 
765
      return isSetEmail();
717
    case ZONE:
766
    case ZONE:
718
      return isSetZone();
767
      return isSetZone();
719
    case BDM:
768
    case BDM:
720
      return isSetBdm();
769
      return isSetBdm();
721
    case BDM_EMAIL:
770
    case BDM_EMAIL:
Line 816... Line 865...
816
        return false;
865
        return false;
817
      if (!this.phone.equals(that.phone))
866
      if (!this.phone.equals(that.phone))
818
        return false;
867
        return false;
819
    }
868
    }
820
 
869
 
-
 
870
    boolean this_present_email = true && this.isSetEmail();
-
 
871
    boolean that_present_email = true && that.isSetEmail();
-
 
872
    if (this_present_email || that_present_email) {
-
 
873
      if (!(this_present_email && that_present_email))
-
 
874
        return false;
-
 
875
      if (!this.email.equals(that.email))
-
 
876
        return false;
-
 
877
    }
-
 
878
 
821
    boolean this_present_zone = true && this.isSetZone();
879
    boolean this_present_zone = true && this.isSetZone();
822
    boolean that_present_zone = true && that.isSetZone();
880
    boolean that_present_zone = true && that.isSetZone();
823
    if (this_present_zone || that_present_zone) {
881
    if (this_present_zone || that_present_zone) {
824
      if (!(this_present_zone && that_present_zone))
882
      if (!(this_present_zone && that_present_zone))
825
        return false;
883
        return false;
Line 949... Line 1007...
949
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
1007
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
950
      if (lastComparison != 0) {
1008
      if (lastComparison != 0) {
951
        return lastComparison;
1009
        return lastComparison;
952
      }
1010
      }
953
    }
1011
    }
-
 
1012
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
-
 
1013
    if (lastComparison != 0) {
-
 
1014
      return lastComparison;
-
 
1015
    }
-
 
1016
    if (isSetEmail()) {
-
 
1017
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
-
 
1018
      if (lastComparison != 0) {
-
 
1019
        return lastComparison;
-
 
1020
      }
-
 
1021
    }
954
    lastComparison = Boolean.valueOf(isSetZone()).compareTo(typedOther.isSetZone());
1022
    lastComparison = Boolean.valueOf(isSetZone()).compareTo(typedOther.isSetZone());
955
    if (lastComparison != 0) {
1023
    if (lastComparison != 0) {
956
      return lastComparison;
1024
      return lastComparison;
957
    }
1025
    }
958
    if (isSetZone()) {
1026
    if (isSetZone()) {
Line 1060... Line 1128...
1060
            this.phone = iprot.readString();
1128
            this.phone = iprot.readString();
1061
          } else { 
1129
          } else { 
1062
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1063
          }
1131
          }
1064
          break;
1132
          break;
-
 
1133
        case 10: // EMAIL
-
 
1134
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1135
            this.email = iprot.readString();
-
 
1136
          } else { 
-
 
1137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1138
          }
-
 
1139
          break;
1065
        case 10: // ZONE
1140
        case 11: // ZONE
1066
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1141
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1067
            this.zone = iprot.readString();
1142
            this.zone = iprot.readString();
1068
          } else { 
1143
          } else { 
1069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1070
          }
1145
          }
1071
          break;
1146
          break;
1072
        case 11: // BDM
1147
        case 12: // BDM
1073
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1148
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1074
            this.bdm = iprot.readString();
1149
            this.bdm = iprot.readString();
1075
          } else { 
1150
          } else { 
1076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1151
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1077
          }
1152
          }
1078
          break;
1153
          break;
1079
        case 12: // BDM_EMAIL
1154
        case 13: // BDM_EMAIL
1080
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1155
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1081
            this.bdmEmail = iprot.readString();
1156
            this.bdmEmail = iprot.readString();
1082
          } else { 
1157
          } else { 
1083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1084
          }
1159
          }
Line 1137... Line 1212...
1137
    if (this.phone != null) {
1212
    if (this.phone != null) {
1138
      oprot.writeFieldBegin(PHONE_FIELD_DESC);
1213
      oprot.writeFieldBegin(PHONE_FIELD_DESC);
1139
      oprot.writeString(this.phone);
1214
      oprot.writeString(this.phone);
1140
      oprot.writeFieldEnd();
1215
      oprot.writeFieldEnd();
1141
    }
1216
    }
-
 
1217
    if (this.email != null) {
-
 
1218
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
-
 
1219
      oprot.writeString(this.email);
-
 
1220
      oprot.writeFieldEnd();
-
 
1221
    }
1142
    if (this.zone != null) {
1222
    if (this.zone != null) {
1143
      oprot.writeFieldBegin(ZONE_FIELD_DESC);
1223
      oprot.writeFieldBegin(ZONE_FIELD_DESC);
1144
      oprot.writeString(this.zone);
1224
      oprot.writeString(this.zone);
1145
      oprot.writeFieldEnd();
1225
      oprot.writeFieldEnd();
1146
    }
1226
    }
Line 1229... Line 1309...
1229
    } else {
1309
    } else {
1230
      sb.append(this.phone);
1310
      sb.append(this.phone);
1231
    }
1311
    }
1232
    first = false;
1312
    first = false;
1233
    if (!first) sb.append(", ");
1313
    if (!first) sb.append(", ");
-
 
1314
    sb.append("email:");
-
 
1315
    if (this.email == null) {
-
 
1316
      sb.append("null");
-
 
1317
    } else {
-
 
1318
      sb.append(this.email);
-
 
1319
    }
-
 
1320
    first = false;
-
 
1321
    if (!first) sb.append(", ");
1234
    sb.append("zone:");
1322
    sb.append("zone:");
1235
    if (this.zone == null) {
1323
    if (this.zone == null) {
1236
      sb.append("null");
1324
      sb.append("null");
1237
    } else {
1325
    } else {
1238
      sb.append(this.zone);
1326
      sb.append(this.zone);