Subversion Repositories SmartDukaan

Rev

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

Rev 6269 Rev 6289
Line 873... Line 873...
873
     */
873
     */
874
    public RechargeOrder getRechargeOrdersForTransaction(long txnId) throws TransactionServiceException, org.apache.thrift.TException;
874
    public RechargeOrder getRechargeOrdersForTransaction(long txnId) throws TransactionServiceException, org.apache.thrift.TException;
875
 
875
 
876
    public Map<Long,String> getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException;
876
    public Map<Long,String> getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException;
877
 
877
 
878
    public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
878
    public DeviceNumberInfo getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
879
 
879
 
880
    public String validateRecharge(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
880
    public String validateRecharge(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
881
 
881
 
882
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
882
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
883
 
883
 
Line 887... Line 887...
887
 
887
 
888
    public List<RechargeOrder> getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException;
888
    public List<RechargeOrder> getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException;
889
 
889
 
890
    public List<RechargePlan> getPlansForOperator(long operatorId) throws org.apache.thrift.TException;
890
    public List<RechargePlan> getPlansForOperator(long operatorId) throws org.apache.thrift.TException;
891
 
891
 
-
 
892
    /**
-
 
893
     * Returns denominations for a given operator and circle
-
 
894
     * 
-
 
895
     * @param operatorId
-
 
896
     * @param circleName
-
 
897
     * @param denominationType
-
 
898
     */
-
 
899
    public List<RechargeDenomination> getRechargeDenominations(long operatorId, String circleName, DenominationType denominationType) throws TransactionServiceException, org.apache.thrift.TException;
-
 
900
 
892
  }
901
  }
893
 
902
 
894
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
903
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
895
 
904
 
896
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
905
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1177... Line 1186...
1177
 
1186
 
1178
    public void getRechargeOrdersForStatus(long status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForStatus_call> resultHandler) throws org.apache.thrift.TException;
1187
    public void getRechargeOrdersForStatus(long status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForStatus_call> resultHandler) throws org.apache.thrift.TException;
1179
 
1188
 
1180
    public void getPlansForOperator(long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPlansForOperator_call> resultHandler) throws org.apache.thrift.TException;
1189
    public void getPlansForOperator(long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPlansForOperator_call> resultHandler) throws org.apache.thrift.TException;
1181
 
1190
 
-
 
1191
    public void getRechargeDenominations(long operatorId, String circleName, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeDenominations_call> resultHandler) throws org.apache.thrift.TException;
-
 
1192
 
1182
  }
1193
  }
1183
 
1194
 
1184
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1195
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1185
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1196
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1186
      public Factory() {}
1197
      public Factory() {}
Line 4644... Line 4655...
4644
        return result.success;
4655
        return result.success;
4645
      }
4656
      }
4646
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviders failed: unknown result");
4657
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviders failed: unknown result");
4647
    }
4658
    }
4648
 
4659
 
4649
    public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException
4660
    public DeviceNumberInfo getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException
4650
    {
4661
    {
4651
      send_getServiceProviderForDevice(rechargeType, deviceNumber);
4662
      send_getServiceProviderForDevice(rechargeType, deviceNumber);
4652
      return recv_getServiceProviderForDevice();
4663
      return recv_getServiceProviderForDevice();
4653
    }
4664
    }
4654
 
4665
 
Line 4658... Line 4669...
4658
      args.setRechargeType(rechargeType);
4669
      args.setRechargeType(rechargeType);
4659
      args.setDeviceNumber(deviceNumber);
4670
      args.setDeviceNumber(deviceNumber);
4660
      sendBase("getServiceProviderForDevice", args);
4671
      sendBase("getServiceProviderForDevice", args);
4661
    }
4672
    }
4662
 
4673
 
4663
    public long recv_getServiceProviderForDevice() throws org.apache.thrift.TException
4674
    public DeviceNumberInfo recv_getServiceProviderForDevice() throws org.apache.thrift.TException
4664
    {
4675
    {
4665
      getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
4676
      getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
4666
      receiveBase(result, "getServiceProviderForDevice");
4677
      receiveBase(result, "getServiceProviderForDevice");
4667
      if (result.isSetSuccess()) {
4678
      if (result.isSetSuccess()) {
4668
        return result.success;
4679
        return result.success;
Line 4805... Line 4816...
4805
        return result.success;
4816
        return result.success;
4806
      }
4817
      }
4807
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPlansForOperator failed: unknown result");
4818
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPlansForOperator failed: unknown result");
4808
    }
4819
    }
4809
 
4820
 
-
 
4821
    public List<RechargeDenomination> getRechargeDenominations(long operatorId, String circleName, DenominationType denominationType) throws TransactionServiceException, org.apache.thrift.TException
-
 
4822
    {
-
 
4823
      send_getRechargeDenominations(operatorId, circleName, denominationType);
-
 
4824
      return recv_getRechargeDenominations();
-
 
4825
    }
-
 
4826
 
-
 
4827
    public void send_getRechargeDenominations(long operatorId, String circleName, DenominationType denominationType) throws org.apache.thrift.TException
-
 
4828
    {
-
 
4829
      getRechargeDenominations_args args = new getRechargeDenominations_args();
-
 
4830
      args.setOperatorId(operatorId);
-
 
4831
      args.setCircleName(circleName);
-
 
4832
      args.setDenominationType(denominationType);
-
 
4833
      sendBase("getRechargeDenominations", args);
-
 
4834
    }
-
 
4835
 
-
 
4836
    public List<RechargeDenomination> recv_getRechargeDenominations() throws TransactionServiceException, org.apache.thrift.TException
-
 
4837
    {
-
 
4838
      getRechargeDenominations_result result = new getRechargeDenominations_result();
-
 
4839
      receiveBase(result, "getRechargeDenominations");
-
 
4840
      if (result.isSetSuccess()) {
-
 
4841
        return result.success;
-
 
4842
      }
-
 
4843
      if (result.ex != null) {
-
 
4844
        throw result.ex;
-
 
4845
      }
-
 
4846
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeDenominations failed: unknown result");
-
 
4847
    }
-
 
4848
 
4810
  }
4849
  }
4811
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4850
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4812
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4851
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4813
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4852
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4814
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4853
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9602... Line 9641...
9602
        args.setDeviceNumber(deviceNumber);
9641
        args.setDeviceNumber(deviceNumber);
9603
        args.write(prot);
9642
        args.write(prot);
9604
        prot.writeMessageEnd();
9643
        prot.writeMessageEnd();
9605
      }
9644
      }
9606
 
9645
 
9607
      public long getResult() throws org.apache.thrift.TException {
9646
      public DeviceNumberInfo getResult() throws org.apache.thrift.TException {
9608
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
9647
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
9609
          throw new IllegalStateException("Method call not finished!");
9648
          throw new IllegalStateException("Method call not finished!");
9610
        }
9649
        }
9611
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
9650
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
9612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9651
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 9810... Line 9849...
9810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9811
        return (new Client(prot)).recv_getPlansForOperator();
9850
        return (new Client(prot)).recv_getPlansForOperator();
9812
      }
9851
      }
9813
    }
9852
    }
9814
 
9853
 
-
 
