Subversion Repositories SmartDukaan

Rev

Rev 7026 | Rev 7075 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7026 Rev 7073
Line 916... Line 916...
916
 
916
 
917
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException;
917
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException;
918
 
918
 
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
920
 
920
 
-
 
921
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException;
-
 
922
 
921
  }
923
  }
922
 
924
 
923
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
925
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
924
 
926
 
925
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
927
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1226... Line 1228...
1226
 
1228
 
1227
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
1229
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
1228
 
1230
 
1229
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
1231
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
1230
 
1232
 
-
 
1233
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
1234
 
1231
  }
1235
  }
1232
 
1236
 
1233
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1237
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1234
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1238
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1235
      public Factory() {}
1239
      public Factory() {}
Line 5101... Line 5105...
5101
        return result.success;
5105
        return result.success;
5102
      }
5106
      }
5103
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveUpdatesForRedExpress failed: unknown result");
5107
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveUpdatesForRedExpress failed: unknown result");
5104
    }
5108
    }
5105
 
5109
 
-
 
5110
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException
-
 
5111
    {
-
 
5112
      send_createRechargeTransaction(thriftRechargeTransaction);
-
 
5113
      return recv_createRechargeTransaction();
-
 
5114
    }
-
 
5115
 
-
 
5116
    public void send_createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException
-
 
5117
    {
-
 
5118
      createRechargeTransaction_args args = new createRechargeTransaction_args();
-
 
5119
      args.setThriftRechargeTransaction(thriftRechargeTransaction);
-
 
5120
      sendBase("createRechargeTransaction", args);
-
 
5121
    }
-
 
5122
 
-
 
5123
    public RechargeTransaction recv_createRechargeTransaction() throws org.apache.thrift.TException
-
 
5124
    {
-
 
5125
      createRechargeTransaction_result result = new createRechargeTransaction_result();
-
 
5126
      receiveBase(result, "createRechargeTransaction");
-
 
5127
      if (result.isSetSuccess()) {
-
 
5128
        return result.success;
-
 
5129
      }
-
 
5130
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRechargeTransaction failed: unknown result");
-
 
5131
    }
-
 
5132
 
5106
  }
5133
  }
5107
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5134
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5108
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5135
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5109
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5136
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5110
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5137
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10468... Line 10495...
10468
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10495
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10469
        return (new Client(prot)).recv_receiveUpdatesForRedExpress();
10496
        return (new Client(prot)).recv_receiveUpdatesForRedExpress();
10470
      }
10497
      }
10471
    }
10498
    }
10472
 
10499
 
-
 
10500
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
10501
      checkReady();
-
 
10502
      createRechargeTransaction_call method_call = new createRechargeTransaction_call(thriftRechargeTransaction, resultHandler, this, ___protocolFactory, ___transport);
-
 
10503
      this.___currentMethod = method_call;
-
 
10504
      ___manager.call(method_call);
-
 
10505
    }
-
 
10506
 
-
 
10507
    public static class createRechargeTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10508
      private RechargeTransaction thriftRechargeTransaction;
-
 
10509
      public createRechargeTransaction_call(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<createRechargeTransaction_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 {
-
 
10510
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10511
        this.thriftRechargeTransaction = thriftRechargeTransaction;
-
 
10512
      }
-
 
10513
 
-
 
10514
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10515
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRechargeTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10516
        createRechargeTransaction_args args = new createRechargeTransaction_args();
-
 
10517
        args.setThriftRechargeTransaction(thriftRechargeTransaction);
-
 
10518
        args.write(prot);
-
 
10519
        prot.writeMessageEnd();
-
 
10520
      }
-
 
10521
 
-
 
10522
      public RechargeTransaction getResult() throws org.apache.thrift.TException {
-
 
10523
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10524
          throw new IllegalStateException("Method call not finished!");
-
 
10525
        }
-
 
