Subversion Repositories SmartDukaan

Rev

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

Rev 7109 Rev 7151
Line 920... Line 920...
920
 
920
 
921
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException;
921
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException;
922
 
922
 
923
    public List<RechargeTransaction> getRechargeTransactions(long storeId) throws org.apache.thrift.TException;
923
    public List<RechargeTransaction> getRechargeTransactions(long storeId) throws org.apache.thrift.TException;
924
 
924
 
-
 
925
    public List<RechargeTransaction> getRechargeTrans(long storeId, long startDate, long endDate, RechargeOrderStatus status) throws org.apache.thrift.TException;
-
 
926
 
925
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException;
927
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException;
926
 
928
 
927
    public List<FRC> getFRCs(long circleId, long operatorId) throws org.apache.thrift.TException;
929
    public List<FRC> getFRCs(long circleId, long operatorId) throws org.apache.thrift.TException;
928
 
930
 
929
    public HotspotStore getHotspotStore(long id, String hotspotid) throws org.apache.thrift.TException;
931
    public HotspotStore getHotspotStore(long id, String hotspotid) throws org.apache.thrift.TException;
Line 1244... Line 1246...
1244
 
1246
 
1245
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1247
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1246
 
1248
 
1247
    public void getRechargeTransactions(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactions_call> resultHandler) throws org.apache.thrift.TException;
1249
    public void getRechargeTransactions(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactions_call> resultHandler) throws org.apache.thrift.TException;
1248
 
1250
 
-
 
1251
    public void getRechargeTrans(long storeId, long startDate, long endDate, RechargeOrderStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTrans_call> resultHandler) throws org.apache.thrift.TException;
-
 
1252
 
1249
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1253
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1250
 
1254
 
1251
    public void getFRCs(long circleId, long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFRCs_call> resultHandler) throws org.apache.thrift.TException;
1255
    public void getFRCs(long circleId, long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFRCs_call> resultHandler) throws org.apache.thrift.TException;
1252
 
1256
 
1253
    public void getHotspotStore(long id, String hotspotid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHotspotStore_call> resultHandler) throws org.apache.thrift.TException;
1257
    public void getHotspotStore(long id, String hotspotid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHotspotStore_call> resultHandler) throws org.apache.thrift.TException;
Line 5176... Line 5180...
5176
        return result.success;
5180
        return result.success;
5177
      }
5181
      }
5178
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeTransactions failed: unknown result");
5182
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeTransactions failed: unknown result");
5179
    }
5183
    }
5180
 
5184
 
-
 
5185
    public List<RechargeTransaction> getRechargeTrans(long storeId, long startDate, long endDate, RechargeOrderStatus status) throws org.apache.thrift.TException
-
 
5186
    {
-
 
5187
      send_getRechargeTrans(storeId, startDate, endDate, status);
-
 
5188
      return recv_getRechargeTrans();
-
 
5189
    }
-
 
5190
 
-
 
5191
    public void send_getRechargeTrans(long storeId, long startDate, long endDate, RechargeOrderStatus status) throws org.apache.thrift.TException
-
 
5192
    {
-
 
5193
      getRechargeTrans_args args = new getRechargeTrans_args();
-
 
5194
      args.setStoreId(storeId);
-
 
5195
      args.setStartDate(startDate);
-
 
5196
      args.setEndDate(endDate);
-
 
5197
      args.setStatus(status);
-
 
5198
      sendBase("getRechargeTrans", args);
-
 
5199
    }
-
 
5200
 
-
 
5201
    public List<RechargeTransaction> recv_getRechargeTrans() throws org.apache.thrift.TException
-
 
5202
    {
-
 
5203
      getRechargeTrans_result result = new getRechargeTrans_result();
-
 
5204
      receiveBase(result, "getRechargeTrans");
-
 
5205
      if (result.isSetSuccess()) {
-
 
5206
        return result.success;
-
 
5207
      }
-
 
5208
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeTrans failed: unknown result");
-
 
5209
    }
-
 
5210
 
5181
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException
5211
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException
5182
    {
5212
    {
5183
      send_getRechargeTransaction(rechargeId);
5213
      send_getRechargeTransaction(rechargeId);
5184
      return recv_getRechargeTransaction();
5214
      return recv_getRechargeTransaction();
5185
    }
5215
    }
Line 10728... Line 10758...
10728
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10758
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10729
        return (new Client(prot)).recv_getRechargeTransactions();
10759
        return (new Client(prot)).recv_getRechargeTransactions();
10730
      }
10760
      }
10731
    }
10761
    }
10732
 
10762
 
-
 
10763
    public void getRechargeTrans(long storeId, long startDate, long endDate, RechargeOrderStatus status, org.apache.thrift.async.AsyncMethodCallback<getRechargeTrans_call> resultHandler) throws org.apache.thrift.TException {
-
 
10764
      checkReady();
-
 
10765
      getRechargeTrans_call method_call = new getRechargeTrans_call(storeId, startDate, endDate, status, resultHandler, this, ___protocolFactory, ___transport);
-
 
10766
      this.___currentMethod = method_call;
-
 
10767
      ___manager.call(method_call);
-
 
10768
    }
-
 
10769
 
-
 
10770
    public static class getRechargeTrans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10771
      private long storeId;
-
 
10772
      private long startDate;
-
 
10773
      private long endDate;
-
 
10774
      private RechargeOrderStatus status;
-
 
10775
      public getRechargeTrans_call(long storeId, long startDate, long endDate, RechargeOrderStatus status, org.apache.thrift.async.AsyncMethodCallback<getRechargeTrans_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 {
-
 
10776
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10777
        this.storeId = storeId;
-
 
10778
        this.startDate = startDate;
-
 
10779
        this.endDate = endDate;
-
 
10780
        this.status = status;
-
 
10781
      }
-
 
10782
 
-
 
10783
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10784
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeTrans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10785
        getRechargeTrans_args args = new getRechargeTrans_args();
-
 
10786
        args.setStoreId(storeId);
-
 
10787
        args.setStartDate(startDate);
-
 
10788
        args.setEndDate(endDate);
-
 
10789
        args.setStatus(status);
-
 
10790
        args.write(prot);
-
 
10791
        prot.writeMessageEnd();
-
 
10792
      }