9854
    public void getRechargeDenominations(long operatorId, String circleName, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<getRechargeDenominations_call> resultHandler) throws org.apache.thrift.TException {
-
 
9855
      checkReady();
-
 
9856
      getRechargeDenominations_call method_call = new getRechargeDenominations_call(operatorId, circleName, denominationType, resultHandler, this, ___protocolFactory, ___transport);
-
 
9857
      this.___currentMethod = method_call;
-
 
9858
      ___manager.call(method_call);
-
 
9859
    }
-
 
9860
 
-
 
9861
    public static class getRechargeDenominations_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9862
      private long operatorId;
-
 
9863
      private String circleName;
-
 
9864
      private DenominationType denominationType;
-
 
9865
      public getRechargeDenominations_call(long operatorId, String circleName, DenominationType denominationType, org.apache.thrift.async.AsyncMethodCallback<getRechargeDenominations_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 {
-
 
9866
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9867
        this.operatorId = operatorId;
-
 
9868
        this.circleName = circleName;
-
 
9869
        this.denominationType = denominationType;
-
 
9870
      }
-
 
9871
 
-
 
9872
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9873
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeDenominations", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9874
        getRechargeDenominations_args args = new getRechargeDenominations_args();
-
 
9875
        args.setOperatorId(operatorId);
-
 
9876
        args.setCircleName(circleName);
-
 
9877
        args.setDenominationType(denominationType);
-
 
9878
        args.write(prot);
-
 
9879
        prot.writeMessageEnd();
-
 
9880
      }
-
 
9881
 
-
 
9882
      public List<RechargeDenomination> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
9883
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9884
          throw new IllegalStateException("Method call not finished!");
-
 
9885
        }
-
 
9886
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9887
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9888
        return (new Client(prot)).recv_getRechargeDenominations();
-
 
9889
      }
-
 
9890
    }
-
 
9891
 
9815
  }
9892
  }
9816
 
9893
 
9817
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9894
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9818
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9895
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9819
    public Processor(I iface) {
9896
    public Processor(I iface) {
Line 9966... Line 10043...
9966
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
10043
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
9967
      processMap.put("addAmountToWallet", new addAmountToWallet());
10044
      processMap.put("addAmountToWallet", new addAmountToWallet());
9968
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
10045
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
9969
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
10046
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
9970
      processMap.put("getPlansForOperator", new getPlansForOperator());
10047
      processMap.put("getPlansForOperator", new getPlansForOperator());
-
 
10048
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
9971
      return processMap;
10049
      return processMap;
9972
    }
10050
    }
9973
 
10051
 
9974
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
10052
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9975
      public createTransaction() {
10053
      public createTransaction() {
Line 12575... Line 12653...
12575
      }
12653
      }
12576
 
12654
 
12577
      protected getServiceProviderForDevice_result getResult(I iface, getServiceProviderForDevice_args args) throws org.apache.thrift.TException {
12655
      protected getServiceProviderForDevice_result getResult(I iface, getServiceProviderForDevice_args args) throws org.apache.thrift.TException {
12578
        getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
12656
        getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
12579
        result.success = iface.getServiceProviderForDevice(args.rechargeType, args.deviceNumber);
12657
        result.success = iface.getServiceProviderForDevice(args.rechargeType, args.deviceNumber);
12580
        result.setSuccessIsSet(true);
-
 
12581
        return result;
12658
        return result;
12582
      }
12659
      }
12583
    }
12660
    }
12584
 
12661
 
12585
    private static class validateRecharge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateRecharge_args> {
12662
    private static class validateRecharge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateRecharge_args> {
Line 12676... Line 12753...
12676
        result.success = iface.getPlansForOperator(args.operatorId);
12753
        result.success = iface.getPlansForOperator(args.operatorId);
12677
        return result;
12754
        return result;
12678
      }
12755
      }
12679
    }
12756
    }
12680
 
12757
 
-
 
12758
    private static class getRechargeDenominations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeDenominations_args> {
-
 
12759
      public getRechargeDenominations() {
-
 
12760
        super("getRechargeDenominations");
-
 
12761
      }
-
 
12762
 
-
 
12763
      protected getRechargeDenominations_args getEmptyArgsInstance() {
-
 
12764
        return new getRechargeDenominations_args();
-
 
12765
      }
-
 
12766
 
-
 
12767
      protected getRechargeDenominations_result getResult(I iface, getRechargeDenominations_args args) throws org.apache.thrift.TException {
-
 
12768
        getRechargeDenominations_result result = new getRechargeDenominations_result();
-
 
12769
        try {
-
 
12770
          result.success = iface.getRechargeDenominations(args.operatorId, args.circleName, args.denominationType);
-
 
12771
        } catch (TransactionServiceException ex) {
-
 
12772
          result.ex = ex;
-
 
12773
        }
-
 
12774
        return result;
-
 
12775
      }
-
 
12776
    }
-
 
12777
 
12681
  }
12778
  }
12682
 
12779
 
12683
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12780
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12781
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12685
 
12782
 
Line 56606... Line 56703...
56606
      }
56703
      }
56607
    }
56704
    }
56608
 
56705
 
56609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56610
      try {
56707
      try {
-
 
56708
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
56709
        __isset_bit_vector = new BitSet(1);
56611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56710
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56612
      } catch (org.apache.thrift.TException te) {
56711
      } catch (org.apache.thrift.TException te) {
56613
        throw new java.io.IOException(te);
56712
        throw new java.io.IOException(te);
56614
      }
56713
      }
56615
    }
56714
    }
Line 61456... Line 61555...
61456
      }
61555
      }
61457
    }
61556
    }
61458
 
61557
 
61459
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61460
      try {
61559
      try {
-
 
61560
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
61561
        __isset_bit_vector = new BitSet(1);
61461
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61462
      } catch (org.apache.thrift.TException te) {
61563
      } catch (org.apache.thrift.TException te) {
61463
        throw new java.io.IOException(te);
61564
        throw new java.io.IOException(te);
61464
      }
61565
      }
61465
    }
61566
    }
Line 62887... Line 62988...
62887
      }
62988
      }
62888
    }
62989
    }
62889
 
62990
 
62890
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62991
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62891
      try {
62992
      try {
-
 
62993
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62994
        __isset_bit_vector = new BitSet(1);
62892
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62893
      } catch (org.apache.thrift.TException te) {
62996
      } catch (org.apache.thrift.TException te) {
62894
        throw new java.io.IOException(te);
62997
        throw new java.io.IOException(te);
62895
      }
62998
      }
62896
    }
62999
    }
Line 112608... Line 112711...
112608
  }
112711
  }
112609
 
112712
 
112610
  public static class getServiceProviderForDevice_result implements org.apache.thrift.TBase<getServiceProviderForDevice_result, getServiceProviderForDevice_result._Fields>, java.io.Serializable, Cloneable   {
112713
  public static class getServiceProviderForDevice_result implements org.apache.thrift.TBase<getServiceProviderForDevice_result, getServiceProviderForDevice_result._Fields>, java.io.Serializable, Cloneable   {
112611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviderForDevice_result");
112714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviderForDevice_result");
112612
 
112715
 
112613
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
112716
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
112614
 
112717
 
112615
    private long success; // required
112718
    private DeviceNumberInfo success; // required
112616
 
112719
 
112617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
112720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
112618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
112721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
112619
      SUCCESS((short)0, "success");
112722
      SUCCESS((short)0, "success");
112620
 
112723
 
Line 112671... Line 112774...
112671
        return _fieldName;
112774
        return _fieldName;
112672
      }
112775
      }
