Subversion Repositories SmartDukaan

Rev

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

Rev 7080 Rev 7084
Line 918... Line 918...
918
 
918
 
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
920
 
920
 
921
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException;
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;
-
 
924
 
923
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException;
925
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException;
924
 
926
 
925
    public List<FRC> getFRCs(long circleId, long operatorId) throws org.apache.thrift.TException;
927
    public List<FRC> getFRCs(long circleId, long operatorId) throws org.apache.thrift.TException;
926
 
928
 
927
  }
929
  }
Line 1234... Line 1236...
1234
 
1236
 
1235
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
1237
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
1236
 
1238
 
1237
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1239
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1238
 
1240
 
-
 
1241
    public void getRechargeTransactions(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactions_call> resultHandler) throws org.apache.thrift.TException;
-
 
1242
 
1239
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1243
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1240
 
1244
 
1241
    public void getFRCs(long circleId, long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFRCs_call> resultHandler) throws org.apache.thrift.TException;
1245
    public void getFRCs(long circleId, long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFRCs_call> resultHandler) throws org.apache.thrift.TException;
1242
 
1246
 
1243
  }
1247
  }
Line 5137... Line 5141...
5137
        return result.success;
5141
        return result.success;
5138
      }
5142
      }
5139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRechargeTransaction failed: unknown result");
5143
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRechargeTransaction failed: unknown result");
5140
    }
5144
    }
5141
 
5145
 
-
 
5146
    public List<RechargeTransaction> getRechargeTransactions(long storeId) throws org.apache.thrift.TException
-
 
5147
    {
-
 
5148
      send_getRechargeTransactions(storeId);
-
 
5149
      return recv_getRechargeTransactions();
-
 
5150
    }
-
 
5151
 
-
 
5152
    public void send_getRechargeTransactions(long storeId) throws org.apache.thrift.TException
-
 
5153
    {
-
 
5154
      getRechargeTransactions_args args = new getRechargeTransactions_args();
-
 
5155
      args.setStoreId(storeId);
-
 
5156
      sendBase("getRechargeTransactions", args);
-
 
5157
    }
-
 
5158
 
-
 
5159
    public List<RechargeTransaction> recv_getRechargeTransactions() throws org.apache.thrift.TException
-
 
5160
    {
-
 
5161
      getRechargeTransactions_result result = new getRechargeTransactions_result();
-
 
5162
      receiveBase(result, "getRechargeTransactions");
-
 
5163
      if (result.isSetSuccess()) {
-
 
5164
        return result.success;
-
 
5165
      }
-
 
5166
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeTransactions failed: unknown result");
-
 
5167
    }
-
 
5168
 
5142
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException
5169
    public RechargeTransaction getRechargeTransaction(long rechargeId) throws org.apache.thrift.TException
5143
    {
5170
    {
5144
      send_getRechargeTransaction(rechargeId);
5171
      send_getRechargeTransaction(rechargeId);
5145
      return recv_getRechargeTransaction();
5172
      return recv_getRechargeTransaction();
5146
    }
5173
    }
Line 10586... Line 10613...
10586
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10613
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10587
        return (new Client(prot)).recv_createRechargeTransaction();
10614
        return (new Client(prot)).recv_createRechargeTransaction();
10588
      }
10615
      }
10589
    }
10616
    }
10590
 
10617
 
-
 
10618
    public void getRechargeTransactions(long storeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransactions_call> resultHandler) throws org.apache.thrift.TException {
-
 
10619
      checkReady();
-
 
10620
      getRechargeTransactions_call method_call = new getRechargeTransactions_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10621
      this.___currentMethod = method_call;
-
 
10622
      ___manager.call(method_call);
-
 
10623
    }
-
 
10624
 
-
 
10625
    public static class getRechargeTransactions_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10626
      private long storeId;
-
 
10627
      public getRechargeTransactions_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransactions_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 {
-
 
10628
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10629
        this.storeId = storeId;
-
 
10630
      }
-
 
10631
 
-
 
10632
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10633
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeTransactions", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10634
        getRechargeTransactions_args args = new getRechargeTransactions_args();
-
 
10635
        args.setStoreId(storeId);
-
 
10636
        args.write(prot);
-
 
10637
        prot.writeMessageEnd();
-
 
10638
      }
-
 
10639
 
-
 
