Subversion Repositories SmartDukaan

Rev

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

Rev 6094 Rev 6154
Line 879... Line 879...
879
 
879
 
880
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
880
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
881
 
881
 
882
    public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
882
    public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
883
 
883
 
-
 
884
    public List<RechargeOrder> getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException;
-
 
885
 
884
  }
886
  }
885
 
887
 
886
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
888
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
887
 
889
 
888
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
890
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1161... Line 1163...
1161
 
1163
 
1162
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
1164
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
1163
 
1165
 
1164
    public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
1166
    public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
1165
 
1167
 
-
 
1168
    public void getRechargeOrdersForStatus(long status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
1169
 
1166
  }
1170
  }
1167
 
1171
 
1168
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1172
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1169
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1173
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1170
      public Factory() {}
1174
      public Factory() {}
Line 4696... Line 4700...
4696
      addAmountToWallet_result result = new addAmountToWallet_result();
4700
      addAmountToWallet_result result = new addAmountToWallet_result();
4697
      receiveBase(result, "addAmountToWallet");
4701
      receiveBase(result, "addAmountToWallet");
4698
      return;
4702
      return;
4699
    }
4703
    }
4700
 
4704
 
-
 
4705
    public List<RechargeOrder> getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException
-
 
4706
    {
-
 
4707
      send_getRechargeOrdersForStatus(status);
-
 
4708
      return recv_getRechargeOrdersForStatus();
-
 
4709
    }
-
 
4710
 
-
 
4711
    public void send_getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException
-
 
4712
    {
-
 
4713
      getRechargeOrdersForStatus_args args = new getRechargeOrdersForStatus_args();
-
 
4714
      args.setStatus(status);
-
 
4715
      sendBase("getRechargeOrdersForStatus", args);
-
 
4716
    }
-
 
4717
 
-
 
4718
    public List<RechargeOrder> recv_getRechargeOrdersForStatus() throws org.apache.thrift.TException
-
 
4719
    {
-
 
4720
      getRechargeOrdersForStatus_result result = new getRechargeOrdersForStatus_result();
-
 
4721
      receiveBase(result, "getRechargeOrdersForStatus");
-
 
4722
      if (result.isSetSuccess()) {
-
 
4723
        return result.success;
-
 
4724
      }
-
 
4725
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeOrdersForStatus failed: unknown result");
-
 
4726
    }
-
 
4727
 
4701
  }
4728
  }
4702
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4729
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4703
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4730
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4704
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4731
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4705
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4732
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9570... Line 9597...
9570
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9597
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9571
        (new Client(prot)).recv_addAmountToWallet();
9598
        (new Client(prot)).recv_addAmountToWallet();
9572
      }
9599
      }
9573
    }
9600
    }
9574
 
9601
 
-
 
9602
    public void getRechargeOrdersForStatus(long status, org.apache.thrift.async.AsyncMethodCallback<getRechargeOrdersForStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
9603
      checkReady();
-
 
9604
      getRechargeOrdersForStatus_call method_call = new getRechargeOrdersForStatus_call(status, resultHandler, this, ___protocolFactory, ___transport);
-
 
9605
      this.___currentMethod = method_call;
-
 
9606
      ___manager.call(method_call);
-
 
9607
    }
-
 
9608
 
-
 
9609
    public static class getRechargeOrdersForStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9610
      private long status;
-
 
9611
      public getRechargeOrdersForStatus_call(long status, org.apache.thrift.async.AsyncMethodCallback<getRechargeOrdersForStatus_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 {
-
 
9612
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9613
        this.status = status;
-
 
9614
      }
-
 
9615
 
-
 
9616
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9617
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeOrdersForStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9618
        getRechargeOrdersForStatus_args args = new getRechargeOrdersForStatus_args();
-
 
9619
        args.setStatus(status);
-
 
9620
        args.write(prot);
-
 
9621
        prot.writeMessageEnd();
-
 
9622
      }
-
 
9623
 
-
 
9624
      public List<RechargeOrder> getResult() throws org.apache.thrift.TException {
-
 
9625
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9626
          throw new IllegalStateException("Method call not finished!");
-
 
9627
        }
-
 
9628
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9629
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9630
        return (new Client(prot)).recv_getRechargeOrdersForStatus();
-
 
9631
      }
-
 
9632
    }
