| Line 27... |
Line 27... |
| 27 |
private static final org.apache.thrift.protocol.TField WALLET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("walletId", org.apache.thrift.protocol.TType.I64, (short)2);
|
27 |
private static final org.apache.thrift.protocol.TField WALLET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("walletId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| 28 |
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)3);
|
28 |
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)3);
|
| 29 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)4);
|
29 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 30 |
private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
|
30 |
private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 31 |
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)6);
|
31 |
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)6);
|
| 32 |
private static final org.apache.thrift.protocol.TField REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
|
32 |
private static final org.apache.thrift.protocol.TField REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceNumber", org.apache.thrift.protocol.TType.I64, (short)7);
|
| 33 |
private static final org.apache.thrift.protocol.TField REFERENCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceType", org.apache.thrift.protocol.TType.I32, (short)8);
|
33 |
private static final org.apache.thrift.protocol.TField REFERENCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceType", org.apache.thrift.protocol.TType.I32, (short)8);
|
| 34 |
|
34 |
|
| 35 |
private long id; // required
|
35 |
private long id; // required
|
| 36 |
private long walletId; // required
|
36 |
private long walletId; // required
|
| 37 |
private long orderId; // required
|
37 |
private long orderId; // required
|
| 38 |
private long amount; // required
|
38 |
private long amount; // required
|
| 39 |
private long timestamp; // required
|
39 |
private long timestamp; // required
|
| 40 |
private String description; // required
|
40 |
private String description; // required
|
| 41 |
private String referenceNumber; // required
|
41 |
private long referenceNumber; // required
|
| 42 |
private WalletReferenceType referenceType; // required
|
42 |
private WalletReferenceType referenceType; // required
|
| 43 |
|
43 |
|
| 44 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
44 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 45 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
45 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 46 |
ID((short)1, "id"),
|
46 |
ID((short)1, "id"),
|
| Line 128... |
Line 128... |
| 128 |
private static final int __ID_ISSET_ID = 0;
|
128 |
private static final int __ID_ISSET_ID = 0;
|
| 129 |
private static final int __WALLETID_ISSET_ID = 1;
|
129 |
private static final int __WALLETID_ISSET_ID = 1;
|
| 130 |
private static final int __ORDERID_ISSET_ID = 2;
|
130 |
private static final int __ORDERID_ISSET_ID = 2;
|
| 131 |
private static final int __AMOUNT_ISSET_ID = 3;
|
131 |
private static final int __AMOUNT_ISSET_ID = 3;
|
| 132 |
private static final int __TIMESTAMP_ISSET_ID = 4;
|
132 |
private static final int __TIMESTAMP_ISSET_ID = 4;
|
| - |
|
133 |
private static final int __REFERENCENUMBER_ISSET_ID = 5;
|
| 133 |
private BitSet __isset_bit_vector = new BitSet(5);
|
134 |
private BitSet __isset_bit_vector = new BitSet(6);
|
| 134 |
|
135 |
|
| 135 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
136 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 136 |
static {
|
137 |
static {
|
| 137 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
138 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 138 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
139 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 146... |
Line 147... |
| 146 |
tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
147 |
tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
148 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 148 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
149 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 150 |
tmpMap.put(_Fields.REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("referenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
151 |
tmpMap.put(_Fields.REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("referenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
152 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 152 |
tmpMap.put(_Fields.REFERENCE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("referenceType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
153 |
tmpMap.put(_Fields.REFERENCE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("referenceType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 153 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WalletReferenceType.class)));
|
154 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WalletReferenceType.class)));
|
| 154 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
155 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 155 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserWalletHistory.class, metaDataMap);
|
156 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserWalletHistory.class, metaDataMap);
|
| 156 |
}
|
157 |
}
|
| Line 163... |
Line 164... |
| 163 |
long walletId,
|
164 |
long walletId,
|
| 164 |
long orderId,
|
165 |
long orderId,
|
| 165 |
long amount,
|
166 |
long amount,
|
| 166 |
long timestamp,
|
167 |
long timestamp,
|
| 167 |
String description,
|
168 |
String description,
|
| 168 |
String referenceNumber,
|
169 |
long referenceNumber,
|
| 169 |
WalletReferenceType referenceType)
|
170 |
WalletReferenceType referenceType)
|
| 170 |
{
|
171 |
{
|
| 171 |
this();
|
172 |
this();
|
| 172 |
this.id = id;
|
173 |
this.id = id;
|
| 173 |
setIdIsSet(true);
|
174 |
setIdIsSet(true);
|
| Line 179... |
Line 180... |
| 179 |
setAmountIsSet(true);
|
180 |
setAmountIsSet(true);
|
| 180 |
this.timestamp = timestamp;
|
181 |
this.timestamp = timestamp;
|
| 181 |
setTimestampIsSet(true);
|
182 |
setTimestampIsSet(true);
|
| 182 |
this.description = description;
|
183 |
this.description = description;
|
| 183 |
this.referenceNumber = referenceNumber;
|
184 |
this.referenceNumber = referenceNumber;
|
| - |
|
185 |
setReferenceNumberIsSet(true);
|
| 184 |
this.referenceType = referenceType;
|
186 |
this.referenceType = referenceType;
|
| 185 |
}
|
187 |
}
|
| 186 |
|
188 |
|
| 187 |
/**
|
189 |
/**
|
| 188 |
* Performs a deep copy on <i>other</i>.
|
190 |
* Performs a deep copy on <i>other</i>.
|
| Line 196... |
Line 198... |
| 196 |
this.amount = other.amount;
|
198 |
this.amount = other.amount;
|
| 197 |
this.timestamp = other.timestamp;
|
199 |
this.timestamp = other.timestamp;
|
| 198 |
if (other.isSetDescription()) {
|
200 |
if (other.isSetDescription()) {
|
| 199 |
this.description = other.description;
|
201 |
this.description = other.description;
|
| 200 |
}
|
202 |
}
|
| 201 |
if (other.isSetReferenceNumber()) {
|
- |
|
| 202 |
this.referenceNumber = other.referenceNumber;
|
203 |
this.referenceNumber = other.referenceNumber;
|
| 203 |
}
|
- |
|
| 204 |
if (other.isSetReferenceType()) {
|
204 |
if (other.isSetReferenceType()) {
|
| 205 |
this.referenceType = other.referenceType;
|
205 |
this.referenceType = other.referenceType;
|
| 206 |
}
|
206 |
}
|
| 207 |
}
|
207 |
}
|
| 208 |
|
208 |
|
| Line 221... |
Line 221... |
| 221 |
setAmountIsSet(false);
|
221 |
setAmountIsSet(false);
|
| 222 |
this.amount = 0;
|
222 |
this.amount = 0;
|
| 223 |
setTimestampIsSet(false);
|
223 |
setTimestampIsSet(false);
|
| 224 |
this.timestamp = 0;
|
224 |
this.timestamp = 0;
|
| 225 |
this.description = null;
|
225 |
this.description = null;
|
| - |
|
226 |
setReferenceNumberIsSet(false);
|
| 226 |
this.referenceNumber = null;
|
227 |
this.referenceNumber = 0;
|
| 227 |
this.referenceType = null;
|
228 |
this.referenceType = null;
|
| 228 |
}
|
229 |
}
|
| 229 |
|
230 |
|
| 230 |
public long getId() {
|
231 |
public long getId() {
|
| 231 |
return this.id;
|
232 |
return this.id;
|
| Line 358... |
Line 359... |
| 358 |
if (!value) {
|
359 |
if (!value) {
|
| 359 |
this.description = null;
|
360 |
this.description = null;
|
| 360 |
}
|
361 |
}
|
| 361 |
}
|
362 |
}
|
| 362 |
|
363 |
|
| 363 |
public String getReferenceNumber() {
|
364 |
public long getReferenceNumber() {
|
| 364 |
return this.referenceNumber;
|
365 |
return this.referenceNumber;
|
| 365 |
}
|
366 |
}
|
| 366 |
|
367 |
|
| 367 |
public void setReferenceNumber(String referenceNumber) {
|
368 |
public void setReferenceNumber(long referenceNumber) {
|
| 368 |
this.referenceNumber = referenceNumber;
|
369 |
this.referenceNumber = referenceNumber;
|
| - |
|
370 |
setReferenceNumberIsSet(true);
|
| 369 |
}
|
371 |
}
|
| 370 |
|
372 |
|
| 371 |
public void unsetReferenceNumber() {
|
373 |
public void unsetReferenceNumber() {
|
| 372 |
this.referenceNumber = null;
|
374 |
__isset_bit_vector.clear(__REFERENCENUMBER_ISSET_ID);
|
| 373 |
}
|
375 |
}
|
| 374 |
|
376 |
|
| 375 |
/** Returns true if field referenceNumber is set (has been assigned a value) and false otherwise */
|
377 |
/** Returns true if field referenceNumber is set (has been assigned a value) and false otherwise */
|
| 376 |
public boolean isSetReferenceNumber() {
|
378 |
public boolean isSetReferenceNumber() {
|
| 377 |
return this.referenceNumber != null;
|
379 |
return __isset_bit_vector.get(__REFERENCENUMBER_ISSET_ID);
|
| 378 |
}
|
380 |
}
|
| 379 |
|
381 |
|
| 380 |
public void setReferenceNumberIsSet(boolean value) {
|
382 |
public void setReferenceNumberIsSet(boolean value) {
|
| 381 |
if (!value) {
|
- |
|
| 382 |
this.referenceNumber = null;
|
383 |
__isset_bit_vector.set(__REFERENCENUMBER_ISSET_ID, value);
|
| 383 |
}
|
- |
|
| 384 |
}
|
384 |
}
|
| 385 |
|
385 |
|
| 386 |
/**
|
386 |
/**
|
| 387 |
*
|
387 |
*
|
| 388 |
* @see WalletReferenceType
|
388 |
* @see WalletReferenceType
|
| Line 466... |
Line 466... |
| 466 |
|
466 |
|
| 467 |
case REFERENCE_NUMBER:
|
467 |
case REFERENCE_NUMBER:
|
| 468 |
if (value == null) {
|
468 |
if (value == null) {
|
| 469 |
unsetReferenceNumber();
|
469 |
unsetReferenceNumber();
|
| 470 |
} else {
|
470 |
} else {
|
| 471 |
setReferenceNumber((String)value);
|
471 |
setReferenceNumber((Long)value);
|
| 472 |
}
|
472 |
}
|
| 473 |
break;
|
473 |
break;
|
| 474 |
|
474 |
|
| 475 |
case REFERENCE_TYPE:
|
475 |
case REFERENCE_TYPE:
|
| 476 |
if (value == null) {
|
476 |
if (value == null) {
|
| Line 502... |
Line 502... |
| 502 |
|
502 |
|
| 503 |
case DESCRIPTION:
|
503 |
case DESCRIPTION:
|
| 504 |
return getDescription();
|
504 |
return getDescription();
|
| 505 |
|
505 |
|
| 506 |
case REFERENCE_NUMBER:
|
506 |
case REFERENCE_NUMBER:
|
| 507 |
return getReferenceNumber();
|
507 |
return Long.valueOf(getReferenceNumber());
|
| 508 |
|
508 |
|
| 509 |
case REFERENCE_TYPE:
|
509 |
case REFERENCE_TYPE:
|
| 510 |
return getReferenceType();
|
510 |
return getReferenceType();
|
| 511 |
|
511 |
|
| 512 |
}
|
512 |
}
|
| Line 605... |
Line 605... |
| 605 |
return false;
|
605 |
return false;
|
| 606 |
if (!this.description.equals(that.description))
|
606 |
if (!this.description.equals(that.description))
|
| 607 |
return false;
|
607 |
return false;
|
| 608 |
}
|
608 |
}
|
| 609 |
|
609 |
|
| 610 |
boolean this_present_referenceNumber = true && this.isSetReferenceNumber();
|
610 |
boolean this_present_referenceNumber = true;
|
| 611 |
boolean that_present_referenceNumber = true && that.isSetReferenceNumber();
|
611 |
boolean that_present_referenceNumber = true;
|
| 612 |
if (this_present_referenceNumber || that_present_referenceNumber) {
|
612 |
if (this_present_referenceNumber || that_present_referenceNumber) {
|
| 613 |
if (!(this_present_referenceNumber && that_present_referenceNumber))
|
613 |
if (!(this_present_referenceNumber && that_present_referenceNumber))
|
| 614 |
return false;
|
614 |
return false;
|
| 615 |
if (!this.referenceNumber.equals(that.referenceNumber))
|
615 |
if (this.referenceNumber != that.referenceNumber)
|
| 616 |
return false;
|
616 |
return false;
|
| 617 |
}
|
617 |
}
|
| 618 |
|
618 |
|
| 619 |
boolean this_present_referenceType = true && this.isSetReferenceType();
|
619 |
boolean this_present_referenceType = true && this.isSetReferenceType();
|
| 620 |
boolean that_present_referenceType = true && that.isSetReferenceType();
|
620 |
boolean that_present_referenceType = true && that.isSetReferenceType();
|
| Line 784... |
Line 784... |
| 784 |
} else {
|
784 |
} else {
|
| 785 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
785 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 786 |
}
|
786 |
}
|
| 787 |
break;
|
787 |
break;
|
| 788 |
case 7: // REFERENCE_NUMBER
|
788 |
case 7: // REFERENCE_NUMBER
|
| 789 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
789 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 790 |
this.referenceNumber = iprot.readString();
|
790 |
this.referenceNumber = iprot.readI64();
|
| - |
|
791 |
setReferenceNumberIsSet(true);
|
| 791 |
} else {
|
792 |
} else {
|
| 792 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
793 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 793 |
}
|
794 |
}
|
| 794 |
break;
|
795 |
break;
|
| 795 |
case 8: // REFERENCE_TYPE
|
796 |
case 8: // REFERENCE_TYPE
|
| Line 830... |
Line 831... |
| 830 |
if (this.description != null) {
|
831 |
if (this.description != null) {
|
| 831 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
832 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
| 832 |
oprot.writeString(this.description);
|
833 |
oprot.writeString(this.description);
|
| 833 |
oprot.writeFieldEnd();
|
834 |
oprot.writeFieldEnd();
|
| 834 |
}
|
835 |
}
|
| 835 |
if (this.referenceNumber != null) {
|
- |
|
| 836 |
oprot.writeFieldBegin(REFERENCE_NUMBER_FIELD_DESC);
|
836 |
oprot.writeFieldBegin(REFERENCE_NUMBER_FIELD_DESC);
|
| 837 |
oprot.writeString(this.referenceNumber);
|
837 |
oprot.writeI64(this.referenceNumber);
|
| 838 |
oprot.writeFieldEnd();
|
838 |
oprot.writeFieldEnd();
|
| 839 |
}
|
- |
|
| 840 |
if (this.referenceType != null) {
|
839 |
if (this.referenceType != null) {
|
| 841 |
oprot.writeFieldBegin(REFERENCE_TYPE_FIELD_DESC);
|
840 |
oprot.writeFieldBegin(REFERENCE_TYPE_FIELD_DESC);
|
| 842 |
oprot.writeI32(this.referenceType.getValue());
|
841 |
oprot.writeI32(this.referenceType.getValue());
|
| 843 |
oprot.writeFieldEnd();
|
842 |
oprot.writeFieldEnd();
|
| 844 |
}
|
843 |
}
|
| Line 878... |
Line 877... |
| 878 |
sb.append(this.description);
|
877 |
sb.append(this.description);
|
| 879 |
}
|
878 |
}
|
| 880 |
first = false;
|
879 |
first = false;
|
| 881 |
if (!first) sb.append(", ");
|
880 |
if (!first) sb.append(", ");
|
| 882 |
sb.append("referenceNumber:");
|
881 |
sb.append("referenceNumber:");
|
| 883 |
if (this.referenceNumber == null) {
|
- |
|
| 884 |
sb.append("null");
|
- |
|
| 885 |
} else {
|
- |
|
| 886 |
sb.append(this.referenceNumber);
|
882 |
sb.append(this.referenceNumber);
|
| 887 |
}
|
- |
|
| 888 |
first = false;
|
883 |
first = false;
|
| 889 |
if (!first) sb.append(", ");
|
884 |
if (!first) sb.append(", ");
|
| 890 |
sb.append("referenceType:");
|
885 |
sb.append("referenceType:");
|
| 891 |
if (this.referenceType == null) {
|
886 |
if (this.referenceType == null) {
|
| 892 |
sb.append("null");
|
887 |
sb.append("null");
|