10640
      public List<RechargeTransaction> getResult() throws org.apache.thrift.TException {
-
 
10641
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10642
          throw new IllegalStateException("Method call not finished!");
-
 
10643
        }
-
 
10644
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10645
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10646
        return (new Client(prot)).recv_getRechargeTransactions();
-
 
10647
      }
-
 
10648
    }
-
 
10649
 
10591
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException {
10650
    public void getRechargeTransaction(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException {
10592
      checkReady();
10651
      checkReady();
10593
      getRechargeTransaction_call method_call = new getRechargeTransaction_call(rechargeId, resultHandler, this, ___protocolFactory, ___transport);
10652
      getRechargeTransaction_call method_call = new getRechargeTransaction_call(rechargeId, resultHandler, this, ___protocolFactory, ___transport);
10594
      this.___currentMethod = method_call;
10653
      this.___currentMethod = method_call;
10595
      ___manager.call(method_call);
10654
      ___manager.call(method_call);
Line 10820... Line 10879...
10820
      processMap.put("getDocument", new getDocument());
10879
      processMap.put("getDocument", new getDocument());
10821
      processMap.put("changeShippingAddress", new changeShippingAddress());
10880
      processMap.put("changeShippingAddress", new changeShippingAddress());
10822
      processMap.put("retrieveInvoice", new retrieveInvoice());
10881
      processMap.put("retrieveInvoice", new retrieveInvoice());
10823
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
10882
      processMap.put("receiveUpdatesForRedExpress", new receiveUpdatesForRedExpress());
10824
      processMap.put("createRechargeTransaction", new createRechargeTransaction());
10883
      processMap.put("createRechargeTransaction", new createRechargeTransaction());
-
 
10884
      processMap.put("getRechargeTransactions", new getRechargeTransactions());
10825
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
10885
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
10826
      processMap.put("getFRCs", new getFRCs());
10886
      processMap.put("getFRCs", new getFRCs());
10827
      return processMap;
10887
      return processMap;
10828
    }
10888
    }
10829
 
10889
 
Line 13717... Line 13777...
13717
        result.success = iface.createRechargeTransaction(args.thriftRechargeTransaction);
13777
        result.success = iface.createRechargeTransaction(args.thriftRechargeTransaction);
13718
        return result;
13778
        return result;
13719
      }
13779
      }
13720
    }
13780
    }
13721
 
13781
 
-
 
13782
    private static class getRechargeTransactions<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransactions_args> {
-
 
13783
      public getRechargeTransactions() {
-
 
13784
        super("getRechargeTransactions");
-
 
13785
      }
-
 
13786
 
-
 
13787
      protected getRechargeTransactions_args getEmptyArgsInstance() {
-
 
13788
        return new getRechargeTransactions_args();
-
 
13789
      }
-
 
13790
 
-
 
13791
      protected getRechargeTransactions_result getResult(I iface, getRechargeTransactions_args args) throws org.apache.thrift.TException {
-
 
13792
        getRechargeTransactions_result result = new getRechargeTransactions_result();
-
 
13793
        result.success = iface.getRechargeTransactions(args.storeId);
-
 
13794
        return result;
-
 
13795
      }
-
 
13796
    }
-
 
13797
 
13722
    private static class getRechargeTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransaction_args> {
13798
    private static class getRechargeTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransaction_args> {
13723
      public getRechargeTransaction() {
13799
      public getRechargeTransaction() {
13724
        super("getRechargeTransaction");
13800
        super("getRechargeTransaction");
13725
      }
13801
      }
13726
 
13802
 
Line 57855... Line 57931...
57855
      }
57931
      }
57856
    }
57932
    }
57857
 
57933
 
57858
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57934
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57859
      try {
57935
      try {
57860
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57861
        __isset_bit_vector = new BitSet(1);
-
 
57862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57936
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57863
      } catch (org.apache.thrift.TException te) {
57937
      } catch (org.apache.thrift.TException te) {
57864
        throw new java.io.IOException(te);
57938
        throw new java.io.IOException(te);
57865
      }
57939
      }
57866
    }
57940
    }
Line 62707... Line 62781...
62707
      }
62781
      }
62708
    }
62782
    }
62709
 
62783
 
