Subversion Repositories SmartDukaan

Rev

Rev 6094 | Rev 6433 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6094 Rev 6159
Line 38... Line 38...
38
  private static final org.apache.thrift.protocol.TField USER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userEmailId", org.apache.thrift.protocol.TType.STRING, (short)13);
38
  private static final org.apache.thrift.protocol.TField USER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userEmailId", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)14);
39
  private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)14);
40
  private static final org.apache.thrift.protocol.TField SPICE_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("spiceTID", org.apache.thrift.protocol.TType.STRING, (short)15);
40
  private static final org.apache.thrift.protocol.TField SPICE_TID_FIELD_DESC = new org.apache.thrift.protocol.TField("spiceTID", org.apache.thrift.protocol.TType.STRING, (short)15);
41
  private static final org.apache.thrift.protocol.TField RESPONSE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("responseTimestamp", org.apache.thrift.protocol.TType.I64, (short)16);
41
  private static final org.apache.thrift.protocol.TField RESPONSE_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("responseTimestamp", org.apache.thrift.protocol.TType.I64, (short)16);
42
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)17);
42
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)17);
-
 
43
  private static final org.apache.thrift.protocol.TField PLAN_FIELD_DESC = new org.apache.thrift.protocol.TField("plan", org.apache.thrift.protocol.TType.STRING, (short)18);
43
 
44
 
44
  private long id; // required
45
  private long id; // required
45
  private String displayId; // required
46
  private String displayId; // required
46
  private long totalAmount; // required
47
  private long totalAmount; // required
47
  private long walletAmount; // required
48
  private long walletAmount; // required
Line 56... Line 57...
56
  private String userEmailId; // required
57
  private String userEmailId; // required
57
  private long creationTimestamp; // required
58
  private long creationTimestamp; // required
58
  private String spiceTID; // required
59
  private String spiceTID; // required
59
  private long responseTimestamp; // required
60
  private long responseTimestamp; // required
60
  private String description; // required
61
  private String description; // required
-
 
62
  private String plan; // required
61
 
63
 
62
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
63
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
64
    ID((short)1, "id"),
66
    ID((short)1, "id"),
65
    DISPLAY_ID((short)2, "displayId"),
67
    DISPLAY_ID((short)2, "displayId"),
Line 87... Line 89...
87
    USER_ID((short)12, "userId"),
89
    USER_ID((short)12, "userId"),
88
    USER_EMAIL_ID((short)13, "userEmailId"),
90
    USER_EMAIL_ID((short)13, "userEmailId"),
89
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
91
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
90
    SPICE_TID((short)15, "spiceTID"),
92
    SPICE_TID((short)15, "spiceTID"),
91
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp"),
93
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp"),
92
    DESCRIPTION((short)17, "description");
94
    DESCRIPTION((short)17, "description"),
-
 
95
    PLAN((short)18, "plan");
93
 
96
 
94
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
97
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
95
 
98
 
96
    static {
99
    static {
97
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
100
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 136... Line 139...
136
          return SPICE_TID;
139
          return SPICE_TID;
137
        case 16: // RESPONSE_TIMESTAMP
140
        case 16: // RESPONSE_TIMESTAMP
138
          return RESPONSE_TIMESTAMP;
141
          return RESPONSE_TIMESTAMP;
139
        case 17: // DESCRIPTION
142
        case 17: // DESCRIPTION
140
          return DESCRIPTION;
143
          return DESCRIPTION;
-
 
144
        case 18: // PLAN
-
 
145
          return PLAN;
141
        default:
146
        default:
142
          return null;
147
          return null;
143
      }
148
      }
144
    }
149
    }
145
 
150
 
Line 224... Line 229...
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
225
    tmpMap.put(_Fields.RESPONSE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("responseTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
230
    tmpMap.put(_Fields.RESPONSE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("responseTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
227
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
232
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
228
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
234
    tmpMap.put(_Fields.PLAN, new org.apache.thrift.meta_data.FieldMetaData("plan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
229
    metaDataMap = Collections.unmodifiableMap(tmpMap);
236
    metaDataMap = Collections.unmodifiableMap(tmpMap);
230
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
237
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
231
  }
238
  }
232
 
239
 
233
  public RechargeOrder() {
240
  public RechargeOrder() {
Line 248... Line 255...
248
    long userId,
255
    long userId,
249
    String userEmailId,
256
    String userEmailId,
250
    long creationTimestamp,
257
    long creationTimestamp,
251
    String spiceTID,
258
    String spiceTID,
252
    long responseTimestamp,
259
    long responseTimestamp,
253
    String description)
260
    String description,
-
 
261
    String plan)
254
  {
262
  {
255
    this();
263
    this();
256
    this.id = id;
264
    this.id = id;
257
    setIdIsSet(true);
265
    setIdIsSet(true);
258
    this.displayId = displayId;
266
    this.displayId = displayId;
Line 277... Line 285...
277
    setCreationTimestampIsSet(true);
285
    setCreationTimestampIsSet(true);
278
    this.spiceTID = spiceTID;
286
    this.spiceTID = spiceTID;
279
    this.responseTimestamp = responseTimestamp;
287
    this.responseTimestamp = responseTimestamp;
280
    setResponseTimestampIsSet(true);
288
    setResponseTimestampIsSet(true);
281
    this.description = description;
289
    this.description = description;
-
 
290
    this.plan = plan;
282
  }
291
  }
283
 
292
 
284
  /**
293
  /**
285
   * Performs a deep copy on <i>other</i>.
294
   * Performs a deep copy on <i>other</i>.
286
   */
295
   */
Line 318... Line 327...
318
    }
327
    }
319
    this.responseTimestamp = other.responseTimestamp;
328
    this.responseTimestamp = other.responseTimestamp;
320
    if (other.isSetDescription()) {
329
    if (other.isSetDescription()) {
321
      this.description = other.description;
330
      this.description = other.description;
322
    }
331
    }
-
 
332
    if (other.isSetPlan()) {
-
 
333
      this.plan = other.plan;
-
 
334
    }
323
  }
335
  }