-
 
9633
 
9575
  }
9634
  }
9576
 
9635
 
9577
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9636
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9578
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9637
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9579
    public Processor(I iface) {
9638
    public Processor(I iface) {
Line 9722... Line 9781...
9722
      processMap.put("getRechargeOrdersForTransaction", new getRechargeOrdersForTransaction());
9781
      processMap.put("getRechargeOrdersForTransaction", new getRechargeOrdersForTransaction());
9723
      processMap.put("getServiceProviders", new getServiceProviders());
9782
      processMap.put("getServiceProviders", new getServiceProviders());
9724
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
9783
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
9725
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
9784
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
9726
      processMap.put("addAmountToWallet", new addAmountToWallet());
9785
      processMap.put("addAmountToWallet", new addAmountToWallet());
-
 
9786
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
9727
      return processMap;
9787
      return processMap;
9728
    }
9788
    }
9729
 
9789
 
9730
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9790
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9731
      public createTransaction() {
9791
      public createTransaction() {
Line 12368... Line 12428...
12368
        iface.addAmountToWallet(args.userId, args.orderId, args.amount);
12428
        iface.addAmountToWallet(args.userId, args.orderId, args.amount);
12369
        return result;
12429
        return result;
12370
      }
12430
      }
12371
    }
12431
    }
12372
 
12432
 
-
 
12433
    private static class getRechargeOrdersForStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeOrdersForStatus_args> {
-
 
12434
      public getRechargeOrdersForStatus() {
-
 
12435
        super("getRechargeOrdersForStatus");
-
 
12436
      }
-
 
12437
 
-
 
12438
      protected getRechargeOrdersForStatus_args getEmptyArgsInstance() {
-
 
12439
        return new getRechargeOrdersForStatus_args();
-
 
12440
      }
-
 
12441
 
-
 
12442
      protected getRechargeOrdersForStatus_result getResult(I iface, getRechargeOrdersForStatus_args args) throws org.apache.thrift.TException {
-
 
12443
        getRechargeOrdersForStatus_result result = new getRechargeOrdersForStatus_result();
-
 
12444
        result.success = iface.getRechargeOrdersForStatus(args.status);
-
 
12445
        return result;
-
 
12446
      }
-
 
12447
    }
-
 
12448
 
12373
  }
12449
  }
12374
 
12450
 
12375
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12451
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12377
 
12453
 
Line 113765... Line 113841...
113765
      sb.append(")");
113841
      sb.append(")");
113766
      return sb.toString();
113842
      return sb.toString();
113767
    }
113843
    }
113768
 
113844
 
113769
    public void validate() throws org.apache.thrift.TException {
113845
    public void validate() throws org.apache.thrift.TException {
-
 
113846
      // check for required fields
-
 
113847
    }
-
 
113848
 
-
 
113849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
113850
      try {
-
 
113851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
113852
      } catch (org.apache.thrift.TException te) {
-
 
113853
        throw new java.io.IOException(te);
-
 
113854
      }
-
 
113855
    }
-
 
113856
 
-
 
113857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
113858
      try {
-
 
113859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
113860
      } catch (org.apache.thrift.TException te) {
-
 
113861
        throw new java.io.IOException(te);
-
 
113862
      }
-
 
113863
    }
-
 
113864
 
-
 
113865
  }
-
 
113866
 
-
 
113867
  public static class getRechargeOrdersForStatus_args implements org.apache.thrift.TBase<getRechargeOrdersForStatus_args, getRechargeOrdersForStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
113868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeOrdersForStatus_args");
-
 
113869
 
-
 
113870
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
113871
 
-
 
113872
    private long status; // required
-
 
113873
 
-
 
113874
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
113875
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
113876
      STATUS((short)1, "status");
-
 
113877
 
-
 
113878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
113879
 
-
 
113880
      static {
-
 
113881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
113882
          byName.put(field.getFieldName(), field);
-
 
113883
        }
-
 
113884
      }
-
 
113885
 
-
 
113886
      /**
-
 
113887
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
113888
       */
-
 
113889
      public static _Fields findByThriftId(int fieldId) {
-
 
113890
        switch(fieldId) {
-
 
113891
          case 1: // STATUS
-
 
113892
            return STATUS;
-
 
113893
          default:
-
 
113894
            return null;
-
 
113895
        }
-
 
113896
      }