62710
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62784
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62711
      try {
62785
      try {
62712
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62713
        __isset_bit_vector = new BitSet(1);
-
 
62714
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62786
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62715
      } catch (org.apache.thrift.TException te) {
62787
      } catch (org.apache.thrift.TException te) {
62716
        throw new java.io.IOException(te);
62788
        throw new java.io.IOException(te);
62717
      }
62789
      }
62718
    }
62790
    }
Line 125749... Line 125821...
125749
      }
125821
      }
125750
    }
125822
    }
125751
 
125823
 
125752
  }
125824
  }
125753
 
125825
 
-
 
125826
  public static class getRechargeTransactions_args implements org.apache.thrift.TBase<getRechargeTransactions_args, getRechargeTransactions_args._Fields>, java.io.Serializable, Cloneable   {
-
 
125827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransactions_args");
-
 
125828
 
-
 
125829
    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);
-
 
125830
 
-
 
125831
    private long storeId; // required
-
 
125832
 
-
 
125833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125835
      STORE_ID((short)1, "storeId");
-
 
125836
 
-
 
125837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125838
 
-
 
125839
      static {
-
 
125840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125841
          byName.put(field.getFieldName(), field);
-
 
125842
        }
-
 
125843
      }
-
 
125844
 
-
 
125845
      /**
-
 
125846
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125847
       */
-
 
125848
      public static _Fields findByThriftId(int fieldId) {
-
 
125849
        switch(fieldId) {
-
 
125850
          case 1: // STORE_ID
-
 
125851
            return STORE_ID;
-
 
125852
          default:
-
 
125853
            return null;
-
 
125854
        }
-
 
125855
      }
-
 
125856
 
-
 
125857
      /**
-
 
125858
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125859
       * if it is not found.
-
 
125860
       */
-
 
125861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125862
        _Fields fields = findByThriftId(fieldId);
-
 
125863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125864
        return fields;
-
 
125865
      }
-
 
125866
 
-
 
125867
      /**
-
 
125868
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125869
       */
-
 
125870
      public static _Fields findByName(String name) {
-
 
125871
        return byName.get(name);
-
 
125872
      }
-
 
125873
 
-
 
125874
      private final short _thriftId;
-
 
125875
      private final String _fieldName;
-
 
125876
 
-
 
125877
      _Fields(short thriftId, String fieldName) {
-
 
125878
        _thriftId = thriftId;
-
 
125879
        _fieldName = fieldName;
-
 
125880
      }
-
 
125881
 
-
 
125882
      public short getThriftFieldId() {
-
 
125883
        return _thriftId;
-
 
125884
      }
-
 
125885
 
-
 
125886
      public String getFieldName() {
-
 
125887
        return _fieldName;
-
 
125888
      }
-
 
125889
    }
-
 
125890
 
-
 
125891
    // isset id assignments
-
 
125892
    private static final int __STOREID_ISSET_ID = 0;
-
 
125893
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
125894
 
-
 
125895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125896
    static {
-
 
125897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125898
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
125900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeTransactions_args.class, metaDataMap);
-
 
125902
    }
-
 
125903
 
-
 
125904
    public getRechargeTransactions_args() {
-
 
125905
    }
-
 
125906
 
-
 
125907
    public getRechargeTransactions_args(
-
 
125908
      long storeId)
-
 
125909
    {
-
 
125910
      this();
-
 
125911
      this.storeId = storeId;
-
 
125912
      setStoreIdIsSet(true);
-
 
125913
    }
-
 
125914
 
-
 
125915
    /**
-
 
125916
     * Performs a deep copy on <i>other</i>.
-
 
125917
     */
-
 
125918
    public getRechargeTransactions_args(getRechargeTransactions_args other) {
-
 
125919
      __isset_bit_vector.clear();
-
 
125920
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
125921
      this.storeId = other.storeId;
-
 
125922
    }
-
 
125923
 
-
 
125924
    public getRechargeTransactions_args deepCopy() {
-
 
125925
      return new getRechargeTransactions_args(this);
-
 
125926
    }
-
 
125927
 
-
 
125928
    @Override
-
 
125929
    public void clear() {
-
 
125930
      setStoreIdIsSet(false);
-
 
125931
      this.storeId = 0;
-
 
125932
    }
-
 
125933
 
-
 
125934
    public long getStoreId() {
-
 
125935
      return this.storeId;
-
 
125936
    }
-
 
125937
 
-
 
