Subversion Repositories SmartDukaan

Rev

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

Rev 9299 Rev 11653
Line 35... Line 35...
35
  private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)10);
35
  private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)10);
36
  private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)11);
37
  private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
37
  private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionInsurer", org.apache.thrift.protocol.TType.I64, (short)13);
38
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionInsurer", org.apache.thrift.protocol.TType.I64, (short)13);
39
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
39
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
-
 
40
  private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)15);
-
 
41
  private static final org.apache.thrift.protocol.TField FREEBIE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieId", org.apache.thrift.protocol.TType.STRING, (short)16);
40
 
42
 
41
  private long cartId; // required
43
  private long cartId; // required
42
  private long itemId; // required
44
  private long itemId; // required
43
  private double quantity; // required
45
  private double quantity; // required
44
  private long createdOn; // required
46
  private long createdOn; // required
Line 50... Line 52...
50
  private List<Discount> discounts; // required
52
  private List<Discount> discounts; // required
51
  private long insurer; // required
53
  private long insurer; // required
52
  private double insuranceAmount; // required
54
  private double insuranceAmount; // required
53
  private long dataProtectionInsurer; // required
55
  private long dataProtectionInsurer; // required
54
  private double dataProtectionAmount; // required
56
  private double dataProtectionAmount; // required
-
 
57
  private String dealText; // required
-
 
58
  private String freebieId; // required
55
 
59
 
56
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
61
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58
    CART_ID((short)1, "cartId"),
62
    CART_ID((short)1, "cartId"),
59
    ITEM_ID((short)2, "itemId"),
63
    ITEM_ID((short)2, "itemId"),
Line 70... Line 74...
70
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
74
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
71
    DISCOUNTS((short)10, "discounts"),
75
    DISCOUNTS((short)10, "discounts"),
72
    INSURER((short)11, "insurer"),
76
    INSURER((short)11, "insurer"),
73
    INSURANCE_AMOUNT((short)12, "insuranceAmount"),
77
    INSURANCE_AMOUNT((short)12, "insuranceAmount"),
74
    DATA_PROTECTION_INSURER((short)13, "dataProtectionInsurer"),
78
    DATA_PROTECTION_INSURER((short)13, "dataProtectionInsurer"),
75
    DATA_PROTECTION_AMOUNT((short)14, "dataProtectionAmount");
79
    DATA_PROTECTION_AMOUNT((short)14, "dataProtectionAmount"),
-
 
80
    DEAL_TEXT((short)15, "dealText"),
-
 
81
    FREEBIE_ID((short)16, "freebieId");
76
 
82
 
77
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
83
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
78
 
84
 
79
    static {
85
    static {
80
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
86
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 113... Line 119...
113
          return INSURANCE_AMOUNT;
119
          return INSURANCE_AMOUNT;
114
        case 13: // DATA_PROTECTION_INSURER
120
        case 13: // DATA_PROTECTION_INSURER
115
          return DATA_PROTECTION_INSURER;
121
          return DATA_PROTECTION_INSURER;
116
        case 14: // DATA_PROTECTION_AMOUNT
122
        case 14: // DATA_PROTECTION_AMOUNT
117
          return DATA_PROTECTION_AMOUNT;
123
          return DATA_PROTECTION_AMOUNT;
-
 
124
        case 15: // DEAL_TEXT
-
 
125
          return DEAL_TEXT;
-
 
126
        case 16: // FREEBIE_ID
-
 
127
          return FREEBIE_ID;
118
        default:
128
        default:
119
          return null;
129
          return null;
120
      }
130
      }
121
    }
131
    }
122
 
132
 