112673
    }
112776
    }
112674
 
112777
 
112675
    // isset id assignments
112778
    // isset id assignments
112676
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
112677
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
112678
 
112779
 
112679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
112780
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
112680
    static {
112781
    static {
112681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
112782
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
112682
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
112783
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
112683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
112784
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeviceNumberInfo.class)));
112684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
112785
      metaDataMap = Collections.unmodifiableMap(tmpMap);
112685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviderForDevice_result.class, metaDataMap);
112786
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviderForDevice_result.class, metaDataMap);
112686
    }
112787
    }
112687
 
112788
 
112688
    public getServiceProviderForDevice_result() {
112789
    public getServiceProviderForDevice_result() {
112689
    }
112790
    }
112690
 
112791
 
112691
    public getServiceProviderForDevice_result(
112792
    public getServiceProviderForDevice_result(
112692
      long success)
112793
      DeviceNumberInfo success)
112693
    {
112794
    {
112694
      this();
112795
      this();
112695
      this.success = success;
112796
      this.success = success;
112696
      setSuccessIsSet(true);
-
 
112697
    }
112797
    }
112698
 
112798
 
112699
    /**
112799
    /**
112700
     * Performs a deep copy on <i>other</i>.
112800
     * Performs a deep copy on <i>other</i>.
112701
     */
112801
     */
112702
    public getServiceProviderForDevice_result(getServiceProviderForDevice_result other) {
112802
    public getServiceProviderForDevice_result(getServiceProviderForDevice_result other) {
112703
      __isset_bit_vector.clear();
112803
      if (other.isSetSuccess()) {
112704
      __isset_bit_vector.or(other.__isset_bit_vector);
112804
        this.success = new DeviceNumberInfo(other.success);
112705
      this.success = other.success;
112805
      }
112706
    }
112806
    }
112707
 
112807
 
112708
    public getServiceProviderForDevice_result deepCopy() {
112808
    public getServiceProviderForDevice_result deepCopy() {
112709
      return new getServiceProviderForDevice_result(this);
112809
      return new getServiceProviderForDevice_result(this);
112710
    }
112810
    }
112711
 
112811
 
112712
    @Override
112812
    @Override
112713
    public void clear() {
112813
    public void clear() {
112714
      setSuccessIsSet(false);
-
 
112715
      this.success = 0;
112814
      this.success = null;
112716
    }
112815
    }
112717
 
112816
 
112718
    public long getSuccess() {
112817
    public DeviceNumberInfo getSuccess() {
112719
      return this.success;
112818
      return this.success;
112720
    }
112819
    }
112721
 
112820
 
112722
    public void setSuccess(long success) {
112821
    public void setSuccess(DeviceNumberInfo success) {
112723
      this.success = success;
112822
      this.success = success;
112724
      setSuccessIsSet(true);
-
 
112725
    }
112823
    }
112726
 
112824
 
112727
    public void unsetSuccess() {
112825
    public void unsetSuccess() {
112728
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
112826
      this.success = null;
112729
    }
112827
    }
112730
 
112828
 
112731
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
112829
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
112732
    public boolean isSetSuccess() {
112830
    public boolean isSetSuccess() {
112733
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
112831
      return this.success != null;
112734
    }
112832
    }
112735
 
112833
 
112736
    public void setSuccessIsSet(boolean value) {
112834
    public void setSuccessIsSet(boolean value) {
-
 
112835
      if (!value) {
112737
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
112836
        this.success = null;
-
 
112837
      }
112738
    }
112838
    }
112739
 
112839
 
112740
    public void setFieldValue(_Fields field, Object value) {
112840
    public void setFieldValue(_Fields field, Object value) {
112741
      switch (field) {
112841
      switch (field) {
112742
      case SUCCESS:
112842
      case SUCCESS:
112743
        if (value == null) {
112843
        if (value == null) {
112744
          unsetSuccess();
112844
          unsetSuccess();
112745
        } else {
112845
        } else {
112746
          setSuccess((Long)value);
112846
          setSuccess((DeviceNumberInfo)value);
112747
        }
112847
        }
112748
        break;
112848
        break;
112749
 
112849
 
112750
      }
112850
      }
112751
    }
112851
    }
112752
 
112852
 
112753
    public Object getFieldValue(_Fields field) {
112853
    public Object getFieldValue(_Fields field) {
112754
      switch (field) {
112854
      switch (field) {
112755
      case SUCCESS:
112855
      case SUCCESS:
112756
        return Long.valueOf(getSuccess());
112856
        return getSuccess();
112757
 
112857
 
112758
      }
112858
      }
112759
      throw new IllegalStateException();
112859
      throw new IllegalStateException();
112760
    }
112860
    }
112761
 
112861
 
Line 112783... Line 112883...
112783
 
112883
 
112784
    public boolean equals(getServiceProviderForDevice_result that) {
112884
    public boolean equals(getServiceProviderForDevice_result that) {
112785
      if (that == null)
112885
      if (that == null)
112786
        return false;
112886
        return false;
112787
 
112887
 
112788
      boolean this_present_success = true;
112888
      boolean this_present_success = true && this.isSetSuccess();
112789
      boolean that_present_success = true;
112889
      boolean that_present_success = true && that.isSetSuccess();
112790
      if (this_present_success || that_present_success) {
112890
      if (this_present_success || that_present_success) {
112791
        if (!(this_present_success && that_present_success))
112891
        if (!(this_present_success && that_present_success))
112792
          return false;
112892
          return false;
112793
        if (this.success != that.success)
112893
        if (!this.success.equals(that.success))
112794
          return false;
112894
          return false;
112795
      }
112895
      }
112796
 
112896
 
112797
      return true;
112897
      return true;
112798
    }
112898
    }
Line 112836... Line 112936...
112836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
112936
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
112837
          break;
112937
          break;
112838
        }
112938
        }
112839
        switch (field.id) {
112939
        switch (field.id) {
112840
          case 0: // SUCCESS
112940
          case 0: // SUCCESS
112841
            if (field.type == org.apache.thrift.protocol.TType.I64) {
112941
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
112842
              this.success = iprot.readI64();
112942
              this.success = new DeviceNumberInfo();
112843
              setSuccessIsSet(true);
112943
              this.success.read(iprot);
112844
            } else { 
112944
            } else { 
112845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
112945
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
112846
            }
112946
            }
112847
            break;
112947
            break;
112848
          default:
112948
          default:
Line 112857... Line 112957...
112857
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
112957
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
112858
      oprot.writeStructBegin(STRUCT_DESC);
112958
      oprot.writeStructBegin(STRUCT_DESC);
112859
 
112959
 
112860
      if (this.isSetSuccess()) {
112960
      if (this.isSetSuccess()) {
112861
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
112961
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
112862
        oprot.writeI64(this.success);
112962
        this.success.write(oprot);
112863
        oprot.writeFieldEnd();
112963
        oprot.writeFieldEnd();
112864
      }
112964
      }
112865
      oprot.writeFieldStop();
112965
      oprot.writeFieldStop();
112866
      oprot.writeStructEnd();
112966
      oprot.writeStructEnd();
112867
    }