125938
    public void setStoreId(long storeId) {
-
 
125939
      this.storeId = storeId;
-
 
125940
      setStoreIdIsSet(true);
-
 
125941
    }
-
 
125942
 
-
 
125943
    public void unsetStoreId() {
-
 
125944
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
125945
    }
-
 
125946
 
-
 
125947
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
125948
    public boolean isSetStoreId() {
-
 
125949
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
125950
    }
-
 
125951
 
-
 
125952
    public void setStoreIdIsSet(boolean value) {
-
 
125953
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
125954
    }
-
 
125955
 
-
 
125956
    public void setFieldValue(_Fields field, Object value) {
-
 
125957
      switch (field) {
-
 
125958
      case STORE_ID:
-
 
125959
        if (value == null) {
-
 
125960
          unsetStoreId();
-
 
125961
        } else {
-
 
125962
          setStoreId((Long)value);
-
 
125963
        }
-
 
125964
        break;
-
 
125965
 
-
 
125966
      }
-
 
125967
    }
-
 
125968
 
-
 
125969
    public Object getFieldValue(_Fields field) {
-
 
125970
      switch (field) {
-
 
125971
      case STORE_ID:
-
 
125972
        return Long.valueOf(getStoreId());
-
 
125973
 
-
 
125974
      }
-
 
125975
      throw new IllegalStateException();
-
 
125976
    }
-
 
125977
 
-
 
125978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125979
    public boolean isSet(_Fields field) {
-
 
125980
      if (field == null) {
-
 
125981
        throw new IllegalArgumentException();
-
 
125982
      }
-
 
125983
 
-
 
125984
      switch (field) {
-
 
125985
      case STORE_ID:
-
 
125986
        return isSetStoreId();
-
 
125987
      }
-
 
125988
      throw new IllegalStateException();
-
 
125989
    }
-
 
125990
 
-
 
125991
    @Override
-
 
125992
    public boolean equals(Object that) {
-
 
125993
      if (that == null)
-
 
125994
        return false;
-
 
125995
      if (that instanceof getRechargeTransactions_args)
-
 
125996
        return this.equals((getRechargeTransactions_args)that);
-
 
125997
      return false;
-
 
125998
    }
-
 
125999
 
-
 
126000
    public boolean equals(getRechargeTransactions_args that) {
-
 
126001
      if (that == null)
-
 
126002
        return false;
-
 
126003
 
-
 
126004
      boolean this_present_storeId = true;
-
 
126005
      boolean that_present_storeId = true;
-
 
126006
      if (this_present_storeId || that_present_storeId) {
-
 
126007
        if (!(this_present_storeId && that_present_storeId))
-
 
126008
          return false;
-
 
126009
        if (this.storeId != that.storeId)
-
 
126010
          return false;
-
 
126011
      }
-
 
126012
 
-
 
126013
      return true;
-
 
126014
    }
-
 
126015
 
-
 
126016
    @Override
-
 
126017
    public int hashCode() {
-
 
126018
      return 0;
-
 
126019
    }
-
 
126020
 
-
 
126021
    public int compareTo(getRechargeTransactions_args other) {
-
 
126022
      if (!getClass().equals(other.getClass())) {
-
 
126023
        return getClass().getName().compareTo(other.getClass().getName());
-
 
126024
      }
-
 
126025
 
-
 
126026
      int lastComparison = 0;
-
 
126027
      getRechargeTransactions_args typedOther = (getRechargeTransactions_args)other;
-
 
126028
 
-
 
126029
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
126030
      if (lastComparison != 0) {
-
 
126031
        return lastComparison;
-
 
126032
      }
-
 
126033
      if (isSetStoreId()) {
-
 
126034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
126035
        if (lastComparison != 0) {
-
 
126036
          return lastComparison;
-
 
126037
        }
-
 
126038
      }
-
 
126039
      return 0;
-
 
126040
    }
-
 
126041
 
-
 
126042
    public _Fields fieldForId(int fieldId) {
-
 
126043
      return _Fields.findByThriftId(fieldId);
-
 
126044
    }
-
 
126045
 
-
 
126046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
126047
      org.apache.thrift.protocol.TField field;
-
 
126048
      iprot.readStructBegin();
-
 
126049
      while (true)
-
 
126050
      {
-
 
126051
        field = iprot.readFieldBegin();
-
 
126052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
126053
          break;
-
 
126054
        }