324
 
336
 
325
  public RechargeOrder deepCopy() {
337
  public RechargeOrder deepCopy() {
326
    return new RechargeOrder(this);
338
    return new RechargeOrder(this);
327
  }
339
  }
Line 352... Line 364...
352
    this.creationTimestamp = 0;
364
    this.creationTimestamp = 0;
353
    this.spiceTID = null;
365
    this.spiceTID = null;
354
    setResponseTimestampIsSet(false);
366
    setResponseTimestampIsSet(false);
355
    this.responseTimestamp = 0;
367
    this.responseTimestamp = 0;
356
    this.description = null;
368
    this.description = null;
-
 
369
    this.plan = null;
357
  }
370
  }
358
 
371
 
359
  public long getId() {
372
  public long getId() {
360
    return this.id;
373
    return this.id;
361
  }
374
  }
Line 760... Line 773...
760
    if (!value) {
773
    if (!value) {
761
      this.description = null;
774
      this.description = null;
762
    }
775
    }
763
  }
776
  }
764
 
777
 
-
 
778
  public String getPlan() {
-
 
779
    return this.plan;
-
 
780
  }
-
 
781
 
-
 
782
  public void setPlan(String plan) {
-
 
783
    this.plan = plan;
-
 
784
  }
-
 
785
 
-
 
786
  public void unsetPlan() {
-
 
787
    this.plan = null;
-
 
788
  }
-
 
789
 
-
 
790
  /** Returns true if field plan is set (has been assigned a value) and false otherwise */
-
 
791
  public boolean isSetPlan() {
-
 
792
    return this.plan != null;
-
 
793
  }
-
 
794
 
-
 
795
  public void setPlanIsSet(boolean value) {
-
 
796
    if (!value) {
-
 
797
      this.plan = null;
-
 
798
    }
-
 
799
  }
-
 
800
 
765
  public void setFieldValue(_Fields field, Object value) {
801
  public void setFieldValue(_Fields field, Object value) {
766
    switch (field) {
802
    switch (field) {
767
    case ID:
803
    case ID:
768
      if (value == null) {
804
      if (value == null) {
769
        unsetId();
805
        unsetId();
Line 898... Line 934...
898
      } else {
934
      } else {
899
        setDescription((String)value);
935
        setDescription((String)value);
900
      }
936
      }
901
      break;
937
      break;
902
 
938
 
-
 
939
    case PLAN:
-
 
940
      if (value == null) {
-
 
941
        unsetPlan();
-
 
942
      } else {
-
 
943
        setPlan((String)value);
-
 
944
      }
-
 
945
      break;
-
 
946
 
903
    }
947
    }
904
  }
948
  }
905
 
949
 
906
  public Object getFieldValue(_Fields field) {
950
  public Object getFieldValue(_Fields field) {
907
    switch (field) {
951
    switch (field) {
Line 954... Line 998...
954
      return Long.valueOf(getResponseTimestamp());
998
      return Long.valueOf(getResponseTimestamp());
955
 
999
 
956
    case DESCRIPTION:
1000
    case DESCRIPTION:
957
      return getDescription();
1001
      return getDescription();
958
 
1002
 
-
 
1003
    case PLAN:
-
 
1004
      return getPlan();
-
 
1005
 
959
    }
1006
    }
960
    throw new IllegalStateException();
1007
    throw new IllegalStateException();
961
  }
1008
  }
962
 
1009
 
963
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1010
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 999... Line 1046...
999
      return isSetSpiceTID();
1046
      return isSetSpiceTID();
1000
    case RESPONSE_TIMESTAMP:
1047
    case RESPONSE_TIMESTAMP:
1001
      return isSetResponseTimestamp();