112967
    }
Line 112870... Line 112970...
112870
    public String toString() {
112970
    public String toString() {
112871
      StringBuilder sb = new StringBuilder("getServiceProviderForDevice_result(");
112971
      StringBuilder sb = new StringBuilder("getServiceProviderForDevice_result(");
112872
      boolean first = true;
112972
      boolean first = true;
112873
 
112973
 
112874
      sb.append("success:");
112974
      sb.append("success:");
-
 
112975
      if (this.success == null) {
-
 
112976
        sb.append("null");
-
 
112977
      } else {
112875
      sb.append(this.success);
112978
        sb.append(this.success);
-
 
112979
      }
112876
      first = false;
112980
      first = false;
112877
      sb.append(")");
112981
      sb.append(")");
112878
      return sb.toString();
112982
      return sb.toString();
112879
    }
112983
    }
112880
 
112984
 
Line 116590... Line 116694...
116590
      }
116694
      }
116591
      first = false;
116695
      first = false;
116592
      sb.append(")");
116696
      sb.append(")");
116593
      return sb.toString();
116697
      return sb.toString();
116594
    }
116698
    }
-
 
116699
 
-
 
116700
    public void validate() throws org.apache.thrift.TException {
-
 
116701
      // check for required fields
-
 
116702
    }
-
 
116703
 
-
 
116704
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
116705
      try {
-
 
116706
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
116707
      } catch (org.apache.thrift.TException te) {
-
 
116708
        throw new java.io.IOException(te);
-
 
116709
      }
-
 
116710
    }
-
 
116711
 
-
 
116712
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
116713
      try {
-
 
116714
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
116715
      } catch (org.apache.thrift.TException te) {
-
 
116716
        throw new java.io.IOException(te);
-
 
116717
      }
-
 
116718
    }
-
 
116719
 
-
 
116720
  }
-
 
116721
 
-
 
116722
  public static class getRechargeDenominations_args implements org.apache.thrift.TBase<getRechargeDenominations_args, getRechargeDenominations_args._Fields>, java.io.Serializable, Cloneable   {
-
 
116723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeDenominations_args");
-
 
116724
 
-
 
116725
    private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
116726
    private static final org.apache.thrift.protocol.TField CIRCLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("circleName", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
116727
    private static final org.apache.thrift.protocol.TField DENOMINATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("denominationType", org.apache.thrift.protocol.TType.I32, (short)3);
-
 
116728
 
-
 
116729
    private long operatorId; // required
-
 
116730
    private String circleName; // required
-
 
116731
    private DenominationType denominationType; // required
-
 
116732
 
-
 
116733
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
116734
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
116735
      OPERATOR_ID((short)1, "operatorId"),
-
 
116736
      CIRCLE_NAME((short)2, "circleName"),
-
 
116737
      /**
-
 
116738
       * 
-
 
116739
       * @see DenominationType
-
 
116740
       */
-
 
116741
      DENOMINATION_TYPE((short)3, "denominationType");
-
 
116742
 
-
 
116743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
116744
 
-
 
116745
      static {
-
 
116746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
116747
          byName.put(field.getFieldName(), field);
-
 
116748
        }
-
 
116749
      }
-
 
116750
 
-
 
116751
      /**
-
 
116752
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
116753
       */
-
 
116754
      public static _Fields findByThriftId(int fieldId) {
-
 
116755
        switch(fieldId) {
-
 
116756
          case 1: // OPERATOR_ID
-
 
116757
            return OPERATOR_ID;
-
 
116758
          case 2: // CIRCLE_NAME
-
 
116759
            return CIRCLE_NAME;
-
 
116760
          case 3: // DENOMINATION_TYPE
-
 
116761
            return DENOMINATION_TYPE;
-
 
116762
          default:
-
 
116763
            return null;
-
 
116764
        }
-
 
116765
      }
-
 
116766
 
-
 
116767
      /**
-
 
116768
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
116769
       * if it is not found.
-
 
116770
       */
-
 
116771
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
116772
        _Fields fields = findByThriftId(fieldId);
-
 
116773
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
116774
        return fields;
-
 
116775
      }
-
 
116776
 
-
 
116777
      /**
-
 
116778
       * Find the _Fields constant that matches name, or null if its not found.
-
 
116779
       */
-
 
116780
      public static _Fields findByName(String name) {
-
 
116781
        return byName.get(name);
-
 
116782
      }
-
 
116783
 
-
 
116784
      private final short _thriftId;
-
 
116785
      private final String _fieldName;
-
 
116786
 
-
 
116787
      _Fields(short thriftId, String fieldName) {
-
 
116788
        _thriftId = thriftId;
-
 
116789
        _fieldName = fieldName;
-
 
116790
      }
-
 
116791
 
-
 
116792
      public short getThriftFieldId() {
-
 
116793
        return _thriftId;
-
 
116794
      }
-
 
116795
 
-
 
116796
      public String getFieldName() {
-
 
116797
        return _fieldName;
-
 
116798
      }
-
 
116799
    }
-
 
116800
 
-
 
116801
    // isset id assignments
-
 
116802
    private static final int __OPERATORID_ISSET_ID = 0;
-
 
116803
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
116804
 
-
 
116805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
116806
    static {
-
 
116807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116808
      tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
116810
      tmpMap.put(_Fields.CIRCLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("circleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
116812
      tmpMap.put(_Fields.DENOMINATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("denominationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116813
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DenominationType.class)));
-
 
116814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
116815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeDenominations_args.class, metaDataMap);
-
 
116816
    }
-
 
116817
 
-
 
116818
    public getRechargeDenominations_args() {
-
 
116819
    }
-
 
116820
 
-
 
116821
    public getRechargeDenominations_args(
-
 
116822
      long operatorId,
-
 
116823
      String circleName,
-
 
116824
      DenominationType denominationType)
-
 
116825
    {
-
 
116826
      this();
-
 
116827
      this.operatorId = operatorId;
-
 
116828
      setOperatorIdIsSet(true);
-
 
116829
      this.circleName = circleName;
-
 
116830
      this.denominationType = denominationType;
-
 
116831
    }
-
 
116832
 
-
 
116833
    /**
-
 
116834
     * Performs a deep copy on <i>other</i>.
-
 
116835
     */
-
 
116836
    public getRechargeDenominations_args(getRechargeDenominations_args other) {
-
 
116837
      __isset_bit_vector.clear();
-
 
116838
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
116839
      this.operatorId = other.operatorId;
-
 
116840
      if (other.isSetCircleName()) {
-
 
116841
        this.circleName = other.circleName;
-
 
116842
      }
-
 
116843
      if (other.isSetDenominationType()) {
-
 
116844
        this.denominationType = other.denominationType;
-
 
116845
      }
-
 
116846
    }
-
 
116847
 
-
 
116848
    public getRechargeDenominations_args deepCopy() {
-
 
116849
      return new getRechargeDenominations_args(this);
-
 
116850
    }
-
 
116851
 
-
 
116852
    @Override
-
 
116853
    public void clear() {
-
 
116854
      setOperatorIdIsSet(false);
-
 
116855
      this.operatorId = 0;
-
 
116856
      this.circleName = null;
-
 
116857
      this.denominationType = null;
-
 
116858
    }