-
 
113897
 
-
 
113898
      /**
-
 
113899
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
113900
       * if it is not found.
-
 
113901
       */
-
 
113902
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
113903
        _Fields fields = findByThriftId(fieldId);
-
 
113904
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
113905
        return fields;
-
 
113906
      }
-
 
113907
 
-
 
113908
      /**
-
 
113909
       * Find the _Fields constant that matches name, or null if its not found.
-
 
113910
       */
-
 
113911
      public static _Fields findByName(String name) {
-
 
113912
        return byName.get(name);
-
 
113913
      }
-
 
113914
 
-
 
113915
      private final short _thriftId;
-
 
113916
      private final String _fieldName;
-
 
113917
 
-
 
113918
      _Fields(short thriftId, String fieldName) {
-
 
113919
        _thriftId = thriftId;
-
 
113920
        _fieldName = fieldName;
-
 
113921
      }
-
 
113922
 
-
 
113923
      public short getThriftFieldId() {
-
 
113924
        return _thriftId;
-
 
113925
      }
-
 
113926
 
-
 
113927
      public String getFieldName() {
-
 
113928
        return _fieldName;
-
 
113929
      }
-
 
113930
    }
-
 
113931
 
-
 
113932
    // isset id assignments
-
 
113933
    private static final int __STATUS_ISSET_ID = 0;
-
 
113934
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
113935
 
-
 
113936
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
113937
    static {
-
 
113938
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
113939
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113940
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113941
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
113942
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeOrdersForStatus_args.class, metaDataMap);
-
 
113943
    }
-
 
113944
 
-
 
113945
    public getRechargeOrdersForStatus_args() {
-
 
113946
    }
-
 
113947
 
-
 
113948
    public getRechargeOrdersForStatus_args(
-
 
113949
      long status)
-
 
113950
    {
-
 
113951
      this();
-
 
113952
      this.status = status;
-
 
113953
      setStatusIsSet(true);
-
 
113954
    }
-
 
113955
 
-
 
113956
    /**
-
 
113957
     * Performs a deep copy on <i>other</i>.
-
 
113958
     */
-
 
113959
    public getRechargeOrdersForStatus_args(getRechargeOrdersForStatus_args other) {
-
 
113960
      __isset_bit_vector.clear();
-
 
113961
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
113962
      this.status = other.status;
-
 
113963
    }
-
 
113964
 
-
 
113965
    public getRechargeOrdersForStatus_args deepCopy() {
-
 
113966
      return new getRechargeOrdersForStatus_args(this);
-
 
113967
    }
-
 
113968
 
-
 
113969
    @Override
-
 
113970
    public void clear() {
-
 
113971
      setStatusIsSet(false);
-
 
113972
      this.status = 0;
-
 
113973
    }
-
 
113974
 
-
 
113975
    public long getStatus() {
-
 
113976
      return this.status;
-
 
113977
    }
-
 
113978
 
-
 
113979
    public void setStatus(long status) {
-
 
113980
      this.status = status;
-
 
113981
      setStatusIsSet(true);
-
 
113982
    }
-
 
113983
 
-
 
113984
    public void unsetStatus() {
-
 
113985
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
-
 
113986
    }
-
 
113987
 
-
 
113988
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
113989
    public boolean isSetStatus() {
-
 
113990
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
-
 
113991
    }
-
 
113992
 
-
 
113993
    public void setStatusIsSet(boolean value) {
-
 
113994
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
-
 
113995
    }
-
 
113996
 
-
 
113997
    public void setFieldValue(_Fields field, Object value) {
-
 
113998
      switch (field) {
-
 
113999
      case STATUS:
-
 
114000
        if (value == null) {
-
 
114001
          unsetStatus();
-
 
114002
        } else {
-
 
114003
          setStatus((Long)value);
-
 
114004
        }
-
 
114005
        break;
-
 
114006
 
-
 
114007
      }
-
 
114008
    }
-
 
114009
 
-
 
114010
    public Object getFieldValue(_Fields field) {
-
 
114011
      switch (field) {
-
 
114012
      case STATUS:
-
 
114013
        return Long.valueOf(getStatus());
-
 
114014
 
-
 
114015
      }
-
 
114016
      throw new IllegalStateException();
-
 
114017
    }
-
 
114018
 
-
 