1048
      return isSetResponseTimestamp();
1002
    case DESCRIPTION:
1049
    case DESCRIPTION:
1003
      return isSetDescription();
1050
      return isSetDescription();
-
 
1051
    case PLAN:
-
 
1052
      return isSetPlan();
1004
    }
1053
    }
1005
    throw new IllegalStateException();
1054
    throw new IllegalStateException();
1006
  }
1055
  }
1007
 
1056
 
1008
  @Override
1057
  @Override
Line 1169... Line 1218...
1169
        return false;
1218
        return false;
1170
      if (!this.description.equals(that.description))
1219
      if (!this.description.equals(that.description))
1171
        return false;
1220
        return false;
1172
    }
1221
    }
1173
 
1222
 
-
 
1223
    boolean this_present_plan = true && this.isSetPlan();
-
 
1224
    boolean that_present_plan = true && that.isSetPlan();
-
 
1225
    if (this_present_plan || that_present_plan) {
-
 
1226
      if (!(this_present_plan && that_present_plan))
-
 
1227
        return false;
-
 
1228
      if (!this.plan.equals(that.plan))
-
 
1229
        return false;
-
 
1230
    }
-
 
1231
 
1174
    return true;
1232
    return true;
1175
  }
1233
  }
1176
 
1234
 
1177
  @Override
1235
  @Override
1178
  public int hashCode() {
1236
  public int hashCode() {
Line 1355... Line 1413...
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1413
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
1356
      if (lastComparison != 0) {
1414
      if (lastComparison != 0) {
1357
        return lastComparison;
1415
        return lastComparison;
1358
      }
1416
      }
1359
    }
1417
    }
-
 
1418
    lastComparison = Boolean.valueOf(isSetPlan()).compareTo(typedOther.isSetPlan());
-
 
1419
    if (lastComparison != 0) {
-
 
1420
      return lastComparison;
-
 
1421
    }
-
 
1422
    if (isSetPlan()) {
-
 
1423
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.plan, typedOther.plan);
-
 
1424
      if (lastComparison != 0) {
-
 
1425
        return lastComparison;
-
 
1426
      }
-
 
1427
    }
1360
    return 0;
1428
    return 0;
1361
  }
1429
  }
1362
 
1430
 
1363
  public _Fields fieldForId(int fieldId) {
1431
  public _Fields fieldForId(int fieldId) {
1364
    return _Fields.findByThriftId(fieldId);
1432
    return _Fields.findByThriftId(fieldId);
Line 1500... Line 1568...
1500
            this.description = iprot.readString();
1568
            this.description = iprot.readString();
1501
          } else { 
1569
          } else { 
1502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1570
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1503
          }
1571
          }
1504
          break;
1572
          break;
-
 
1573
        case 18: // PLAN
-
 
1574
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1575
            this.plan = iprot.readString();
-
 
1576
          } else { 
-
 
1577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1578
          }
-
 
1579
          break;
1505
        default:
1580
        default:
1506
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1581
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1507
      }
1582
      }
1508
      iprot.readFieldEnd();
1583
      iprot.readFieldEnd();
1509
    }
1584
    }
Line 1580... Line 1655...
1580
    if (this.description != null) {
1655
    if (this.description != null) {
1581
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1656
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
1582
      oprot.writeString(this.description);
1657
      oprot.writeString(this.description);
1583
      oprot.writeFieldEnd();
1658
      oprot.writeFieldEnd();
1584
    }
1659
    }
-
 
1660
    if (this.plan != null) {
-
 
1661
      oprot.writeFieldBegin(PLAN_FIELD_DESC);
-
 
1662
      oprot.writeString(this.plan);
-
 
1663
      oprot.writeFieldEnd();
-
 
1664
    }
1585
    oprot.writeFieldStop();
1665
    oprot.writeFieldStop();
1586
    oprot.writeStructEnd();
1666
    oprot.writeStructEnd();
1587
  }
1667
  }
1588
 
1668
 
1589
  @Override
1669
  @Override
Line 1688... Line 1768...
1688
      sb.append("null");
1768
      sb.append("null");
1689
    } else {
1769
    } else {
1690
      sb.append(this.description);
1770
      sb.append(this.description);
1691
    }
1771
    }
1692
    first = false;
1772
    first = false;
-
 
1773
    if (!first) sb.append(", ");
-
 
1774
    sb.append("plan:");
-
 
1775
    if (this.plan == null) {
-
 
1776
      sb.append("null");
-
 
1777
    } else {
-
 
1778
      sb.append(this.plan);
-
 
1779
    }
-
 
1780
    first = false;
1693
    sb.append(")");
1781
    sb.append(")");
1694
    return sb.toString();
1782
    return sb.toString();
1695
  }
1783
  }
1696
 
1784
 
1697
  public void validate() throws org.apache.thrift.TException {
1785
  public void validate() throws org.apache.thrift.TException {