-
 
116859
 
-
 
116860
    public long getOperatorId() {
-
 
116861
      return this.operatorId;
-
 
116862
    }
-
 
116863
 
-
 
116864
    public void setOperatorId(long operatorId) {
-
 
116865
      this.operatorId = operatorId;
-
 
116866
      setOperatorIdIsSet(true);
-
 
116867
    }
-
 
116868
 
-
 
116869
    public void unsetOperatorId() {
-
 
116870
      __isset_bit_vector.clear(__OPERATORID_ISSET_ID);
-
 
116871
    }
-
 
116872
 
-
 
116873
    /** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
-
 
116874
    public boolean isSetOperatorId() {
-
 
116875
      return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
-
 
116876
    }
-
 
116877
 
-
 
116878
    public void setOperatorIdIsSet(boolean value) {
-
 
116879
      __isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
-
 
116880
    }
-
 
116881
 
-
 
116882
    public String getCircleName() {
-
 
116883
      return this.circleName;
-
 
116884
    }
-
 
116885
 
-
 
116886
    public void setCircleName(String circleName) {
-
 
116887
      this.circleName = circleName;
-
 
116888
    }
-
 
116889
 
-
 
116890
    public void unsetCircleName() {
-
 
116891
      this.circleName = null;
-
 
116892
    }
-
 
116893
 
-
 
116894
    /** Returns true if field circleName is set (has been assigned a value) and false otherwise */
-
 
116895
    public boolean isSetCircleName() {
-
 
116896
      return this.circleName != null;
-
 
116897
    }
-
 
116898
 
-
 
116899
    public void setCircleNameIsSet(boolean value) {
-
 
116900
      if (!value) {
-
 
116901
        this.circleName = null;
-
 
116902
      }
-
 
116903
    }
-
 
116904
 
-
 
116905
    /**
-
 
116906
     * 
-
 
116907
     * @see DenominationType
-
 
116908
     */
-
 
116909
    public DenominationType getDenominationType() {
-
 
116910
      return this.denominationType;
-
 
116911
    }
-
 
116912
 
-
 
116913
    /**
-
 
116914
     * 
-
 
116915
     * @see DenominationType
-
 
116916
     */
-
 
116917
    public void setDenominationType(DenominationType denominationType) {
-
 
116918
      this.denominationType = denominationType;
-
 
116919
    }
-
 
116920
 
-
 
116921
    public void unsetDenominationType() {
-
 
116922
      this.denominationType = null;
-
 
116923
    }
-
 
116924
 
-
 
116925
    /** Returns true if field denominationType is set (has been assigned a value) and false otherwise */
-
 
116926
    public boolean isSetDenominationType() {
-
 
116927
      return this.denominationType != null;
-
 
116928
    }
-
 
116929
 
-
 
116930
    public void setDenominationTypeIsSet(boolean value) {
-
 
116931
      if (!value) {
-
 
116932
        this.denominationType = null;
-
 
116933
      }
-
 
116934
    }
-
 
116935
 
-
 
116936
    public void setFieldValue(_Fields field, Object value) {
-
 
116937
      switch (field) {
-
 
116938
      case OPERATOR_ID:
-
 
116939
        if (value == null) {
-
 
116940
          unsetOperatorId();
-
 
116941
        } else {
-
 
116942
          setOperatorId((Long)value);
-
 
116943
        }
-
 
116944
        break;
-
 
116945
 
-
 
116946
      case CIRCLE_NAME:
-
 
116947
        if (value == null) {
-
 
116948
          unsetCircleName();
-
 
116949
        } else {
-
 
116950
          setCircleName((String)value);
-
 
116951
        }
-
 
116952
        break;
-
 
116953
 
-
 
116954
      case DENOMINATION_TYPE:
-
 
116955
        if (value == null) {
-
 
116956
          unsetDenominationType();
-
 
116957
        } else {
-
 
116958
          setDenominationType((DenominationType)value);
-
 
116959
        }
-
 
116960
        break;
-
 
116961
 
-
 
116962
      }
-
 
116963
    }
-
 
116964
 
-
 
116965
    public Object getFieldValue(_Fields field) {
-
 
116966
      switch (field) {
-
 
116967
      case OPERATOR_ID:
-
 
116968
        return Long.valueOf(getOperatorId());
-
 
116969
 
-
 
116970
      case CIRCLE_NAME:
-
 
116971
        return getCircleName();
-
 
116972
 
-
 
116973
      case DENOMINATION_TYPE:
-
 
116974
        return getDenominationType();
-
 
116975
 
-
 
116976
      }
-
 
116977
      throw new IllegalStateException();
-
 
116978
    }
-
 
116979
 
-
 
116980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
116981
    public boolean isSet(_Fields field) {
-
 
116982
      if (field == null) {
-
 
116983
        throw new IllegalArgumentException();
-
 
116984
      }
-
 
116985
 
-
 
116986
      switch (field) {
-
 
116987
      case OPERATOR_ID:
-
 
116988
        return isSetOperatorId();
-
 
116989
      case CIRCLE_NAME:
-
 
116990
        return isSetCircleName();
-
 
116991
      case DENOMINATION_TYPE:
-
 
116992
        return isSetDenominationType();
-
 
116993
      }
-
 
116994
      throw new IllegalStateException();
-
 
116995
    }
-
 
116996
 
-
 
116997
    @Override
-
 
116998
    public boolean equals(Object that) {
-
 
116999
      if (that == null)
-
 
117000
        return false;
-
 
117001
      if (that instanceof getRechargeDenominations_args)
-
 
117002
        return this.equals((getRechargeDenominations_args)that);
-
 
117003
      return false;
-
 
117004
    }
-
 
117005
 
-
 
117006
    public boolean equals(getRechargeDenominations_args that) {
-
 
117007
      if (that == null)
-
 
117008
        return false;
-
 
117009
 
-
 
117010
      boolean this_present_operatorId = true;
-
 
117011
      boolean that_present_operatorId = true;
-
 
117012
      if (this_present_operatorId || that_present_operatorId) {
-
 
117013
        if (!(this_present_operatorId && that_present_operatorId))
-
 
117014
          return false;
-
 
117015
        if (this.operatorId != that.operatorId)
-
 
117016
          return false;
-
 
117017
      }
-
 
117018
 
-
 
117019
      boolean this_present_circleName = true && this.isSetCircleName();
-
 
117020
      boolean that_present_circleName = true && that.isSetCircleName();
-
 
117021
      if (this_present_circleName || that_present_circleName) {
-
 
117022
        if (!(this_present_circleName && that_present_circleName))
-
 
117023
          return false;
-
 
117024
        if (!this.circleName.equals(that.circleName))
-
 
117025
          return false;
-
 
117026
      }
-
 
117027
 
-
 
117028
      boolean this_present_denominationType = true && this.isSetDenominationType();
-
 
117029
      boolean that_present_denominationType = true && that.isSetDenominationType();
-
 
117030
      if (this_present_denominationType || that_present_denominationType) {
-
 
117031
        if (!(this_present_denominationType && that_present_denominationType))
-
 
117032
          return false;
-
 
117033
        if (!this.denominationType.equals(that.denominationType))
-
 
117034
          return false;
-
 
117035
      }
-
 
117036
 
-
 
117037
      return true;
-
 
117038
    }