Line 199... Line 209...
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
200
    tmpMap.put(_Fields.DATA_PROTECTION_INSURER, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
    tmpMap.put(_Fields.DATA_PROTECTION_INSURER, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
211
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
202
    tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
    tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
213
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
214
    tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
215
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
216
    tmpMap.put(_Fields.FREEBIE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
217
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
204
    metaDataMap = Collections.unmodifiableMap(tmpMap);
218
    metaDataMap = Collections.unmodifiableMap(tmpMap);
205
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
219
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
206
  }
220
  }
207
 
221
 
208
  public Line() {
222
  public Line() {
Line 220... Line 234...
220
    double discountedPrice,
234
    double discountedPrice,
221
    List<Discount> discounts,
235
    List<Discount> discounts,
222
    long insurer,
236
    long insurer,
223
    double insuranceAmount,
237
    double insuranceAmount,
224
    long dataProtectionInsurer,
238
    long dataProtectionInsurer,
225
    double dataProtectionAmount)
239
    double dataProtectionAmount,
-
 
240
    String dealText,
-
 
241
    String freebieId)
226
  {
242
  {
227
    this();
243
    this();
228
    this.cartId = cartId;
244
    this.cartId = cartId;
229
    setCartIdIsSet(true);
245
    setCartIdIsSet(true);
230
    this.itemId = itemId;
246
    this.itemId = itemId;
Line 249... Line 265...
249
    setInsuranceAmountIsSet(true);
265
    setInsuranceAmountIsSet(true);
250
    this.dataProtectionInsurer = dataProtectionInsurer;
266
    this.dataProtectionInsurer = dataProtectionInsurer;
251
    setDataProtectionInsurerIsSet(true);
267
    setDataProtectionInsurerIsSet(true);
252
    this.dataProtectionAmount = dataProtectionAmount;
268
    this.dataProtectionAmount = dataProtectionAmount;
253
    setDataProtectionAmountIsSet(true);
269
    setDataProtectionAmountIsSet(true);
-
 
270
    this.dealText = dealText;
-
 
271
    this.freebieId = freebieId;
254
  }
272
  }
255
 
273
 
256
  /**
274
  /**
257
   * Performs a deep copy on <i>other</i>.
275
   * Performs a deep copy on <i>other</i>.
258
   */
276
   */
Line 279... Line 297...
279
    }
297
    }
280
    this.insurer = other.insurer;
298
    this.insurer = other.insurer;
281
    this.insuranceAmount = other.insuranceAmount;
299
    this.insuranceAmount = other.insuranceAmount;
282
    this.dataProtectionInsurer = other.dataProtectionInsurer;
300
    this.dataProtectionInsurer = other.dataProtectionInsurer;
283
    this.dataProtectionAmount = other.dataProtectionAmount;
301
    this.dataProtectionAmount = other.dataProtectionAmount;
-
 
302
    if (other.isSetDealText()) {
-
 
303
      this.dealText = other.dealText;
-
 
304
    }
-
 
305
    if (other.isSetFreebieId()) {
-
 
306
      this.freebieId = other.freebieId;
-
 
307
    }
284
  }
308
  }
285
 
309
 
286
  public Line deepCopy() {
310
  public Line deepCopy() {
287
    return new Line(this);
311
    return new Line(this);
288
  }
312
  }
Line 313... Line 337...
313
    this.insuranceAmount = 0.0;
337
    this.insuranceAmount = 0.0;
314
    setDataProtectionInsurerIsSet(false);
338
    setDataProtectionInsurerIsSet(false);
315
    this.dataProtectionInsurer = 0;
339
    this.dataProtectionInsurer = 0;
316
    setDataProtectionAmountIsSet(false);
340
    setDataProtectionAmountIsSet(false);
317
    this.dataProtectionAmount = 0.0;
341
    this.dataProtectionAmount = 0.0;
-
 
342
    this.dealText = null;
-
 
343
    this.freebieId = null;
318
  }
344
  }
319
 
345
 
320
  public long getCartId() {
346
  public long getCartId() {
321
    return this.cartId;
347
    return this.cartId;
322
  }
348
  }
Line 648... Line 674...
648
 
674
 