-
 
126055
        switch (field.id) {
-
 
126056
          case 1: // STORE_ID
-
 
126057
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
126058
              this.storeId = iprot.readI64();
-
 
126059
              setStoreIdIsSet(true);
-
 
126060
            } else { 
-
 
126061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126062
            }
-
 
126063
            break;
-
 
126064
          default:
-
 
126065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126066
        }
-
 
126067
        iprot.readFieldEnd();
-
 
126068
      }
-
 
126069
      iprot.readStructEnd();
-
 
126070
      validate();
-
 
126071
    }
-
 
126072
 
-
 
126073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
126074
      validate();
-
 
126075
 
-
 
126076
      oprot.writeStructBegin(STRUCT_DESC);
-
 
126077
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
126078
      oprot.writeI64(this.storeId);
-
 
126079
      oprot.writeFieldEnd();
-
 
126080
      oprot.writeFieldStop();
-
 
126081
      oprot.writeStructEnd();
-
 
126082
    }
-
 
126083
 
-
 
126084
    @Override
-
 
126085
    public String toString() {
-
 
126086
      StringBuilder sb = new StringBuilder("getRechargeTransactions_args(");
-
 
126087
      boolean first = true;
-
 
126088
 
-
 
126089
      sb.append("storeId:");
-
 
126090
      sb.append(this.storeId);
-
 
126091
      first = false;
-
 
126092
      sb.append(")");
-
 
126093
      return sb.toString();
-
 
126094
    }
-
 
126095
 
-
 
126096
    public void validate() throws org.apache.thrift.TException {
-
 
126097
      // check for required fields
-
 
126098
    }
-
 
126099
 
-
 
126100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
126101
      try {
-
 
126102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
126103
      } catch (org.apache.thrift.TException te) {
-
 
126104
        throw new java.io.IOException(te);
-
 
126105
      }
-
 
126106
    }
-
 
126107
 
-
 
126108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
126109
      try {
-
 
126110
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
126111
        __isset_bit_vector = new BitSet(1);
-
 
126112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
126113
      } catch (org.apache.thrift.TException te) {
-
 
126114
        throw new java.io.IOException(te);
-
 
126115
      }
-
 
126116
    }
-
 
126117
 
-
 
126118
  }
-
 
126119
 
-
 
126120
  public static class getRechargeTransactions_result implements org.apache.thrift.TBase<getRechargeTransactions_result, getRechargeTransactions_result._Fields>, java.io.Serializable, Cloneable   {
-
 
126121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransactions_result");
-
 
126122
 
-
 
126123
    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);
-
 
126124
 
-
 
126125
    private List<RechargeTransaction> success; // required
-
 
126126
 
-
 
126127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
126128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
126129
      SUCCESS((short)0, "success");
-
 
126130
 
-
 
126131
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
126132
 
-
 
126133
      static {
-
 
126134
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
126135
          byName.put(field.getFieldName(), field);
-
 
126136
        }
-
 
126137
      }
-
 
126138
 
-
 
126139
      /**
-
 
126140
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
126141
       */
-
 
126142
      public static _Fields findByThriftId(int fieldId) {
-
 
126143
        switch(fieldId) {
-
 
126144
          case 0: // SUCCESS
-
 
126145
            return SUCCESS;
-
 
126146
          default:
-
 
126147
            return null;
-
 
126148
        }
-
 
126149
      }
-
 
126150
 
-
 
126151
      /**
-
 
126152
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
126153
       * if it is not found.
-
 
126154
       */
-
 
126155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
126156
        _Fields fields = findByThriftId(fieldId);
-
 
126157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
126158
        return fields;
-
 
126159
      }
-
 
126160
 
-
 
126161
      /**
-
 
126162
       * Find the _Fields constant that matches name, or null if its not found.
-
 
126163
       */
-
 
126164
      public static _Fields findByName(String name) {
-
 
126165
        return byName.get(name);
-
 
126166
      }
-
 
126167
 
-
 
126168
      private final short _thriftId;
-
 
126169
      private final String _fieldName;
-
 
126170
 
-
 
126171
      _Fields(short thriftId, String fieldName) {
-
 
126172
        _thriftId = thriftId;
-
 
126173
        _fieldName = fieldName;
-
 
126174
      }
-
 
126175
 
-
 
