Subversion Repositories SmartDukaan

Rev

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

Rev 6077 Rev 6094
Line 37... Line 37...
37
  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)12);
37
  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)12);
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
 
43
 
43
  private long id; // required
44
  private long id; // required
44
  private String displayId; // required
45
  private String displayId; // required
45
  private long totalAmount; // required
46
  private long totalAmount; // required
46
  private long walletAmount; // required
47
  private long walletAmount; // required
Line 54... Line 55...
54
  private long userId; // required
55
  private long userId; // required
55
  private String userEmailId; // required
56
  private String userEmailId; // required
56
  private long creationTimestamp; // required
57
  private long creationTimestamp; // required
57
  private String spiceTID; // required
58
  private String spiceTID; // required
58
  private long responseTimestamp; // required
59
  private long responseTimestamp; // required
-
 
60
  private String description; // required
59
 
61
 
60
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
63
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62
    ID((short)1, "id"),
64
    ID((short)1, "id"),
63
    DISPLAY_ID((short)2, "displayId"),
65
    DISPLAY_ID((short)2, "displayId"),
Line 84... Line 86...
84
    DEVICE_NUMBER((short)11, "deviceNumber"),
86
    DEVICE_NUMBER((short)11, "deviceNumber"),
85
    USER_ID((short)12, "userId"),
87
    USER_ID((short)12, "userId"),
86
    USER_EMAIL_ID((short)13, "userEmailId"),
88
    USER_EMAIL_ID((short)13, "userEmailId"),
87
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
89
    CREATION_TIMESTAMP((short)14, "creationTimestamp"),
88
    SPICE_TID((short)15, "spiceTID"),
90
    SPICE_TID((short)15, "spiceTID"),
89
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp");
91
    RESPONSE_TIMESTAMP((short)16, "responseTimestamp"),
-
 
92
    DESCRIPTION((short)17, "description");
90
 
93
 
91
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
94
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
92
 
95
 
93
    static {
96
    static {
94
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
97
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 131... Line 134...
131
          return CREATION_TIMESTAMP;
134
          return CREATION_TIMESTAMP;
132
        case 15: // SPICE_TID
135
        case 15: // SPICE_TID
133
          return SPICE_TID;
136
          return SPICE_TID;
134
        case 16: // RESPONSE_TIMESTAMP
137
        case 16: // RESPONSE_TIMESTAMP
135
          return RESPONSE_TIMESTAMP;
138
          return RESPONSE_TIMESTAMP;
-
 
139
        case 17: // DESCRIPTION
-
 
140
          return DESCRIPTION;
136
        default:
141
        default:
137
          return null;
142
          return null;
138
      }
143
      }
139
    }
144
    }
140
 
145
 