-
 
10793
 
-
 
10794
      public List<RechargeTransaction> getResult() throws org.apache.thrift.TException {
-
 
10795
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10796
          throw new IllegalStateException("Method call not finished!");
-
 
10797
        }
-
 
10798
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10799
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10800
        return (new Client(prot)).recv_getRechargeTrans();
-
 
10801
      }
-
 
10802
    }
-
 
10803
 
10733
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException {
10804
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException {
10734
      checkReady();
10805
      checkReady();
10735
      getRechargeTransaction_call method_call = new getRechargeTransaction_call(rechargeId, resultHandler, this, ___protocolFactory, ___transport);
10806
      getRechargeTransaction_call method_call = new getRechargeTransaction_call(rechargeId, resultHandler, this, ___protocolFactory, ___transport);
10736
      this.___currentMethod = method_call;
10807
      this.___currentMethod = method_call;
10737
      ___manager.call(method_call);
10808
      ___manager.call(method_call);
Line 11065... Line 11136...
11065
      processMap.put("changeShippingAddress", new changeShippingAddress());
11136
      processMap.put("changeShippingAddress", new changeShippingAddress());
11066
      processMap.put("retrieveInvoice", new retrieveInvoice());
11137
      processMap.put("retrieveInvoice", new retrieveInvoice());
11067
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
11138
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
11068
      processMap.put("createRechargeTransaction", new createRechargeTransaction());
11139
      processMap.put("createRechargeTransaction", new createRechargeTransaction());
11069
      processMap.put("getRechargeTransactions", new getRechargeTransactions());
11140
      processMap.put("getRechargeTransactions", new getRechargeTransactions());
-
 
11141
      processMap.put("getRechargeTrans", new getRechargeTrans());
11070
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11142
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11071
      processMap.put("getFRCs", new getFRCs());
11143
      processMap.put("getFRCs", new getFRCs());
11072
      processMap.put("getHotspotStore", new getHotspotStore());
11144
      processMap.put("getHotspotStore", new getHotspotStore());
11073
      processMap.put("getTelecomCircle", new getTelecomCircle());
11145
      processMap.put("getTelecomCircle", new getTelecomCircle());
11074
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11146
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
Line 13981... Line 14053...
13981
        result.success = iface.getRechargeTransactions(args.storeId);
14053
        result.success = iface.getRechargeTransactions(args.storeId);
13982
        return result;
14054
        return result;
13983
      }
14055
      }
13984
    }
14056
    }
13985
 
14057
 
-
 
14058
    private static class getRechargeTrans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTrans_args> {
-
 
14059
      public getRechargeTrans() {
-
 
14060
        super("getRechargeTrans");
-
 
14061
      }
-
 
14062
 
-
 
14063
      protected getRechargeTrans_args getEmptyArgsInstance() {
-
 
14064
        return new getRechargeTrans_args();
-
 
14065
      }
-
 
14066
 
-
 
14067
      protected getRechargeTrans_result getResult(I iface, getRechargeTrans_args args) throws org.apache.thrift.TException {
-
 
14068
        getRechargeTrans_result result = new getRechargeTrans_result();
-
 
14069
        result.success = iface.getRechargeTrans(args.storeId, args.startDate, args.endDate, args.status);
-
 
14070
        return result;
-
 
14071
      }
-
 
14072
    }
-
 
14073
 
13986
    private static class getRechargeTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransaction_args> {
14074
    private static class getRechargeTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransaction_args> {
13987
      public getRechargeTransaction() {
14075
      public getRechargeTransaction() {
13988
        super("getRechargeTransaction");
14076
        super("getRechargeTransaction");
13989
      }
14077
      }
13990
 
14078
 
Line 58167... Line 58255...
58167
      }
58255
      }
58168
    }
58256
    }
58169
 
58257
 
58170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58171
      try {
58259
      try {
58172
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58173
        __isset_bit_vector = new BitSet(1);
-
 
58174
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58175
      } catch (org.apache.thrift.TException te) {
58261
      } catch (org.apache.thrift.TException te) {
58176
        throw new java.io.IOException(te);
58262
        throw new java.io.IOException(te);
58177
      }
58263
      }
58178
    }
58264
    }
Line 63775... Line 63861...
63775
      }
63861
      }
63776
    }
63862
    }
63777
 
63863
 
63778
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63864
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63779
      try {
63865
      try {
63780
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63781
        __isset_bit_vector = new BitSet(1);
-
 
63782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63866
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63783
      } catch (org.apache.thrift.TException te) {
63867
      } catch (org.apache.thrift.TException te) {
63784
        throw new java.io.IOException(te);
63868
        throw new java.io.IOException(te);
63785
      }
63869
      }
63786
    }
63870
    }
Line 73790... Line 73874...
73790
      }
73874
      }
73791
    }
73875
    }
73792
 
73876
 
73793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
73877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
73794
      try {
73878
      try {
-
 
73879
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
73880
        __isset_bit_vector = new BitSet(1);
73795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
73881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
73796
      } catch (org.apache.thrift.TException te) {
73882
      } catch (org.apache.thrift.TException te) {
73797
        throw new java.io.IOException(te);
73883
        throw new java.io.IOException(te);
73798
      }
73884
      }
73799
    }
73885
    }
Line 102722... Line 102808...
102722
      }
102808
      }
102723
    }
102809
    }
102724
 
102810
 
102725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
102811
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
102726
      try {
102812
      try {
102727
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
102728
        __isset_bit_vector = new BitSet(1);
-
 
102729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
102813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
102730
      } catch (org.apache.thrift.TException te) {
102814
      } catch (org.apache.thrift.TException te) {
102731
        throw new java.io.IOException(te);
102815
        throw new java.io.IOException(te);
102732
      }
102816
      }