10526
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10527
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10528
        return (new Client(prot)).recv_createRechargeTransaction();
-
 
10529
      }
-
 
10530
    }
-
 
10531
 
10473
  }
10532
  }
10474
 
10533
 
10475
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10534
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10476
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10535
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10477
    public Processor(I iface) {
10536
    public Processor(I iface) {
Line 10634... Line 10693...
10634
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10693
      processMap.put("getPhysicalOrders", new getPhysicalOrders());
10635
      processMap.put("getDocument", new getDocument());
10694
      processMap.put("getDocument", new getDocument());
10636
      processMap.put("changeShippingAddress", new changeShippingAddress());
10695
      processMap.put("changeShippingAddress", new changeShippingAddress());
10637
      processMap.put("retrieveInvoice", new retrieveInvoice());
10696
      processMap.put("retrieveInvoice", new retrieveInvoice());
10638
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
10697
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
-
 
10698
      processMap.put("createRechargeTransaction", new createRechargeTransaction());
10639
      return processMap;
10699
      return processMap;
10640
    }
10700
    }
10641
 
10701
 
10642
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10702
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10643
      public createTransaction() {
10703
      public createTransaction() {
Line 13513... Line 13573...
13513
        result.success = iface.receiveUpdatesForRedExpress(args.awbNumber);
13573
        result.success = iface.receiveUpdatesForRedExpress(args.awbNumber);
13514
        return result;
13574
        return result;
13515
      }
13575
      }
13516
    }
13576
    }
13517
 
13577
 
-
 
13578
    private static class createRechargeTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRechargeTransaction_args> {
-
 
13579
      public createRechargeTransaction() {
-
 
13580
        super("createRechargeTransaction");
-
 
13581
      }
-
 
13582
 
-
 
13583
      protected createRechargeTransaction_args getEmptyArgsInstance() {
-
 
13584
        return new createRechargeTransaction_args();
-
 
13585
      }
-
 
13586
 
-
 
13587
      protected createRechargeTransaction_result getResult(I iface, createRechargeTransaction_args args) throws org.apache.thrift.TException {
-
 
13588
        createRechargeTransaction_result result = new createRechargeTransaction_result();
-
 
13589
        result.success = iface.createRechargeTransaction(args.thriftRechargeTransaction);
-
 
13590
        return result;
-
 
13591
      }
-
 
13592
    }
-
 
13593
 
13518
  }
13594
  }
13519
 
13595
 
13520
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13596
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
13521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
13522
 
13598
 
Line 57619... Line 57695...
57619
      }
57695
      }
57620
    }
57696
    }
57621
 
57697
 
57622
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57623
      try {
57699
      try {
-
 
57700
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57701
        __isset_bit_vector = new BitSet(1);
57624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57625
      } catch (org.apache.thrift.TException te) {
57703
      } catch (org.apache.thrift.TException te) {
57626
        throw new java.io.IOException(te);
57704
        throw new java.io.IOException(te);
57627
      }
57705
      }
57628
    }
57706
    }
Line 62469... Line 62547...
62469
      }
62547
      }
62470
    }
62548
    }
62471
 
62549
 
62472
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62473
      try {
62551
      try {
-
 
62552
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62553
        __isset_bit_vector = new BitSet(1);
62474
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62475
      } catch (org.apache.thrift.TException te) {
62555
      } catch (org.apache.thrift.TException te) {
62476
        throw new java.io.IOException(te);
62556
        throw new java.io.IOException(te);
62477
      }
62557
      }
62478
    }
62558
    }
Line 63900... Line 63980...
63900
      }
63980
      }
63901
    }
63981
    }
63902
 
63982
 
63903
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63904
      try {
63984
      try {
-
 
63985
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63986
        __isset_bit_vector = new BitSet(1);
63905
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63906
      } catch (org.apache.thrift.TException te) {
63988
      } catch (org.apache.thrift.TException te) {
63907
        throw new java.io.IOException(te);
63989
        throw new java.io.IOException(te);
63908
      }
63990
      }