-
 
117039
 
-
 
117040
    @Override
-
 
117041
    public int hashCode() {
-
 
117042
      return 0;
-
 
117043
    }
-
 
117044
 
-
 
117045
    public int compareTo(getRechargeDenominations_args other) {
-
 
117046
      if (!getClass().equals(other.getClass())) {
-
 
117047
        return getClass().getName().compareTo(other.getClass().getName());
-
 
117048
      }
-
 
117049
 
-
 
117050
      int lastComparison = 0;
-
 
117051
      getRechargeDenominations_args typedOther = (getRechargeDenominations_args)other;
-
 
117052
 
-
 
117053
      lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
-
 
117054
      if (lastComparison != 0) {
-
 
117055
        return lastComparison;
-
 
117056
      }
-
 
117057
      if (isSetOperatorId()) {
-
 
117058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
-
 
117059
        if (lastComparison != 0) {
-
 
117060
          return lastComparison;
-
 
117061
        }
-
 
117062
      }
-
 
117063
      lastComparison = Boolean.valueOf(isSetCircleName()).compareTo(typedOther.isSetCircleName());
-
 
117064
      if (lastComparison != 0) {
-
 
117065
        return lastComparison;
-
 
117066
      }
-
 
117067
      if (isSetCircleName()) {
-
 
117068
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleName, typedOther.circleName);
-
 
117069
        if (lastComparison != 0) {
-
 
117070
          return lastComparison;
-
 
117071
        }
-
 
117072
      }
-
 
117073
      lastComparison = Boolean.valueOf(isSetDenominationType()).compareTo(typedOther.isSetDenominationType());
-
 
117074
      if (lastComparison != 0) {
-
 
117075
        return lastComparison;
-
 
117076
      }
-
 
117077
      if (isSetDenominationType()) {
-
 
117078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.denominationType, typedOther.denominationType);
-
 
117079
        if (lastComparison != 0) {
-
 
117080
          return lastComparison;
-
 
117081
        }
-
 
117082
      }
-
 
117083
      return 0;
-
 
117084
    }
-
 
117085
 
-
 
117086
    public _Fields fieldForId(int fieldId) {
-
 
117087
      return _Fields.findByThriftId(fieldId);
-
 
117088
    }
-
 
117089
 
-
 
117090
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
117091
      org.apache.thrift.protocol.TField field;
-
 
117092
      iprot.readStructBegin();
-
 
117093
      while (true)
-
 
117094
      {
-
 
117095
        field = iprot.readFieldBegin();
-
 
117096
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
117097
          break;
-
 
117098
        }
-
 
117099
        switch (field.id) {
-
 
117100
          case 1: // OPERATOR_ID
-
 
117101
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
117102
              this.operatorId = iprot.readI64();
-
 
117103
              setOperatorIdIsSet(true);
-
 
117104
            } else { 
-
 
117105
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117106
            }
-
 
117107
            break;
-
 
117108
          case 2: // CIRCLE_NAME
-
 
117109
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
117110
              this.circleName = iprot.readString();
-
 
117111
            } else { 
-
 
117112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117113
            }
-
 
117114
            break;
-
 
117115
          case 3: // DENOMINATION_TYPE
-
 
117116
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
117117
              this.denominationType = DenominationType.findByValue(iprot.readI32());
-
 
117118
            } else { 
-
 
117119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117120
            }
-
 
117121
            break;
-
 
117122
          default:
-
 
117123
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117124
        }
-
 
117125
        iprot.readFieldEnd();
-
 
117126
      }
-
 
117127
      iprot.readStructEnd();
-
 
117128
      validate();
-
 
117129
    }
-
 
117130
 
-
 
117131
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
117132
      validate();
-
 
117133
 
-
 
117134
      oprot.writeStructBegin(STRUCT_DESC);
-
 
117135
      oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
-
 
117136
      oprot.writeI64(this.operatorId);
-
 
117137
      oprot.writeFieldEnd();
-
 
117138
      if (this.circleName != null) {
-
 
117139
        oprot.writeFieldBegin(CIRCLE_NAME_FIELD_DESC);
-
 
117140
        oprot.writeString(this.circleName);
-
 
117141
        oprot.writeFieldEnd();
-
 
117142
      }
-
 
117143
      if (this.denominationType != null) {
-
 
117144
        oprot.writeFieldBegin(DENOMINATION_TYPE_FIELD_DESC);
-
 
117145
        oprot.writeI32(this.denominationType.getValue());
-
 
117146
        oprot.writeFieldEnd();
-
 
117147
      }
-
 
117148
      oprot.writeFieldStop();
-
 
117149
      oprot.writeStructEnd();
-
 
117150
    }
-
 
117151
 
-
 
117152
    @Override
-
 
117153
    public String toString() {
-
 
117154
      StringBuilder sb = new StringBuilder("getRechargeDenominations_args(");
-
 
117155
      boolean first = true;
-
 
117156
 
-
 
117157
      sb.append("operatorId:");
-
 
117158
      sb.append(this.operatorId);
-
 
117159
      first = false;
-
 
117160
      if (!first) sb.append(", ");
-
 
117161
      sb.append("circleName:");
-
 
117162
      if (this.circleName == null) {
-
 
117163
        sb.append("null");
-
 
117164
      } else {
-
 
117165
        sb.append(this.circleName);
-
 
117166
      }
-
 
117167
      first = false;
-
 
117168
      if (!first) sb.append(", ");
-
 
117169
      sb.append("denominationType:");
-
 
117170
      if (this.denominationType == null) {
-
 
117171
        sb.append("null");
-
 
117172
      } else {
-
 
117173
        sb.append(this.denominationType);
-
 
117174
      }
-
 
117175
      first = false;
-
 
117176
      sb.append(")");
-
 
117177
      return sb.toString();
-
 
117178
    }
-
 
117179
 
-
 
117180
    public void validate() throws org.apache.thrift.TException {
-
 
117181
      // check for required fields
-
 
117182
    }
-
 
117183
 
-
 
117184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
117185
      try {
-
 
117186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
117187
      } catch (org.apache.thrift.TException te) {
-
 
117188
        throw new java.io.IOException(te);
-
 
117189
      }
-
 
117190
    }
-
 
117191
 
-
 
117192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
117193
      try {
-
 
117194
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
117195
        __isset_bit_vector = new BitSet(1);
-
 
117196
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
117197
      } catch (org.apache.thrift.TException te) {
-
 
117198
        throw new java.io.IOException(te);
-
 
117199
      }
-
 
117200
    }
-
 
117201
 
-
 
117202
  }
-
 
117203
 
-
 
117204
  public static class getRechargeDenominations_result implements org.apache.thrift.TBase<getRechargeDenominations_result, getRechargeDenominations_result._Fields>, java.io.Serializable, Cloneable   {
-
 
117205
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeDenominations_result");
-
 
117206
 
-
 
117207
    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);
-
 
117208
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
117209
 
-
 
117210
    private List<RechargeDenomination> success; // required
-
 
117211
    private TransactionServiceException ex; // required
-
 
117212
 
-
 
117213
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
117214
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
117215
      SUCCESS((short)0, "success"),
-
 
117216
      EX((short)1, "ex");
-
 
117217
 