649
  public void setDataProtectionAmountIsSet(boolean value) {
675
  public void setDataProtectionAmountIsSet(boolean value) {
650
    __isset_bit_vector.set(__DATAPROTECTIONAMOUNT_ISSET_ID, value);
676
    __isset_bit_vector.set(__DATAPROTECTIONAMOUNT_ISSET_ID, value);
651
  }
677
  }
652
 
678
 
-
 
679
  public String getDealText() {
-
 
680
    return this.dealText;
-
 
681
  }
-
 
682
 
-
 
683
  public void setDealText(String dealText) {
-
 
684
    this.dealText = dealText;
-
 
685
  }
-
 
686
 
-
 
687
  public void unsetDealText() {
-
 
688
    this.dealText = null;
-
 
689
  }
-
 
690
 
-
 
691
  /** Returns true if field dealText is set (has been assigned a value) and false otherwise */
-
 
692
  public boolean isSetDealText() {
-
 
693
    return this.dealText != null;
-
 
694
  }
-
 
695
 
-
 
696
  public void setDealTextIsSet(boolean value) {
-
 
697
    if (!value) {
-
 
698
      this.dealText = null;
-
 
699
    }
-
 
700
  }
-
 
701
 
-
 
702
  public String getFreebieId() {
-
 
703
    return this.freebieId;
-
 
704
  }
-
 
705
 
-
 
706
  public void setFreebieId(String freebieId) {
-
 
707
    this.freebieId = freebieId;
-
 
708
  }
-
 
709
 
-
 
710
  public void unsetFreebieId() {
-
 
711
    this.freebieId = null;
-
 
712
  }
-
 
713
 
-
 
714
  /** Returns true if field freebieId is set (has been assigned a value) and false otherwise */
-
 
715
  public boolean isSetFreebieId() {
-
 
716
    return this.freebieId != null;
-
 
717
  }
-
 
718
 
-
 
719
  public void setFreebieIdIsSet(boolean value) {
-
 
720
    if (!value) {
-
 
721
      this.freebieId = null;
-
 
722
    }
-
 
723
  }
-
 
724
 
653
  public void setFieldValue(_Fields field, Object value) {
725
  public void setFieldValue(_Fields field, Object value) {
654
    switch (field) {
726
    switch (field) {
655
    case CART_ID:
727
    case CART_ID:
656
      if (value == null) {
728
      if (value == null) {
657
        unsetCartId();
729
        unsetCartId();
Line 762... Line 834...
762
      } else {
834
      } else {
763
        setDataProtectionAmount((Double)value);
835
        setDataProtectionAmount((Double)value);
764
      }
836
      }
765
      break;
837
      break;
766
 
838
 
-
 
839
    case DEAL_TEXT:
-
 
840
      if (value == null) {
-
 
841
        unsetDealText();
-
 
842
      } else {
-
 
843
        setDealText((String)value);
-
 
844
      }
-
 
845
      break;
-
 
846
 
-
 
847
    case FREEBIE_ID:
-
 
848
      if (value == null) {
-
 
849
        unsetFreebieId();
-
 
850
      } else {
-
 
851
        setFreebieId((String)value);
-
 
852
      }
-
 
853
      break;
-
 
854
 
767
    }
855
    }
768
  }
856
  }
769
 
857
 
770
  public Object getFieldValue(_Fields field) {
858
  public Object getFieldValue(_Fields field) {
771
    switch (field) {
859
    switch (field) {
Line 809... Line 897...
809
      return Long.valueOf(getDataProtectionInsurer());
897
      return Long.valueOf(getDataProtectionInsurer());
810
 
898
 
811
    case DATA_PROTECTION_AMOUNT:
899
    case DATA_PROTECTION_AMOUNT:
812
      return Double.valueOf(getDataProtectionAmount());
900
      return Double.valueOf(getDataProtectionAmount());
813
 
901
 
-
 
902
    case DEAL_TEXT:
-
 
903
      return getDealText();
-
 
904
 
-
 
905
    case FREEBIE_ID:
-
 
906
      return getFreebieId();
-
 
907
 
814
    }
908
    }
815
    throw new IllegalStateException();
909
    throw new IllegalStateException();
816
  }
910
  }