63909
    }
63991
    }
Line 124807... Line 124889...
124807
      boolean first = true;
124889
      boolean first = true;
124808
 
124890
 
124809
      sb.append("success:");
124891
      sb.append("success:");
124810
      if (this.success == null) {
124892
      if (this.success == null) {
124811
        sb.append("null");
124893
        sb.append("null");
-
 
124894
      } else {
-
 
124895
        sb.append(this.success);
-
 
124896
      }
-
 
124897
      first = false;
-
 
124898
      sb.append(")");
-
 
124899
      return sb.toString();
-
 
124900
    }
-
 
124901
 
-
 
124902
    public void validate() throws org.apache.thrift.TException {
-
 
124903
      // check for required fields
-
 
124904
    }
-
 
124905
 
-
 
124906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
124907
      try {
-
 
124908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
124909
      } catch (org.apache.thrift.TException te) {
-
 
124910
        throw new java.io.IOException(te);
-
 
124911
      }
-
 
124912
    }
-
 
124913
 
-
 
124914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
124915
      try {
-
 
124916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
124917
      } catch (org.apache.thrift.TException te) {
-
 
124918
        throw new java.io.IOException(te);
-
 
124919
      }
-
 
124920
    }
-
 
124921
 
-
 
124922
  }
-
 
124923
 
-
 
124924
  public static class createRechargeTransaction_args implements org.apache.thrift.TBase<createRechargeTransaction_args, createRechargeTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
124925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRechargeTransaction_args");
-
 
124926
 
-
 
124927
    private static final org.apache.thrift.protocol.TField THRIFT_RECHARGE_TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("thriftRechargeTransaction", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
124928
 
-
 
124929
    private RechargeTransaction thriftRechargeTransaction; // required
-
 
124930
 
-
 
124931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
124932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
124933
      THRIFT_RECHARGE_TRANSACTION((short)1, "thriftRechargeTransaction");
-
 
124934
 
-
 
124935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
124936
 
-
 
124937
      static {
-
 
124938
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
124939
          byName.put(field.getFieldName(), field);
-
 
124940
        }
-
 
124941
      }
-
 
124942
 
-
 
124943
      /**
-
 
124944
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
124945
       */
-
 
124946
      public static _Fields findByThriftId(int fieldId) {
-
 
124947
        switch(fieldId) {
-
 
124948
          case 1: // THRIFT_RECHARGE_TRANSACTION
-
 
124949
            return THRIFT_RECHARGE_TRANSACTION;
-
 
124950
          default:
-
 
124951
            return null;
-
 
124952
        }
-
 
124953
      }
-
 
124954
 
-
 
124955
      /**
-
 
124956
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
124957
       * if it is not found.
-
 
124958
       */
-
 
124959
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
124960
        _Fields fields = findByThriftId(fieldId);
-
 
124961
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
124962
        return fields;
-
 
124963
      }
-
 
124964
 
-
 
124965
      /**
-
 
124966
       * Find the _Fields constant that matches name, or null if its not found.
-
 
124967
       */
-
 
124968
      public static _Fields findByName(String name) {
-
 
124969
        return byName.get(name);
-
 
124970
      }
-
 
124971
 
-
 
124972
      private final short _thriftId;
-
 
124973
      private final String _fieldName;
-
 
124974
 
-
 
124975
      _Fields(short thriftId, String fieldName) {
-
 
124976
        _thriftId = thriftId;
-
 
124977
        _fieldName = fieldName;
-
 
124978
      }
-
 
124979
 
-
 
124980
      public short getThriftFieldId() {
-
 
124981
        return _thriftId;
-
 
124982
      }
-
 
124983
 
-
 
124984
      public String getFieldName() {
-
 
124985
        return _fieldName;
-
 
124986
      }
-
 
124987
    }
-
 
124988
 
-
 
124989
    // isset id assignments