Line 217... Line 222...
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
218
    tmpMap.put(_Fields.SPICE_TID, new org.apache.thrift.meta_data.FieldMetaData("spiceTID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
    tmpMap.put(_Fields.SPICE_TID, new org.apache.thrift.meta_data.FieldMetaData("spiceTID", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
220
    tmpMap.put(_Fields.RESPONSE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("responseTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
    tmpMap.put(_Fields.RESPONSE_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("responseTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
226
        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, 
-
 
228
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
222
    metaDataMap = Collections.unmodifiableMap(tmpMap);
229
    metaDataMap = Collections.unmodifiableMap(tmpMap);
223
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
230
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
224
  }
231
  }
225
 
232
 
226
  public RechargeOrder() {
233
  public RechargeOrder() {
Line 240... Line 247...
240
    String deviceNumber,
247
    String deviceNumber,
241
    long userId,
248
    long userId,
242
    String userEmailId,
249
    String userEmailId,
243
    long creationTimestamp,
250
    long creationTimestamp,
244
    String spiceTID,
251
    String spiceTID,
245
    long responseTimestamp)
252
    long responseTimestamp,
-
 
253
    String description)
246
  {
254
  {
247
    this();
255
    this();
248
    this.id = id;
256
    this.id = id;
249
    setIdIsSet(true);
257
    setIdIsSet(true);
250
    this.displayId = displayId;
258
    this.displayId = displayId;
Line 268... Line 276...
268
    this.creationTimestamp = creationTimestamp;
276
    this.creationTimestamp = creationTimestamp;
269
    setCreationTimestampIsSet(true);
277
    setCreationTimestampIsSet(true);
270
    this.spiceTID = spiceTID;
278
    this.spiceTID = spiceTID;
271
    this.responseTimestamp = responseTimestamp;
279
    this.responseTimestamp = responseTimestamp;
272
    setResponseTimestampIsSet(true);
280
    setResponseTimestampIsSet(true);
-
 
281
    this.description = description;
273
  }
282
  }
274
 
283
 
275
  /**
284
  /**
276
   * Performs a deep copy on <i>other</i>.
285
   * Performs a deep copy on <i>other</i>.
277
   */
286
   */
Line 306... Line 315...
306
    this.creationTimestamp = other.creationTimestamp;
315
    this.creationTimestamp = other.creationTimestamp;
307
    if (other.isSetSpiceTID()) {
316
    if (other.isSetSpiceTID()) {
308
      this.spiceTID = other.spiceTID;
317
      this.spiceTID = other.spiceTID;
309
    }
318
    }
310
    this.responseTimestamp = other.responseTimestamp;
319
    this.responseTimestamp = other.responseTimestamp;
-
 
320
    if (other.isSetDescription()) {
-
 
321
      this.description = other.description;
-
 
322
    }
311
  }
323
  }
312
 
324
 
313
  public RechargeOrder deepCopy() {
325
  public RechargeOrder deepCopy() {
314
    return new RechargeOrder(this);
326
    return new RechargeOrder(this);
315
  }
327
  }
Line 339... Line 351...
339
    setCreationTimestampIsSet(false);
351
    setCreationTimestampIsSet(false);
340
    this.creationTimestamp = 0;
352
    this.creationTimestamp = 0;
341
    this.spiceTID = null;
353
    this.spiceTID = null;
342
    setResponseTimestampIsSet(false);
354
    setResponseTimestampIsSet(false);
343
    this.responseTimestamp = 0;
355
    this.responseTimestamp = 0;
-
 
356
    this.description = null;
344
  }
357
  }
345
 
358
 
346
  public long getId() {
359
  public long getId() {
347
    return this.id;
360
    return this.id;
348
  }
361
  }
Line 724... Line 737...
724
 
737
 
725
  public void setResponseTimestampIsSet(boolean value) {
738
  public void setResponseTimestampIsSet(boolean value) {
726
    __isset_bit_vector.set(__RESPONSETIMESTAMP_ISSET_ID, value);
739
    __isset_bit_vector.set(__RESPONSETIMESTAMP_ISSET_ID, value);
727
  }
740
  }
728
 
741
 
-
 
742
  public String getDescription() {
-
 
743
    return this.description;
-
 
744
  }
-
 
745
 
-
 
746
  public void setDescription(String description) {
-
 
747
    this.description = description;
-
 
748
  }
-
 
749
 
-
 
750
  public void unsetDescription() {
-
 
751
    this.description = null;
-
 
752
  }
-
 
753
 
-
 
754
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
-
 
755
  public boolean isSetDescription() {
-
 
756
    return this.description != null;
-
 
757
  }
-
 
758
 
-
 
759
  public void setDescriptionIsSet(boolean value) {
-
 
760
    if (!value) {
-
 
761
      this.description = null;
-
 
762
    }
-
 
763
  }
-
 
764
 
729
  public void setFieldValue(_Fields field, Object value) {
765
  public void setFieldValue(_Fields field, Object value) {
730
    switch (field) {
766
    switch (field) {
731
    case ID:
767
    case ID:
732
      if (value == null) {
768
      if (value == null) {
733
        unsetId();
769
        unsetId();
Line 854... Line 890...
854
      } else {
890
      } else {
855
        setResponseTimestamp((Long)value);
891
        setResponseTimestamp((Long)value);
856
      }
892
      }
857
      break;
893
      break;
858
 
894
 
-
 
895
    case DESCRIPTION:
-
 
896
      if (value == null) {
-
 
897
        unsetDescription();
-
 
898
      } else {
-
 
899
        setDescription((String)value);
-
 
900
      }
-
 
901
      break;
-
 
902
 
859
    }
903
    }
860
  }
904
  }
861
 
905
 
862
  public Object getFieldValue(_Fields field) {
906
  public Object getFieldValue(_Fields field) {
863
    switch (field) {
907
    switch (field) {
Line 907... Line 951...
907
      return getSpiceTID();
951
      return getSpiceTID();
908
 
952
 
909
    case RESPONSE_TIMESTAMP:
953
    case RESPONSE_TIMESTAMP:
910
      return Long.valueOf(getResponseTimestamp());
954
      return Long.valueOf(getResponseTimestamp());
911
 
955
 
-
 
956
    case DESCRIPTION:
-
 
957
      return getDescription();
-
 
958
 
912
    }
959
    }
913
    throw new IllegalStateException();
960
    throw new IllegalStateException();
914
  }
961
  }
915
 
962
 
916
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
963
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 950... Line 997...
950
      return isSetCreationTimestamp();
997
      return isSetCreationTimestamp();
951
    case SPICE_TID:
998
    case SPICE_TID:
952
      return isSetSpiceTID();
999
      return isSetSpiceTID();
953
    case RESPONSE_TIMESTAMP:
1000
    case RESPONSE_TIMESTAMP:
954
      return isSetResponseTimestamp();
1001
      return isSetResponseTimestamp();
-
 
1002
    case DESCRIPTION:
-
 
1003
      return isSetDescription();
955
    }
1004
    }