-
 
117218
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
117219
 
-
 
117220
      static {
-
 
117221
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
117222
          byName.put(field.getFieldName(), field);
-
 
117223
        }
-
 
117224
      }
-
 
117225
 
-
 
117226
      /**
-
 
117227
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
117228
       */
-
 
117229
      public static _Fields findByThriftId(int fieldId) {
-
 
117230
        switch(fieldId) {
-
 
117231
          case 0: // SUCCESS
-
 
117232
            return SUCCESS;
-
 
117233
          case 1: // EX
-
 
117234
            return EX;
-
 
117235
          default:
-
 
117236
            return null;
-
 
117237
        }
-
 
117238
      }
-
 
117239
 
-
 
117240
      /**
-
 
117241
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
117242
       * if it is not found.
-
 
117243
       */
-
 
117244
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
117245
        _Fields fields = findByThriftId(fieldId);
-
 
117246
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
117247
        return fields;
-
 
117248
      }
-
 
117249
 
-
 
117250
      /**
-
 
117251
       * Find the _Fields constant that matches name, or null if its not found.
-
 
117252
       */
-
 
117253
      public static _Fields findByName(String name) {
-
 
117254
        return byName.get(name);
-
 
117255
      }
-
 
117256
 
-
 
117257
      private final short _thriftId;
-
 
117258
      private final String _fieldName;
-
 
117259
 
-
 
117260
      _Fields(short thriftId, String fieldName) {
-
 
117261
        _thriftId = thriftId;
-
 
117262
        _fieldName = fieldName;
-
 
117263
      }
-
 
117264
 
-
 
117265
      public short getThriftFieldId() {
-
 
117266
        return _thriftId;
-
 
117267
      }
-
 
117268
 
-
 
117269
      public String getFieldName() {
-
 
117270
        return _fieldName;
-
 
117271
      }
-
 
117272
    }
-
 
117273
 
-
 
117274
    // isset id assignments
-
 
117275
 
-
 
117276
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
117277
    static {
-
 
117278
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
117279
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117280
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
117281
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeDenomination.class))));
-
 
117282
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117283
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
117284
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
117285
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeDenominations_result.class, metaDataMap);
-
 
117286
    }
-
 
117287
 
-
 
117288
    public getRechargeDenominations_result() {
-
 
117289
    }
-
 
117290
 
-
 
117291
    public getRechargeDenominations_result(
-
 
117292
      List<RechargeDenomination> success,
-
 
117293
      TransactionServiceException ex)
-
 
117294
    {
-
 
117295
      this();
-
 
117296
      this.success = success;
-
 
117297
      this.ex = ex;
-
 
117298
    }
-
 
117299
 
-
 
117300
    /**
-
 
117301
     * Performs a deep copy on <i>other</i>.
-
 
117302
     */
-
 
117303
    public getRechargeDenominations_result(getRechargeDenominations_result other) {
-
 
117304
      if (other.isSetSuccess()) {
-
 
117305
        List<RechargeDenomination> __this__success = new ArrayList<RechargeDenomination>();
-
 
117306
        for (RechargeDenomination other_element : other.success) {
-
 
117307
          __this__success.add(new RechargeDenomination(other_element));
-
 
117308
        }
-
 
117309
        this.success = __this__success;
-
 
117310
      }
-
 
117311
      if (other.isSetEx()) {
-
 
117312
        this.ex = new TransactionServiceException(other.ex);
-
 
117313
      }
-
 
117314
    }
-
 
117315
 
-
 
117316
    public getRechargeDenominations_result deepCopy() {
-
 
117317
      return new getRechargeDenominations_result(this);
-
 
117318
    }
-
 
117319
 
-
 
117320
    @Override
-
 
117321
    public void clear() {
-
 
117322
      this.success = null;
-
 
117323
      this.ex = null;
-
 
117324
    }
-
 
117325
 
-
 
117326
    public int getSuccessSize() {
-
 
117327
      return (this.success == null) ? 0 : this.success.size();
-
 
117328
    }
-
 
117329
 
-
 
117330
    public java.util.Iterator<RechargeDenomination> getSuccessIterator() {
-
 
117331
      return (this.success == null) ? null : this.success.iterator();
-
 
117332
    }
-
 
117333
 
-
 
117334
    public void addToSuccess(RechargeDenomination elem) {
-
 
117335
      if (this.success == null) {
-
 
117336
        this.success = new ArrayList<RechargeDenomination>();
-
 
117337
      }
-
 
117338
      this.success.add(elem);
-
 
117339
    }
-
 
117340
 
-
 
117341
    public List<RechargeDenomination> getSuccess() {
-
 
117342
      return this.success;
-
 
117343
    }
-
 
117344
 
-
 
117345
    public void setSuccess(List<RechargeDenomination> success) {
-
 
117346
      this.success = success;
-
 
117347
    }
-
 
117348
 
-
 
117349
    public void unsetSuccess() {
-
 
117350
      this.success = null;
-
 
117351
    }
-
 
117352
 
-
 
117353
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
117354
    public boolean isSetSuccess() {
-
 
117355
      return this.success != null;
-
 
117356
    }
-
 
117357
 
-
 
117358
    public void setSuccessIsSet(boolean value) {
-
 
117359
      if (!value) {
-
 
117360
        this.success = null;
-
 
117361
      }
-
 
117362
    }
-
 
117363
 
-
 
117364
    public TransactionServiceException getEx() {
-
 
117365
      return this.ex;
-
 
117366
    }
-
 
117367
 
-
 
117368
    public void setEx(TransactionServiceException ex) {
-
 
117369
      this.ex = ex;
-
 
117370
    }
-
 
117371
 
-
 
117372
    public void unsetEx() {
-
 
117373
      this.ex = null;
-
 
117374
    }
-
 
117375
 
-
 
117376
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
117377
    public boolean isSetEx() {
-
 
117378
      return this.ex != null;
-
 
117379
    }
-
 
117380
 
-
 
117381
    public void setExIsSet(boolean value) {
-
 
117382
      if (!value) {
-
 
117383
        this.ex = null;
-
 
117384
      }
-
 
117385
    }
-
 
117386
 
-
 
117387
    public void setFieldValue(_Fields field, Object value) {
-
 
117388
      switch (field) {
-
 
117389
      case SUCCESS:
-
 
117390
        if (value == null) {
-
 
117391
          unsetSuccess();
-
 
117392
        } else {
-
 
117393
          setSuccess((List<RechargeDenomination>)value);
-
 
117394
        }
-
 
117395
        break;
-
 
117396
 
-
 
117397
      case EX:
-
 
117398
        if (value == null) {
-
 
117399
          unsetEx();
-
 
117400
        } else {
-
 
117401
          setEx((TransactionServiceException)value);
-
 
117402
        }
-
 
117403
        break;
-
 
117404
 
-
 
117405
      }
-
 
117406
    }
-
 
117407
 
-
 
117408
    public Object getFieldValue(_Fields field) {
-
 
117409
      switch (field) {
-
 
117410
      case SUCCESS:
-
 
117411
        return getSuccess();
-
 
117412
 
-
 
117413
      case EX:
-
 
117414
        return getEx();
-
 
117415
 
-
 
117416
      }
-
 
117417
      throw new IllegalStateException();
-
 
117418
    }