-
 
124990
 
-
 
124991
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
124992
    static {
-
 
124993
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
124994
      tmpMap.put(_Fields.THRIFT_RECHARGE_TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("thriftRechargeTransaction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124995
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeTransaction.class)));
-
 
124996
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
124997
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRechargeTransaction_args.class, metaDataMap);
-
 
124998
    }
-
 
124999
 
-
 
125000
    public createRechargeTransaction_args() {
-
 
125001
    }
-
 
125002
 
-
 
125003
    public createRechargeTransaction_args(
-
 
125004
      RechargeTransaction thriftRechargeTransaction)
-
 
125005
    {
-
 
125006
      this();
-
 
125007
      this.thriftRechargeTransaction = thriftRechargeTransaction;
-
 
125008
    }
-
 
125009
 
-
 
125010
    /**
-
 
125011
     * Performs a deep copy on <i>other</i>.
-
 
125012
     */
-
 
125013
    public createRechargeTransaction_args(createRechargeTransaction_args other) {
-
 
125014
      if (other.isSetThriftRechargeTransaction()) {
-
 
125015
        this.thriftRechargeTransaction = new RechargeTransaction(other.thriftRechargeTransaction);
-
 
125016
      }
-
 
125017
    }
-
 
125018
 
-
 
125019
    public createRechargeTransaction_args deepCopy() {
-
 
125020
      return new createRechargeTransaction_args(this);
-
 
125021
    }
-
 
125022
 
-
 
125023
    @Override
-
 
125024
    public void clear() {
-
 
125025
      this.thriftRechargeTransaction = null;
-
 
125026
    }
-
 
125027
 
-
 
125028
    public RechargeTransaction getThriftRechargeTransaction() {
-
 
125029
      return this.thriftRechargeTransaction;
-
 
125030
    }
-
 
125031
 
-
 
125032
    public void setThriftRechargeTransaction(RechargeTransaction thriftRechargeTransaction) {
-
 
125033
      this.thriftRechargeTransaction = thriftRechargeTransaction;
-
 
125034
    }
-
 
125035
 
-
 
125036
    public void unsetThriftRechargeTransaction() {
-
 
125037
      this.thriftRechargeTransaction = null;
-
 
125038
    }
-
 
125039
 
-
 
125040
    /** Returns true if field thriftRechargeTransaction is set (has been assigned a value) and false otherwise */
-
 
125041
    public boolean isSetThriftRechargeTransaction() {
-
 
125042
      return this.thriftRechargeTransaction != null;
-
 
125043
    }
-
 
125044
 
-
 
125045
    public void setThriftRechargeTransactionIsSet(boolean value) {
-
 
125046
      if (!value) {
-
 
125047
        this.thriftRechargeTransaction = null;
-
 
125048
      }
-
 
125049
    }
-
 
125050
 
-
 
125051
    public void setFieldValue(_Fields field, Object value) {
-
 
125052
      switch (field) {
-
 
125053
      case THRIFT_RECHARGE_TRANSACTION:
-
 
125054
        if (value == null) {
-
 
125055
          unsetThriftRechargeTransaction();
-
 
125056
        } else {
-
 
125057
          setThriftRechargeTransaction((RechargeTransaction)value);
-
 
125058
        }
-
 
125059
        break;
-
 
125060
 
-
 
125061
      }
-
 
125062
    }
-
 
125063
 
-
 
125064
    public Object getFieldValue(_Fields field) {
-
 
125065
      switch (field) {
-
 
125066
      case THRIFT_RECHARGE_TRANSACTION:
-
 
125067
        return getThriftRechargeTransaction();
-
 
125068
 
-
 
125069
      }
-
 
125070
      throw new IllegalStateException();
-
 
125071
    }
-
 
125072
 
-
 