817
 
911
 
818
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
912
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 848... Line 942...
848
      return isSetInsuranceAmount();
942
      return isSetInsuranceAmount();
849
    case DATA_PROTECTION_INSURER:
943
    case DATA_PROTECTION_INSURER:
850
      return isSetDataProtectionInsurer();
944
      return isSetDataProtectionInsurer();
851
    case DATA_PROTECTION_AMOUNT:
945
    case DATA_PROTECTION_AMOUNT:
852
      return isSetDataProtectionAmount();
946
      return isSetDataProtectionAmount();
-
 
947
    case DEAL_TEXT:
-
 
948
      return isSetDealText();
-
 
949
    case FREEBIE_ID:
-
 
950
      return isSetFreebieId();
853
    }
951
    }
854
    throw new IllegalStateException();
952
    throw new IllegalStateException();
855
  }
953
  }
856
 
954
 
857
  @Override
955
  @Override
Line 991... Line 1089...
991
        return false;
1089
        return false;
992
      if (this.dataProtectionAmount != that.dataProtectionAmount)
1090
      if (this.dataProtectionAmount != that.dataProtectionAmount)
993
        return false;
1091
        return false;
994
    }
1092
    }
995
 
1093
 
-
 
1094
    boolean this_present_dealText = true && this.isSetDealText();
-
 
1095
    boolean that_present_dealText = true && that.isSetDealText();
-
 
1096
    if (this_present_dealText || that_present_dealText) {
-
 
1097
      if (!(this_present_dealText && that_present_dealText))
-
 
1098
        return false;
-
 
1099
      if (!this.dealText.equals(that.dealText))
-
 
1100
        return false;
-
 
1101
    }
-
 
1102
 
-
 
1103
    boolean this_present_freebieId = true && this.isSetFreebieId();
-
 
1104
    boolean that_present_freebieId = true && that.isSetFreebieId();
-
 
1105
    if (this_present_freebieId || that_present_freebieId) {
-
 
1106
      if (!(this_present_freebieId && that_present_freebieId))
-
 
1107
        return false;
-
 
1108
      if (!this.freebieId.equals(that.freebieId))
-
 
1109
        return false;
-
 
1110
    }
-
 
1111
 
996
    return true;
1112
    return true;
997
  }
1113
  }
998
 
1114
 
999
  @Override
1115
  @Override
1000
  public int hashCode() {
1116
  public int hashCode() {
Line 1147... Line 1263...
1147
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionAmount, typedOther.dataProtectionAmount);
1263
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionAmount, typedOther.dataProtectionAmount);
1148
      if (lastComparison != 0) {
1264
      if (lastComparison != 0) {
1149
        return lastComparison;
1265
        return lastComparison;
1150
      }
1266
      }
1151
    }
1267
    }
-
 
1268
    lastComparison = Boolean.valueOf(isSetDealText()).compareTo(typedOther.isSetDealText());
-
 
1269
    if (lastComparison != 0) {
-
 
1270
      return lastComparison;
-
 
1271
    }
-
 
1272
    if (isSetDealText()) {
-
 
1273
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealText, typedOther.dealText);
-
 
1274
      if (lastComparison != 0) {
-
 
1275
        return lastComparison;
-
 
1276
      }
-
 
1277
    }
-
 
1278
    lastComparison = Boolean.valueOf(isSetFreebieId()).compareTo(typedOther.isSetFreebieId());
-
 
1279
    if (lastComparison != 0) {
-
 
1280
      return lastComparison;
-
 
1281
    }
-
 
1282
    if (isSetFreebieId()) {
-
 
1283
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieId, typedOther.freebieId);
-
 
1284
      if (lastComparison != 0) {
-
 
1285
        return lastComparison;
-
 
1286
      }
-
 
1287
    }
1152
    return 0;
1288
    return 0;
1153
  }
1289
  }
1154
 
1290
 