126176
      public short getThriftFieldId() {
-
 
126177
        return _thriftId;
-
 
126178
      }
-
 
126179
 
-
 
126180
      public String getFieldName() {
-
 
126181
        return _fieldName;
-
 
126182
      }
-
 
126183
    }
-
 
126184
 
-
 
126185
    // isset id assignments
-
 
126186
 
-
 
126187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
126188
    static {
-
 
126189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
126190
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
126191
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
126192
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeTransaction.class))));
-
 
126193
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
126194
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeTransactions_result.class, metaDataMap);
-
 
126195
    }
-
 
126196
 
-
 
126197
    public getRechargeTransactions_result() {
-
 
126198
    }
-
 
126199
 
-
 
126200
    public getRechargeTransactions_result(
-
 
126201
      List<RechargeTransaction> success)
-
 
126202
    {
-
 
126203
      this();
-
 
126204
      this.success = success;
-
 
126205
    }
-
 
126206
 
-
 
126207
    /**
-
 
126208
     * Performs a deep copy on <i>other</i>.
-
 
126209
     */
-
 
126210
    public getRechargeTransactions_result(getRechargeTransactions_result other) {
-
 
126211
      if (other.isSetSuccess()) {
-
 
126212
        List<RechargeTransaction> __this__success = new ArrayList<RechargeTransaction>();
-
 
126213
        for (RechargeTransaction other_element : other.success) {
-
 
126214
          __this__success.add(new RechargeTransaction(other_element));
-
 
126215
        }
-
 
126216
        this.success = __this__success;
-
 
126217
      }
-
 
126218
    }
-
 
126219
 
-
 
126220
    public getRechargeTransactions_result deepCopy() {
-
 
126221
      return new getRechargeTransactions_result(this);
-
 
126222
    }
-
 
126223
 
-
 
126224
    @Override
-
 
126225
    public void clear() {
-
 
126226
      this.success = null;
-
 
126227
    }
-
 
126228
 
-
 
126229
    public int getSuccessSize() {
-
 
126230
      return (this.success == null) ? 0 : this.success.size();
-
 
126231
    }
-
 
126232
 
-
 
126233
    public java.util.Iterator<RechargeTransaction> getSuccessIterator() {
-
 
126234
      return (this.success == null) ? null : this.success.iterator();
-
 
126235
    }
-
 
126236
 
-
 
126237
    public void addToSuccess(RechargeTransaction elem) {
-
 
126238
      if (this.success == null) {
-
 
126239
        this.success = new ArrayList<RechargeTransaction>();
-
 
126240
      }
-
 
126241
      this.success.add(elem);
-
 
126242
    }
-
 
126243
 
-
 
126244
    public List<RechargeTransaction> getSuccess() {
-
 
126245
      return this.success;
-
 
126246
    }
-
 
126247
 
-
 
126248
    public void setSuccess(List<RechargeTransaction> success) {
-
 
126249
      this.success = success;
-
 
126250
    }
-
 
126251
 
-
 
126252
    public void unsetSuccess() {
-
 
126253
      this.success = null;
-
 
126254
    }
-
 
126255
 
-
 
126256
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
126257
    public boolean isSetSuccess() {
-
 
126258
      return this.success != null;
-
 
126259
    }
-
 
126260
 
-
 
126261
    public void setSuccessIsSet(boolean value) {
-
 
126262
      if (!value) {
-
 
126263
        this.success = null;
-
 
126264
      }
-
 
126265
    }
-
 
126266
 
-
 
126267
    public void setFieldValue(_Fields field, Object value) {
-
 
126268
      switch (field) {
-
 
126269
      case SUCCESS:
-
 
126270
        if (value == null) {
-
 
126271
          unsetSuccess();
-
 
126272
        } else {
-
 
126273
          setSuccess((List<RechargeTransaction>)value);
-
 
126274
        }
-
 
126275
        break;
-
 
126276
 
-
 
126277
      }
-
 
126278
    }
-
 
126279
 
-
 
126280
    public Object getFieldValue(_Fields field) {
-
 
126281
      switch (field) {
-
 
126282
      case SUCCESS:
-
 
126283
        return getSuccess();
-
 
126284
 
-
 
126285
      }
-
 
126286
      throw new IllegalStateException();
-
 
126287
    }
-
 
126288
 
-
 