125073
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125074
    public boolean isSet(_Fields field) {
-
 
125075
      if (field == null) {
-
 
125076
        throw new IllegalArgumentException();
-
 
125077
      }
-
 
125078
 
-
 
125079
      switch (field) {
-
 
125080
      case THRIFT_RECHARGE_TRANSACTION:
-
 
125081
        return isSetThriftRechargeTransaction();
-
 
125082
      }
-
 
125083
      throw new IllegalStateException();
-
 
125084
    }
-
 
125085
 
-
 
125086
    @Override
-
 
125087
    public boolean equals(Object that) {
-
 
125088
      if (that == null)
-
 
125089
        return false;
-
 
125090
      if (that instanceof createRechargeTransaction_args)
-
 
125091
        return this.equals((createRechargeTransaction_args)that);
-
 
125092
      return false;
-
 
125093
    }
-
 
125094
 
-
 
125095
    public boolean equals(createRechargeTransaction_args that) {
-
 
125096
      if (that == null)
-
 
125097
        return false;
-
 
125098
 
-
 
125099
      boolean this_present_thriftRechargeTransaction = true && this.isSetThriftRechargeTransaction();
-
 
125100
      boolean that_present_thriftRechargeTransaction = true && that.isSetThriftRechargeTransaction();
-
 
125101
      if (this_present_thriftRechargeTransaction || that_present_thriftRechargeTransaction) {
-
 
125102
        if (!(this_present_thriftRechargeTransaction && that_present_thriftRechargeTransaction))
-
 
125103
          return false;
-
 
125104
        if (!this.thriftRechargeTransaction.equals(that.thriftRechargeTransaction))
-
 
125105
          return false;
-
 
125106
      }
-
 
125107
 
-
 
125108
      return true;
-
 
125109
    }
-
 
125110
 
-
 
125111
    @Override
-
 
125112
    public int hashCode() {
-
 
125113
      return 0;
-
 
125114
    }
-
 
125115
 
-
 
125116
    public int compareTo(createRechargeTransaction_args other) {
-
 
125117
      if (!getClass().equals(other.getClass())) {
-
 
125118
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125119
      }
-
 
125120
 
-
 
125121
      int lastComparison = 0;
-
 
125122
      createRechargeTransaction_args typedOther = (createRechargeTransaction_args)other;
-
 
125123
 
-
 
125124
      lastComparison = Boolean.valueOf(isSetThriftRechargeTransaction()).compareTo(typedOther.isSetThriftRechargeTransaction());
-
 
125125
      if (lastComparison != 0) {
-
 
125126
        return lastComparison;
-
 
125127
      }
-
 
125128
      if (isSetThriftRechargeTransaction()) {
-
 
125129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thriftRechargeTransaction, typedOther.thriftRechargeTransaction);
-
 
125130
        if (lastComparison != 0) {
-
 
125131
          return lastComparison;
-
 
125132
        }
-
 
125133
      }
-
 
125134
      return 0;
-
 
125135
    }
-
 
125136
 
-
 
125137
    public _Fields fieldForId(int fieldId) {
-
 
125138
      return _Fields.findByThriftId(fieldId);
-
 
125139
    }
-
 
125140
 
-
 
125141
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125142
      org.apache.thrift.protocol.TField field;
-
 
125143
      iprot.readStructBegin();
-
 
125144
      while (true)
-
 
125145
      {
-
 
125146
        field = iprot.readFieldBegin();
-
 
125147
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125148
          break;
-
 
125149
        }
-
 
125150
        switch (field.id) {
-
 
125151
          case 1: // THRIFT_RECHARGE_TRANSACTION
-
 
125152
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
125153
              this.thriftRechargeTransaction = new RechargeTransaction();
-
 
125154
              this.thriftRechargeTransaction.read(iprot);
-
 
125155
            } else { 
-
 
125156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125157
            }
-
 
125158
            break;
-
 
125159
          default:
-
 
125160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125161
        }
-
 
125162
        iprot.readFieldEnd();
-
 
125163
      }
-
 