102733
    }
102817
    }
Line 126684... Line 126768...
126684
      }
126768
      }
126685
    }
126769
    }
126686
 
126770
 
126687
  }
126771
  }
126688
 
126772
 
-
 
126773
  public static class getRechargeTrans_args implements org.apache.thrift.TBase<getRechargeTrans_args, getRechargeTrans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
126774
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTrans_args");
-
 
126775
 
-
 
126776
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
126777
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
126778
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
126779
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)4);
-
 
126780
 
-
 
126781
    private long storeId; // required
-
 
126782
    private long startDate; // required
-
 
126783
    private long endDate; // required
-
 
126784
    private RechargeOrderStatus status; // required
-
 
126785
 
-
 
126786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
126787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
126788
      STORE_ID((short)1, "storeId"),
-
 
126789
      START_DATE((short)2, "startDate"),
-
 
126790
      END_DATE((short)3, "endDate"),
-
 
126791
      /**
-
 
126792
       * 
-
 
126793
       * @see RechargeOrderStatus
-
 
126794
       */
-
 
126795
      STATUS((short)4, "status");
-
 
126796
 
-
 
126797
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
126798
 
-
 
126799
      static {
-
 
126800
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
126801
          byName.put(field.getFieldName(), field);
-
 
126802
        }
-
 
126803
      }
-
 
126804
 
-
 
126805
      /**
-
 
126806
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
126807
       */
-
 
126808
      public static _Fields findByThriftId(int fieldId) {
-
 
126809
        switch(fieldId) {
-
 
126810
          case 1: // STORE_ID
-
 
126811
            return STORE_ID;
-
 
126812
          case 2: // START_DATE
-
 
126813
            return START_DATE;
-
 
126814
          case 3: // END_DATE
-
 
126815
            return END_DATE;
-
 
126816
          case 4: // STATUS
-
 
126817
            return STATUS;
-
 
126818
          default:
-
 
126819
            return null;
-
 
126820
        }
-
 
126821
      }
-
 
126822
 
-
 
126823
      /**
-
 
126824
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
126825
       * if it is not found.
-
 
126826
       */
-
 
126827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
126828
        _Fields fields = findByThriftId(fieldId);
-
 
126829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
126830
        return fields;
-
 
126831
      }
-
 
126832
 
-
 
126833
      /**
-
 
126834
       * Find the _Fields constant that matches name, or null if its not found.
-
 
126835
       */
-
 
126836
      public static _Fields findByName(String name) {
-
 
126837
        return byName.get(name);
-
 
126838
      }
-
 
126839
 
-
 
126840
      private final short _thriftId;
-
 
126841
      private final String _fieldName;
-
 
126842
 
-
 
126843
      _Fields(short thriftId, String fieldName) {
-
 
126844
        _thriftId = thriftId;
-
 
126845
        _fieldName = fieldName;
-
 
126846
      }
-
 
126847
 
-
 
126848
      public short getThriftFieldId() {
-
 
126849
        return _thriftId;
-
 
126850
      }
-
 
126851
 
-
 
126852
      public String getFieldName() {
-
 
126853
        return _fieldName;
-
 
126854
      }
-
 
126855
    }
-
 
126856
 
-
 
126857
    // isset id assignments
-
 
126858
    private static final int __STOREID_ISSET_ID = 0;
-
 
126859
    private static final int __STARTDATE_ISSET_ID = 1;
-
 
126860
    private static final int __ENDDATE_ISSET_ID = 2;
-
 
126861
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
126862
 
-
 
126863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
126864
    static {
-
 
126865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
126866
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
126867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
126868
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
126869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
126870
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
126871
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
126872
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
126873
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
-
 
126874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
126875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeTrans_args.class, metaDataMap);
-
 
126876
    }
-
 
126877
 
-
 
126878
    public getRechargeTrans_args() {
-
 
126879
    }
-
 
126880
 
-
 
126881
    public getRechargeTrans_args(
-
 
126882
      long storeId,
-
 
126883
      long startDate,
-
 
126884
      long endDate,
-
 
126885
      RechargeOrderStatus status)
-
 
126886
    {
-
 
126887
      this();
-
 
126888
      this.storeId = storeId;
-
 
126889
      setStoreIdIsSet(true);
-
 
126890
      this.startDate = startDate;
-
 
126891
      setStartDateIsSet(true);
-
 
126892
      this.endDate = endDate;
-
 
126893
      setEndDateIsSet(true);
-
 
126894
      this.status = status;
-
 
126895
    }
-
 
126896
 
-
 
126897
    /**
-
 
126898
     * Performs a deep copy on <i>other</i>.
-
 
126899
     */
-
 
126900
    public getRechargeTrans_args(getRechargeTrans_args other) {
-
 
126901
      __isset_bit_vector.clear();
-
 
126902
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
126903
      this.storeId = other.storeId;
-
 
126904
      this.startDate = other.startDate;
-
 
126905
      this.endDate = other.endDate;
-
 
126906
      if (other.isSetStatus()) {
-
 
126907
        this.status = other.status;
-
 
126908
      }
-
 
126909
    }
-
 
126910
 
-
 
126911
    public getRechargeTrans_args deepCopy() {
-
 
126912
      return new getRechargeTrans_args(this);
-
 
126913
    }
-
 
126914
 
-
 
126915
    @Override
-
 
126916
    public void clear() {
-
 
126917
      setStoreIdIsSet(false);
-
 
126918
      this.storeId = 0;
-
 
126919
      setStartDateIsSet(false);
-
 
126920
      this.startDate = 0;
-
 
126921
      setEndDateIsSet(false);
-
 
126922
      this.endDate = 0;
-
 
126923
      this.status = null;
-
 
126924
    }
-
 
126925
 
-
 
126926
    public long getStoreId() {
-
 
126927
      return this.storeId;
-
 
126928
    }
-
 
