| Line 866... |
Line 866... |
| 866 |
|
866 |
|
| 867 |
public List<UserWalletHistory> getUserWalletHistory(long userId) throws org.apache.thrift.TException;
|
867 |
public List<UserWalletHistory> getUserWalletHistory(long userId) throws org.apache.thrift.TException;
|
| 868 |
|
868 |
|
| 869 |
public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException;
|
869 |
public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException;
|
| 870 |
|
870 |
|
| 871 |
public long getServiceProviderForDevice(String deviceNumber) throws org.apache.thrift.TException;
|
871 |
public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
|
| 872 |
|
872 |
|
| 873 |
}
|
873 |
}
|
| 874 |
|
874 |
|
| 875 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
875 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 876 |
|
876 |
|
| Line 1142... |
Line 1142... |
| 1142 |
|
1142 |
|
| 1143 |
public void getUserWalletHistory(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWalletHistory_call> resultHandler) throws org.apache.thrift.TException;
|
1143 |
public void getUserWalletHistory(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWalletHistory_call> resultHandler) throws org.apache.thrift.TException;
|
| 1144 |
|
1144 |
|
| 1145 |
public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
|
1145 |
public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
|
| 1146 |
|
1146 |
|
| 1147 |
public void getServiceProviderForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
|
1147 |
public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
|
| 1148 |
|
1148 |
|
| 1149 |
}
|
1149 |
}
|
| 1150 |
|
1150 |
|
| 1151 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
1151 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 1152 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
1152 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| Line 4584... |
Line 4584... |
| 4584 |
return result.success;
|
4584 |
return result.success;
|
| 4585 |
}
|
4585 |
}
|
| 4586 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviders failed: unknown result");
|
4586 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviders failed: unknown result");
|
| 4587 |
}
|
4587 |
}
|
| 4588 |
|
4588 |
|
| 4589 |
public long getServiceProviderForDevice(String deviceNumber) throws org.apache.thrift.TException
|
4589 |
public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException
|
| 4590 |
{
|
4590 |
{
|
| 4591 |
send_getServiceProviderForDevice(deviceNumber);
|
4591 |
send_getServiceProviderForDevice(rechargeType, deviceNumber);
|
| 4592 |
return recv_getServiceProviderForDevice();
|
4592 |
return recv_getServiceProviderForDevice();
|
| 4593 |
}
|
4593 |
}
|
| 4594 |
|
4594 |
|
| 4595 |
public void send_getServiceProviderForDevice(String deviceNumber) throws org.apache.thrift.TException
|
4595 |
public void send_getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException
|
| 4596 |
{
|
4596 |
{
|
| 4597 |
getServiceProviderForDevice_args args = new getServiceProviderForDevice_args();
|
4597 |
getServiceProviderForDevice_args args = new getServiceProviderForDevice_args();
|
| - |
|
4598 |
args.setRechargeType(rechargeType);
|
| 4598 |
args.setDeviceNumber(deviceNumber);
|
4599 |
args.setDeviceNumber(deviceNumber);
|
| 4599 |
sendBase("getServiceProviderForDevice", args);
|
4600 |
sendBase("getServiceProviderForDevice", args);
|
| 4600 |
}
|
4601 |
}
|
| 4601 |
|
4602 |
|
| 4602 |
public long recv_getServiceProviderForDevice() throws org.apache.thrift.TException
|
4603 |
public long recv_getServiceProviderForDevice() throws org.apache.thrift.TException
|
| Line 9344... |
Line 9345... |
| 9344 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
9345 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 9345 |
return (new Client(prot)).recv_getServiceProviders();
|
9346 |
return (new Client(prot)).recv_getServiceProviders();
|
| 9346 |
}
|
9347 |
}
|
| 9347 |
}
|
9348 |
}
|
| 9348 |
|
9349 |
|
| 9349 |
public void getServiceProviderForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException {
|
9350 |
public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException {
|
| 9350 |
checkReady();
|
9351 |
checkReady();
|
| 9351 |
getServiceProviderForDevice_call method_call = new getServiceProviderForDevice_call(deviceNumber, resultHandler, this, ___protocolFactory, ___transport);
|
9352 |
getServiceProviderForDevice_call method_call = new getServiceProviderForDevice_call(rechargeType, deviceNumber, resultHandler, this, ___protocolFactory, ___transport);
|
| 9352 |
this.___currentMethod = method_call;
|
9353 |
this.___currentMethod = method_call;
|
| 9353 |
___manager.call(method_call);
|
9354 |
___manager.call(method_call);
|
| 9354 |
}
|
9355 |
}
|
| 9355 |
|
9356 |
|
| 9356 |
public static class getServiceProviderForDevice_call extends org.apache.thrift.async.TAsyncMethodCall {
|
9357 |
public static class getServiceProviderForDevice_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
9358 |
private RechargeType rechargeType;
|
| 9357 |
private String deviceNumber;
|
9359 |
private String deviceNumber;
|
| 9358 |
public getServiceProviderForDevice_call(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getServiceProviderForDevice_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 {
|
9360 |
public getServiceProviderForDevice_call(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getServiceProviderForDevice_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 {
|
| 9359 |
super(client, protocolFactory, transport, resultHandler, false);
|
9361 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
9362 |
this.rechargeType = rechargeType;
|
| 9360 |
this.deviceNumber = deviceNumber;
|
9363 |
this.deviceNumber = deviceNumber;
|
| 9361 |
}
|
9364 |
}
|
| 9362 |
|
9365 |
|
| 9363 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
9366 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 9364 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceProviderForDevice", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
9367 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceProviderForDevice", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 9365 |
getServiceProviderForDevice_args args = new getServiceProviderForDevice_args();
|
9368 |
getServiceProviderForDevice_args args = new getServiceProviderForDevice_args();
|
| - |
|
9369 |
args.setRechargeType(rechargeType);
|
| 9366 |
args.setDeviceNumber(deviceNumber);
|
9370 |
args.setDeviceNumber(deviceNumber);
|
| 9367 |
args.write(prot);
|
9371 |
args.write(prot);
|
| 9368 |
prot.writeMessageEnd();
|
9372 |
prot.writeMessageEnd();
|
| 9369 |
}
|
9373 |
}
|
| 9370 |
|
9374 |
|
| Line 12113... |
Line 12117... |
| 12113 |
return new getServiceProviderForDevice_args();
|
12117 |
return new getServiceProviderForDevice_args();
|
| 12114 |
}
|
12118 |
}
|
| 12115 |
|
12119 |
|
| 12116 |
protected getServiceProviderForDevice_result getResult(I iface, getServiceProviderForDevice_args args) throws org.apache.thrift.TException {
|
12120 |
protected getServiceProviderForDevice_result getResult(I iface, getServiceProviderForDevice_args args) throws org.apache.thrift.TException {
|
| 12117 |
getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
|
12121 |
getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
|
| 12118 |
result.success = iface.getServiceProviderForDevice(args.deviceNumber);
|
12122 |
result.success = iface.getServiceProviderForDevice(args.rechargeType, args.deviceNumber);
|
| 12119 |
result.setSuccessIsSet(true);
|
12123 |
result.setSuccessIsSet(true);
|
| 12120 |
return result;
|
12124 |
return result;
|
| 12121 |
}
|
12125 |
}
|
| 12122 |
}
|
12126 |
}
|
| 12123 |
|
12127 |
|
| Line 110893... |
Line 110897... |
| 110893 |
}
|
110897 |
}
|
| 110894 |
|
110898 |
|
| 110895 |
public static class getServiceProviderForDevice_args implements org.apache.thrift.TBase<getServiceProviderForDevice_args, getServiceProviderForDevice_args._Fields>, java.io.Serializable, Cloneable {
|
110899 |
public static class getServiceProviderForDevice_args implements org.apache.thrift.TBase<getServiceProviderForDevice_args, getServiceProviderForDevice_args._Fields>, java.io.Serializable, Cloneable {
|
| 110896 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviderForDevice_args");
|
110900 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviderForDevice_args");
|
| 110897 |
|
110901 |
|
| - |
|
110902 |
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);
|
| 110898 |
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)1);
|
110903 |
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);
|
| 110899 |
|
110904 |
|
| - |
|
110905 |
private RechargeType rechargeType; // required
|
| 110900 |
private String deviceNumber; // required
|
110906 |
private String deviceNumber; // required
|
| 110901 |
|
110907 |
|
| 110902 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
110908 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 110903 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
110909 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
110910 |
/**
|
| - |
|
110911 |
*
|
| - |
|
110912 |
* @see RechargeType
|
| - |
|
110913 |
*/
|
| - |
|
110914 |
RECHARGE_TYPE((short)1, "rechargeType"),
|
| 110904 |
DEVICE_NUMBER((short)1, "deviceNumber");
|
110915 |
DEVICE_NUMBER((short)2, "deviceNumber");
|
| 110905 |
|
110916 |
|
| 110906 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
110917 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 110907 |
|
110918 |
|
| 110908 |
static {
|
110919 |
static {
|
| 110909 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
110920 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 110914... |
Line 110925... |
| 110914 |
/**
|
110925 |
/**
|
| 110915 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
110926 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| 110916 |
*/
|
110927 |
*/
|
| 110917 |
public static _Fields findByThriftId(int fieldId) {
|
110928 |
public static _Fields findByThriftId(int fieldId) {
|
| 110918 |
switch(fieldId) {
|
110929 |
switch(fieldId) {
|
| - |
|
110930 |
case 1: // RECHARGE_TYPE
|
| - |
|
110931 |
return RECHARGE_TYPE;
|
| 110919 |
case 1: // DEVICE_NUMBER
|
110932 |
case 2: // DEVICE_NUMBER
|
| 110920 |
return DEVICE_NUMBER;
|
110933 |
return DEVICE_NUMBER;
|
| 110921 |
default:
|
110934 |
default:
|
| 110922 |
return null;
|
110935 |
return null;
|
| 110923 |
}
|
110936 |
}
|
| 110924 |
}
|
110937 |
}
|
| Line 110960... |
Line 110973... |
| 110960 |
// isset id assignments
|
110973 |
// isset id assignments
|
| 110961 |
|
110974 |
|
| 110962 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
110975 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 110963 |
static {
|
110976 |
static {
|
| 110964 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
110977 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
110978 |
tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
110979 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
|
| 110965 |
tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
110980 |
tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 110966 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
110981 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 110967 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
110982 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 110968 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviderForDevice_args.class, metaDataMap);
|
110983 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviderForDevice_args.class, metaDataMap);
|
| 110969 |
}
|
110984 |
}
|
| 110970 |
|
110985 |
|
| 110971 |
public getServiceProviderForDevice_args() {
|
110986 |
public getServiceProviderForDevice_args() {
|
| 110972 |
}
|
110987 |
}
|
| 110973 |
|
110988 |
|
| 110974 |
public getServiceProviderForDevice_args(
|
110989 |
public getServiceProviderForDevice_args(
|
| - |
|
110990 |
RechargeType rechargeType,
|
| 110975 |
String deviceNumber)
|
110991 |
String deviceNumber)
|
| 110976 |
{
|
110992 |
{
|
| 110977 |
this();
|
110993 |
this();
|
| - |
|
110994 |
this.rechargeType = rechargeType;
|
| 110978 |
this.deviceNumber = deviceNumber;
|
110995 |
this.deviceNumber = deviceNumber;
|
| 110979 |
}
|
110996 |
}
|
| 110980 |
|
110997 |
|
| 110981 |
/**
|
110998 |
/**
|
| 110982 |
* Performs a deep copy on <i>other</i>.
|
110999 |
* Performs a deep copy on <i>other</i>.
|
| 110983 |
*/
|
111000 |
*/
|
| 110984 |
public getServiceProviderForDevice_args(getServiceProviderForDevice_args other) {
|
111001 |
public getServiceProviderForDevice_args(getServiceProviderForDevice_args other) {
|
| - |
|
111002 |
if (other.isSetRechargeType()) {
|
| - |
|
111003 |
this.rechargeType = other.rechargeType;
|
| - |
|
111004 |
}
|
| 110985 |
if (other.isSetDeviceNumber()) {
|
111005 |
if (other.isSetDeviceNumber()) {
|
| 110986 |
this.deviceNumber = other.deviceNumber;
|
111006 |
this.deviceNumber = other.deviceNumber;
|
| 110987 |
}
|
111007 |
}
|
| 110988 |
}
|
111008 |
}
|
| 110989 |
|
111009 |
|
| Line 110991... |
Line 111011... |
| 110991 |
return new getServiceProviderForDevice_args(this);
|
111011 |
return new getServiceProviderForDevice_args(this);
|
| 110992 |
}
|
111012 |
}
|
| 110993 |
|
111013 |
|
| 110994 |
@Override
|
111014 |
@Override
|
| 110995 |
public void clear() {
|
111015 |
public void clear() {
|
| - |
|
111016 |
this.rechargeType = null;
|
| 110996 |
this.deviceNumber = null;
|
111017 |
this.deviceNumber = null;
|
| 110997 |
}
|
111018 |
}
|
| 110998 |
|
111019 |
|
| - |
|
111020 |
/**
|
| - |
|
111021 |
*
|
| - |
|
111022 |
* @see RechargeType
|
| - |
|
111023 |
*/
|
| - |
|
111024 |
public RechargeType getRechargeType() {
|
| - |
|
111025 |
return this.rechargeType;
|
| - |
|
111026 |
}
|
| - |
|
111027 |
|
| - |
|
111028 |
/**
|
| - |
|
111029 |
*
|
| - |
|
111030 |
* @see RechargeType
|
| - |
|
111031 |
*/
|
| - |
|
111032 |
public void setRechargeType(RechargeType rechargeType) {
|
| - |
|
111033 |
this.rechargeType = rechargeType;
|
| - |
|
111034 |
}
|
| - |
|
111035 |
|
| - |
|
111036 |
public void unsetRechargeType() {
|
| - |
|
111037 |
this.rechargeType = null;
|
| - |
|
111038 |
}
|
| - |
|
111039 |
|
| - |
|
111040 |
/** Returns true if field rechargeType is set (has been assigned a value) and false otherwise */
|
| - |
|
111041 |
public boolean isSetRechargeType() {
|
| - |
|
111042 |
return this.rechargeType != null;
|
| - |
|
111043 |
}
|
| - |
|
111044 |
|
| - |
|
111045 |
public void setRechargeTypeIsSet(boolean value) {
|
| - |
|
111046 |
if (!value) {
|
| - |
|
111047 |
this.rechargeType = null;
|
| - |
|
111048 |
}
|
| - |
|
111049 |
}
|
| - |
|
111050 |
|
| 110999 |
public String getDeviceNumber() {
|
111051 |
public String getDeviceNumber() {
|
| 111000 |
return this.deviceNumber;
|
111052 |
return this.deviceNumber;
|
| 111001 |
}
|
111053 |
}
|
| 111002 |
|
111054 |
|
| 111003 |
public void setDeviceNumber(String deviceNumber) {
|
111055 |
public void setDeviceNumber(String deviceNumber) {
|
| Line 111019... |
Line 111071... |
| 111019 |
}
|
111071 |
}
|
| 111020 |
}
|
111072 |
}
|
| 111021 |
|
111073 |
|
| 111022 |
public void setFieldValue(_Fields field, Object value) {
|
111074 |
public void setFieldValue(_Fields field, Object value) {
|
| 111023 |
switch (field) {
|
111075 |
switch (field) {
|
| - |
|
111076 |
case RECHARGE_TYPE:
|
| - |
|
111077 |
if (value == null) {
|
| - |
|
111078 |
unsetRechargeType();
|
| - |
|
111079 |
} else {
|
| - |
|
111080 |
setRechargeType((RechargeType)value);
|
| - |
|
111081 |
}
|
| - |
|
111082 |
break;
|
| - |
|
111083 |
|
| 111024 |
case DEVICE_NUMBER:
|
111084 |
case DEVICE_NUMBER:
|
| 111025 |
if (value == null) {
|
111085 |
if (value == null) {
|
| 111026 |
unsetDeviceNumber();
|
111086 |
unsetDeviceNumber();
|
| 111027 |
} else {
|
111087 |
} else {
|
| 111028 |
setDeviceNumber((String)value);
|
111088 |
setDeviceNumber((String)value);
|
| Line 111032... |
Line 111092... |
| 111032 |
}
|
111092 |
}
|
| 111033 |
}
|
111093 |
}
|
| 111034 |
|
111094 |
|
| 111035 |
public Object getFieldValue(_Fields field) {
|
111095 |
public Object getFieldValue(_Fields field) {
|
| 111036 |
switch (field) {
|
111096 |
switch (field) {
|
| - |
|
111097 |
case RECHARGE_TYPE:
|
| - |
|
111098 |
return getRechargeType();
|
| - |
|
111099 |
|
| 111037 |
case DEVICE_NUMBER:
|
111100 |
case DEVICE_NUMBER:
|
| 111038 |
return getDeviceNumber();
|
111101 |
return getDeviceNumber();
|
| 111039 |
|
111102 |
|
| 111040 |
}
|
111103 |
}
|
| 111041 |
throw new IllegalStateException();
|
111104 |
throw new IllegalStateException();
|
| Line 111046... |
Line 111109... |
| 111046 |
if (field == null) {
|
111109 |
if (field == null) {
|
| 111047 |
throw new IllegalArgumentException();
|
111110 |
throw new IllegalArgumentException();
|
| 111048 |
}
|
111111 |
}
|
| 111049 |
|
111112 |
|
| 111050 |
switch (field) {
|
111113 |
switch (field) {
|
| - |
|
111114 |
case RECHARGE_TYPE:
|
| - |
|
111115 |
return isSetRechargeType();
|
| 111051 |
case DEVICE_NUMBER:
|
111116 |
case DEVICE_NUMBER:
|
| 111052 |
return isSetDeviceNumber();
|
111117 |
return isSetDeviceNumber();
|
| 111053 |
}
|
111118 |
}
|
| 111054 |
throw new IllegalStateException();
|
111119 |
throw new IllegalStateException();
|
| 111055 |
}
|
111120 |
}
|
| Line 111065... |
Line 111130... |
| 111065 |
|
111130 |
|
| 111066 |
public boolean equals(getServiceProviderForDevice_args that) {
|
111131 |
public boolean equals(getServiceProviderForDevice_args that) {
|
| 111067 |
if (that == null)
|
111132 |
if (that == null)
|
| 111068 |
return false;
|
111133 |
return false;
|
| 111069 |
|
111134 |
|
| - |
|
111135 |
boolean this_present_rechargeType = true && this.isSetRechargeType();
|
| - |
|
111136 |
boolean that_present_rechargeType = true && that.isSetRechargeType();
|
| - |
|
111137 |
if (this_present_rechargeType || that_present_rechargeType) {
|
| - |
|
111138 |
if (!(this_present_rechargeType && that_present_rechargeType))
|
| - |
|
111139 |
return false;
|
| - |
|
111140 |
if (!this.rechargeType.equals(that.rechargeType))
|
| - |
|
111141 |
return false;
|
| - |
|
111142 |
}
|
| - |
|
111143 |
|
| 111070 |
boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
|
111144 |
boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
|
| 111071 |
boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
|
111145 |
boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
|
| 111072 |
if (this_present_deviceNumber || that_present_deviceNumber) {
|
111146 |
if (this_present_deviceNumber || that_present_deviceNumber) {
|
| 111073 |
if (!(this_present_deviceNumber && that_present_deviceNumber))
|
111147 |
if (!(this_present_deviceNumber && that_present_deviceNumber))
|
| 111074 |
return false;
|
111148 |
return false;
|
| Line 111090... |
Line 111164... |
| 111090 |
}
|
111164 |
}
|
| 111091 |
|
111165 |
|
| 111092 |
int lastComparison = 0;
|
111166 |
int lastComparison = 0;
|
| 111093 |
getServiceProviderForDevice_args typedOther = (getServiceProviderForDevice_args)other;
|
111167 |
getServiceProviderForDevice_args typedOther = (getServiceProviderForDevice_args)other;
|
| 111094 |
|
111168 |
|
| - |
|
111169 |
lastComparison = Boolean.valueOf(isSetRechargeType()).compareTo(typedOther.isSetRechargeType());
|
| - |
|
111170 |
if (lastComparison != 0) {
|
| - |
|
111171 |
return lastComparison;
|
| - |
|
111172 |
}
|
| - |
|
111173 |
if (isSetRechargeType()) {
|
| - |
|
111174 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
|
| - |
|
111175 |
if (lastComparison != 0) {
|
| - |
|
111176 |
return lastComparison;
|
| - |
|
111177 |
}
|
| - |
|
111178 |
}
|
| 111095 |
lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
|
111179 |
lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
|
| 111096 |
if (lastComparison != 0) {
|
111180 |
if (lastComparison != 0) {
|
| 111097 |
return lastComparison;
|
111181 |
return lastComparison;
|
| 111098 |
}
|
111182 |
}
|
| 111099 |
if (isSetDeviceNumber()) {
|
111183 |
if (isSetDeviceNumber()) {
|
| Line 111117... |
Line 111201... |
| 111117 |
field = iprot.readFieldBegin();
|
111201 |
field = iprot.readFieldBegin();
|
| 111118 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
111202 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 111119 |
break;
|
111203 |
break;
|
| 111120 |
}
|
111204 |
}
|
| 111121 |
switch (field.id) {
|
111205 |
switch (field.id) {
|
| - |
|
111206 |
case 1: // RECHARGE_TYPE
|
| - |
|
111207 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| - |
|
111208 |
this.rechargeType = RechargeType.findByValue(iprot.readI32());
|
| - |
|
111209 |
} else {
|
| - |
|
111210 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
111211 |
}
|
| - |
|
111212 |
break;
|
| 111122 |
case 1: // DEVICE_NUMBER
|
111213 |
case 2: // DEVICE_NUMBER
|
| 111123 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
111214 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 111124 |
this.deviceNumber = iprot.readString();
|
111215 |
this.deviceNumber = iprot.readString();
|
| 111125 |
} else {
|
111216 |
} else {
|
| 111126 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
111217 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 111127 |
}
|
111218 |
}
|
| Line 111137... |
Line 111228... |
| 111137 |
|
111228 |
|
| 111138 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
111229 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 111139 |
validate();
|
111230 |
validate();
|
| 111140 |
|
111231 |
|
| 111141 |
oprot.writeStructBegin(STRUCT_DESC);
|
111232 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
111233 |
if (this.rechargeType != null) {
|
| - |
|
111234 |
oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
|
| - |
|
111235 |
oprot.writeI32(this.rechargeType.getValue());
|
| - |
|
111236 |
oprot.writeFieldEnd();
|
| - |
|
111237 |
}
|
| 111142 |
if (this.deviceNumber != null) {
|
111238 |
if (this.deviceNumber != null) {
|
| 111143 |
oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
|
111239 |
oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
|
| 111144 |
oprot.writeString(this.deviceNumber);
|
111240 |
oprot.writeString(this.deviceNumber);
|
| 111145 |
oprot.writeFieldEnd();
|
111241 |
oprot.writeFieldEnd();
|
| 111146 |
}
|
111242 |
}
|
| Line 111151... |
Line 111247... |
| 111151 |
@Override
|
111247 |
@Override
|
| 111152 |
public String toString() {
|
111248 |
public String toString() {
|
| 111153 |
StringBuilder sb = new StringBuilder("getServiceProviderForDevice_args(");
|
111249 |
StringBuilder sb = new StringBuilder("getServiceProviderForDevice_args(");
|
| 111154 |
boolean first = true;
|
111250 |
boolean first = true;
|
| 111155 |
|
111251 |
|
| - |
|
111252 |
sb.append("rechargeType:");
|
| - |
|
111253 |
if (this.rechargeType == null) {
|
| - |
|
111254 |
sb.append("null");
|
| - |
|
111255 |
} else {
|
| - |
|
111256 |
sb.append(this.rechargeType);
|
| - |
|
111257 |
}
|
| - |
|
111258 |
first = false;
|
| - |
|
111259 |
if (!first) sb.append(", ");
|
| 111156 |
sb.append("deviceNumber:");
|
111260 |
sb.append("deviceNumber:");
|
| 111157 |
if (this.deviceNumber == null) {
|
111261 |
if (this.deviceNumber == null) {
|
| 111158 |
sb.append("null");
|
111262 |
sb.append("null");
|
| 111159 |
} else {
|
111263 |
} else {
|
| 111160 |
sb.append(this.deviceNumber);
|
111264 |
sb.append(this.deviceNumber);
|