1155
  public _Fields fieldForId(int fieldId) {
1291
  public _Fields fieldForId(int fieldId) {
1156
    return _Fields.findByThriftId(fieldId);
1292
    return _Fields.findByThriftId(fieldId);
Line 1285... Line 1421...
1285
            setDataProtectionAmountIsSet(true);
1421
            setDataProtectionAmountIsSet(true);
1286
          } else { 
1422
          } else { 
1287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1423
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1288
          }
1424
          }
1289
          break;
1425
          break;
-
 
1426
        case 15: // DEAL_TEXT
-
 
1427
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1428
            this.dealText = iprot.readString();
-
 
1429
          } else { 
-
 
1430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1431
          }
-
 
1432
          break;
-
 
1433
        case 16: // FREEBIE_ID
-
 
1434
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1435
            this.freebieId = iprot.readString();
-
 
1436
          } else { 
-
 
1437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1438
          }
-
 
1439
          break;
1290
        default:
1440
        default:
1291
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1441
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1292
      }
1442
      }
1293
      iprot.readFieldEnd();
1443
      iprot.readFieldEnd();
1294
    }
1444
    }
Line 1351... Line 1501...
1351
    oprot.writeI64(this.dataProtectionInsurer);
1501
    oprot.writeI64(this.dataProtectionInsurer);
1352
    oprot.writeFieldEnd();
1502
    oprot.writeFieldEnd();
1353
    oprot.writeFieldBegin(DATA_PROTECTION_AMOUNT_FIELD_DESC);
1503
    oprot.writeFieldBegin(DATA_PROTECTION_AMOUNT_FIELD_DESC);
1354
    oprot.writeDouble(this.dataProtectionAmount);
1504
    oprot.writeDouble(this.dataProtectionAmount);
1355
    oprot.writeFieldEnd();
1505
    oprot.writeFieldEnd();
-
 
1506
    if (this.dealText != null) {
-
 
1507
      oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
-
 
1508
      oprot.writeString(this.dealText);
-
 
1509
      oprot.writeFieldEnd();
-
 
1510
    }
-
 
1511
    if (this.freebieId != null) {
-
 
1512
      oprot.writeFieldBegin(FREEBIE_ID_FIELD_DESC);
-
 
1513
      oprot.writeString(this.freebieId);
-
 
1514
      oprot.writeFieldEnd();
-
 
1515
    }
1356
    oprot.writeFieldStop();
1516
    oprot.writeFieldStop();
1357
    oprot.writeStructEnd();
1517
    oprot.writeStructEnd();
1358
  }
1518
  }
1359
 
1519
 
1360
  @Override
1520
  @Override
Line 1423... Line 1583...
1423
    first = false;
1583
    first = false;
1424
    if (!first) sb.append(", ");
1584
    if (!first) sb.append(", ");
1425
    sb.append("dataProtectionAmount:");
1585
    sb.append("dataProtectionAmount:");
1426
    sb.append(this.dataProtectionAmount);
1586
    sb.append(this.dataProtectionAmount);
1427
    first = false;
1587
    first = false;
-
 
1588
    if (!first) sb.append(", ");
-
 
1589
    sb.append("dealText:");
-
 
1590
    if (this.dealText == null) {
-
 
1591
      sb.append("null");
-
 
1592
    } else {
-
 
1593
      sb.append(this.dealText);
-
 
1594
    }
-
 
1595
    first = false;
-
 
1596
    if (!first) sb.append(", ");
-
 
1597
    sb.append("freebieId:");
-
 
1598
    if (this.freebieId == null) {
-
 
1599
      sb.append("null");
-
 
1600
    } else {
-
 
1601
      sb.append(this.freebieId);
-
 
1602
    }
-
 
1603
    first = false;
1428
    sb.append(")");
1604
    sb.append(")");
1429
    return sb.toString();
1605
    return sb.toString();
1430
  }
1606
  }
1431
 
1607
 
1432
  public void validate() throws org.apache.thrift.TException {
1608
  public void validate() throws org.apache.thrift.TException {