126929
 
-
 
126930
    public void setStoreId(long storeId) {
-
 
126931
      this.storeId = storeId;
-
 
126932
      setStoreIdIsSet(true);
-
 
126933
    }
-
 
126934
 
-
 
126935
    public void unsetStoreId() {
-
 
126936
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
126937
    }
-
 
126938
 
-
 
126939
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
126940
    public boolean isSetStoreId() {
-
 
126941
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
126942
    }
-
 
126943
 
-
 
126944
    public void setStoreIdIsSet(boolean value) {
-
 
126945
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
126946
    }
-
 
126947
 
-
 
126948
    public long getStartDate() {
-
 
126949
      return this.startDate;
-
 
126950
    }
-
 
126951
 
-
 
126952
    public void setStartDate(long startDate) {
-
 
126953
      this.startDate = startDate;
-
 
126954
      setStartDateIsSet(true);
-
 
126955
    }
-
 
126956
 
-
 
126957
    public void unsetStartDate() {
-
 
126958
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
126959
    }
-
 
126960
 
-
 
126961
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
126962
    public boolean isSetStartDate() {
-
 
126963
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
126964
    }
-
 
126965
 
-
 
126966
    public void setStartDateIsSet(boolean value) {
-
 
126967
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
126968
    }
-
 
126969
 
-
 
126970
    public long getEndDate() {
-
 
126971
      return this.endDate;
-
 
126972
    }
-
 
126973
 
-
 
126974
    public void setEndDate(long endDate) {
-
 
126975
      this.endDate = endDate;
-
 
126976
      setEndDateIsSet(true);
-
 
126977
    }
-
 
126978
 
-
 
126979
    public void unsetEndDate() {
-
 
126980
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
126981
    }
-
 
126982
 
-
 
126983
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
126984
    public boolean isSetEndDate() {
-
 
126985
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
126986
    }
-
 
126987
 
-
 
126988
    public void setEndDateIsSet(boolean value) {
-
 
126989
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
126990
    }
-
 
126991
 
-
 
126992
    /**
-
 
126993
     * 
-
 
126994
     * @see RechargeOrderStatus
-
 
126995
     */
-
 
126996
    public RechargeOrderStatus getStatus() {
-
 
126997
      return this.status;
-
 
126998
    }
-
 
126999
 
-
 
127000
    /**
-
 
127001
     * 
-
 
127002
     * @see RechargeOrderStatus
-
 
127003
     */
-
 
127004
    public void setStatus(RechargeOrderStatus status) {
-
 
127005
      this.status = status;
-
 
127006
    }
-
 
127007
 
-
 
127008
    public void unsetStatus() {
-
 
127009
      this.status = null;
-
 
127010
    }
-
 
127011
 
-
 
127012
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
127013
    public boolean isSetStatus() {
-
 
127014
      return this.status != null;
-
 
127015
    }
-
 
127016
 
-
 
127017
    public void setStatusIsSet(boolean value) {
-
 
127018
      if (!value) {
-
 
127019
        this.status = null;
-
 
127020
      }
-
 
127021
    }
-
 
127022
 
-
 
127023
    public void setFieldValue(_Fields field, Object value) {
-
 
127024
      switch (field) {
-
 
127025
      case STORE_ID:
-
 
127026
        if (value == null) {
-
 
127027
          unsetStoreId();
-
 
127028
        } else {
-
 
127029
          setStoreId((Long)value);
-
 
127030
        }
-
 
127031
        break;
-
 
127032
 
-
 
127033
      case START_DATE:
-
 
127034
        if (value == null) {
-
 
127035
          unsetStartDate();
-
 
127036
        } else {
-
 
127037
          setStartDate((Long)value);
-
 
127038
        }
-
 
127039
        break;
-
 
127040
 
-
 
127041
      case END_DATE:
-
 
127042
        if (value == null) {
-
 
127043
          unsetEndDate();
-
 
127044
        } else {
-
 
127045
          setEndDate((Long)value);
-
 
127046
        }
-
 
127047
        break;
-
 
127048
 
-
 
127049
      case STATUS:
-
 
127050
        if (value == null) {
-
 
127051
          unsetStatus();
-
 
127052
        } else {
-
 
127053
          setStatus((RechargeOrderStatus)value);
-
 
127054
        }
-
 
127055
        break;
-
 
127056
 
-
 
127057
      }
-
 
127058
    }
-
 
127059
 
-
 
127060
    public Object getFieldValue(_Fields field) {
-
 
127061
      switch (field) {
-
 
127062
      case STORE_ID:
-
 
127063
        return Long.valueOf(getStoreId());
-
 
127064
 
-
 
127065
      case START_DATE:
-
 
127066
        return Long.valueOf(getStartDate());
-
 
127067
 
-
 
127068
      case END_DATE:
-
 
127069
        return Long.valueOf(getEndDate());
-
 
127070
 
-
 
127071
      case STATUS:
-
 
127072
        return getStatus();
-
 
127073
 
-
 
127074
      }
-
 
127075
      throw new IllegalStateException();
-
 
127076
    }
-
 
127077
 
-
 
127078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
127079
    public boolean isSet(_Fields field) {
-
 
127080
      if (field == null) {
-
 
127081
        throw new IllegalArgumentException();
-
 
127082
      }
-
 
127083
 
-
 
127084
      switch (field) {
-
 
127085
      case STORE_ID:
-
 
127086
        return isSetStoreId();
-
 
127087
      case START_DATE:
-
 
127088
        return isSetStartDate();
-
 
127089
      case END_DATE:
-
 
127090
        return isSetEndDate();
-
 
127091
      case STATUS:
-
 
127092
        return isSetStatus();
-
 
127093
      }
-
 
127094
      throw new IllegalStateException();
-
 
127095
    }
-
 
127096
 
-
 
127097
    @Override
-
 