-
 
117419
 
-
 
117420
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
117421
    public boolean isSet(_Fields field) {
-
 
117422
      if (field == null) {
-
 
117423
        throw new IllegalArgumentException();
-
 
117424
      }
-
 
117425
 
-
 
117426
      switch (field) {
-
 
117427
      case SUCCESS:
-
 
117428
        return isSetSuccess();
-
 
117429
      case EX:
-
 
117430
        return isSetEx();
-
 
117431
      }
-
 
117432
      throw new IllegalStateException();
-
 
117433
    }
-
 
117434
 
-
 
117435
    @Override
-
 
117436
    public boolean equals(Object that) {
-
 
117437
      if (that == null)
-
 
117438
        return false;
-
 
117439
      if (that instanceof getRechargeDenominations_result)
-
 
117440
        return this.equals((getRechargeDenominations_result)that);
-
 
117441
      return false;
-
 
117442
    }
-
 
117443
 
-
 
117444
    public boolean equals(getRechargeDenominations_result that) {
-
 
117445
      if (that == null)
-
 
117446
        return false;
-
 
117447
 
-
 
117448
      boolean this_present_success = true && this.isSetSuccess();
-
 
117449
      boolean that_present_success = true && that.isSetSuccess();
-
 
117450
      if (this_present_success || that_present_success) {
-
 
117451
        if (!(this_present_success && that_present_success))
-
 
117452
          return false;
-
 
117453
        if (!this.success.equals(that.success))
-
 
117454
          return false;
-
 
117455
      }
-
 
117456
 
-
 
117457
      boolean this_present_ex = true && this.isSetEx();
-
 
117458
      boolean that_present_ex = true && that.isSetEx();
-
 
117459
      if (this_present_ex || that_present_ex) {
-
 
117460
        if (!(this_present_ex && that_present_ex))
-
 
117461
          return false;
-
 
117462
        if (!this.ex.equals(that.ex))
-
 
117463
          return false;
-
 
117464
      }
-
 
117465
 
-
 
117466
      return true;
-
 
117467
    }
-
 
117468
 
-
 
117469
    @Override
-
 
117470
    public int hashCode() {
-
 
117471
      return 0;
-
 
117472
    }
-
 
117473
 
-
 
117474
    public int compareTo(getRechargeDenominations_result other) {
-
 
117475
      if (!getClass().equals(other.getClass())) {
-
 
117476
        return getClass().getName().compareTo(other.getClass().getName());
-
 
117477
      }
-
 
117478
 
-
 
117479
      int lastComparison = 0;
-
 
117480
      getRechargeDenominations_result typedOther = (getRechargeDenominations_result)other;
-
 
117481
 
-
 
117482
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
117483
      if (lastComparison != 0) {
-
 
117484
        return lastComparison;
-
 
117485
      }
-
 
117486
      if (isSetSuccess()) {
-
 
117487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
117488
        if (lastComparison != 0) {
-
 
117489
          return lastComparison;
-
 
117490
        }
-
 
117491
      }
-
 
117492
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
117493
      if (lastComparison != 0) {
-
 
117494
        return lastComparison;
-
 
117495
      }
-
 
117496
      if (isSetEx()) {
-
 
117497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
117498
        if (lastComparison != 0) {
-
 
117499
          return lastComparison;
-
 
117500
        }
-
 
117501
      }
-
 
117502
      return 0;
-
 
117503
    }
-
 
117504
 
-
 
117505
    public _Fields fieldForId(int fieldId) {
-
 
117506
      return _Fields.findByThriftId(fieldId);
-
 
117507
    }
-
 
117508
 
-
 
117509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
117510
      org.apache.thrift.protocol.TField field;
-
 
117511
      iprot.readStructBegin();
-
 
117512
      while (true)
-
 
117513
      {
-
 
117514
        field = iprot.readFieldBegin();
-
 
117515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
117516
          break;
-
 
117517
        }
-
 
117518
        switch (field.id) {
-
 
117519
          case 0: // SUCCESS
-
 
117520
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
117521
              {
-
 
117522
                org.apache.thrift.protocol.TList _list397 = iprot.readListBegin();
-
 
117523
                this.success = new ArrayList<RechargeDenomination>(_list397.size);
-
 
117524
                for (int _i398 = 0; _i398 < _list397.size; ++_i398)
-
 
117525
                {
-
 
117526
                  RechargeDenomination _elem399; // required
-
 
117527
                  _elem399 = new RechargeDenomination();
-
 
117528
                  _elem399.read(iprot);
-
 
117529
                  this.success.add(_elem399);
-
 
117530
                }
-
 
117531
                iprot.readListEnd();
-
 
117532
              }
-
 
117533
            } else { 
-
 
117534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117535
            }
-
 
117536
            break;
-
 
117537
          case 1: // EX
-
 
117538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
117539
              this.ex = new TransactionServiceException();
-
 
117540
              this.ex.read(iprot);
-
 
117541
            } else { 
-
 
117542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117543
            }
-
 
117544
            break;
-
 
117545
          default:
-
 
117546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117547
        }
-
 
117548
        iprot.readFieldEnd();
-
 
117549
      }
-
 
117550
      iprot.readStructEnd();
-
 
117551
      validate();
-
 
117552
    }
-
 
117553
 
-
 
117554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
117555
      oprot.writeStructBegin(STRUCT_DESC);
-
 
117556
 
-
 
117557
      if (this.isSetSuccess()) {
-
 
117558
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
117559
        {
-
 
117560
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
117561
          for (RechargeDenomination _iter400 : this.success)
-
 
117562
          {
-
 
117563
            _iter400.write(oprot);
-
 
117564
          }
-
 
117565
          oprot.writeListEnd();
-
 
117566
        }
-
 
117567
        oprot.writeFieldEnd();
-
 
117568
      } else if (this.isSetEx()) {
-
 
117569
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
117570
        this.ex.write(oprot);
-
 
117571
        oprot.writeFieldEnd();
-
 
117572
      }
-
 
117573
      oprot.writeFieldStop();
-
 
117574
      oprot.writeStructEnd();
-
 
117575
    }
-
 
117576
 
-
 
117577
    @Override
-
 
117578
    public String toString() {
-
 
117579
      StringBuilder sb = new StringBuilder("getRechargeDenominations_result(");
-
 
117580
      boolean first = true;
-
 
117581
 
-
 
117582
      sb.append("success:");
-
 
117583
      if (this.success == null) {
-
 
117584
        sb.append("null");
-
 
117585
      } else {
-
 
117586
        sb.append(this.success);
-
 
117587
      }
-
 
117588
      first = false;
-
 
117589
      if (!first) sb.append(", ");
-
 
117590
      sb.append("ex:");
-
 
117591
      if (this.ex == null) {
-
 
117592
        sb.append("null");
-
 
117593
      } else {
-
 
117594
        sb.append(this.ex);
-
 
117595
      }
-
 
117596
      first = false;
-
 
117597
      sb.append(")");
-
 
117598
      return sb.toString();
-
 
117599
    }
116595
 
117600
 
116596
    public void validate() throws org.apache.thrift.TException {
117601
    public void validate() throws org.apache.thrift.TException {
116597
      // check for required fields
117602
      // check for required fields
116598
    }
117603
    }
116599
 
117604