126289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
126290
    public boolean isSet(_Fields field) {
-
 
126291
      if (field == null) {
-
 
126292
        throw new IllegalArgumentException();
-
 
126293
      }
-
 
126294
 
-
 
126295
      switch (field) {
-
 
126296
      case SUCCESS:
-
 
126297
        return isSetSuccess();
-
 
126298
      }
-
 
126299
      throw new IllegalStateException();
-
 
126300
    }
-
 
126301
 
-
 
126302
    @Override
-
 
126303
    public boolean equals(Object that) {
-
 
126304
      if (that == null)
-
 
126305
        return false;
-
 
126306
      if (that instanceof getRechargeTransactions_result)
-
 
126307
        return this.equals((getRechargeTransactions_result)that);
-
 
126308
      return false;
-
 
126309
    }
-
 
126310
 
-
 
126311
    public boolean equals(getRechargeTransactions_result that) {
-
 
126312
      if (that == null)
-
 
126313
        return false;
-
 
126314
 
-
 
126315
      boolean this_present_success = true && this.isSetSuccess();
-
 
126316
      boolean that_present_success = true && that.isSetSuccess();
-
 
126317
      if (this_present_success || that_present_success) {
-
 
126318
        if (!(this_present_success && that_present_success))
-
 
126319
          return false;
-
 
126320
        if (!this.success.equals(that.success))
-
 
126321
          return false;
-
 
126322
      }
-
 
126323
 
-
 
126324
      return true;
-
 
126325
    }
-
 
126326
 
-
 
126327
    @Override
-
 
126328
    public int hashCode() {
-
 
126329
      return 0;
-
 
126330
    }
-
 
126331
 
-
 
126332
    public int compareTo(getRechargeTransactions_result other) {
-
 
126333
      if (!getClass().equals(other.getClass())) {
-
 
126334
        return getClass().getName().compareTo(other.getClass().getName());
-
 
126335
      }
-
 
126336
 
-
 
126337
      int lastComparison = 0;
-
 
126338
      getRechargeTransactions_result typedOther = (getRechargeTransactions_result)other;
-
 
126339
 
-
 
126340
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
126341
      if (lastComparison != 0) {
-
 
126342
        return lastComparison;
-
 
126343
      }
-
 
126344
      if (isSetSuccess()) {
-
 
126345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
126346
        if (lastComparison != 0) {
-
 
126347
          return lastComparison;
-
 
126348
        }
-
 
126349
      }
-
 
126350
      return 0;
-
 
126351
    }
-
 
126352
 
-
 
126353
    public _Fields fieldForId(int fieldId) {
-
 
126354
      return _Fields.findByThriftId(fieldId);
-
 
126355
    }
-
 
126356
 
-
 
126357
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
126358
      org.apache.thrift.protocol.TField field;
-
 
126359
      iprot.readStructBegin();
-
 
126360
      while (true)
-
 
126361
      {
-
 
126362
        field = iprot.readFieldBegin();
-
 
126363
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
126364
          break;
-
 
126365
        }
-
 
126366
        switch (field.id) {
-
 
126367
          case 0: // SUCCESS
-
 
126368
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
126369
              {
-
 
126370
                org.apache.thrift.protocol.TList _list418 = iprot.readListBegin();
-
 
126371
                this.success = new ArrayList<RechargeTransaction>(_list418.size);
-
 
126372
                for (int _i419 = 0; _i419 < _list418.size; ++_i419)
-
 
126373
                {
-
 
126374
                  RechargeTransaction _elem420; // required
-
 
126375
                  _elem420 = new RechargeTransaction();
-
 
126376
                  _elem420.read(iprot);
-
 
126377
                  this.success.add(_elem420);
-
 
126378
                }
-
 
126379
                iprot.readListEnd();
-
 
126380
              }
-
 
126381
            } else { 
-
 
126382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126383
            }
-
 
126384
            break;
-
 
126385
          default:
-
 
126386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126387
        }
-
 
126388
        iprot.readFieldEnd();
-
 
126389
      }
-
 
126390
      iprot.readStructEnd();
-
 
126391
      validate();
-
 
126392
    }
-
 
126393
 
-
 
126394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
126395
      oprot.writeStructBegin(STRUCT_DESC);
-
 
126396
 
-
 