127098
    public boolean equals(Object that) {
-
 
127099
      if (that == null)
-
 
127100
        return false;
-
 
127101
      if (that instanceof getRechargeTrans_args)
-
 
127102
        return this.equals((getRechargeTrans_args)that);
-
 
127103
      return false;
-
 
127104
    }
-
 
127105
 
-
 
127106
    public boolean equals(getRechargeTrans_args that) {
-
 
127107
      if (that == null)
-
 
127108
        return false;
-
 
127109
 
-
 
127110
      boolean this_present_storeId = true;
-
 
127111
      boolean that_present_storeId = true;
-
 
127112
      if (this_present_storeId || that_present_storeId) {
-
 
127113
        if (!(this_present_storeId && that_present_storeId))
-
 
127114
          return false;
-
 
127115
        if (this.storeId != that.storeId)
-
 
127116
          return false;
-
 
127117
      }
-
 
127118
 
-
 
127119
      boolean this_present_startDate = true;
-
 
127120
      boolean that_present_startDate = true;
-
 
127121
      if (this_present_startDate || that_present_startDate) {
-
 
127122
        if (!(this_present_startDate && that_present_startDate))
-
 
127123
          return false;
-
 
127124
        if (this.startDate != that.startDate)
-
 
127125
          return false;
-
 
127126
      }
-
 
127127
 
-
 
127128
      boolean this_present_endDate = true;
-
 
127129
      boolean that_present_endDate = true;
-
 
127130
      if (this_present_endDate || that_present_endDate) {
-
 
127131
        if (!(this_present_endDate && that_present_endDate))
-
 
127132
          return false;
-
 
127133
        if (this.endDate != that.endDate)
-
 
127134
          return false;
-
 
127135
      }
-
 
127136
 
-
 
127137
      boolean this_present_status = true && this.isSetStatus();
-
 
127138
      boolean that_present_status = true && that.isSetStatus();
-
 
127139
      if (this_present_status || that_present_status) {
-
 
127140
        if (!(this_present_status && that_present_status))
-
 
127141
          return false;
-
 
127142
        if (!this.status.equals(that.status))
-
 
127143
          return false;
-
 
127144
      }
-
 
127145
 
-
 
127146
      return true;
-
 
127147
    }
-
 
127148
 
-
 
127149
    @Override
-
 
127150
    public int hashCode() {
-
 
127151
      return 0;
-
 
127152
    }
-
 
127153
 
-
 
127154
    public int compareTo(getRechargeTrans_args other) {
-
 
127155
      if (!getClass().equals(other.getClass())) {
-
 
127156
        return getClass().getName().compareTo(other.getClass().getName());
-
 
127157
      }
-
 
127158
 
-
 
127159
      int lastComparison = 0;
-
 
127160
      getRechargeTrans_args typedOther = (getRechargeTrans_args)other;
-
 
127161
 
-
 
127162
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
127163
      if (lastComparison != 0) {
-
 
127164
        return lastComparison;
-
 
127165
      }
-
 
127166
      if (isSetStoreId()) {
-
 
127167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
127168
        if (lastComparison != 0) {
-
 
127169
          return lastComparison;
-
 
127170
        }
-
 
127171
      }
-
 
127172
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
127173
      if (lastComparison != 0) {
-
 
127174
        return lastComparison;
-
 
127175
      }
-
 
127176
      if (isSetStartDate()) {
-
 
127177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
127178
        if (lastComparison != 0) {
-
 
127179
          return lastComparison;
-
 
127180
        }
-
 
127181
      }
-
 
127182
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
127183
      if (lastComparison != 0) {
-
 
127184
        return lastComparison;
-
 
127185
      }
-
 
127186
      if (isSetEndDate()) {
-
 
127187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
127188
        if (lastComparison != 0) {
-
 
127189
          return lastComparison;
-
 
127190
        }
-
 
127191
      }
-
 
127192
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
127193
      if (lastComparison != 0) {
-
 
127194
        return lastComparison;
-
 
127195
      }
-
 
127196
      if (isSetStatus()) {
-
 
127197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
127198
        if (lastComparison != 0) {
-
 
127199
          return lastComparison;
-
 
127200
        }
-
 
127201
      }
-
 
127202
      return 0;
-
 
127203
    }
-
 
127204
 
-
 
127205
    public _Fields fieldForId(int fieldId) {
-
 
127206
      return _Fields.findByThriftId(fieldId);
-
 
127207
    }
-
 
127208
 
-
 
127209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
127210
      org.apache.thrift.protocol.TField field;
-
 
127211
      iprot.readStructBegin();
-
 
127212
      while (true)
-
 
127213
      {
-
 
127214
        field = iprot.readFieldBegin();
-
 
127215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
127216
          break;
-
 
127217
        }
-
 
127218
        switch (field.id) {
-
 
127219
          case 1: // STORE_ID
-
 
127220
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
127221
              this.storeId = iprot.readI64();
-
 
127222
              setStoreIdIsSet(true);
-
 
127223
            } else { 
-
 
127224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127225
            }
-
 
127226
            break;
-
 
127227
          case 2: // START_DATE
-
 
127228
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
127229
              this.startDate = iprot.readI64();
-
 
127230
              setStartDateIsSet(true);
-
 
127231
            } else { 
-
 
127232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127233
            }
-
 
127234
            break;
-
 
127235
          case 3: // END_DATE
-
 
127236
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
127237
              this.endDate = iprot.readI64();
-
 
127238
              setEndDateIsSet(true);
-
 
127239
            } else { 
-
 
127240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127241
            }
-
 
127242
            break;
-
 
127243
          case 4: // STATUS
-
 
127244
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
127245
              this.status = RechargeOrderStatus.findByValue(iprot.readI32());
-
 
127246
            } else { 
-
 
127247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127248
            }
-
 
127249
            break;
-
 
127250
          default:
-
 
127251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127252
        }
-
 
127253
        iprot.readFieldEnd();
-
 
127254
      }
-
 
127255
      iprot.readStructEnd();
-
 
127256
      validate();
-
 
127257
    }
-
 
127258
 
-
 