125164
      iprot.readStructEnd();
-
 
125165
      validate();
-
 
125166
    }
-
 
125167
 
-
 
125168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125169
      validate();
-
 
125170
 
-
 
125171
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125172
      if (this.thriftRechargeTransaction != null) {
-
 
125173
        oprot.writeFieldBegin(THRIFT_RECHARGE_TRANSACTION_FIELD_DESC);
-
 
125174
        this.thriftRechargeTransaction.write(oprot);
-
 
125175
        oprot.writeFieldEnd();
-
 
125176
      }
-
 
125177
      oprot.writeFieldStop();
-
 
125178
      oprot.writeStructEnd();
-
 
125179
    }
-
 
125180
 
-
 
125181
    @Override
-
 
125182
    public String toString() {
-
 
125183
      StringBuilder sb = new StringBuilder("createRechargeTransaction_args(");
-
 
125184
      boolean first = true;
-
 
125185
 
-
 
125186
      sb.append("thriftRechargeTransaction:");
-
 
125187
      if (this.thriftRechargeTransaction == null) {
-
 
125188
        sb.append("null");
-
 
125189
      } else {
-
 
125190
        sb.append(this.thriftRechargeTransaction);
-
 
125191
      }
-
 
125192
      first = false;
-
 
125193
      sb.append(")");
-
 
125194
      return sb.toString();
-
 
125195
    }
-
 
125196
 
-
 
125197
    public void validate() throws org.apache.thrift.TException {
-
 
125198
      // check for required fields
-
 
125199
    }
-
 
125200
 
-
 
125201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
125202
      try {
-
 
125203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
125204
      } catch (org.apache.thrift.TException te) {
-
 
125205
        throw new java.io.IOException(te);
-
 
125206
      }
-
 
125207
    }
-
 
125208
 
-
 
125209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
125210
      try {
-
 
125211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
125212
      } catch (org.apache.thrift.TException te) {
-
 
125213
        throw new java.io.IOException(te);
-
 
125214
      }
-
 
125215
    }
-
 
125216
 
-
 
125217
  }
-
 
125218
 
-
 
125219
  public static class createRechargeTransaction_result implements org.apache.thrift.TBase<createRechargeTransaction_result, createRechargeTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
125220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRechargeTransaction_result");
-
 
125221
 
-
 
125222
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
125223
 
-
 
125224
    private RechargeTransaction success; // required
-
 
125225
 
-
 
125226
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125227
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125228
      SUCCESS((short)0, "success");
-
 
125229
 
-
 
125230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125231
 
-
 
125232
      static {
-
 
125233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125234
          byName.put(field.getFieldName(), field);
-
 
125235
        }
-
 
125236
      }
-
 
125237
 
-
 
125238
      /**
-
 
125239
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125240
       */
-
 
125241
      public static _Fields findByThriftId(int fieldId) {
-
 
125242
        switch(fieldId) {
-
 
125243
          case 0: // SUCCESS
-
 
125244
            return SUCCESS;
-
 
125245
          default:
-
 
125246
            return null;
-
 
125247
        }
-
 
125248
      }
-
 
125249
 
-
 
125250
      /**
-
 
125251
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125252
       * if it is not found.
-
 
125253
       */
-
 
125254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125255
        _Fields fields = findByThriftId(fieldId);
-
 
125256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125257
        return fields;
-
 
125258
      }
-
 
125259
 
-
 
125260
      /**
-
 
125261
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125262
       */
-
 
125263
      public static _Fields findByName(String name) {
-
 
125264
        return byName.get(name);
-
 
125265
      }
-
 
125266
 
-
 
125267
      private final short _thriftId;
-
 
125268
      private final String _fieldName;
-
 
125269
 
-
 
125270
      _Fields(short thriftId, String fieldName) {
-
 
125271
        _thriftId = thriftId;
-
 
125272
        _fieldName = fieldName;
-
 
125273
      }
-
 
125274
 