114019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
114020
    public boolean isSet(_Fields field) {
-
 
114021
      if (field == null) {
-
 
114022
        throw new IllegalArgumentException();
-
 
114023
      }
-
 
114024
 
-
 
114025
      switch (field) {
-
 
114026
      case STATUS:
-
 
114027
        return isSetStatus();
-
 
114028
      }
-
 
114029
      throw new IllegalStateException();
-
 
114030
    }
-
 
114031
 
-
 
114032
    @Override
-
 
114033
    public boolean equals(Object that) {
-
 
114034
      if (that == null)
-
 
114035
        return false;
-
 
114036
      if (that instanceof getRechargeOrdersForStatus_args)
-
 
114037
        return this.equals((getRechargeOrdersForStatus_args)that);
-
 
114038
      return false;
-
 
114039
    }
-
 
114040
 
-
 
114041
    public boolean equals(getRechargeOrdersForStatus_args that) {
-
 
114042
      if (that == null)
-
 
114043
        return false;
-
 
114044
 
-
 
114045
      boolean this_present_status = true;
-
 
114046
      boolean that_present_status = true;
-
 
114047
      if (this_present_status || that_present_status) {
-
 
114048
        if (!(this_present_status && that_present_status))
-
 
114049
          return false;
-
 
114050
        if (this.status != that.status)
-
 
114051
          return false;
-
 
114052
      }
-
 
114053
 
-
 
114054
      return true;
-
 
114055
    }
-
 
114056
 
-
 
114057
    @Override
-
 
114058
    public int hashCode() {
-
 
114059
      return 0;
-
 
114060
    }
-
 
114061
 
-
 
114062
    public int compareTo(getRechargeOrdersForStatus_args other) {
-
 
114063
      if (!getClass().equals(other.getClass())) {
-
 
114064
        return getClass().getName().compareTo(other.getClass().getName());
-
 
114065
      }
-
 
114066
 
-
 
114067
      int lastComparison = 0;
-
 
114068
      getRechargeOrdersForStatus_args typedOther = (getRechargeOrdersForStatus_args)other;
-
 
114069
 
-
 
114070
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
114071
      if (lastComparison != 0) {
-
 
114072
        return lastComparison;
-
 
114073
      }
-
 
114074
      if (isSetStatus()) {
-
 
114075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
114076
        if (lastComparison != 0) {
-
 
114077
          return lastComparison;
-
 
114078
        }
-
 
114079
      }
-
 
114080
      return 0;
-
 
114081
    }
-
 
114082
 
-
 
114083
    public _Fields fieldForId(int fieldId) {
-
 
114084
      return _Fields.findByThriftId(fieldId);
-
 
114085
    }
-
 
114086
 
-
 
114087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
114088
      org.apache.thrift.protocol.TField field;
-
 
114089
      iprot.readStructBegin();
-
 
114090
      while (true)
-
 
114091
      {
-
 
114092
        field = iprot.readFieldBegin();
-
 
114093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
114094
          break;
-
 
114095
        }
-
 
114096
        switch (field.id) {
-
 
114097
          case 1: // STATUS
-
 
114098
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
114099
              this.status = iprot.readI64();
-
 
114100
              setStatusIsSet(true);
-
 
114101
            } else { 
-
 
114102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114103
            }
-
 
114104
            break;
-
 
114105
          default:
-
 
114106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114107
        }
-
 
114108
        iprot.readFieldEnd();
-
 
114109
      }
-
 
114110
      iprot.readStructEnd();
-
 
114111
      validate();
-
 
114112
    }
-
 
114113
 
-
 
114114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
114115
      validate();
-
 
114116
 
-
 
114117
      oprot.writeStructBegin(STRUCT_DESC);
-
 
114118
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
114119
      oprot.writeI64(this.status);
-
 
114120
      oprot.writeFieldEnd();
-
 
114121
      oprot.writeFieldStop();
-
 
114122
      oprot.writeStructEnd();
-
 
114123
    }
-
 
114124
 
-
 
114125
    @Override
-
 
114126
    public String toString() {
-
 
114127
      StringBuilder sb = new StringBuilder("getRechargeOrdersForStatus_args(");
-
 
114128
      boolean first = true;
-
 
114129
 
-
 
114130
      sb.append("status:");
-
 
114131
      sb.append(this.status);
-
 
114132
      first = false;
-
 
114133
      sb.append(")");
-
 
114134
      return sb.toString();
-
 
114135
    }