127259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
127260
      validate();
-
 
127261
 
-
 
127262
      oprot.writeStructBegin(STRUCT_DESC);
-
 
127263
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
127264
      oprot.writeI64(this.storeId);
-
 
127265
      oprot.writeFieldEnd();
-
 
127266
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
127267
      oprot.writeI64(this.startDate);
-
 
127268
      oprot.writeFieldEnd();
-
 
127269
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
127270
      oprot.writeI64(this.endDate);
-
 
127271
      oprot.writeFieldEnd();
-
 
127272
      if (this.status != null) {
-
 
127273
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
127274
        oprot.writeI32(this.status.getValue());
-
 
127275
        oprot.writeFieldEnd();
-
 
127276
      }
-
 
127277
      oprot.writeFieldStop();
-
 
127278
      oprot.writeStructEnd();
-
 
127279
    }
-
 
127280
 
-
 
127281
    @Override
-
 
127282
    public String toString() {
-
 
127283
      StringBuilder sb = new StringBuilder("getRechargeTrans_args(");
-
 
127284
      boolean first = true;
-
 
127285
 
-
 
127286
      sb.append("storeId:");
-
 
127287
      sb.append(this.storeId);
-
 
127288
      first = false;
-
 
127289
      if (!first) sb.append(", ");
-
 
127290
      sb.append("startDate:");
-
 
127291
      sb.append(this.startDate);
-
 
127292
      first = false;
-
 
127293
      if (!first) sb.append(", ");
-
 
127294
      sb.append("endDate:");
-
 
127295
      sb.append(this.endDate);
-
 
127296
      first = false;
-
 
127297
      if (!first) sb.append(", ");
-
 
127298
      sb.append("status:");
-
 
127299
      if (this.status == null) {
-
 
127300
        sb.append("null");
-
 
127301
      } else {
-
 
127302
        sb.append(this.status);
-
 
127303
      }
-
 
127304
      first = false;
-
 
127305
      sb.append(")");
-
 
127306
      return sb.toString();
-
 
127307
    }
-
 
127308
 
-
 
127309
    public void validate() throws org.apache.thrift.TException {
-
 
127310
      // check for required fields
-
 
127311
    }
-
 
127312
 
-
 
127313
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
127314
      try {
-
 
127315
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
127316
      } catch (org.apache.thrift.TException te) {
-
 
127317
        throw new java.io.IOException(te);
-
 
127318
      }
-
 
127319
    }
-
 
127320
 
-
 
127321
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
127322
      try {
-
 
127323
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
127324
        __isset_bit_vector = new BitSet(1);
-
 
127325
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
127326
      } catch (org.apache.thrift.TException te) {
-
 
127327
        throw new java.io.IOException(te);
-
 
127328
      }
-
 
127329
    }
-
 
127330
 
-
 
127331
  }
-
 
127332
 
-
 
127333
  public static class getRechargeTrans_result implements org.apache.thrift.TBase<getRechargeTrans_result, getRechargeTrans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
127334
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTrans_result");
-
 
127335
 
-
 
127336
    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);
-
 
127337
 
-
 
127338
    private List<RechargeTransaction> success; // required
-
 
127339
 
-
 
127340
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
127341
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
127342
      SUCCESS((short)0, "success");
-
 
127343
 
-
 
127344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
127345
 
-
 
127346
      static {
-
 
127347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
127348
          byName.put(field.getFieldName(), field);
-
 
127349
        }
-
 
127350
      }
-
 
127351
 
-
 
127352
      /**
-
 
127353
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
127354
       */
-
 
127355
      public static _Fields findByThriftId(int fieldId) {
-
 
127356
        switch(fieldId) {
-
 
127357
          case 0: // SUCCESS
-
 
127358
            return SUCCESS;
-
 
127359
          default:
-
 
127360
            return null;
-
 
127361
        }
-
 
127362
      }
-
 
127363
 
-
 
127364
      /**
-
 
127365
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
127366
       * if it is not found.
-
 
127367
       */
-
 
127368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
127369
        _Fields fields = findByThriftId(fieldId);
-
 
127370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
127371
        return fields;
-
 
127372
      }
-
 
127373
 
-
 
127374
      /**
-
 
127375
       * Find the _Fields constant that matches name, or null if its not found.
-
 
127376
       */
-
 
127377
      public static _Fields findByName(String name) {
-
 
127378
        return byName.get(name);
-
 
127379
      }
-
 
127380
 
-
 
127381
      private final short _thriftId;
-
 
127382
      private final String _fieldName;
-
 
127383
 
-
 
127384
      _Fields(short thriftId, String fieldName) {
-
 
127385
        _thriftId = thriftId;
-
 
127386
        _fieldName = fieldName;
-
 
127387
      }
-
 
127388
 
-
 
127389
      public short getThriftFieldId() {
-
 
127390
        return _thriftId;
-
 
127391
      }
-
 
127392
 
-
 
127393
      public String getFieldName() {
-
 
127394
        return _fieldName;
-
 
127395
      }
-
 
127396
    }
-
 
127397
 
-
 
127398
    // isset id assignments
-
 
127399
 
-
 
127400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
127401
    static {
-
 
127402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
127403
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
127404
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
127405
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeTransaction.class))));
-
 
127406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
127407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeTrans_result.class, metaDataMap);
-
 
127408
    }
-
 
127409
 
-
 
127410
    public getRechargeTrans_result() {
-
 
127411
    }
-
 
127412
 
-
 
127413
    public getRechargeTrans_result(
-
 
127414
      List<RechargeTransaction> success)
-
 
127415
    {
-
 
127416
      this();
-
 
127417
      this.success = success;
-
 
127418
    }
-
 
127419
 
-
 
127420
    /**
-
 
127421
     * Performs a deep copy on <i>other</i>.
-
 
127422
     */
-
 