-
 
125275
      public short getThriftFieldId() {
-
 
125276
        return _thriftId;
-
 
125277
      }
-
 
125278
 
-
 
125279
      public String getFieldName() {
-
 
125280
        return _fieldName;
-
 
125281
      }
-
 
125282
    }
-
 
125283
 
-
 
125284
    // isset id assignments
-
 
125285
 
-
 
125286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125287
    static {
-
 
125288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125289
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125290
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeTransaction.class)));
-
 
125291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRechargeTransaction_result.class, metaDataMap);
-
 
125293
    }
-
 
125294
 
-
 
125295
    public createRechargeTransaction_result() {
-
 
125296
    }
-
 
125297
 
-
 
125298
    public createRechargeTransaction_result(
-
 
125299
      RechargeTransaction success)
-
 
125300
    {
-
 
125301
      this();
-
 
125302
      this.success = success;
-
 
125303
    }
-
 
125304
 
-
 
125305
    /**
-
 
125306
     * Performs a deep copy on <i>other</i>.
-
 
125307
     */
-
 
125308
    public createRechargeTransaction_result(createRechargeTransaction_result other) {
-
 
125309
      if (other.isSetSuccess()) {
-
 
125310
        this.success = new RechargeTransaction(other.success);
-
 
125311
      }
-
 
125312
    }
-
 
125313
 
-
 
125314
    public createRechargeTransaction_result deepCopy() {
-
 
125315
      return new createRechargeTransaction_result(this);
-
 
125316
    }
-
 
125317
 
-
 
125318
    @Override
-
 
125319
    public void clear() {
-
 
125320
      this.success = null;
-
 
125321
    }
-
 
125322
 
-
 
125323
    public RechargeTransaction getSuccess() {
-
 
125324
      return this.success;
-
 
125325
    }
-
 
125326
 
-
 
125327
    public void setSuccess(RechargeTransaction success) {
-
 
125328
      this.success = success;
-
 
125329
    }
-
 
125330
 
-
 
125331
    public void unsetSuccess() {
-
 
125332
      this.success = null;
-
 
125333
    }
-
 
125334
 
-
 
125335
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
125336
    public boolean isSetSuccess() {
-
 
125337
      return this.success != null;
-
 
125338
    }
-
 
125339
 
-
 
125340
    public void setSuccessIsSet(boolean value) {
-
 
125341
      if (!value) {
-
 
125342
        this.success = null;
-
 
125343
      }
-
 
125344
    }
-
 
125345
 
-
 
125346
    public void setFieldValue(_Fields field, Object value) {
-
 
125347
      switch (field) {
-
 
125348
      case SUCCESS:
-
 
125349
        if (value == null) {
-
 
125350
          unsetSuccess();
-
 
125351
        } else {
-
 
125352
          setSuccess((RechargeTransaction)value);
-
 
125353
        }
-
 
125354
        break;
-
 
125355
 
-
 
125356
      }
-
 
125357
    }
-
 
125358
 
-
 
125359
    public Object getFieldValue(_Fields field) {
-
 
125360
      switch (field) {
-
 
125361
      case SUCCESS:
-
 
125362
        return getSuccess();
-
 
125363
 
-
 
125364
      }
-
 
125365
      throw new IllegalStateException();
-
 
125366
    }
-
 
125367
 
-
 
125368
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125369
    public boolean isSet(_Fields field) {
-
 
125370
      if (field == null) {
-
 
125371
        throw new IllegalArgumentException();
-
 
125372
      }
-
 
125373
 
-
 
125374
      switch (field) {
-
 
125375
      case SUCCESS:
-
 
125376
        return isSetSuccess();
-
 
125377
      }
-
 
125378
      throw new IllegalStateException();
-
 
125379
    }
-
 
125380
 
-
 
125381
    @Override
-
 