-
 
114136
 
-
 
114137
    public void validate() throws org.apache.thrift.TException {
-
 
114138
      // check for required fields
-
 
114139
    }
-
 
114140
 
-
 
114141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
114142
      try {
-
 
114143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
114144
      } catch (org.apache.thrift.TException te) {
-
 
114145
        throw new java.io.IOException(te);
-
 
114146
      }
-
 
114147
    }
-
 
114148
 
-
 
114149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
114150
      try {
-
 
114151
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
114152
        __isset_bit_vector = new BitSet(1);
-
 
114153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
114154
      } catch (org.apache.thrift.TException te) {
-
 
114155
        throw new java.io.IOException(te);
-
 
114156
      }
-
 
114157
    }
-
 
114158
 
-
 
114159
  }
-
 
114160
 
-
 
114161
  public static class getRechargeOrdersForStatus_result implements org.apache.thrift.TBase<getRechargeOrdersForStatus_result, getRechargeOrdersForStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
114162
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeOrdersForStatus_result");
-
 
114163
 
-
 
114164
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
114165
 
-
 
114166
    private List<RechargeOrder> success; // required
-
 
114167
 
-
 
114168
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
114169
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
114170
      SUCCESS((short)0, "success");
-
 
114171
 
-
 
114172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
114173
 
-
 
114174
      static {
-
 
114175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
114176
          byName.put(field.getFieldName(), field);
-
 
114177
        }
-
 
114178
      }
-
 
114179
 
-
 
114180
      /**
-
 
114181
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
114182
       */
-
 
114183
      public static _Fields findByThriftId(int fieldId) {
-
 
114184
        switch(fieldId) {
-
 
114185
          case 0: // SUCCESS
-
 
114186
            return SUCCESS;
-
 
114187
          default:
-
 
114188
            return null;
-
 
114189
        }
-
 
114190
      }
-
 
114191
 
-
 
114192
      /**
-
 
114193
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
114194
       * if it is not found.
-
 
114195
       */
-
 
114196
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
114197
        _Fields fields = findByThriftId(fieldId);
-
 
114198
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
114199
        return fields;
-
 
114200
      }
-
 
114201
 
-
 
114202
      /**
-
 
114203
       * Find the _Fields constant that matches name, or null if its not found.
-
 
114204
       */
-
 
114205
      public static _Fields findByName(String name) {
-
 
114206
        return byName.get(name);
-
 
114207
      }
-
 
114208
 
-
 
114209
      private final short _thriftId;
-
 
114210
      private final String _fieldName;
-
 
114211
 
-
 
114212
      _Fields(short thriftId, String fieldName) {
-
 
114213
        _thriftId = thriftId;
-
 
114214
        _fieldName = fieldName;
-
 
114215
      }
-
 
114216
 
-
 
114217
      public short getThriftFieldId() {
-
 
114218
        return _thriftId;
-
 
114219
      }
-
 
114220
 
-
 
114221
      public String getFieldName() {
-
 
114222
        return _fieldName;
-
 
114223
      }
-
 
114224
    }
-
 
114225
 
-
 
114226
    // isset id assignments
-
 
114227
 
-
 
114228
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
114229
    static {
-
 
114230
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
114231
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114232
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
114233
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeOrder.class))));
-
 
114234
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
114235
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeOrdersForStatus_result.class, metaDataMap);
-
 
114236
    }
-
 
114237
 
-
 
114238
    public getRechargeOrdersForStatus_result() {
-
 
114239
    }
-
 
114240
 
-
 
114241
    public getRechargeOrdersForStatus_result(
-
 
114242
      List<RechargeOrder> success)
-
 
114243
    {
-
 
114244
      this();
-
 
114245
      this.success = success;
-
 
114246
    }
-
 
114247
 
-
 
114248
    /**
-
 
114249
     * Performs a deep copy on <i>other</i>.
-
 
114250
     */
-
 
114251
    public getRechargeOrdersForStatus_result(getRechargeOrdersForStatus_result other) {
-
 
114252
      if (other.isSetSuccess()) {
-
 
114253
        List<RechargeOrder> __this__success = new ArrayList<RechargeOrder>();
-
 
114254
        for (RechargeOrder other_element : other.success) {
-
 
114255
          __this__success.add(new RechargeOrder(other_element));
-
 
114256
        }
-
 
114257
        this.success = __this__success;
-
 
114258
      }
-
 
114259
    }
