| Line 875... |
Line 875... |
| 875 |
|
875 |
|
| 876 |
public Map<Long,String> getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException;
|
876 |
public Map<Long,String> getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException;
|
| 877 |
|
877 |
|
| 878 |
public DeviceNumberInfo getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
|
878 |
public DeviceNumberInfo getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
|
| 879 |
|
879 |
|
| 880 |
public String validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId) throws org.apache.thrift.TException;
|
880 |
public String validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, String clientAddress) throws org.apache.thrift.TException;
|
| 881 |
|
881 |
|
| 882 |
public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
|
882 |
public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
|
| 883 |
|
883 |
|
| 884 |
public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
|
884 |
public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
|
| 885 |
|
885 |
|
| Line 1182... |
Line 1182... |
| 1182 |
|
1182 |
|
| 1183 |
public void getServiceProviders(RechargeType rechargeType, boolean onlyActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
|
1183 |
public void getServiceProviders(RechargeType rechargeType, boolean onlyActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
|
| 1184 |
|
1184 |
|
| 1185 |
public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
|
1185 |
public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
|
| 1186 |
|
1186 |
|
| 1187 |
public void validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateRecharge_call> resultHandler) throws org.apache.thrift.TException;
|
1187 |
public void validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, String clientAddress, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateRecharge_call> resultHandler) throws org.apache.thrift.TException;
|
| 1188 |
|
1188 |
|
| 1189 |
public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
|
1189 |
public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
|
| 1190 |
|
1190 |
|
| 1191 |
public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
|
1191 |
public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
|
| 1192 |
|
1192 |
|
| Line 4695... |
Line 4695... |
| 4695 |
return result.success;
|
4695 |
return result.success;
|
| 4696 |
}
|
4696 |
}
|
| 4697 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviderForDevice failed: unknown result");
|
4697 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviderForDevice failed: unknown result");
|
| 4698 |
}
|
4698 |
}
|
| 4699 |
|
4699 |
|
| 4700 |
public String validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId) throws org.apache.thrift.TException
|
4700 |
public String validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, String clientAddress) throws org.apache.thrift.TException
|
| 4701 |
{
|
4701 |
{
|
| 4702 |
send_validateRecharge(rechargeType, deviceNumber, userSelectedProviderId);
|
4702 |
send_validateRecharge(rechargeType, deviceNumber, userSelectedProviderId, clientAddress);
|
| 4703 |
return recv_validateRecharge();
|
4703 |
return recv_validateRecharge();
|
| 4704 |
}
|
4704 |
}
|
| 4705 |
|
4705 |
|
| 4706 |
public void send_validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId) throws org.apache.thrift.TException
|
4706 |
public void send_validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, String clientAddress) throws org.apache.thrift.TException
|
| 4707 |
{
|
4707 |
{
|
| 4708 |
validateRecharge_args args = new validateRecharge_args();
|
4708 |
validateRecharge_args args = new validateRecharge_args();
|
| 4709 |
args.setRechargeType(rechargeType);
|
4709 |
args.setRechargeType(rechargeType);
|
| 4710 |
args.setDeviceNumber(deviceNumber);
|
4710 |
args.setDeviceNumber(deviceNumber);
|
| 4711 |
args.setUserSelectedProviderId(userSelectedProviderId);
|
4711 |
args.setUserSelectedProviderId(userSelectedProviderId);
|
| - |
|
4712 |
args.setClientAddress(clientAddress);
|
| 4712 |
sendBase("validateRecharge", args);
|
4713 |
sendBase("validateRecharge", args);
|
| 4713 |
}
|
4714 |
}
|
| 4714 |
|
4715 |
|
| 4715 |
public String recv_validateRecharge() throws org.apache.thrift.TException
|
4716 |
public String recv_validateRecharge() throws org.apache.thrift.TException
|
| 4716 |
{
|
4717 |
{
|
| Line 9761... |
Line 9762... |
| 9761 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
9762 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 9762 |
return (new Client(prot)).recv_getServiceProviderForDevice();
|
9763 |
return (new Client(prot)).recv_getServiceProviderForDevice();
|
| 9763 |
}
|
9764 |
}
|
| 9764 |
}
|
9765 |
}
|
| 9765 |
|
9766 |
|
| 9766 |
public void validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, org.apache.thrift.async.AsyncMethodCallback<validateRecharge_call> resultHandler) throws org.apache.thrift.TException {
|
9767 |
public void validateRecharge(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, String clientAddress, org.apache.thrift.async.AsyncMethodCallback<validateRecharge_call> resultHandler) throws org.apache.thrift.TException {
|
| 9767 |
checkReady();
|
9768 |
checkReady();
|
| 9768 |
validateRecharge_call method_call = new validateRecharge_call(rechargeType, deviceNumber, userSelectedProviderId, resultHandler, this, ___protocolFactory, ___transport);
|
9769 |
validateRecharge_call method_call = new validateRecharge_call(rechargeType, deviceNumber, userSelectedProviderId, clientAddress, resultHandler, this, ___protocolFactory, ___transport);
|
| 9769 |
this.___currentMethod = method_call;
|
9770 |
this.___currentMethod = method_call;
|
| 9770 |
___manager.call(method_call);
|
9771 |
___manager.call(method_call);
|
| 9771 |
}
|
9772 |
}
|
| 9772 |
|
9773 |
|
| 9773 |
public static class validateRecharge_call extends org.apache.thrift.async.TAsyncMethodCall {
|
9774 |
public static class validateRecharge_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 9774 |
private RechargeType rechargeType;
|
9775 |
private RechargeType rechargeType;
|
| 9775 |
private String deviceNumber;
|
9776 |
private String deviceNumber;
|
| 9776 |
private long userSelectedProviderId;
|
9777 |
private long userSelectedProviderId;
|
| - |
|
9778 |
private String clientAddress;
|
| 9777 |
public validateRecharge_call(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, org.apache.thrift.async.AsyncMethodCallback<validateRecharge_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
9779 |
public validateRecharge_call(RechargeType rechargeType, String deviceNumber, long userSelectedProviderId, String clientAddress, org.apache.thrift.async.AsyncMethodCallback<validateRecharge_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 9778 |
super(client, protocolFactory, transport, resultHandler, false);
|
9780 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 9779 |
this.rechargeType = rechargeType;
|
9781 |
this.rechargeType = rechargeType;
|
| 9780 |
this.deviceNumber = deviceNumber;
|
9782 |
this.deviceNumber = deviceNumber;
|
| 9781 |
this.userSelectedProviderId = userSelectedProviderId;
|
9783 |
this.userSelectedProviderId = userSelectedProviderId;
|
| - |
|
9784 |
this.clientAddress = clientAddress;
|
| 9782 |
}
|
9785 |
}
|
| 9783 |
|
9786 |
|
| 9784 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
9787 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 9785 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateRecharge", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
9788 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateRecharge", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 9786 |
validateRecharge_args args = new validateRecharge_args();
|
9789 |
validateRecharge_args args = new validateRecharge_args();
|
| 9787 |
args.setRechargeType(rechargeType);
|
9790 |
args.setRechargeType(rechargeType);
|
| 9788 |
args.setDeviceNumber(deviceNumber);
|
9791 |
args.setDeviceNumber(deviceNumber);
|
| 9789 |
args.setUserSelectedProviderId(userSelectedProviderId);
|
9792 |
args.setUserSelectedProviderId(userSelectedProviderId);
|
| - |
|
9793 |
args.setClientAddress(clientAddress);
|
| 9790 |
args.write(prot);
|
9794 |
args.write(prot);
|
| 9791 |
prot.writeMessageEnd();
|
9795 |
prot.writeMessageEnd();
|
| 9792 |
}
|
9796 |
}
|
| 9793 |
|
9797 |
|
| 9794 |
public String getResult() throws org.apache.thrift.TException {
|
9798 |
public String getResult() throws org.apache.thrift.TException {
|
| Line 12916... |
Line 12920... |
| 12916 |
return new validateRecharge_args();
|
12920 |
return new validateRecharge_args();
|
| 12917 |
}
|
12921 |
}
|
| 12918 |
|
12922 |
|
| 12919 |
protected validateRecharge_result getResult(I iface, validateRecharge_args args) throws org.apache.thrift.TException {
|
12923 |
protected validateRecharge_result getResult(I iface, validateRecharge_args args) throws org.apache.thrift.TException {
|
| 12920 |
validateRecharge_result result = new validateRecharge_result();
|
12924 |
validateRecharge_result result = new validateRecharge_result();
|
| 12921 |
result.success = iface.validateRecharge(args.rechargeType, args.deviceNumber, args.userSelectedProviderId);
|
12925 |
result.success = iface.validateRecharge(args.rechargeType, args.deviceNumber, args.userSelectedProviderId, args.clientAddress);
|
| 12922 |
return result;
|
12926 |
return result;
|
| 12923 |
}
|
12927 |
}
|
| 12924 |
}
|
12928 |
}
|
| 12925 |
|
12929 |
|
| 12926 |
private static class getRechargeOrdersForDevice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeOrdersForDevice_args> {
|
12930 |
private static class getRechargeOrdersForDevice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeOrdersForDevice_args> {
|
| Line 57020... |
Line 57024... |
| 57020 |
}
|
57024 |
}
|
| 57021 |
}
|
57025 |
}
|
| 57022 |
|
57026 |
|
| 57023 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
57027 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 57024 |
try {
|
57028 |
try {
|
| - |
|
57029 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
57030 |
__isset_bit_vector = new BitSet(1);
|
| 57025 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
57031 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 57026 |
} catch (org.apache.thrift.TException te) {
|
57032 |
} catch (org.apache.thrift.TException te) {
|
| 57027 |
throw new java.io.IOException(te);
|
57033 |
throw new java.io.IOException(te);
|
| 57028 |
}
|
57034 |
}
|
| 57029 |
}
|
57035 |
}
|
| Line 61870... |
Line 61876... |
| 61870 |
}
|
61876 |
}
|
| 61871 |
}
|
61877 |
}
|
| 61872 |
|
61878 |
|
| 61873 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
61879 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 61874 |
try {
|
61880 |
try {
|
| - |
|
61881 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
61882 |
__isset_bit_vector = new BitSet(1);
|
| 61875 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
61883 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 61876 |
} catch (org.apache.thrift.TException te) {
|
61884 |
} catch (org.apache.thrift.TException te) {
|
| 61877 |
throw new java.io.IOException(te);
|
61885 |
throw new java.io.IOException(te);
|
| 61878 |
}
|
61886 |
}
|
| 61879 |
}
|
61887 |
}
|
| Line 63301... |
Line 63309... |
| 63301 |
}
|
63309 |
}
|
| 63302 |
}
|
63310 |
}
|
| 63303 |
|
63311 |
|
| 63304 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
63312 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| 63305 |
try {
|
63313 |
try {
|
| - |
|
63314 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
63315 |
__isset_bit_vector = new BitSet(1);
|
| 63306 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
63316 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 63307 |
} catch (org.apache.thrift.TException te) {
|
63317 |
} catch (org.apache.thrift.TException te) {
|
| 63308 |
throw new java.io.IOException(te);
|
63318 |
throw new java.io.IOException(te);
|
| 63309 |
}
|
63319 |
}
|
| 63310 |
}
|
63320 |
}
|
| Line 113319... |
Line 113329... |
| 113319 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRecharge_args");
|
113329 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateRecharge_args");
|
| 113320 |
|
113330 |
|
| 113321 |
private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)1);
|
113331 |
private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)1);
|
| 113322 |
private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
|
113332 |
private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 113323 |
private static final org.apache.thrift.protocol.TField USER_SELECTED_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userSelectedProviderId", org.apache.thrift.protocol.TType.I64, (short)3);
|
113333 |
private static final org.apache.thrift.protocol.TField USER_SELECTED_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userSelectedProviderId", org.apache.thrift.protocol.TType.I64, (short)3);
|
| - |
|
113334 |
private static final org.apache.thrift.protocol.TField CLIENT_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("clientAddress", org.apache.thrift.protocol.TType.STRING, (short)4);
|
| 113324 |
|
113335 |
|
| 113325 |
private RechargeType rechargeType; // required
|
113336 |
private RechargeType rechargeType; // required
|
| 113326 |
private String deviceNumber; // required
|
113337 |
private String deviceNumber; // required
|
| 113327 |
private long userSelectedProviderId; // required
|
113338 |
private long userSelectedProviderId; // required
|
| - |
|
113339 |
private String clientAddress; // required
|
| 113328 |
|
113340 |
|
| 113329 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
113341 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 113330 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
113342 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 113331 |
/**
|
113343 |
/**
|
| 113332 |
*
|
113344 |
*
|
| 113333 |
* @see RechargeType
|
113345 |
* @see RechargeType
|
| 113334 |
*/
|
113346 |
*/
|
| 113335 |
RECHARGE_TYPE((short)1, "rechargeType"),
|
113347 |
RECHARGE_TYPE((short)1, "rechargeType"),
|
| 113336 |
DEVICE_NUMBER((short)2, "deviceNumber"),
|
113348 |
DEVICE_NUMBER((short)2, "deviceNumber"),
|
| 113337 |
USER_SELECTED_PROVIDER_ID((short)3, "userSelectedProviderId");
|
113349 |
USER_SELECTED_PROVIDER_ID((short)3, "userSelectedProviderId"),
|
| - |
|
113350 |
CLIENT_ADDRESS((short)4, "clientAddress");
|
| 113338 |
|
113351 |
|
| 113339 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
113352 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 113340 |
|
113353 |
|
| 113341 |
static {
|
113354 |
static {
|
| 113342 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
113355 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 113353... |
Line 113366... |
| 113353 |
return RECHARGE_TYPE;
|
113366 |
return RECHARGE_TYPE;
|
| 113354 |
case 2: // DEVICE_NUMBER
|
113367 |
case 2: // DEVICE_NUMBER
|
| 113355 |
return DEVICE_NUMBER;
|
113368 |
return DEVICE_NUMBER;
|
| 113356 |
case 3: // USER_SELECTED_PROVIDER_ID
|
113369 |
case 3: // USER_SELECTED_PROVIDER_ID
|
| 113357 |
return USER_SELECTED_PROVIDER_ID;
|
113370 |
return USER_SELECTED_PROVIDER_ID;
|
| - |
|
113371 |
case 4: // CLIENT_ADDRESS
|
| - |
|
113372 |
return CLIENT_ADDRESS;
|
| 113358 |
default:
|
113373 |
default:
|
| 113359 |
return null;
|
113374 |
return null;
|
| 113360 |
}
|
113375 |
}
|
| 113361 |
}
|
113376 |
}
|
| 113362 |
|
113377 |
|
| Line 113405... |
Line 113420... |
| 113405 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
|
113420 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
|
| 113406 |
tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
113421 |
tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 113407 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
113422 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 113408 |
tmpMap.put(_Fields.USER_SELECTED_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("userSelectedProviderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
113423 |
tmpMap.put(_Fields.USER_SELECTED_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("userSelectedProviderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 113409 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
113424 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
113425 |
tmpMap.put(_Fields.CLIENT_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("clientAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
113426 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 113410 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
113427 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 113411 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRecharge_args.class, metaDataMap);
|
113428 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateRecharge_args.class, metaDataMap);
|
| 113412 |
}
|
113429 |
}
|
| 113413 |
|
113430 |
|
| 113414 |
public validateRecharge_args() {
|
113431 |
public validateRecharge_args() {
|
| 113415 |
}
|
113432 |
}
|
| 113416 |
|
113433 |
|
| 113417 |
public validateRecharge_args(
|
113434 |
public validateRecharge_args(
|
| 113418 |
RechargeType rechargeType,
|
113435 |
RechargeType rechargeType,
|
| 113419 |
String deviceNumber,
|
113436 |
String deviceNumber,
|
| 113420 |
long userSelectedProviderId)
|
113437 |
long userSelectedProviderId,
|
| - |
|
113438 |
String clientAddress)
|
| 113421 |
{
|
113439 |
{
|
| 113422 |
this();
|
113440 |
this();
|
| 113423 |
this.rechargeType = rechargeType;
|
113441 |
this.rechargeType = rechargeType;
|
| 113424 |
this.deviceNumber = deviceNumber;
|
113442 |
this.deviceNumber = deviceNumber;
|
| 113425 |
this.userSelectedProviderId = userSelectedProviderId;
|
113443 |
this.userSelectedProviderId = userSelectedProviderId;
|
| 113426 |
setUserSelectedProviderIdIsSet(true);
|
113444 |
setUserSelectedProviderIdIsSet(true);
|
| - |
|
113445 |
this.clientAddress = clientAddress;
|
| 113427 |
}
|
113446 |
}
|
| 113428 |
|
113447 |
|
| 113429 |
/**
|
113448 |
/**
|
| 113430 |
* Performs a deep copy on <i>other</i>.
|
113449 |
* Performs a deep copy on <i>other</i>.
|
| 113431 |
*/
|
113450 |
*/
|
| Line 113437... |
Line 113456... |
| 113437 |
}
|
113456 |
}
|
| 113438 |
if (other.isSetDeviceNumber()) {
|
113457 |
if (other.isSetDeviceNumber()) {
|
| 113439 |
this.deviceNumber = other.deviceNumber;
|
113458 |
this.deviceNumber = other.deviceNumber;
|
| 113440 |
}
|
113459 |
}
|
| 113441 |
this.userSelectedProviderId = other.userSelectedProviderId;
|
113460 |
this.userSelectedProviderId = other.userSelectedProviderId;
|
| - |
|
113461 |
if (other.isSetClientAddress()) {
|
| - |
|
113462 |
this.clientAddress = other.clientAddress;
|
| - |
|
113463 |
}
|
| 113442 |
}
|
113464 |
}
|
| 113443 |
|
113465 |
|
| 113444 |
public validateRecharge_args deepCopy() {
|
113466 |
public validateRecharge_args deepCopy() {
|
| 113445 |
return new validateRecharge_args(this);
|
113467 |
return new validateRecharge_args(this);
|
| 113446 |
}
|
113468 |
}
|
| Line 113449... |
Line 113471... |
| 113449 |
public void clear() {
|
113471 |
public void clear() {
|
| 113450 |
this.rechargeType = null;
|
113472 |
this.rechargeType = null;
|
| 113451 |
this.deviceNumber = null;
|
113473 |
this.deviceNumber = null;
|
| 113452 |
setUserSelectedProviderIdIsSet(false);
|
113474 |
setUserSelectedProviderIdIsSet(false);
|
| 113453 |
this.userSelectedProviderId = 0;
|
113475 |
this.userSelectedProviderId = 0;
|
| - |
|
113476 |
this.clientAddress = null;
|
| 113454 |
}
|
113477 |
}
|
| 113455 |
|
113478 |
|
| 113456 |
/**
|
113479 |
/**
|
| 113457 |
*
|
113480 |
*
|
| 113458 |
* @see RechargeType
|
113481 |
* @see RechargeType
|
| Line 113527... |
Line 113550... |
| 113527 |
|
113550 |
|
| 113528 |
public void setUserSelectedProviderIdIsSet(boolean value) {
|
113551 |
public void setUserSelectedProviderIdIsSet(boolean value) {
|
| 113529 |
__isset_bit_vector.set(__USERSELECTEDPROVIDERID_ISSET_ID, value);
|
113552 |
__isset_bit_vector.set(__USERSELECTEDPROVIDERID_ISSET_ID, value);
|
| 113530 |
}
|
113553 |
}
|
| 113531 |
|
113554 |
|
| - |
|
113555 |
public String getClientAddress() {
|
| - |
|
113556 |
return this.clientAddress;
|
| - |
|
113557 |
}
|
| - |
|
113558 |
|
| - |
|
113559 |
public void setClientAddress(String clientAddress) {
|
| - |
|
113560 |
this.clientAddress = clientAddress;
|
| - |
|
113561 |
}
|
| - |
|
113562 |
|
| - |
|
113563 |
public void unsetClientAddress() {
|
| - |
|
113564 |
this.clientAddress = null;
|
| - |
|
113565 |
}
|
| - |
|
113566 |
|
| - |
|
113567 |
/** Returns true if field clientAddress is set (has been assigned a value) and false otherwise */
|
| - |
|
113568 |
public boolean isSetClientAddress() {
|
| - |
|
113569 |
return this.clientAddress != null;
|
| - |
|
113570 |
}
|
| - |
|
113571 |
|
| - |
|
113572 |
public void setClientAddressIsSet(boolean value) {
|
| - |
|
113573 |
if (!value) {
|
| - |
|
113574 |
this.clientAddress = null;
|
| - |
|
113575 |
}
|
| - |
|
113576 |
}
|
| - |
|
113577 |
|
| 113532 |
public void setFieldValue(_Fields field, Object value) {
|
113578 |
public void setFieldValue(_Fields field, Object value) {
|
| 113533 |
switch (field) {
|
113579 |
switch (field) {
|
| 113534 |
case RECHARGE_TYPE:
|
113580 |
case RECHARGE_TYPE:
|
| 113535 |
if (value == null) {
|
113581 |
if (value == null) {
|
| 113536 |
unsetRechargeType();
|
113582 |
unsetRechargeType();
|
| Line 113553... |
Line 113599... |
| 113553 |
} else {
|
113599 |
} else {
|
| 113554 |
setUserSelectedProviderId((Long)value);
|
113600 |
setUserSelectedProviderId((Long)value);
|
| 113555 |
}
|
113601 |
}
|
| 113556 |
break;
|
113602 |
break;
|
| 113557 |
|
113603 |
|
| - |
|
113604 |
case CLIENT_ADDRESS:
|
| - |
|
113605 |
if (value == null) {
|
| - |
|
113606 |
unsetClientAddress();
|
| - |
|
113607 |
} else {
|
| - |
|
113608 |
setClientAddress((String)value);
|
| - |
|
113609 |
}
|
| - |
|
113610 |
break;
|
| - |
|
113611 |
|
| 113558 |
}
|
113612 |
}
|
| 113559 |
}
|
113613 |
}
|
| 113560 |
|
113614 |
|
| 113561 |
public Object getFieldValue(_Fields field) {
|
113615 |
public Object getFieldValue(_Fields field) {
|
| 113562 |
switch (field) {
|
113616 |
switch (field) {
|
| Line 113567... |
Line 113621... |
| 113567 |
return getDeviceNumber();
|
113621 |
return getDeviceNumber();
|
| 113568 |
|
113622 |
|
| 113569 |
case USER_SELECTED_PROVIDER_ID:
|
113623 |
case USER_SELECTED_PROVIDER_ID:
|
| 113570 |
return Long.valueOf(getUserSelectedProviderId());
|
113624 |
return Long.valueOf(getUserSelectedProviderId());
|
| 113571 |
|
113625 |
|
| - |
|
113626 |
case CLIENT_ADDRESS:
|
| - |
|
113627 |
return getClientAddress();
|
| - |
|
113628 |
|
| 113572 |
}
|
113629 |
}
|
| 113573 |
throw new IllegalStateException();
|
113630 |
throw new IllegalStateException();
|
| 113574 |
}
|
113631 |
}
|
| 113575 |
|
113632 |
|
| 113576 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
113633 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 113584... |
Line 113641... |
| 113584 |
return isSetRechargeType();
|
113641 |
return isSetRechargeType();
|
| 113585 |
case DEVICE_NUMBER:
|
113642 |
case DEVICE_NUMBER:
|
| 113586 |
return isSetDeviceNumber();
|
113643 |
return isSetDeviceNumber();
|
| 113587 |
case USER_SELECTED_PROVIDER_ID:
|
113644 |
case USER_SELECTED_PROVIDER_ID:
|
| 113588 |
return isSetUserSelectedProviderId();
|
113645 |
return isSetUserSelectedProviderId();
|
| - |
|
113646 |
case CLIENT_ADDRESS:
|
| - |
|
113647 |
return isSetClientAddress();
|
| 113589 |
}
|
113648 |
}
|
| 113590 |
throw new IllegalStateException();
|
113649 |
throw new IllegalStateException();
|
| 113591 |
}
|
113650 |
}
|
| 113592 |
|
113651 |
|
| 113593 |
@Override
|
113652 |
@Override
|
| Line 113628... |
Line 113687... |
| 113628 |
return false;
|
113687 |
return false;
|
| 113629 |
if (this.userSelectedProviderId != that.userSelectedProviderId)
|
113688 |
if (this.userSelectedProviderId != that.userSelectedProviderId)
|
| 113630 |
return false;
|
113689 |
return false;
|
| 113631 |
}
|
113690 |
}
|
| 113632 |
|
113691 |
|
| - |
|
113692 |
boolean this_present_clientAddress = true && this.isSetClientAddress();
|
| - |
|
113693 |
boolean that_present_clientAddress = true && that.isSetClientAddress();
|
| - |
|
113694 |
if (this_present_clientAddress || that_present_clientAddress) {
|
| - |
|
113695 |
if (!(this_present_clientAddress && that_present_clientAddress))
|
| - |
|
113696 |
return false;
|
| - |
|
113697 |
if (!this.clientAddress.equals(that.clientAddress))
|
| - |
|
113698 |
return false;
|
| - |
|
113699 |
}
|
| - |
|
113700 |
|
| 113633 |
return true;
|
113701 |
return true;
|
| 113634 |
}
|
113702 |
}
|
| 113635 |
|
113703 |
|
| 113636 |
@Override
|
113704 |
@Override
|
| 113637 |
public int hashCode() {
|
113705 |
public int hashCode() {
|
| Line 113674... |
Line 113742... |
| 113674 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSelectedProviderId, typedOther.userSelectedProviderId);
|
113742 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSelectedProviderId, typedOther.userSelectedProviderId);
|
| 113675 |
if (lastComparison != 0) {
|
113743 |
if (lastComparison != 0) {
|
| 113676 |
return lastComparison;
|
113744 |
return lastComparison;
|
| 113677 |
}
|
113745 |
}
|
| 113678 |
}
|
113746 |
}
|
| - |
|
113747 |
lastComparison = Boolean.valueOf(isSetClientAddress()).compareTo(typedOther.isSetClientAddress());
|
| - |
|
113748 |
if (lastComparison != 0) {
|
| - |
|
113749 |
return lastComparison;
|
| - |
|
113750 |
}
|
| - |
|
113751 |
if (isSetClientAddress()) {
|
| - |
|
113752 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.clientAddress, typedOther.clientAddress);
|
| - |
|
113753 |
if (lastComparison != 0) {
|
| - |
|
113754 |
return lastComparison;
|
| - |
|
113755 |
}
|
| - |
|
113756 |
}
|
| 113679 |
return 0;
|
113757 |
return 0;
|
| 113680 |
}
|
113758 |
}
|
| 113681 |
|
113759 |
|
| 113682 |
public _Fields fieldForId(int fieldId) {
|
113760 |
public _Fields fieldForId(int fieldId) {
|
| 113683 |
return _Fields.findByThriftId(fieldId);
|
113761 |
return _Fields.findByThriftId(fieldId);
|
| Line 113713... |
Line 113791... |
| 113713 |
setUserSelectedProviderIdIsSet(true);
|
113791 |
setUserSelectedProviderIdIsSet(true);
|
| 113714 |
} else {
|
113792 |
} else {
|
| 113715 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
113793 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 113716 |
}
|
113794 |
}
|
| 113717 |
break;
|
113795 |
break;
|
| - |
|
113796 |
case 4: // CLIENT_ADDRESS
|
| - |
|
113797 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| - |
|
113798 |
this.clientAddress = iprot.readString();
|
| - |
|
113799 |
} else {
|
| - |
|
113800 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
113801 |
}
|
| - |
|
113802 |
break;
|
| 113718 |
default:
|
113803 |
default:
|
| 113719 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
113804 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 113720 |
}
|
113805 |
}
|
| 113721 |
iprot.readFieldEnd();
|
113806 |
iprot.readFieldEnd();
|
| 113722 |
}
|
113807 |
}
|
| Line 113739... |
Line 113824... |
| 113739 |
oprot.writeFieldEnd();
|
113824 |
oprot.writeFieldEnd();
|
| 113740 |
}
|
113825 |
}
|
| 113741 |
oprot.writeFieldBegin(USER_SELECTED_PROVIDER_ID_FIELD_DESC);
|
113826 |
oprot.writeFieldBegin(USER_SELECTED_PROVIDER_ID_FIELD_DESC);
|
| 113742 |
oprot.writeI64(this.userSelectedProviderId);
|
113827 |
oprot.writeI64(this.userSelectedProviderId);
|
| 113743 |
oprot.writeFieldEnd();
|
113828 |
oprot.writeFieldEnd();
|
| - |
|
113829 |
if (this.clientAddress != null) {
|
| - |
|
113830 |
oprot.writeFieldBegin(CLIENT_ADDRESS_FIELD_DESC);
|
| - |
|
113831 |
oprot.writeString(this.clientAddress);
|
| - |
|
113832 |
oprot.writeFieldEnd();
|
| - |
|
113833 |
}
|
| 113744 |
oprot.writeFieldStop();
|
113834 |
oprot.writeFieldStop();
|
| 113745 |
oprot.writeStructEnd();
|
113835 |
oprot.writeStructEnd();
|
| 113746 |
}
|
113836 |
}
|
| 113747 |
|
113837 |
|
| 113748 |
@Override
|
113838 |
@Override
|
| Line 113767... |
Line 113857... |
| 113767 |
first = false;
|
113857 |
first = false;
|
| 113768 |
if (!first) sb.append(", ");
|
113858 |
if (!first) sb.append(", ");
|
| 113769 |
sb.append("userSelectedProviderId:");
|
113859 |
sb.append("userSelectedProviderId:");
|
| 113770 |
sb.append(this.userSelectedProviderId);
|
113860 |
sb.append(this.userSelectedProviderId);
|
| 113771 |
first = false;
|
113861 |
first = false;
|
| - |
|
113862 |
if (!first) sb.append(", ");
|
| - |
|
113863 |
sb.append("clientAddress:");
|
| - |
|
113864 |
if (this.clientAddress == null) {
|
| - |
|
113865 |
sb.append("null");
|
| - |
|
113866 |
} else {
|
| - |
|
113867 |
sb.append(this.clientAddress);
|
| - |
|
113868 |
}
|
| - |
|
113869 |
first = false;
|
| 113772 |
sb.append(")");
|
113870 |
sb.append(")");
|
| 113773 |
return sb.toString();
|
113871 |
return sb.toString();
|
| 113774 |
}
|
113872 |
}
|
| 113775 |
|
113873 |
|
| 113776 |
public void validate() throws org.apache.thrift.TException {
|
113874 |
public void validate() throws org.apache.thrift.TException {
|