125382
    public boolean equals(Object that) {
-
 
125383
      if (that == null)
-
 
125384
        return false;
-
 
125385
      if (that instanceof createRechargeTransaction_result)
-
 
125386
        return this.equals((createRechargeTransaction_result)that);
-
 
125387
      return false;
-
 
125388
    }
-
 
125389
 
-
 
125390
    public boolean equals(createRechargeTransaction_result that) {
-
 
125391
      if (that == null)
-
 
125392
        return false;
-
 
125393
 
-
 
125394
      boolean this_present_success = true && this.isSetSuccess();
-
 
125395
      boolean that_present_success = true && that.isSetSuccess();
-
 
125396
      if (this_present_success || that_present_success) {
-
 
125397
        if (!(this_present_success && that_present_success))
-
 
125398
          return false;
-
 
125399
        if (!this.success.equals(that.success))
-
 
125400
          return false;
-
 
125401
      }
-
 
125402
 
-
 
125403
      return true;
-
 
125404
    }
-
 
125405
 
-
 
125406
    @Override
-
 
125407
    public int hashCode() {
-
 
125408
      return 0;
-
 
125409
    }
-
 
125410
 
-
 
125411
    public int compareTo(createRechargeTransaction_result other) {
-
 
125412
      if (!getClass().equals(other.getClass())) {
-
 
125413
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125414
      }
-
 
125415
 
-
 
125416
      int lastComparison = 0;
-
 
125417
      createRechargeTransaction_result typedOther = (createRechargeTransaction_result)other;
-
 
125418
 
-
 
125419
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
125420
      if (lastComparison != 0) {
-
 
125421
        return lastComparison;
-
 
125422
      }
-
 
125423
      if (isSetSuccess()) {
-
 
125424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
125425
        if (lastComparison != 0) {
-
 
125426
          return lastComparison;
-
 
125427
        }
-
 
125428
      }
-
 
125429
      return 0;
-
 
125430
    }
-
 
125431
 
-
 
125432
    public _Fields fieldForId(int fieldId) {
-
 
125433
      return _Fields.findByThriftId(fieldId);
-
 
125434
    }
-
 
125435
 
-
 
125436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125437
      org.apache.thrift.protocol.TField field;
-
 
125438
      iprot.readStructBegin();
-
 
125439
      while (true)
-
 
125440
      {
-
 
125441
        field = iprot.readFieldBegin();
-
 
125442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125443
          break;
-
 
125444
        }
-
 
125445
        switch (field.id) {
-
 
125446
          case 0: // SUCCESS
-
 
125447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
125448
              this.success = new RechargeTransaction();
-
 
125449
              this.success.read(iprot);
-
 
125450
            } else { 
-
 
125451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125452
            }
-
 
125453
            break;
-
 
125454
          default:
-
 
125455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125456
        }
-
 
125457
        iprot.readFieldEnd();
-
 
125458
      }
-
 
125459
      iprot.readStructEnd();
-
 
125460
      validate();
-
 
125461
    }
-
 
125462
 
-
 
125463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125464
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125465
 
-
 
125466
      if (this.isSetSuccess()) {
-
 
125467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
125468
        this.success.write(oprot);
-
 
125469
        oprot.writeFieldEnd();
-
 
125470
      }
-
 
125471
      oprot.writeFieldStop();
-
 
125472
      oprot.writeStructEnd();
-
 
125473
    }
-
 
125474
 
-
 
125475
    @Override
-
 
125476
    public String toString() {
-
 
125477
      StringBuilder sb = new StringBuilder("createRechargeTransaction_result(");
-
 
125478
      boolean first = true;
-
 
125479
 
-
 
125480
      sb.append("success:");
-
 
125481
      if (this.success == null) {
-
 
125482
        sb.append("null");
124812
      } else {
125483
      } else {
124813
        sb.append(this.success);
125484
        sb.append(this.success);
124814
      }
125485
      }
124815
      first = false;
125486
      first = false;
124816
      sb.append(")");
125487
      sb.append(")");