127423
    public getRechargeTrans_result(getRechargeTrans_result other) {
-
 
127424
      if (other.isSetSuccess()) {
-
 
127425
        List<RechargeTransaction> __this__success = new ArrayList<RechargeTransaction>();
-
 
127426
        for (RechargeTransaction other_element : other.success) {
-
 
127427
          __this__success.add(new RechargeTransaction(other_element));
-
 
127428
        }
-
 
127429
        this.success = __this__success;
-
 
127430
      }
-
 
127431
    }
-
 
127432
 
-
 
127433
    public getRechargeTrans_result deepCopy() {
-
 
127434
      return new getRechargeTrans_result(this);
-
 
127435
    }
-
 
127436
 
-
 
127437
    @Override
-
 
127438
    public void clear() {
-
 
127439
      this.success = null;
-
 
127440
    }
-
 
127441
 
-
 
127442
    public int getSuccessSize() {
-
 
127443
      return (this.success == null) ? 0 : this.success.size();
-
 
127444
    }
-
 
127445
 
-
 
127446
    public java.util.Iterator<RechargeTransaction> getSuccessIterator() {
-
 
127447
      return (this.success == null) ? null : this.success.iterator();
-
 
127448
    }
-
 
127449
 
-
 
127450
    public void addToSuccess(RechargeTransaction elem) {
-
 
127451
      if (this.success == null) {
-
 
127452
        this.success = new ArrayList<RechargeTransaction>();
-
 
127453
      }
-
 
127454
      this.success.add(elem);
-
 
127455
    }
-
 
127456
 
-
 
127457
    public List<RechargeTransaction> getSuccess() {
-
 
127458
      return this.success;
-
 
127459
    }
-
 
127460
 
-
 
127461
    public void setSuccess(List<RechargeTransaction> success) {
-
 
127462
      this.success = success;
-
 
127463
    }
-
 
127464
 
-
 
127465
    public void unsetSuccess() {
-
 
127466
      this.success = null;
-
 
127467
    }
-
 
127468
 
-
 
127469
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
127470
    public boolean isSetSuccess() {
-
 
127471
      return this.success != null;
-
 
127472
    }
-
 
127473
 
-
 
127474
    public void setSuccessIsSet(boolean value) {
-
 
127475
      if (!value) {
-
 
127476
        this.success = null;
-
 
127477
      }
-
 
127478
    }
-
 
127479
 
-
 
127480
    public void setFieldValue(_Fields field, Object value) {
-
 
127481
      switch (field) {
-
 
127482
      case SUCCESS:
-
 
127483
        if (value == null) {
-
 
127484
          unsetSuccess();
-
 
127485
        } else {
-
 
127486
          setSuccess((List<RechargeTransaction>)value);
-
 
127487
        }
-
 
127488
        break;
-
 
127489
 
-
 
127490
      }
-
 
127491
    }
-
 
127492
 
-
 
127493
    public Object getFieldValue(_Fields field) {
-
 
127494
      switch (field) {
-
 
127495
      case SUCCESS:
-
 
127496
        return getSuccess();
-
 
127497
 
-
 
127498
      }
-
 
127499
      throw new IllegalStateException();
-
 
127500
    }
-
 
127501
 
-
 
127502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
127503
    public boolean isSet(_Fields field) {
-
 
127504
      if (field == null) {
-
 
127505
        throw new IllegalArgumentException();
-
 
127506
      }
-
 
127507
 
-
 
127508
      switch (field) {
-
 
127509
      case SUCCESS:
-
 
127510
        return isSetSuccess();
-
 
127511
      }
-
 
127512
      throw new IllegalStateException();
-
 
127513
    }
-
 
127514
 
-
 
127515
    @Override
-
 
127516
    public boolean equals(Object that) {
-
 
127517
      if (that == null)
-
 
127518
        return false;
-
 
127519
      if (that instanceof getRechargeTrans_result)
-
 
127520
        return this.equals((getRechargeTrans_result)that);
-
 
127521
      return false;
-
 
127522
    }
-
 
127523
 
-
 
127524
    public boolean equals(getRechargeTrans_result that) {
-
 
127525
      if (that == null)
-
 
127526
        return false;
-
 
127527
 
-
 
127528
      boolean this_present_success = true && this.isSetSuccess();
-
 
127529
      boolean that_present_success = true && that.isSetSuccess();
-
 
127530
      if (this_present_success || that_present_success) {
-
 
127531
        if (!(this_present_success && that_present_success))
-
 
127532
          return false;
-
 
127533
        if (!this.success.equals(that.success))
-
 
127534
          return false;
-
 
127535
      }
-
 
127536
 
-
 
127537
      return true;
-
 
127538
    }
-
 
127539
 
-
 
127540
    @Override
-
 
127541
    public int hashCode() {
-
 
127542
      return 0;
-
 
127543
    }
-
 
127544
 
-
 
127545
    public int compareTo(getRechargeTrans_result other) {
-
 
127546
      if (!getClass().equals(other.getClass())) {
-
 
127547
        return getClass().getName().compareTo(other.getClass().getName());
-
 
127548
      }
-
 
127549
 
-
 
127550
      int lastComparison = 0;
-
 
127551
      getRechargeTrans_result typedOther = (getRechargeTrans_result)other;
-
 
127552
 
-
 
127553
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
127554
      if (lastComparison != 0) {
-
 
127555
        return lastComparison;
-
 
127556
      }
-
 
127557
      if (isSetSuccess()) {
-
 
127558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
127559
        if (lastComparison != 0) {
-
 
127560
          return lastComparison;
-
 
127561
        }
-
 
127562
      }
-
 
127563
      return 0;
-
 
127564
    }
-
 
127565
 
-
 
127566
    public _Fields fieldForId(int fieldId) {
-
 
127567
      return _Fields.findByThriftId(fieldId);
-
 
127568
    }
-
 
127569
 
-
 
127570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
127571
      org.apache.thrift.protocol.TField field;
-
 
127572
      iprot.readStructBegin();
-
 
127573
      while (true)
-
 
127574
      {
-
 
127575
        field = iprot.readFieldBegin();
-
 
127576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
127577
          break;
-
 
127578
        }
