| Line 42... |
Line 42... |
| 42 |
private static final org.apache.thrift.protocol.TField GROSS_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("gross_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
42 |
private static final org.apache.thrift.protocol.TField GROSS_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("gross_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
|
| 43 |
private static final org.apache.thrift.protocol.TField CHEAPEST_BULK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("cheapestBulkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
|
43 |
private static final org.apache.thrift.protocol.TField CHEAPEST_BULK_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("cheapestBulkPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
|
| 44 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
|
44 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
|
| 45 |
private static final org.apache.thrift.protocol.TField NET_PRICE_AFTER_CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("netPriceAfterCashBack", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
|
45 |
private static final org.apache.thrift.protocol.TField NET_PRICE_AFTER_CASH_BACK_FIELD_DESC = new org.apache.thrift.protocol.TField("netPriceAfterCashBack", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
|
| 46 |
private static final org.apache.thrift.protocol.TField SHOW_NET_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showNetPrice", org.apache.thrift.protocol.TType.I64, (short)18);
|
46 |
private static final org.apache.thrift.protocol.TField SHOW_NET_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showNetPrice", org.apache.thrift.protocol.TType.I64, (short)18);
|
| - |
|
47 |
private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("category_id", org.apache.thrift.protocol.TType.I64, (short)19);
|
| - |
|
48 |
private static final org.apache.thrift.protocol.TField SUB_CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("subCategoryId", org.apache.thrift.protocol.TType.I64, (short)20);
|
| 47 |
|
49 |
|
| 48 |
private long _id; // required
|
50 |
private long _id; // required
|
| 49 |
private double available_price; // required
|
51 |
private double available_price; // required
|
| 50 |
private String marketPlaceUrl; // required
|
52 |
private String marketPlaceUrl; // required
|
| 51 |
private long in_stock; // required
|
53 |
private long in_stock; // required
|
| Line 61... |
Line 63... |
| 61 |
private double gross_price; // required
|
63 |
private double gross_price; // required
|
| 62 |
private double cheapestBulkPrice; // required
|
64 |
private double cheapestBulkPrice; // required
|
| 63 |
private long packQuantity; // required
|
65 |
private long packQuantity; // required
|
| 64 |
private double netPriceAfterCashBack; // required
|
66 |
private double netPriceAfterCashBack; // required
|
| 65 |
private long showNetPrice; // required
|
67 |
private long showNetPrice; // required
|
| - |
|
68 |
private long category_id; // required
|
| - |
|
69 |
private long subCategoryId; // required
|
| 66 |
|
70 |
|
| 67 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
71 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 68 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
72 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 69 |
_ID((short)1, "_id"),
|
73 |
_ID((short)1, "_id"),
|
| 70 |
AVAILABLE_PRICE((short)2, "available_price"),
|
74 |
AVAILABLE_PRICE((short)2, "available_price"),
|
| Line 81... |
Line 85... |
| 81 |
OFFER((short)13, "offer"),
|
85 |
OFFER((short)13, "offer"),
|
| 82 |
GROSS_PRICE((short)14, "gross_price"),
|
86 |
GROSS_PRICE((short)14, "gross_price"),
|
| 83 |
CHEAPEST_BULK_PRICE((short)15, "cheapestBulkPrice"),
|
87 |
CHEAPEST_BULK_PRICE((short)15, "cheapestBulkPrice"),
|
| 84 |
PACK_QUANTITY((short)16, "packQuantity"),
|
88 |
PACK_QUANTITY((short)16, "packQuantity"),
|
| 85 |
NET_PRICE_AFTER_CASH_BACK((short)17, "netPriceAfterCashBack"),
|
89 |
NET_PRICE_AFTER_CASH_BACK((short)17, "netPriceAfterCashBack"),
|
| 86 |
SHOW_NET_PRICE((short)18, "showNetPrice");
|
90 |
SHOW_NET_PRICE((short)18, "showNetPrice"),
|
| - |
|
91 |
CATEGORY_ID((short)19, "category_id"),
|
| - |
|
92 |
SUB_CATEGORY_ID((short)20, "subCategoryId");
|
| 87 |
|
93 |
|
| 88 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
94 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 89 |
|
95 |
|
| 90 |
static {
|
96 |
static {
|
| 91 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
97 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 132... |
Line 138... |
| 132 |
return PACK_QUANTITY;
|
138 |
return PACK_QUANTITY;
|
| 133 |
case 17: // NET_PRICE_AFTER_CASH_BACK
|
139 |
case 17: // NET_PRICE_AFTER_CASH_BACK
|
| 134 |
return NET_PRICE_AFTER_CASH_BACK;
|
140 |
return NET_PRICE_AFTER_CASH_BACK;
|
| 135 |
case 18: // SHOW_NET_PRICE
|
141 |
case 18: // SHOW_NET_PRICE
|
| 136 |
return SHOW_NET_PRICE;
|
142 |
return SHOW_NET_PRICE;
|
| - |
|
143 |
case 19: // CATEGORY_ID
|
| - |
|
144 |
return CATEGORY_ID;
|
| - |
|
145 |
case 20: // SUB_CATEGORY_ID
|
| - |
|
146 |
return SUB_CATEGORY_ID;
|
| 137 |
default:
|
147 |
default:
|
| 138 |
return null;
|
148 |
return null;
|
| 139 |
}
|
149 |
}
|
| 140 |
}
|
150 |
}
|
| 141 |
|
151 |
|
| Line 184... |
Line 194... |
| 184 |
private static final int __GROSS_PRICE_ISSET_ID = 7;
|
194 |
private static final int __GROSS_PRICE_ISSET_ID = 7;
|
| 185 |
private static final int __CHEAPESTBULKPRICE_ISSET_ID = 8;
|
195 |
private static final int __CHEAPESTBULKPRICE_ISSET_ID = 8;
|
| 186 |
private static final int __PACKQUANTITY_ISSET_ID = 9;
|
196 |
private static final int __PACKQUANTITY_ISSET_ID = 9;
|
| 187 |
private static final int __NETPRICEAFTERCASHBACK_ISSET_ID = 10;
|
197 |
private static final int __NETPRICEAFTERCASHBACK_ISSET_ID = 10;
|
| 188 |
private static final int __SHOWNETPRICE_ISSET_ID = 11;
|
198 |
private static final int __SHOWNETPRICE_ISSET_ID = 11;
|
| - |
|
199 |
private static final int __CATEGORY_ID_ISSET_ID = 12;
|
| - |
|
200 |
private static final int __SUBCATEGORYID_ISSET_ID = 13;
|
| 189 |
private BitSet __isset_bit_vector = new BitSet(12);
|
201 |
private BitSet __isset_bit_vector = new BitSet(14);
|
| 190 |
|
202 |
|
| 191 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
203 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 192 |
static {
|
204 |
static {
|
| 193 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
205 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 194 |
tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
206 |
tmpMap.put(_Fields._ID, new org.apache.thrift.meta_data.FieldMetaData("_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 225... |
Line 237... |
| 225 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
237 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 226 |
tmpMap.put(_Fields.NET_PRICE_AFTER_CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("netPriceAfterCashBack", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
238 |
tmpMap.put(_Fields.NET_PRICE_AFTER_CASH_BACK, new org.apache.thrift.meta_data.FieldMetaData("netPriceAfterCashBack", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 227 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
239 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 228 |
tmpMap.put(_Fields.SHOW_NET_PRICE, new org.apache.thrift.meta_data.FieldMetaData("showNetPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
240 |
tmpMap.put(_Fields.SHOW_NET_PRICE, new org.apache.thrift.meta_data.FieldMetaData("showNetPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 229 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
241 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
242 |
tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("category_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
243 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
244 |
tmpMap.put(_Fields.SUB_CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("subCategoryId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
245 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 230 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
246 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 231 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
247 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LivePricing.class, metaDataMap);
|
| 232 |
}
|
248 |
}
|
| 233 |
|
249 |
|
| 234 |
public LivePricing() {
|
250 |
public LivePricing() {
|
| Line 250... |
Line 266... |
| 250 |
String offer,
|
266 |
String offer,
|
| 251 |
double gross_price,
|
267 |
double gross_price,
|
| 252 |
double cheapestBulkPrice,
|
268 |
double cheapestBulkPrice,
|
| 253 |
long packQuantity,
|
269 |
long packQuantity,
|
| 254 |
double netPriceAfterCashBack,
|
270 |
double netPriceAfterCashBack,
|
| 255 |
long showNetPrice)
|
271 |
long showNetPrice,
|
| - |
|
272 |
long category_id,
|
| - |
|
273 |
long subCategoryId)
|
| 256 |
{
|
274 |
{
|
| 257 |
this();
|
275 |
this();
|
| 258 |
this._id = _id;
|
276 |
this._id = _id;
|
| 259 |
set_idIsSet(true);
|
277 |
set_idIsSet(true);
|
| 260 |
this.available_price = available_price;
|
278 |
this.available_price = available_price;
|
| Line 283... |
Line 301... |
| 283 |
setPackQuantityIsSet(true);
|
301 |
setPackQuantityIsSet(true);
|
| 284 |
this.netPriceAfterCashBack = netPriceAfterCashBack;
|
302 |
this.netPriceAfterCashBack = netPriceAfterCashBack;
|
| 285 |
setNetPriceAfterCashBackIsSet(true);
|
303 |
setNetPriceAfterCashBackIsSet(true);
|
| 286 |
this.showNetPrice = showNetPrice;
|
304 |
this.showNetPrice = showNetPrice;
|
| 287 |
setShowNetPriceIsSet(true);
|
305 |
setShowNetPriceIsSet(true);
|
| - |
|
306 |
this.category_id = category_id;
|
| - |
|
307 |
setCategory_idIsSet(true);
|
| - |
|
308 |
this.subCategoryId = subCategoryId;
|
| - |
|
309 |
setSubCategoryIdIsSet(true);
|
| 288 |
}
|
310 |
}
|
| 289 |
|
311 |
|
| 290 |
/**
|
312 |
/**
|
| 291 |
* Performs a deep copy on <i>other</i>.
|
313 |
* Performs a deep copy on <i>other</i>.
|
| 292 |
*/
|
314 |
*/
|
| Line 321... |
Line 343... |
| 321 |
this.gross_price = other.gross_price;
|
343 |
this.gross_price = other.gross_price;
|
| 322 |
this.cheapestBulkPrice = other.cheapestBulkPrice;
|
344 |
this.cheapestBulkPrice = other.cheapestBulkPrice;
|
| 323 |
this.packQuantity = other.packQuantity;
|
345 |
this.packQuantity = other.packQuantity;
|
| 324 |
this.netPriceAfterCashBack = other.netPriceAfterCashBack;
|
346 |
this.netPriceAfterCashBack = other.netPriceAfterCashBack;
|
| 325 |
this.showNetPrice = other.showNetPrice;
|
347 |
this.showNetPrice = other.showNetPrice;
|
| - |
|
348 |
this.category_id = other.category_id;
|
| - |
|
349 |
this.subCategoryId = other.subCategoryId;
|
| 326 |
}
|
350 |
}
|
| 327 |
|
351 |
|
| 328 |
public LivePricing deepCopy() {
|
352 |
public LivePricing deepCopy() {
|
| 329 |
return new LivePricing(this);
|
353 |
return new LivePricing(this);
|
| 330 |
}
|
354 |
}
|
| Line 359... |
Line 383... |
| 359 |
this.packQuantity = 0;
|
383 |
this.packQuantity = 0;
|
| 360 |
setNetPriceAfterCashBackIsSet(false);
|
384 |
setNetPriceAfterCashBackIsSet(false);
|
| 361 |
this.netPriceAfterCashBack = 0.0;
|
385 |
this.netPriceAfterCashBack = 0.0;
|
| 362 |
setShowNetPriceIsSet(false);
|
386 |
setShowNetPriceIsSet(false);
|
| 363 |
this.showNetPrice = 0;
|
387 |
this.showNetPrice = 0;
|
| - |
|
388 |
setCategory_idIsSet(false);
|
| - |
|
389 |
this.category_id = 0;
|
| - |
|
390 |
setSubCategoryIdIsSet(false);
|
| - |
|
391 |
this.subCategoryId = 0;
|
| 364 |
}
|
392 |
}
|
| 365 |
|
393 |
|
| 366 |
public long get_id() {
|
394 |
public long get_id() {
|
| 367 |
return this._id;
|
395 |
return this._id;
|
| 368 |
}
|
396 |
}
|
| Line 763... |
Line 791... |
| 763 |
|
791 |
|
| 764 |
public void setShowNetPriceIsSet(boolean value) {
|
792 |
public void setShowNetPriceIsSet(boolean value) {
|
| 765 |
__isset_bit_vector.set(__SHOWNETPRICE_ISSET_ID, value);
|
793 |
__isset_bit_vector.set(__SHOWNETPRICE_ISSET_ID, value);
|
| 766 |
}
|
794 |
}
|
| 767 |
|
795 |
|
| - |
|
796 |
public long getCategory_id() {
|
| - |
|
797 |
return this.category_id;
|
| - |
|
798 |
}
|
| - |
|
799 |
|
| - |
|
800 |
public void setCategory_id(long category_id) {
|
| - |
|
801 |
this.category_id = category_id;
|
| - |
|
802 |
setCategory_idIsSet(true);
|
| - |
|
803 |
}
|
| - |
|
804 |
|
| - |
|
805 |
public void unsetCategory_id() {
|
| - |
|
806 |
__isset_bit_vector.clear(__CATEGORY_ID_ISSET_ID);
|
| - |
|
807 |
}
|
| - |
|
808 |
|
| - |
|
809 |
/** Returns true if field category_id is set (has been assigned a value) and false otherwise */
|
| - |
|
810 |
public boolean isSetCategory_id() {
|
| - |
|
811 |
return __isset_bit_vector.get(__CATEGORY_ID_ISSET_ID);
|
| - |
|
812 |
}
|
| - |
|
813 |
|
| - |
|
814 |
public void setCategory_idIsSet(boolean value) {
|
| - |
|
815 |
__isset_bit_vector.set(__CATEGORY_ID_ISSET_ID, value);
|
| - |
|
816 |
}
|
| - |
|
817 |
|
| - |
|
818 |
public long getSubCategoryId() {
|
| - |
|
819 |
return this.subCategoryId;
|
| - |
|
820 |
}
|
| - |
|
821 |
|
| - |
|
822 |
public void setSubCategoryId(long subCategoryId) {
|
| - |
|
823 |
this.subCategoryId = subCategoryId;
|
| - |
|
824 |
setSubCategoryIdIsSet(true);
|
| - |
|
825 |
}
|
| - |
|
826 |
|
| - |
|
827 |
public void unsetSubCategoryId() {
|
| - |
|
828 |
__isset_bit_vector.clear(__SUBCATEGORYID_ISSET_ID);
|
| - |
|
829 |
}
|
| - |
|
830 |
|
| - |
|
831 |
/** Returns true if field subCategoryId is set (has been assigned a value) and false otherwise */
|
| - |
|
832 |
public boolean isSetSubCategoryId() {
|
| - |
|
833 |
return __isset_bit_vector.get(__SUBCATEGORYID_ISSET_ID);
|
| - |
|
834 |
}
|
| - |
|
835 |
|
| - |
|
836 |
public void setSubCategoryIdIsSet(boolean value) {
|
| - |
|
837 |
__isset_bit_vector.set(__SUBCATEGORYID_ISSET_ID, value);
|
| - |
|
838 |
}
|
| - |
|
839 |
|
| 768 |
public void setFieldValue(_Fields field, Object value) {
|
840 |
public void setFieldValue(_Fields field, Object value) {
|
| 769 |
switch (field) {
|
841 |
switch (field) {
|
| 770 |
case _ID:
|
842 |
case _ID:
|
| 771 |
if (value == null) {
|
843 |
if (value == null) {
|
| 772 |
unset_id();
|
844 |
unset_id();
|
| Line 909... |
Line 981... |
| 909 |
} else {
|
981 |
} else {
|
| 910 |
setShowNetPrice((Long)value);
|
982 |
setShowNetPrice((Long)value);
|
| 911 |
}
|
983 |
}
|
| 912 |
break;
|
984 |
break;
|
| 913 |
|
985 |
|
| - |
|
986 |
case CATEGORY_ID:
|
| - |
|
987 |
if (value == null) {
|
| - |
|
988 |
unsetCategory_id();
|
| - |
|
989 |
} else {
|
| - |
|
990 |
setCategory_id((Long)value);
|
| - |
|
991 |
}
|
| - |
|
992 |
break;
|
| - |
|
993 |
|
| - |
|
994 |
case SUB_CATEGORY_ID:
|
| - |
|
995 |
if (value == null) {
|
| - |
|
996 |
unsetSubCategoryId();
|
| - |
|
997 |
} else {
|
| - |
|
998 |
setSubCategoryId((Long)value);
|
| - |
|
999 |
}
|
| - |
|
1000 |
break;
|
| - |
|
1001 |
|
| 914 |
}
|
1002 |
}
|
| 915 |
}
|
1003 |
}
|
| 916 |
|
1004 |
|
| 917 |
public Object getFieldValue(_Fields field) {
|
1005 |
public Object getFieldValue(_Fields field) {
|
| 918 |
switch (field) {
|
1006 |
switch (field) {
|
| Line 968... |
Line 1056... |
| 968 |
return Double.valueOf(getNetPriceAfterCashBack());
|
1056 |
return Double.valueOf(getNetPriceAfterCashBack());
|
| 969 |
|
1057 |
|
| 970 |
case SHOW_NET_PRICE:
|
1058 |
case SHOW_NET_PRICE:
|
| 971 |
return Long.valueOf(getShowNetPrice());
|
1059 |
return Long.valueOf(getShowNetPrice());
|
| 972 |
|
1060 |
|
| - |
|
1061 |
case CATEGORY_ID:
|
| - |
|
1062 |
return Long.valueOf(getCategory_id());
|
| - |
|
1063 |
|
| - |
|
1064 |
case SUB_CATEGORY_ID:
|
| - |
|
1065 |
return Long.valueOf(getSubCategoryId());
|
| - |
|
1066 |
|
| 973 |
}
|
1067 |
}
|
| 974 |
throw new IllegalStateException();
|
1068 |
throw new IllegalStateException();
|
| 975 |
}
|
1069 |
}
|
| 976 |
|
1070 |
|
| 977 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
1071 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 1015... |
Line 1109... |
| 1015 |
return isSetPackQuantity();
|
1109 |
return isSetPackQuantity();
|
| 1016 |
case NET_PRICE_AFTER_CASH_BACK:
|
1110 |
case NET_PRICE_AFTER_CASH_BACK:
|
| 1017 |
return isSetNetPriceAfterCashBack();
|
1111 |
return isSetNetPriceAfterCashBack();
|
| 1018 |
case SHOW_NET_PRICE:
|
1112 |
case SHOW_NET_PRICE:
|
| 1019 |
return isSetShowNetPrice();
|
1113 |
return isSetShowNetPrice();
|
| - |
|
1114 |
case CATEGORY_ID:
|
| - |
|
1115 |
return isSetCategory_id();
|
| - |
|
1116 |
case SUB_CATEGORY_ID:
|
| - |
|
1117 |
return isSetSubCategoryId();
|
| 1020 |
}
|
1118 |
}
|
| 1021 |
throw new IllegalStateException();
|
1119 |
throw new IllegalStateException();
|
| 1022 |
}
|
1120 |
}
|
| 1023 |
|
1121 |
|
| 1024 |
@Override
|
1122 |
@Override
|
| Line 1194... |
Line 1292... |
| 1194 |
return false;
|
1292 |
return false;
|
| 1195 |
if (this.showNetPrice != that.showNetPrice)
|
1293 |
if (this.showNetPrice != that.showNetPrice)
|
| 1196 |
return false;
|
1294 |
return false;
|
| 1197 |
}
|
1295 |
}
|
| 1198 |
|
1296 |
|
| - |
|
1297 |
boolean this_present_category_id = true;
|
| - |
|
1298 |
boolean that_present_category_id = true;
|
| - |
|
1299 |
if (this_present_category_id || that_present_category_id) {
|
| - |
|
1300 |
if (!(this_present_category_id && that_present_category_id))
|
| - |
|
1301 |
return false;
|
| - |
|
1302 |
if (this.category_id != that.category_id)
|
| - |
|
1303 |
return false;
|
| - |
|
1304 |
}
|
| - |
|
1305 |
|
| - |
|
1306 |
boolean this_present_subCategoryId = true;
|
| - |
|
1307 |
boolean that_present_subCategoryId = true;
|
| - |
|
1308 |
if (this_present_subCategoryId || that_present_subCategoryId) {
|
| - |
|
1309 |
if (!(this_present_subCategoryId && that_present_subCategoryId))
|
| - |
|
1310 |
return false;
|
| - |
|
1311 |
if (this.subCategoryId != that.subCategoryId)
|
| - |
|
1312 |
return false;
|
| - |
|
1313 |
}
|
| - |
|
1314 |
|
| 1199 |
return true;
|
1315 |
return true;
|
| 1200 |
}
|
1316 |
}
|
| 1201 |
|
1317 |
|
| 1202 |
@Override
|
1318 |
@Override
|
| 1203 |
public int hashCode() {
|
1319 |
public int hashCode() {
|
| Line 1390... |
Line 1506... |
| 1390 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.showNetPrice, typedOther.showNetPrice);
|
1506 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.showNetPrice, typedOther.showNetPrice);
|
| 1391 |
if (lastComparison != 0) {
|
1507 |
if (lastComparison != 0) {
|
| 1392 |
return lastComparison;
|
1508 |
return lastComparison;
|
| 1393 |
}
|
1509 |
}
|
| 1394 |
}
|
1510 |
}
|
| - |
|
1511 |
lastComparison = Boolean.valueOf(isSetCategory_id()).compareTo(typedOther.isSetCategory_id());
|
| - |
|
1512 |
if (lastComparison != 0) {
|
| - |
|
1513 |
return lastComparison;
|
| - |
|
1514 |
}
|
| - |
|
1515 |
if (isSetCategory_id()) {
|
| - |
|
1516 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category_id, typedOther.category_id);
|
| - |
|
1517 |
if (lastComparison != 0) {
|
| - |
|
1518 |
return lastComparison;
|
| - |
|
1519 |
}
|
| - |
|
1520 |
}
|
| - |
|
1521 |
lastComparison = Boolean.valueOf(isSetSubCategoryId()).compareTo(typedOther.isSetSubCategoryId());
|
| - |
|
1522 |
if (lastComparison != 0) {
|
| - |
|
1523 |
return lastComparison;
|
| - |
|
1524 |
}
|
| - |
|
1525 |
if (isSetSubCategoryId()) {
|
| - |
|
1526 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subCategoryId, typedOther.subCategoryId);
|
| - |
|
1527 |
if (lastComparison != 0) {
|
| - |
|
1528 |
return lastComparison;
|
| - |
|
1529 |
}
|
| - |
|
1530 |
}
|
| 1395 |
return 0;
|
1531 |
return 0;
|
| 1396 |
}
|
1532 |
}
|
| 1397 |
|
1533 |
|
| 1398 |
public _Fields fieldForId(int fieldId) {
|
1534 |
public _Fields fieldForId(int fieldId) {
|
| 1399 |
return _Fields.findByThriftId(fieldId);
|
1535 |
return _Fields.findByThriftId(fieldId);
|
| Line 1545... |
Line 1681... |
| 1545 |
setShowNetPriceIsSet(true);
|
1681 |
setShowNetPriceIsSet(true);
|
| 1546 |
} else {
|
1682 |
} else {
|
| 1547 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1683 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1548 |
}
|
1684 |
}
|
| 1549 |
break;
|
1685 |
break;
|
| - |
|
1686 |
case 19: // CATEGORY_ID
|
| - |
|
1687 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1688 |
this.category_id = iprot.readI64();
|
| - |
|
1689 |
setCategory_idIsSet(true);
|
| - |
|
1690 |
} else {
|
| - |
|
1691 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1692 |
}
|
| - |
|
1693 |
break;
|
| - |
|
1694 |
case 20: // SUB_CATEGORY_ID
|
| - |
|
1695 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1696 |
this.subCategoryId = iprot.readI64();
|
| - |
|
1697 |
setSubCategoryIdIsSet(true);
|
| - |
|
1698 |
} else {
|
| - |
|
1699 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1700 |
}
|
| - |
|
1701 |
break;
|
| 1550 |
default:
|
1702 |
default:
|
| 1551 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1703 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1552 |
}
|
1704 |
}
|
| 1553 |
iprot.readFieldEnd();
|
1705 |
iprot.readFieldEnd();
|
| 1554 |
}
|
1706 |
}
|
| Line 1624... |
Line 1776... |
| 1624 |
oprot.writeDouble(this.netPriceAfterCashBack);
|
1776 |
oprot.writeDouble(this.netPriceAfterCashBack);
|
| 1625 |
oprot.writeFieldEnd();
|
1777 |
oprot.writeFieldEnd();
|
| 1626 |
oprot.writeFieldBegin(SHOW_NET_PRICE_FIELD_DESC);
|
1778 |
oprot.writeFieldBegin(SHOW_NET_PRICE_FIELD_DESC);
|
| 1627 |
oprot.writeI64(this.showNetPrice);
|
1779 |
oprot.writeI64(this.showNetPrice);
|
| 1628 |
oprot.writeFieldEnd();
|
1780 |
oprot.writeFieldEnd();
|
| - |
|
1781 |
oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);
|
| - |
|
1782 |
oprot.writeI64(this.category_id);
|
| - |
|
1783 |
oprot.writeFieldEnd();
|
| - |
|
1784 |
oprot.writeFieldBegin(SUB_CATEGORY_ID_FIELD_DESC);
|
| - |
|
1785 |
oprot.writeI64(this.subCategoryId);
|
| - |
|
1786 |
oprot.writeFieldEnd();
|
| 1629 |
oprot.writeFieldStop();
|
1787 |
oprot.writeFieldStop();
|
| 1630 |
oprot.writeStructEnd();
|
1788 |
oprot.writeStructEnd();
|
| 1631 |
}
|
1789 |
}
|
| 1632 |
|
1790 |
|
| 1633 |
@Override
|
1791 |
@Override
|
| Line 1728... |
Line 1886... |
| 1728 |
first = false;
|
1886 |
first = false;
|
| 1729 |
if (!first) sb.append(", ");
|
1887 |
if (!first) sb.append(", ");
|
| 1730 |
sb.append("showNetPrice:");
|
1888 |
sb.append("showNetPrice:");
|
| 1731 |
sb.append(this.showNetPrice);
|
1889 |
sb.append(this.showNetPrice);
|
| 1732 |
first = false;
|
1890 |
first = false;
|
| - |
|
1891 |
if (!first) sb.append(", ");
|
| - |
|
1892 |
sb.append("category_id:");
|
| - |
|
1893 |
sb.append(this.category_id);
|
| - |
|
1894 |
first = false;
|
| - |
|
1895 |
if (!first) sb.append(", ");
|
| - |
|
1896 |
sb.append("subCategoryId:");
|
| - |
|
1897 |
sb.append(this.subCategoryId);
|
| - |
|
1898 |
first = false;
|
| 1733 |
sb.append(")");
|
1899 |
sb.append(")");
|
| 1734 |
return sb.toString();
|
1900 |
return sb.toString();
|
| 1735 |
}
|
1901 |
}
|
| 1736 |
|
1902 |
|
| 1737 |
public void validate() throws org.apache.thrift.TException {
|
1903 |
public void validate() throws org.apache.thrift.TException {
|