| Line 23... |
Line 23... |
| 23 |
public class SnapdealOrder implements org.apache.thrift.TBase<SnapdealOrder, SnapdealOrder._Fields>, java.io.Serializable, Cloneable {
|
23 |
public class SnapdealOrder implements org.apache.thrift.TBase<SnapdealOrder, SnapdealOrder._Fields>, java.io.Serializable, Cloneable {
|
| 24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealOrder");
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SnapdealOrder");
|
| 25 |
|
25 |
|
| 26 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
26 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 27 |
private static final org.apache.thrift.protocol.TField REFERENCE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceCode", org.apache.thrift.protocol.TType.STRING, (short)2);
|
27 |
private static final org.apache.thrift.protocol.TField REFERENCE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceCode", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 28 |
private static final org.apache.thrift.protocol.TField SUB_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("subOrderId", org.apache.thrift.protocol.TType.I64, (short)3);
|
28 |
private static final org.apache.thrift.protocol.TField SUB_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("subOrderId", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| 29 |
private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
|
29 |
private static final org.apache.thrift.protocol.TField LISTING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("listingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
|
| 30 |
private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)5);
|
30 |
private static final org.apache.thrift.protocol.TField PRODUCT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("productName", org.apache.thrift.protocol.TType.STRING, (short)5);
|
| 31 |
private static final org.apache.thrift.protocol.TField SNAPDEAL_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
|
31 |
private static final org.apache.thrift.protocol.TField SNAPDEAL_TXN_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealTxnDate", org.apache.thrift.protocol.TType.I64, (short)6);
|
| 32 |
private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
32 |
private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
| 33 |
|
33 |
|
| 34 |
private long orderId; // required
|
34 |
private long orderId; // required
|
| 35 |
private String referenceCode; // required
|
35 |
private String referenceCode; // required
|
| 36 |
private long subOrderId; // required
|
36 |
private String subOrderId; // required
|
| 37 |
private double listingPrice; // required
|
37 |
private double listingPrice; // required
|
| 38 |
private String productName; // required
|
38 |
private String productName; // required
|
| 39 |
private long snapdealTxnDate; // required
|
39 |
private long snapdealTxnDate; // required
|
| 40 |
private double maxNlc; // required
|
40 |
private double maxNlc; // required
|
| 41 |
|
41 |
|
| Line 115... |
Line 115... |
| 115 |
}
|
115 |
}
|
| 116 |
}
|
116 |
}
|
| 117 |
|
117 |
|
| 118 |
// isset id assignments
|
118 |
// isset id assignments
|
| 119 |
private static final int __ORDERID_ISSET_ID = 0;
|
119 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 120 |
private static final int __SUBORDERID_ISSET_ID = 1;
|
- |
|
| 121 |
private static final int __LISTINGPRICE_ISSET_ID = 2;
|
120 |
private static final int __LISTINGPRICE_ISSET_ID = 1;
|
| 122 |
private static final int __SNAPDEALTXNDATE_ISSET_ID = 3;
|
121 |
private static final int __SNAPDEALTXNDATE_ISSET_ID = 2;
|
| 123 |
private static final int __MAXNLC_ISSET_ID = 4;
|
122 |
private static final int __MAXNLC_ISSET_ID = 3;
|
| 124 |
private BitSet __isset_bit_vector = new BitSet(5);
|
123 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 125 |
|
124 |
|
| 126 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
125 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 127 |
static {
|
126 |
static {
|
| 128 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
127 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 129 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
128 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 130 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
129 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 131 |
tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
130 |
tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 132 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
131 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 133 |
tmpMap.put(_Fields.SUB_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("subOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
132 |
tmpMap.put(_Fields.SUB_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("subOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 134 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
133 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 135 |
tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
134 |
tmpMap.put(_Fields.LISTING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("listingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 136 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
135 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 137 |
tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
136 |
tmpMap.put(_Fields.PRODUCT_NAME, new org.apache.thrift.meta_data.FieldMetaData("productName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 138 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
137 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 139 |
tmpMap.put(_Fields.SNAPDEAL_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("snapdealTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
138 |
tmpMap.put(_Fields.SNAPDEAL_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("snapdealTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 148... |
Line 147... |
| 148 |
}
|
147 |
}
|
| 149 |
|
148 |
|
| 150 |
public SnapdealOrder(
|
149 |
public SnapdealOrder(
|
| 151 |
long orderId,
|
150 |
long orderId,
|
| 152 |
String referenceCode,
|
151 |
String referenceCode,
|
| 153 |
long subOrderId,
|
152 |
String subOrderId,
|
| 154 |
double listingPrice,
|
153 |
double listingPrice,
|
| 155 |
String productName,
|
154 |
String productName,
|
| 156 |
long snapdealTxnDate,
|
155 |
long snapdealTxnDate,
|
| 157 |
double maxNlc)
|
156 |
double maxNlc)
|
| 158 |
{
|
157 |
{
|
| 159 |
this();
|
158 |
this();
|
| 160 |
this.orderId = orderId;
|
159 |
this.orderId = orderId;
|
| 161 |
setOrderIdIsSet(true);
|
160 |
setOrderIdIsSet(true);
|
| 162 |
this.referenceCode = referenceCode;
|
161 |
this.referenceCode = referenceCode;
|
| 163 |
this.subOrderId = subOrderId;
|
162 |
this.subOrderId = subOrderId;
|
| 164 |
setSubOrderIdIsSet(true);
|
- |
|
| 165 |
this.listingPrice = listingPrice;
|
163 |
this.listingPrice = listingPrice;
|
| 166 |
setListingPriceIsSet(true);
|
164 |
setListingPriceIsSet(true);
|
| 167 |
this.productName = productName;
|
165 |
this.productName = productName;
|
| 168 |
this.snapdealTxnDate = snapdealTxnDate;
|
166 |
this.snapdealTxnDate = snapdealTxnDate;
|
| 169 |
setSnapdealTxnDateIsSet(true);
|
167 |
setSnapdealTxnDateIsSet(true);
|
| Line 179... |
Line 177... |
| 179 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
177 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 180 |
this.orderId = other.orderId;
|
178 |
this.orderId = other.orderId;
|
| 181 |
if (other.isSetReferenceCode()) {
|
179 |
if (other.isSetReferenceCode()) {
|
| 182 |
this.referenceCode = other.referenceCode;
|
180 |
this.referenceCode = other.referenceCode;
|
| 183 |
}
|
181 |
}
|
| - |
|
182 |
if (other.isSetSubOrderId()) {
|
| 184 |
this.subOrderId = other.subOrderId;
|
183 |
this.subOrderId = other.subOrderId;
|
| - |
|
184 |
}
|
| 185 |
this.listingPrice = other.listingPrice;
|
185 |
this.listingPrice = other.listingPrice;
|
| 186 |
if (other.isSetProductName()) {
|
186 |
if (other.isSetProductName()) {
|
| 187 |
this.productName = other.productName;
|
187 |
this.productName = other.productName;
|
| 188 |
}
|
188 |
}
|
| 189 |
this.snapdealTxnDate = other.snapdealTxnDate;
|
189 |
this.snapdealTxnDate = other.snapdealTxnDate;
|
| Line 197... |
Line 197... |
| 197 |
@Override
|
197 |
@Override
|
| 198 |
public void clear() {
|
198 |
public void clear() {
|
| 199 |
setOrderIdIsSet(false);
|
199 |
setOrderIdIsSet(false);
|
| 200 |
this.orderId = 0;
|
200 |
this.orderId = 0;
|
| 201 |
this.referenceCode = null;
|
201 |
this.referenceCode = null;
|
| 202 |
setSubOrderIdIsSet(false);
|
- |
|
| 203 |
this.subOrderId = 0;
|
202 |
this.subOrderId = null;
|
| 204 |
setListingPriceIsSet(false);
|
203 |
setListingPriceIsSet(false);
|
| 205 |
this.listingPrice = 0.0;
|
204 |
this.listingPrice = 0.0;
|
| 206 |
this.productName = null;
|
205 |
this.productName = null;
|
| 207 |
setSnapdealTxnDateIsSet(false);
|
206 |
setSnapdealTxnDateIsSet(false);
|
| 208 |
this.snapdealTxnDate = 0;
|
207 |
this.snapdealTxnDate = 0;
|
| Line 253... |
Line 252... |
| 253 |
if (!value) {
|
252 |
if (!value) {
|
| 254 |
this.referenceCode = null;
|
253 |
this.referenceCode = null;
|
| 255 |
}
|
254 |
}
|
| 256 |
}
|
255 |
}
|
| 257 |
|
256 |
|
| 258 |
public long getSubOrderId() {
|
257 |
public String getSubOrderId() {
|
| 259 |
return this.subOrderId;
|
258 |
return this.subOrderId;
|
| 260 |
}
|
259 |
}
|
| 261 |
|
260 |
|
| 262 |
public void setSubOrderId(long subOrderId) {
|
261 |
public void setSubOrderId(String subOrderId) {
|
| 263 |
this.subOrderId = subOrderId;
|
262 |
this.subOrderId = subOrderId;
|
| 264 |
setSubOrderIdIsSet(true);
|
- |
|
| 265 |
}
|
263 |
}
|
| 266 |
|
264 |
|
| 267 |
public void unsetSubOrderId() {
|
265 |
public void unsetSubOrderId() {
|
| 268 |
__isset_bit_vector.clear(__SUBORDERID_ISSET_ID);
|
266 |
this.subOrderId = null;
|
| 269 |
}
|
267 |
}
|
| 270 |
|
268 |
|
| 271 |
/** Returns true if field subOrderId is set (has been assigned a value) and false otherwise */
|
269 |
/** Returns true if field subOrderId is set (has been assigned a value) and false otherwise */
|
| 272 |
public boolean isSetSubOrderId() {
|
270 |
public boolean isSetSubOrderId() {
|
| 273 |
return __isset_bit_vector.get(__SUBORDERID_ISSET_ID);
|
271 |
return this.subOrderId != null;
|
| 274 |
}
|
272 |
}
|
| 275 |
|
273 |
|
| 276 |
public void setSubOrderIdIsSet(boolean value) {
|
274 |
public void setSubOrderIdIsSet(boolean value) {
|
| - |
|
275 |
if (!value) {
|
| 277 |
__isset_bit_vector.set(__SUBORDERID_ISSET_ID, value);
|
276 |
this.subOrderId = null;
|
| - |
|
277 |
}
|
| 278 |
}
|
278 |
}
|
| 279 |
|
279 |
|
| 280 |
public double getListingPrice() {
|
280 |
public double getListingPrice() {
|
| 281 |
return this.listingPrice;
|
281 |
return this.listingPrice;
|
| 282 |
}
|
282 |
}
|
| Line 386... |
Line 386... |
| 386 |
|
386 |
|
| 387 |
case SUB_ORDER_ID:
|
387 |
case SUB_ORDER_ID:
|
| 388 |
if (value == null) {
|
388 |
if (value == null) {
|
| 389 |
unsetSubOrderId();
|
389 |
unsetSubOrderId();
|
| 390 |
} else {
|
390 |
} else {
|
| 391 |
setSubOrderId((Long)value);
|
391 |
setSubOrderId((String)value);
|
| 392 |
}
|
392 |
}
|
| 393 |
break;
|
393 |
break;
|
| 394 |
|
394 |
|
| 395 |
case LISTING_PRICE:
|
395 |
case LISTING_PRICE:
|
| 396 |
if (value == null) {
|
396 |
if (value == null) {
|
| Line 434... |
Line 434... |
| 434 |
|
434 |
|
| 435 |
case REFERENCE_CODE:
|
435 |
case REFERENCE_CODE:
|
| 436 |
return getReferenceCode();
|
436 |
return getReferenceCode();
|
| 437 |
|
437 |
|
| 438 |
case SUB_ORDER_ID:
|
438 |
case SUB_ORDER_ID:
|
| 439 |
return Long.valueOf(getSubOrderId());
|
439 |
return getSubOrderId();
|
| 440 |
|
440 |
|
| 441 |
case LISTING_PRICE:
|
441 |
case LISTING_PRICE:
|
| 442 |
return Double.valueOf(getListingPrice());
|
442 |
return Double.valueOf(getListingPrice());
|
| 443 |
|
443 |
|
| 444 |
case PRODUCT_NAME:
|
444 |
case PRODUCT_NAME:
|
| Line 508... |
Line 508... |
| 508 |
return false;
|
508 |
return false;
|
| 509 |
if (!this.referenceCode.equals(that.referenceCode))
|
509 |
if (!this.referenceCode.equals(that.referenceCode))
|
| 510 |
return false;
|
510 |
return false;
|
| 511 |
}
|
511 |
}
|
| 512 |
|
512 |
|
| 513 |
boolean this_present_subOrderId = true;
|
513 |
boolean this_present_subOrderId = true && this.isSetSubOrderId();
|
| 514 |
boolean that_present_subOrderId = true;
|
514 |
boolean that_present_subOrderId = true && that.isSetSubOrderId();
|
| 515 |
if (this_present_subOrderId || that_present_subOrderId) {
|
515 |
if (this_present_subOrderId || that_present_subOrderId) {
|
| 516 |
if (!(this_present_subOrderId && that_present_subOrderId))
|
516 |
if (!(this_present_subOrderId && that_present_subOrderId))
|
| 517 |
return false;
|
517 |
return false;
|
| 518 |
if (this.subOrderId != that.subOrderId)
|
518 |
if (!this.subOrderId.equals(that.subOrderId))
|
| 519 |
return false;
|
519 |
return false;
|
| 520 |
}
|
520 |
}
|
| 521 |
|
521 |
|
| 522 |
boolean this_present_listingPrice = true;
|
522 |
boolean this_present_listingPrice = true;
|
| 523 |
boolean that_present_listingPrice = true;
|
523 |
boolean that_present_listingPrice = true;
|
| Line 672... |
Line 672... |
| 672 |
} else {
|
672 |
} else {
|
| 673 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
673 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
}
|
674 |
}
|
| 675 |
break;
|
675 |
break;
|
| 676 |
case 3: // SUB_ORDER_ID
|
676 |
case 3: // SUB_ORDER_ID
|
| 677 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
677 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 678 |
this.subOrderId = iprot.readI64();
|
678 |
this.subOrderId = iprot.readString();
|
| 679 |
setSubOrderIdIsSet(true);
|
- |
|
| 680 |
} else {
|
679 |
} else {
|
| 681 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
680 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 682 |
}
|
681 |
}
|
| 683 |
break;
|
682 |
break;
|
| 684 |
case 4: // LISTING_PRICE
|
683 |
case 4: // LISTING_PRICE
|
| Line 731... |
Line 730... |
| 731 |
if (this.referenceCode != null) {
|
730 |
if (this.referenceCode != null) {
|
| 732 |
oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
|
731 |
oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
|
| 733 |
oprot.writeString(this.referenceCode);
|
732 |
oprot.writeString(this.referenceCode);
|
| 734 |
oprot.writeFieldEnd();
|
733 |
oprot.writeFieldEnd();
|
| 735 |
}
|
734 |
}
|
| - |
|
735 |
if (this.subOrderId != null) {
|
| 736 |
oprot.writeFieldBegin(SUB_ORDER_ID_FIELD_DESC);
|
736 |
oprot.writeFieldBegin(SUB_ORDER_ID_FIELD_DESC);
|
| 737 |
oprot.writeI64(this.subOrderId);
|
737 |
oprot.writeString(this.subOrderId);
|
| 738 |
oprot.writeFieldEnd();
|
738 |
oprot.writeFieldEnd();
|
| - |
|
739 |
}
|
| 739 |
oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
|
740 |
oprot.writeFieldBegin(LISTING_PRICE_FIELD_DESC);
|
| 740 |
oprot.writeDouble(this.listingPrice);
|
741 |
oprot.writeDouble(this.listingPrice);
|
| 741 |
oprot.writeFieldEnd();
|
742 |
oprot.writeFieldEnd();
|
| 742 |
if (this.productName != null) {
|
743 |
if (this.productName != null) {
|
| 743 |
oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
|
744 |
oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
|
| Line 770... |
Line 771... |
| 770 |
sb.append(this.referenceCode);
|
771 |
sb.append(this.referenceCode);
|
| 771 |
}
|
772 |
}
|
| 772 |
first = false;
|
773 |
first = false;
|
| 773 |
if (!first) sb.append(", ");
|
774 |
if (!first) sb.append(", ");
|
| 774 |
sb.append("subOrderId:");
|
775 |
sb.append("subOrderId:");
|
| - |
|
776 |
if (this.subOrderId == null) {
|
| - |
|
777 |
sb.append("null");
|
| - |
|
778 |
} else {
|
| 775 |
sb.append(this.subOrderId);
|
779 |
sb.append(this.subOrderId);
|
| - |
|
780 |
}
|
| 776 |
first = false;
|
781 |
first = false;
|
| 777 |
if (!first) sb.append(", ");
|
782 |
if (!first) sb.append(", ");
|
| 778 |
sb.append("listingPrice:");
|
783 |
sb.append("listingPrice:");
|
| 779 |
sb.append(this.listingPrice);
|
784 |
sb.append(this.listingPrice);
|
| 780 |
first = false;
|
785 |
first = false;
|