-
 
114260
 
-
 
114261
    public getRechargeOrdersForStatus_result deepCopy() {
-
 
114262
      return new getRechargeOrdersForStatus_result(this);
-
 
114263
    }
-
 
114264
 
-
 
114265
    @Override
-
 
114266
    public void clear() {
-
 
114267
      this.success = null;
-
 
114268
    }
-
 
114269
 
-
 
114270
    public int getSuccessSize() {
-
 
114271
      return (this.success == null) ? 0 : this.success.size();
-
 
114272
    }
-
 
114273
 
-
 
114274
    public java.util.Iterator<RechargeOrder> getSuccessIterator() {
-
 
114275
      return (this.success == null) ? null : this.success.iterator();
-
 
114276
    }
-
 
114277
 
-
 
114278
    public void addToSuccess(RechargeOrder elem) {
-
 
114279
      if (this.success == null) {
-
 
114280
        this.success = new ArrayList<RechargeOrder>();
-
 
114281
      }
-
 
114282
      this.success.add(elem);
-
 
114283
    }
-
 
114284
 
-
 
114285
    public List<RechargeOrder> getSuccess() {
-
 
114286
      return this.success;
-
 
114287
    }
-
 
114288
 
-
 
114289
    public void setSuccess(List<RechargeOrder> success) {
-
 
114290
      this.success = success;
-
 
114291
    }
-
 
114292
 
-
 
114293
    public void unsetSuccess() {
-
 
114294
      this.success = null;
-
 
114295
    }
-
 
114296
 
-
 
114297
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
114298
    public boolean isSetSuccess() {
-
 
114299
      return this.success != null;
-
 
114300
    }
-
 
114301
 
-
 
114302
    public void setSuccessIsSet(boolean value) {
-
 
114303
      if (!value) {
-
 
114304
        this.success = null;
-
 
114305
      }
-
 
114306
    }
-
 
114307
 
-
 
114308
    public void setFieldValue(_Fields field, Object value) {
-
 
114309
      switch (field) {
-
 
114310
      case SUCCESS:
-
 
114311
        if (value == null) {
-
 
114312
          unsetSuccess();
-
 
114313
        } else {
-
 
114314
          setSuccess((List<RechargeOrder>)value);
-
 
114315
        }
-
 
114316
        break;
-
 
114317
 
-
 
114318
      }
-
 
114319
    }
-
 
114320
 
-
 
114321
    public Object getFieldValue(_Fields field) {
-
 
114322
      switch (field) {
-
 
114323
      case SUCCESS:
-
 
114324
        return getSuccess();
-
 
114325
 
-
 
114326
      }
-
 
114327
      throw new IllegalStateException();
-
 
114328
    }
-
 
114329
 
-
 
114330
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
114331
    public boolean isSet(_Fields field) {
-
 
114332
      if (field == null) {
-
 
114333
        throw new IllegalArgumentException();
-
 
114334
      }
-
 
114335
 
-
 
114336
      switch (field) {
-
 
114337
      case SUCCESS:
-
 
114338
        return isSetSuccess();
-
 
114339
      }
-
 
114340
      throw new IllegalStateException();
-
 
114341
    }
-
 
114342
 
-
 
114343
    @Override
-
 
114344
    public boolean equals(Object that) {
-
 
114345
      if (that == null)
-
 
114346
        return false;
-
 
114347
      if (that instanceof getRechargeOrdersForStatus_result)
-
 
114348
        return this.equals((getRechargeOrdersForStatus_result)that);
-
 
114349
      return false;
-
 
114350
    }
-
 
114351
 
-
 
114352
    public boolean equals(getRechargeOrdersForStatus_result that) {
-
 
114353
      if (that == null)
-
 
114354
        return false;
-
 
114355
 
-
 
114356
      boolean this_present_success = true && this.isSetSuccess();
-
 
114357
      boolean that_present_success = true && that.isSetSuccess();
-
 
114358
      if (this_present_success || that_present_success) {
-
 
114359
        if (!(this_present_success && that_present_success))
-
 
114360
          return false;
-
 
114361
        if (!this.success.equals(that.success))
-
 
114362
          return false;
-
 
114363
      }
-
 
114364
 
-
 
114365
      return true;
-
 
114366
    }