126397
      if (this.isSetSuccess()) {
-
 
126398
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
126399
        {
-
 
126400
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
126401
          for (RechargeTransaction _iter421 : this.success)
-
 
126402
          {
-
 
126403
            _iter421.write(oprot);
-
 
126404
          }
-
 
126405
          oprot.writeListEnd();
-
 
126406
        }
-
 
126407
        oprot.writeFieldEnd();
-
 
126408
      }
-
 
126409
      oprot.writeFieldStop();
-
 
126410
      oprot.writeStructEnd();
-
 
126411
    }
-
 
126412
 
-
 
126413
    @Override
-
 
126414
    public String toString() {
-
 
126415
      StringBuilder sb = new StringBuilder("getRechargeTransactions_result(");
-
 
126416
      boolean first = true;
-
 
126417
 
-
 
126418
      sb.append("success:");
-
 
126419
      if (this.success == null) {
-
 
126420
        sb.append("null");
-
 
126421
      } else {
-
 
126422
        sb.append(this.success);
-
 
126423
      }
-
 
126424
      first = false;
-
 
126425
      sb.append(")");
-
 
126426
      return sb.toString();
-
 
126427
    }
-
 
126428
 
-
 
126429
    public void validate() throws org.apache.thrift.TException {
-
 
126430
      // check for required fields
-
 
126431
    }
-
 
126432
 
-
 
126433
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
126434
      try {
-
 
126435
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
126436
      } catch (org.apache.thrift.TException te) {
-
 
126437
        throw new java.io.IOException(te);
-
 
126438
      }
-
 
126439
    }
-
 
126440
 
-
 
126441
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
126442
      try {
-
 
126443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
126444
      } catch (org.apache.thrift.TException te) {
-
 
126445
        throw new java.io.IOException(te);
-
 
126446
      }
-
 
126447
    }
-
 
126448
 
-
 
126449
  }
-
 
126450
 
125754
  public static class getRechargeTransaction_args implements org.apache.thrift.TBase<getRechargeTransaction_args, getRechargeTransaction_args._Fields>, java.io.Serializable, Cloneable   {
126451
  public static class getRechargeTransaction_args implements org.apache.thrift.TBase<getRechargeTransaction_args, getRechargeTransaction_args._Fields>, java.io.Serializable, Cloneable   {
125755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransaction_args");
126452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransaction_args");
125756
 
126453
 
125757
    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);
126454
    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);
125758
 
126455
 
Line 126964... Line 127661...
126964
        }
127661
        }
126965
        switch (field.id) {
127662
        switch (field.id) {
126966
          case 0: // SUCCESS
127663
          case 0: // SUCCESS
126967
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
127664
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
126968
              {
127665
              {
126969
                org.apache.thrift.protocol.TList _list418 = iprot.readListBegin();
127666
                org.apache.thrift.protocol.TList _list422 = iprot.readListBegin();
126970
                this.success = new ArrayList<FRC>(_list418.size);
127667
                this.success = new ArrayList<FRC>(_list422.size);
126971
                for (int _i419 = 0; _i419 < _list418.size; ++_i419)
127668
                for (int _i423 = 0; _i423 < _list422.size; ++_i423)
126972
                {
127669
                {
126973
                  FRC _elem420; // required
127670
                  FRC _elem424; // required
126974
                  _elem420 = new FRC();
127671
                  _elem424 = new FRC();
126975
                  _elem420.read(iprot);
127672
                  _elem424.read(iprot);
126976
                  this.success.add(_elem420);
127673
                  this.success.add(_elem424);
126977
                }
127674
                }
126978
                iprot.readListEnd();
127675
                iprot.readListEnd();
126979
              }
127676
              }
126980
            } else { 
127677
            } else { 
126981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
127678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 126995... Line 127692...
126995
 
127692
 
126996
      if (this.isSetSuccess()) {
127693
      if (this.isSetSuccess()) {
126997
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
127694
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
126998
        {
127695
        {
126999
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
127696
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
127000
          for (FRC _iter421 : this.success)
127697
          for (FRC _iter425 : this.success)
127001
          {
127698
          {
127002
            _iter421.write(oprot);
127699
            _iter425.write(oprot);
127003
          }
127700
          }
127004
          oprot.writeListEnd();
127701
          oprot.writeListEnd();
127005
        }
127702
        }
127006
        oprot.writeFieldEnd();
127703
        oprot.writeFieldEnd();
127007
      }
127704
      }