956
    throw new IllegalStateException();
1005
    throw new IllegalStateException();
957
  }
1006
  }
958
 
1007
 
959
  @Override
1008
  @Override
Line 1111... Line 1160...
1111
        return false;
1160
        return false;
1112
      if (this.responseTimestamp != that.responseTimestamp)
1161
      if (this.responseTimestamp != that.responseTimestamp)
1113
        return false;
1162
        return false;
1114
    }
1163
    }
1115
 
1164
 
-
 
1165
    boolean this_present_description = true && this.isSetDescription();
-
 
1166
    boolean that_present_description = true && that.isSetDescription();
-
 
1167
    if (this_present_description || that_present_description) {
-
 
1168
      if (!(this_present_description && that_present_description))
-
 
1169
        return false;
-
 
1170
      if (!this.description.equals(that.description))
-
 
1171
        return false;
-
 
1172
    }
-
 
1173
 
1116
    return true;
1174
    return true;
1117
  }
1175
  }
1118
 
1176
 
1119
  @Override
1177
  @Override
1120
  public int hashCode() {
1178
  public int hashCode() {
Line 1287... Line 1345...
1287
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.responseTimestamp, typedOther.responseTimestamp);
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.responseTimestamp, typedOther.responseTimestamp);
1288
      if (lastComparison != 0) {
1346
      if (lastComparison != 0) {
1289
        return lastComparison;
1347
        return lastComparison;
1290
      }
1348
      }
1291
    }
1349
    }
-
 
1350
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
-
 
1351
    if (lastComparison != 0) {
-
 
1352
      return lastComparison;
-
 
1353
    }
-
 
1354
    if (isSetDescription()) {
-
 
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
-
 
1356
      if (lastComparison != 0) {
-
 
1357
        return lastComparison;
-
 
1358
      }
-
 
1359
    }
1292
    return 0;
1360
    return 0;
1293
  }
1361
  }
1294
 
1362
 
1295
  public _Fields fieldForId(int fieldId) {
1363
  public _Fields fieldForId(int fieldId) {
1296
    return _Fields.findByThriftId(fieldId);
1364
    return _Fields.findByThriftId(fieldId);
Line 1425... Line 1493...
1425
            setResponseTimestampIsSet(true);
1493
            setResponseTimestampIsSet(true);
1426
          } else { 
1494
          } else { 
1427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1428
          }
1496
          }
1429
          break;
1497
          break;
-
 
1498
        case 17: // DESCRIPTION
-
 
1499
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1500
            this.description = iprot.readString();
-
 
1501
          } else { 
-
 
1502
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1503
          }
-
 
1504
          break;
1430
        default:
1505
        default:
1431
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1506
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1432
      }
1507
      }
1433
      iprot.readFieldEnd();
1508
      iprot.readFieldEnd();
1434
    }
1509
    }
Line 1500... Line 1575...
1500
      oprot.writeFieldEnd();
1575
      oprot.writeFieldEnd();
1501
    }
1576
    }
1502
    oprot.writeFieldBegin(RESPONSE_TIMESTAMP_FIELD_DESC);
1577
    oprot.writeFieldBegin(RESPONSE_TIMESTAMP_FIELD_DESC);
1503
    oprot.writeI64(this.responseTimestamp);
1578
    oprot.writeI64(this.responseTimestamp);
1504
    oprot.writeFieldEnd();
1579
    oprot.writeFieldEnd();
-
 
1580
    if (this.description != null) {
-
 
1581
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
-
 
1582
      oprot.writeString(this.description);
-
 
1583
      oprot.writeFieldEnd();
-
 
1584
    }
1505
    oprot.writeFieldStop();
1585
    oprot.writeFieldStop();
1506
    oprot.writeStructEnd();
1586
    oprot.writeStructEnd();
1507
  }
1587
  }
1508
 
1588
 
1509
  @Override
1589
  @Override
Line 1600... Line 1680...
1600
    first = false;
1680
    first = false;
1601
    if (!first) sb.append(", ");
1681
    if (!first) sb.append(", ");
1602
    sb.append("responseTimestamp:");
1682
    sb.append("responseTimestamp:");
1603
    sb.append(this.responseTimestamp);
1683
    sb.append(this.responseTimestamp);
1604
    first = false;
1684
    first = false;
-
 
1685
    if (!first) sb.append(", ");
-
 
1686
    sb.append("description:");
-
 
1687
    if (this.description == null) {
-
 
1688
      sb.append("null");
-
 
1689
    } else {
-
 
1690
      sb.append(this.description);
-
 
1691
    }
-
 
1692
    first = false;
1605
    sb.append(")");
1693
    sb.append(")");
1606
    return sb.toString();
1694
    return sb.toString();
1607
  }
1695
  }
1608
 
1696
 
1609
  public void validate() throws org.apache.thrift.TException {
1697
  public void validate() throws org.apache.thrift.TException {