-
 
127579
        switch (field.id) {
-
 
127580
          case 0: // SUCCESS
-
 
127581
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
127582
              {
-
 
127583
                org.apache.thrift.protocol.TList _list422 = iprot.readListBegin();
-
 
127584
                this.success = new ArrayList<RechargeTransaction>(_list422.size);
-
 
127585
                for (int _i423 = 0; _i423 < _list422.size; ++_i423)
-
 
127586
                {
-
 
127587
                  RechargeTransaction _elem424; // required
-
 
127588
                  _elem424 = new RechargeTransaction();
-
 
127589
                  _elem424.read(iprot);
-
 
127590
                  this.success.add(_elem424);
-
 
127591
                }
-
 
127592
                iprot.readListEnd();
-
 
127593
              }
-
 
127594
            } else { 
-
 
127595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127596
            }
-
 
127597
            break;
-
 
127598
          default:
-
 
127599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
127600
        }
-
 
127601
        iprot.readFieldEnd();
-
 
127602
      }
-
 
127603
      iprot.readStructEnd();
-
 
127604
      validate();
-
 
127605
    }
-
 
127606
 
-
 
127607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
127608
      oprot.writeStructBegin(STRUCT_DESC);
-
 
127609
 
-
 
127610
      if (this.isSetSuccess()) {
-
 
127611
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
127612
        {
-
 
127613
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
127614
          for (RechargeTransaction _iter425 : this.success)
-
 
127615
          {
-
 
127616
            _iter425.write(oprot);
-
 
127617
          }
-
 
127618
          oprot.writeListEnd();
-
 
127619
        }
-
 
127620
        oprot.writeFieldEnd();
-
 
127621
      }
-
 
127622
      oprot.writeFieldStop();
-
 
127623
      oprot.writeStructEnd();
-
 
127624
    }
-
 
127625
 
-
 
127626
    @Override
-
 
127627
    public String toString() {
-
 
127628
      StringBuilder sb = new StringBuilder("getRechargeTrans_result(");
-
 
127629
      boolean first = true;
-
 
127630
 
-
 
127631
      sb.append("success:");
-
 
127632
      if (this.success == null) {
-
 
127633
        sb.append("null");
-
 
127634
      } else {
-
 
127635
        sb.append(this.success);
-
 
127636
      }
-
 
127637
      first = false;
-
 
127638
      sb.append(")");
-
 
127639
      return sb.toString();
-
 
127640
    }
-
 
127641
 
-
 
127642
    public void validate() throws org.apache.thrift.TException {
-
 
127643
      // check for required fields
-
 
127644
    }
-
 
127645
 
-
 
127646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
127647
      try {
-
 
127648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
127649
      } catch (org.apache.thrift.TException te) {
-
 
127650
        throw new java.io.IOException(te);
-
 
127651
      }
-
 
127652
    }
-
 
127653
 
-
 
127654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
127655
      try {
-
 
127656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
127657
      } catch (org.apache.thrift.TException te) {
-
 
127658
        throw new java.io.IOException(te);
-
 
127659
      }
-
 
127660
    }
-
 
127661
 
-
 
127662
  }
-
 
127663
 
126689
  public static class getRechargeTransaction_args implements org.apache.thrift.TBase<getRechargeTransaction_args, getRechargeTransaction_args._Fields>, java.io.Serializable, Cloneable   {
127664
  public static class getRechargeTransaction_args implements org.apache.thrift.TBase<getRechargeTransaction_args, getRechargeTransaction_args._Fields>, java.io.Serializable, Cloneable   {
126690
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransaction_args");
127665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransaction_args");
126691
 
127666
 
126692
    private static final org.apache.thrift.protocol.TField RECHARGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeId", org.apache.thrift.protocol.TType.I64, (short)1);
127667
    private static final org.apache.thrift.protocol.TField RECHARGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeId", org.apache.thrift.protocol.TType.I64, (short)1);
126693
 
127668
 
Line 127899... Line 128874...
127899
        }
128874
        }
127900
        switch (field.id) {
128875
        switch (field.id) {
127901
          case 0: // SUCCESS
128876
          case 0: // SUCCESS
127902
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
128877
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
127903
              {
128878
              {
127904
                org.apache.thrift.protocol.TList _list422 = iprot.readListBegin();
128879
                org.apache.thrift.protocol.TList _list426 = iprot.readListBegin();
127905
                this.success = new ArrayList<FRC>(_list422.size);
128880
                this.success = new ArrayList<FRC>(_list426.size);
127906
                for (int _i423 = 0; _i423 < _list422.size; ++_i423)
128881
                for (int _i427 = 0; _i427 < _list426.size; ++_i427)
127907
                {
128882
                {
127908
                  FRC _elem424; // required
128883
                  FRC _elem428; // required
127909
                  _elem424 = new FRC();
128884
                  _elem428 = new FRC();
127910
                  _elem424.read(iprot);
128885
                  _elem428.read(iprot);
127911
                  this.success.add(_elem424);
128886
                  this.success.add(_elem428);
127912
                }
128887
                }
127913
                iprot.readListEnd();
128888
                iprot.readListEnd();
127914
              }
128889
              }
127915
            } else { 
128890
            } else { 
127916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
128891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 127930... Line 128905...
127930
 
128905
 
127931
      if (this.isSetSuccess()) {
128906
      if (this.isSetSuccess()) {
127932
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
128907
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
127933
        {
128908
        {
127934
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
128909
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
127935
          for (FRC _iter425 : this.success)
128910
          for (FRC _iter429 : this.success)
127936
          {
128911
          {
127937
            _iter425.write(oprot);
128912
            _iter429.write(oprot);
127938
          }
128913
          }
127939
          oprot.writeListEnd();
128914
          oprot.writeListEnd();
127940
        }
128915
        }
127941
        oprot.writeFieldEnd();
128916
        oprot.writeFieldEnd();
127942
      }
128917
      }