-
 
114367
 
-
 
114368
    @Override
-
 
114369
    public int hashCode() {
-
 
114370
      return 0;
-
 
114371
    }
-
 
114372
 
-
 
114373
    public int compareTo(getRechargeOrdersForStatus_result other) {
-
 
114374
      if (!getClass().equals(other.getClass())) {
-
 
114375
        return getClass().getName().compareTo(other.getClass().getName());
-
 
114376
      }
-
 
114377
 
-
 
114378
      int lastComparison = 0;
-
 
114379
      getRechargeOrdersForStatus_result typedOther = (getRechargeOrdersForStatus_result)other;
-
 
114380
 
-
 
114381
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
114382
      if (lastComparison != 0) {
-
 
114383
        return lastComparison;
-
 
114384
      }
-
 
114385
      if (isSetSuccess()) {
-
 
114386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
114387
        if (lastComparison != 0) {
-
 
114388
          return lastComparison;
-
 
114389
        }
-
 
114390
      }
-
 
114391
      return 0;
-
 
114392
    }
-
 
114393
 
-
 
114394
    public _Fields fieldForId(int fieldId) {
-
 
114395
      return _Fields.findByThriftId(fieldId);
-
 
114396
    }
-
 
114397
 
-
 
114398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
114399
      org.apache.thrift.protocol.TField field;
-
 
114400
      iprot.readStructBegin();
-
 
114401
      while (true)
-
 
114402
      {
-
 
114403
        field = iprot.readFieldBegin();
-
 
114404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
114405
          break;
-
 
114406
        }
-
 
114407
        switch (field.id) {
-
 
114408
          case 0: // SUCCESS
-
 
114409
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
114410
              {
-
 
114411
                org.apache.thrift.protocol.TList _list365 = iprot.readListBegin();
-
 
114412
                this.success = new ArrayList<RechargeOrder>(_list365.size);
-
 
114413
                for (int _i366 = 0; _i366 < _list365.size; ++_i366)
-
 
114414
                {
-
 
114415
                  RechargeOrder _elem367; // required
-
 
114416
                  _elem367 = new RechargeOrder();
-
 
114417
                  _elem367.read(iprot);
-
 
114418
                  this.success.add(_elem367);
-
 
114419
                }
-
 
114420
                iprot.readListEnd();
-
 
114421
              }
-
 
114422
            } else { 
-
 
114423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114424
            }
-
 
114425
            break;
-
 
114426
          default:
-
 
114427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
114428
        }
-
 
114429
        iprot.readFieldEnd();
-
 
114430
      }
-
 
114431
      iprot.readStructEnd();
-
 
114432
      validate();
-
 
114433
    }
-
 
114434
 
-
 
114435
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
114436
      oprot.writeStructBegin(STRUCT_DESC);
-
 
114437
 
-
 
114438
      if (this.isSetSuccess()) {
-
 
114439
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
114440
        {
-
 
114441
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
114442
          for (RechargeOrder _iter368 : this.success)
-
 
114443
          {
-
 
114444
            _iter368.write(oprot);
-
 
114445
          }
-
 
114446
          oprot.writeListEnd();
-
 
114447
        }
-
 
114448
        oprot.writeFieldEnd();
-
 
114449
      }
-
 
114450
      oprot.writeFieldStop();
-
 
114451
      oprot.writeStructEnd();
-
 
114452
    }
-
 
114453
 
-
 
114454
    @Override
-
 
114455
    public String toString() {
-
 
114456
      StringBuilder sb = new StringBuilder("getRechargeOrdersForStatus_result(");
-
 
114457
      boolean first = true;
-
 
114458
 
-
 
114459
      sb.append("success:");
-
 
114460
      if (this.success == null) {
-
 
114461
        sb.append("null");
-
 
114462
      } else {
-
 
114463
        sb.append(this.success);
-
 
114464
      }
-
 
114465
      first = false;
-
 
114466
      sb.append(")");
-
 
114467
      return sb.toString();
-
 
114468
    }
-
 
114469
 
-
 
114470
    public void validate() throws org.apache.thrift.TException {
113770
      // check for required fields
114471
      // check for required fields
113771
    }
114472
    }
113772
 
114473
 
113773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
114474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
113774
      try {
114475
      try {