Subversion Repositories SmartDukaan

Rev

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

Rev 6077 Rev 6094
Line 875... Line 875...
875
 
875
 
876
    public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException;
876
    public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException;
877
 
877
 
878
    public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
878
    public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
879
 
879
 
-
 
880
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
-
 
881
 
-
 
882
    public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
-
 
883
 
880
  }
884
  }
881
 
885
 
882
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
886
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
883
 
887
 
884
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
888
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1153... Line 1157...
1153
 
1157
 
1154
    public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
1158
    public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
1155
 
1159
 
1156
    public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
1160
    public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
1157
 
1161
 
-
 
1162
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
-
 
1163
 
-
 
1164
    public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
-
 
1165
 
1158
  }
1166
  }
1159
 
1167
 
1160
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1168
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1161
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1169
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1162
      public Factory() {}
1170
      public Factory() {}
Line 4643... Line 4651...
4643
        return result.success;
4651
        return result.success;
4644
      }
4652
      }
4645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviderForDevice failed: unknown result");
4653
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviderForDevice failed: unknown result");
4646
    }
4654
    }
4647
 
4655
 
-
 
4656
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException
-
 
4657
    {
-
 
4658
      send_getRechargeOrdersForDevice(deviceNumber);
-
 
4659
      return recv_getRechargeOrdersForDevice();
-
 
4660
    }
-
 
4661
 
-
 
4662
    public void send_getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException
-
 
4663
    {
-
 
4664
      getRechargeOrdersForDevice_args args = new getRechargeOrdersForDevice_args();
-
 
4665
      args.setDeviceNumber(deviceNumber);
-
 
4666
      sendBase("getRechargeOrdersForDevice", args);
-
 
4667
    }
-
 
4668
 
-
 
4669
    public List<RechargeOrder> recv_getRechargeOrdersForDevice() throws org.apache.thrift.TException
-
 
4670
    {
-
 
4671
      getRechargeOrdersForDevice_result result = new getRechargeOrdersForDevice_result();
-
 
4672
      receiveBase(result, "getRechargeOrdersForDevice");
-
 
4673
      if (result.isSetSuccess()) {
-
 
4674
        return result.success;
-
 
4675
      }
-
 
4676
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeOrdersForDevice failed: unknown result");
-
 
4677
    }
-
 
4678
 
-
 
4679
    public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException
-
 
4680
    {
-
 
4681
      send_addAmountToWallet(userId, orderId, amount);
-
 
4682
      recv_addAmountToWallet();
-
 
4683
    }
-
 
4684
 
-
 
4685
    public void send_addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException
-
 
4686
    {
-
 
4687
      addAmountToWallet_args args = new addAmountToWallet_args();
-
 
4688
      args.setUserId(userId);
-
 
4689
      args.setOrderId(orderId);
-
 
4690
      args.setAmount(amount);
-
 
4691
      sendBase("addAmountToWallet", args);
-
 
4692
    }
-
 
4693
 
-
 
4694
    public void recv_addAmountToWallet() throws org.apache.thrift.TException
-
 
4695
    {
-
 
4696
      addAmountToWallet_result result = new addAmountToWallet_result();
-
 
4697
      receiveBase(result, "addAmountToWallet");
-
 
4698
      return;
-
 
4699
    }
-
 
4700
 
4648
  }
4701
  }
4649
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4702
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4650
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4703
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4651
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4704
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4652
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4705
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9447... Line 9500...
9447
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9500
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9448
        return (new Client(prot)).recv_getServiceProviderForDevice();
9501
        return (new Client(prot)).recv_getServiceProviderForDevice();
9449
      }
9502
      }
9450
    }
9503
    }
9451
 
9504
 
-
 
9505
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException {
-
 
9506
      checkReady();
-
 
9507
      getRechargeOrdersForDevice_call method_call = new getRechargeOrdersForDevice_call(deviceNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
9508
      this.___currentMethod = method_call;
-
 
9509
      ___manager.call(method_call);
-
 
9510
    }
-
 
9511
 
-
 
9512
    public static class getRechargeOrdersForDevice_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9513
      private String deviceNumber;
-
 
9514
      public getRechargeOrdersForDevice_call(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getRechargeOrdersForDevice_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 {
-
 
9515
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9516
        this.deviceNumber = deviceNumber;
-
 
9517
      }
-
 
9518
 
-
 
9519
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9520
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeOrdersForDevice", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9521
        getRechargeOrdersForDevice_args args = new getRechargeOrdersForDevice_args();
-
 
9522
        args.setDeviceNumber(deviceNumber);
-
 
9523
        args.write(prot);
-
 
9524
        prot.writeMessageEnd();
-
 
9525
      }
-
 
9526
 
-
 
9527
      public List<RechargeOrder> getResult() throws org.apache.thrift.TException {
-
 
9528
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9529
          throw new IllegalStateException("Method call not finished!");
-
 
9530
        }
-
 
9531
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9532
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9533
        return (new Client(prot)).recv_getRechargeOrdersForDevice();
-
 
9534
      }
-
 
9535
    }
-
 
9536
 
-
 
9537
    public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException {
-
 
9538
      checkReady();
-
 
9539
      addAmountToWallet_call method_call = new addAmountToWallet_call(userId, orderId, amount, resultHandler, this, ___protocolFactory, ___transport);
-
 
9540
      this.___currentMethod = method_call;
-
 
9541
      ___manager.call(method_call);
-
 
9542
    }
-
 
9543
 
-
 
9544
    public static class addAmountToWallet_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9545
      private long userId;
-
 
9546
      private long orderId;
-
 
9547
      private long amount;
-
 
9548
      public addAmountToWallet_call(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<addAmountToWallet_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 {
-
 
9549
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9550
        this.userId = userId;
-
 
9551
        this.orderId = orderId;
-
 
9552
        this.amount = amount;
-
 
9553
      }
-
 
9554
 
-
 
9555
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9556
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAmountToWallet", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9557
        addAmountToWallet_args args = new addAmountToWallet_args();
-
 
9558
        args.setUserId(userId);
-
 
9559
        args.setOrderId(orderId);
-
 
9560
        args.setAmount(amount);
-
 
9561
        args.write(prot);
-
 
9562
        prot.writeMessageEnd();
-
 
9563
      }
-
 
9564
 
-
 
9565
      public void getResult() throws org.apache.thrift.TException {
-
 
9566
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9567
          throw new IllegalStateException("Method call not finished!");
-
 
9568
        }
-
 
9569
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9570
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9571
        (new Client(prot)).recv_addAmountToWallet();
-
 
9572
      }
-
 
9573
    }
-
 
9574
 
9452
  }
9575
  }
9453
 
9576
 
9454
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9577
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9455
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9578
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9456
    public Processor(I iface) {
9579
    public Processor(I iface) {
Line 9597... Line 9720...
9597
      processMap.put("getUserWallet", new getUserWallet());
9720
      processMap.put("getUserWallet", new getUserWallet());
9598
      processMap.put("getUserWalletHistory", new getUserWalletHistory());
9721
      processMap.put("getUserWalletHistory", new getUserWalletHistory());
9599
      processMap.put("getRechargeOrdersForTransaction", new getRechargeOrdersForTransaction());
9722
      processMap.put("getRechargeOrdersForTransaction", new getRechargeOrdersForTransaction());
9600
      processMap.put("getServiceProviders", new getServiceProviders());
9723
      processMap.put("getServiceProviders", new getServiceProviders());
9601
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
9724
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
-
 
9725
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
-
 
9726
      processMap.put("addAmountToWallet", new addAmountToWallet());
9602
      return processMap;
9727
      return processMap;
9603
    }
9728
    }
9604
 
9729
 
9605
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9730
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9606
      public createTransaction() {
9731
      public createTransaction() {
Line 12211... Line 12336...
12211
        result.setSuccessIsSet(true);
12336
        result.setSuccessIsSet(true);
12212
        return result;
12337
        return result;
12213
      }
12338
      }
12214
    }
12339
    }
12215
 
12340
 
-
 
12341
    private static class getRechargeOrdersForDevice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeOrdersForDevice_args> {
-
 
12342
      public getRechargeOrdersForDevice() {
-
 
12343
        super("getRechargeOrdersForDevice");
-
 
12344
      }
-
 
12345
 
-
 
12346
      protected getRechargeOrdersForDevice_args getEmptyArgsInstance() {
-
 
12347
        return new getRechargeOrdersForDevice_args();
-
 
12348
      }
-
 
12349
 
-
 
12350
      protected getRechargeOrdersForDevice_result getResult(I iface, getRechargeOrdersForDevice_args args) throws org.apache.thrift.TException {
-
 
12351
        getRechargeOrdersForDevice_result result = new getRechargeOrdersForDevice_result();
-
 
12352
        result.success = iface.getRechargeOrdersForDevice(args.deviceNumber);
-
 
12353
        return result;
-
 
12354
      }
-
 
12355
    }
-
 
12356
 
-
 
12357
    private static class addAmountToWallet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAmountToWallet_args> {
-
 
12358
      public addAmountToWallet() {
-
 
12359
        super("addAmountToWallet");
-
 
12360
      }
-
 
12361
 
-
 
12362
      protected addAmountToWallet_args getEmptyArgsInstance() {
-
 
12363
        return new addAmountToWallet_args();
-
 
12364
      }
-
 
12365
 
-
 
12366
      protected addAmountToWallet_result getResult(I iface, addAmountToWallet_args args) throws org.apache.thrift.TException {
-
 
12367
        addAmountToWallet_result result = new addAmountToWallet_result();
-
 
12368
        iface.addAmountToWallet(args.userId, args.orderId, args.amount);
-
 
12369
        return result;
-
 
12370
      }
-
 
12371
    }
-
 
12372
 
12216
  }
12373
  }
12217
 
12374
 
12218
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12375
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12220
 
12377
 
Line 56141... Line 56298...
56141
      }
56298
      }
56142
    }
56299
    }
56143
 
56300
 
56144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56301
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56145
      try {
56302
      try {
56146
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
56147
        __isset_bit_vector = new BitSet(1);
-
 
56148
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56303
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56149
      } catch (org.apache.thrift.TException te) {
56304
      } catch (org.apache.thrift.TException te) {
56150
        throw new java.io.IOException(te);
56305
        throw new java.io.IOException(te);
56151
      }
56306
      }
56152
    }
56307
    }
Line 60993... Line 61148...
60993
      }
61148
      }
60994
    }
61149
    }
60995
 
61150
 
60996
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60997
      try {
61152
      try {
60998
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
60999
        __isset_bit_vector = new BitSet(1);
-
 
61000
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61153
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61001
      } catch (org.apache.thrift.TException te) {
61154
      } catch (org.apache.thrift.TException te) {
61002
        throw new java.io.IOException(te);
61155
        throw new java.io.IOException(te);
61003
      }
61156
      }
61004
    }
61157
    }
Line 62426... Line 62579...
62426
      }
62579
      }
62427
    }
62580
    }
62428
 
62581
 
62429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62430
      try {
62583
      try {
62431
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62432
        __isset_bit_vector = new BitSet(1);
-
 
62433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62434
      } catch (org.apache.thrift.TException te) {
62585
      } catch (org.apache.thrift.TException te) {
62435
        throw new java.io.IOException(te);
62586
        throw new java.io.IOException(te);
62436
      }
62587
      }
62437
    }
62588
    }
Line 112330... Line 112481...
112330
      sb.append(")");
112481
      sb.append(")");
112331
      return sb.toString();
112482
      return sb.toString();
112332
    }
112483
    }
112333
 
112484
 
112334
    public void validate() throws org.apache.thrift.TException {
112485
    public void validate() throws org.apache.thrift.TException {
-
 
112486
      // check for required fields
-
 
112487
    }
-
 
112488
 
-
 
112489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
112490
      try {
-
 
112491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
112492
      } catch (org.apache.thrift.TException te) {
-
 
112493
        throw new java.io.IOException(te);
-
 
112494
      }
-
 
112495
    }
-
 
112496
 
-
 
112497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
112498
      try {
-
 
112499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
112500
      } catch (org.apache.thrift.TException te) {
-
 
112501
        throw new java.io.IOException(te);
-
 
112502
      }
-
 
112503
    }
-
 
112504
 
-
 
112505
  }
-
 
112506
 
-
 
112507
  public static class getRechargeOrdersForDevice_args implements org.apache.thrift.TBase<getRechargeOrdersForDevice_args, getRechargeOrdersForDevice_args._Fields>, java.io.Serializable, Cloneable   {
-
 
112508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeOrdersForDevice_args");
-
 
112509
 
-
 
112510
    private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
112511
 
-
 
112512
    private String deviceNumber; // required
-
 
112513
 
-
 
112514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
112515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
112516
      DEVICE_NUMBER((short)1, "deviceNumber");
-
 
112517
 
-
 
112518
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
112519
 
-
 
112520
      static {
-
 
112521
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
112522
          byName.put(field.getFieldName(), field);
-
 
112523
        }
-
 
112524
      }
-
 
112525
 
-
 
112526
      /**
-
 
112527
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
112528
       */
-
 
112529
      public static _Fields findByThriftId(int fieldId) {
-
 
112530
        switch(fieldId) {
-
 
112531
          case 1: // DEVICE_NUMBER
-
 
112532
            return DEVICE_NUMBER;
-
 
112533
          default:
-
 
112534
            return null;
-
 
112535
        }
-
 
112536
      }
-
 
112537
 
-
 
112538
      /**
-
 
112539
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
112540
       * if it is not found.
-
 
112541
       */
-
 
112542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
112543
        _Fields fields = findByThriftId(fieldId);
-
 
112544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
112545
        return fields;
-
 
112546
      }
-
 
112547
 
-
 
112548
      /**
-
 
112549
       * Find the _Fields constant that matches name, or null if its not found.
-
 
112550
       */
-
 
112551
      public static _Fields findByName(String name) {
-
 
112552
        return byName.get(name);
-
 
112553
      }
-
 
112554
 
-
 
112555
      private final short _thriftId;
-
 
112556
      private final String _fieldName;
-
 
112557
 
-
 
112558
      _Fields(short thriftId, String fieldName) {
-
 
112559
        _thriftId = thriftId;
-
 
112560
        _fieldName = fieldName;
-
 
112561
      }
-
 
112562
 
-
 
112563
      public short getThriftFieldId() {
-
 
112564
        return _thriftId;
-
 
112565
      }
-
 
112566
 
-
 
112567
      public String getFieldName() {
-
 
112568
        return _fieldName;
-
 
112569
      }
-
 
112570
    }
-
 
112571
 
-
 
112572
    // isset id assignments
-
 
112573
 
-
 
112574
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
112575
    static {
-
 
112576
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
112577
      tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
112579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
112580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeOrdersForDevice_args.class, metaDataMap);
-
 
112581
    }
-
 
112582
 
-
 
112583
    public getRechargeOrdersForDevice_args() {
-
 
112584
    }
-
 
112585
 
-
 
112586
    public getRechargeOrdersForDevice_args(
-
 
112587
      String deviceNumber)
-
 
112588
    {
-
 
112589
      this();
-
 
112590
      this.deviceNumber = deviceNumber;
-
 
112591
    }
-
 
112592
 
-
 
112593
    /**
-
 
112594
     * Performs a deep copy on <i>other</i>.
-
 
112595
     */
-
 
112596
    public getRechargeOrdersForDevice_args(getRechargeOrdersForDevice_args other) {
-
 
112597
      if (other.isSetDeviceNumber()) {
-
 
112598
        this.deviceNumber = other.deviceNumber;
-
 
112599
      }
-
 
112600
    }
-
 
112601
 
-
 
112602
    public getRechargeOrdersForDevice_args deepCopy() {
-
 
112603
      return new getRechargeOrdersForDevice_args(this);
-
 
112604
    }
-
 
112605
 
-
 
112606
    @Override
-
 
112607
    public void clear() {
-
 
112608
      this.deviceNumber = null;
-
 
112609
    }
-
 
112610
 
-
 
112611
    public String getDeviceNumber() {
-
 
112612
      return this.deviceNumber;
-
 
112613
    }
-
 
112614
 
-
 
112615
    public void setDeviceNumber(String deviceNumber) {
-
 
112616
      this.deviceNumber = deviceNumber;
-
 
112617
    }
-
 
112618
 
-
 
112619
    public void unsetDeviceNumber() {
-
 
112620
      this.deviceNumber = null;
-
 
112621
    }
-
 
112622
 
-
 
112623
    /** Returns true if field deviceNumber is set (has been assigned a value) and false otherwise */
-
 
112624
    public boolean isSetDeviceNumber() {
-
 
112625
      return this.deviceNumber != null;
-
 
112626
    }
-
 
112627
 
-
 
112628
    public void setDeviceNumberIsSet(boolean value) {
-
 
112629
      if (!value) {
-
 
112630
        this.deviceNumber = null;
-
 
112631
      }
-
 
112632
    }
-
 
112633
 
-
 
112634
    public void setFieldValue(_Fields field, Object value) {
-
 
112635
      switch (field) {
-
 
112636
      case DEVICE_NUMBER:
-
 
112637
        if (value == null) {
-
 
112638
          unsetDeviceNumber();
-
 
112639
        } else {
-
 
112640
          setDeviceNumber((String)value);
-
 
112641
        }
-
 
112642
        break;
-
 
112643
 
-
 
112644
      }
-
 
112645
    }
-
 
112646
 
-
 
112647
    public Object getFieldValue(_Fields field) {
-
 
112648
      switch (field) {
-
 
112649
      case DEVICE_NUMBER:
-
 
112650
        return getDeviceNumber();
-
 
112651
 
-
 
112652
      }
-
 
112653
      throw new IllegalStateException();
-
 
112654
    }
-
 
112655
 
-
 
112656
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
112657
    public boolean isSet(_Fields field) {
-
 
112658
      if (field == null) {
-
 
112659
        throw new IllegalArgumentException();
-
 
112660
      }
-
 
112661
 
-
 
112662
      switch (field) {
-
 
112663
      case DEVICE_NUMBER:
-
 
112664
        return isSetDeviceNumber();
-
 
112665
      }
-
 
112666
      throw new IllegalStateException();
-
 
112667
    }
-
 
112668
 
-
 
112669
    @Override
-
 
112670
    public boolean equals(Object that) {
-
 
112671
      if (that == null)
-
 
112672
        return false;
-
 
112673
      if (that instanceof getRechargeOrdersForDevice_args)
-
 
112674
        return this.equals((getRechargeOrdersForDevice_args)that);
-
 
112675
      return false;
-
 
112676
    }
-
 
112677
 
-
 
112678
    public boolean equals(getRechargeOrdersForDevice_args that) {
-
 
112679
      if (that == null)
-
 
112680
        return false;
-
 
112681
 
-
 
112682
      boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
-
 
112683
      boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
-
 
112684
      if (this_present_deviceNumber || that_present_deviceNumber) {
-
 
112685
        if (!(this_present_deviceNumber && that_present_deviceNumber))
-
 
112686
          return false;
-
 
112687
        if (!this.deviceNumber.equals(that.deviceNumber))
-
 
112688
          return false;
-
 
112689
      }
-
 
112690
 
-
 
112691
      return true;
-
 
112692
    }
-
 
112693
 
-
 
112694
    @Override
-
 
112695
    public int hashCode() {
-
 
112696
      return 0;
-
 
112697
    }
-
 
112698
 
-
 
112699
    public int compareTo(getRechargeOrdersForDevice_args other) {
-
 
112700
      if (!getClass().equals(other.getClass())) {
-
 
112701
        return getClass().getName().compareTo(other.getClass().getName());
-
 
112702
      }
-
 
112703
 
-
 
112704
      int lastComparison = 0;
-
 
112705
      getRechargeOrdersForDevice_args typedOther = (getRechargeOrdersForDevice_args)other;
-
 
112706
 
-
 
112707
      lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
-
 
112708
      if (lastComparison != 0) {
-
 
112709
        return lastComparison;
-
 
112710
      }
-
 
112711
      if (isSetDeviceNumber()) {
-
 
112712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNumber, typedOther.deviceNumber);
-
 
112713
        if (lastComparison != 0) {
-
 
112714
          return lastComparison;
-
 
112715
        }
-
 
112716
      }
-
 
112717
      return 0;
-
 
112718
    }
-
 
112719
 
-
 
112720
    public _Fields fieldForId(int fieldId) {
-
 
112721
      return _Fields.findByThriftId(fieldId);
-
 
112722
    }
-
 
112723
 
-
 
112724
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
112725
      org.apache.thrift.protocol.TField field;
-
 
112726
      iprot.readStructBegin();
-
 
112727
      while (true)
-
 
112728
      {
-
 
112729
        field = iprot.readFieldBegin();
-
 
112730
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
112731
          break;
-
 
112732
        }
-
 
112733
        switch (field.id) {
-
 
112734
          case 1: // DEVICE_NUMBER
-
 
112735
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
112736
              this.deviceNumber = iprot.readString();
-
 
112737
            } else { 
-
 
112738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
112739
            }
-
 
112740
            break;
-
 
112741
          default:
-
 
112742
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
112743
        }
-
 
112744
        iprot.readFieldEnd();
-
 
112745
      }
-
 
112746
      iprot.readStructEnd();
-
 
112747
      validate();
-
 
112748
    }
-
 
112749
 
-
 
112750
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
112751
      validate();
-
 
112752
 
-
 
112753
      oprot.writeStructBegin(STRUCT_DESC);
-
 
112754
      if (this.deviceNumber != null) {
-
 
112755
        oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
-
 
112756
        oprot.writeString(this.deviceNumber);
-
 
112757
        oprot.writeFieldEnd();
-
 
112758
      }
-
 
112759
      oprot.writeFieldStop();
-
 
112760
      oprot.writeStructEnd();
-
 
112761
    }
-
 
112762
 
-
 
112763
    @Override
-
 
112764
    public String toString() {
-
 
112765
      StringBuilder sb = new StringBuilder("getRechargeOrdersForDevice_args(");
-
 
112766
      boolean first = true;
-
 
112767
 
-
 
112768
      sb.append("deviceNumber:");
-
 
112769
      if (this.deviceNumber == null) {
-
 
112770
        sb.append("null");
-
 
112771
      } else {
-
 
112772
        sb.append(this.deviceNumber);
-
 
112773
      }
-
 
112774
      first = false;
-
 
112775
      sb.append(")");
-
 
112776
      return sb.toString();
-
 
112777
    }
-
 
112778
 
-
 
112779
    public void validate() throws org.apache.thrift.TException {
-
 
112780
      // check for required fields
-
 
112781
    }
-
 
112782
 
-
 
112783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
112784
      try {
-
 
112785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
112786
      } catch (org.apache.thrift.TException te) {
-
 
112787
        throw new java.io.IOException(te);
-
 
112788
      }
-
 
112789
    }
-
 
112790
 
-
 
112791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
112792
      try {
-
 
112793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
112794
      } catch (org.apache.thrift.TException te) {
-
 
112795
        throw new java.io.IOException(te);
-
 
112796
      }
-
 
112797
    }
-
 
112798
 
-
 
112799
  }
-
 
112800
 
-
 
112801
  public static class getRechargeOrdersForDevice_result implements org.apache.thrift.TBase<getRechargeOrdersForDevice_result, getRechargeOrdersForDevice_result._Fields>, java.io.Serializable, Cloneable   {
-
 
112802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeOrdersForDevice_result");
-
 
112803
 
-
 
112804
    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);
-
 
112805
 
-
 
112806
    private List<RechargeOrder> success; // required
-
 
112807
 
-
 
112808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
112809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
112810
      SUCCESS((short)0, "success");
-
 
112811
 
-
 
112812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
112813
 
-
 
112814
      static {
-
 
112815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
112816
          byName.put(field.getFieldName(), field);
-
 
112817
        }
-
 
112818
      }
-
 
112819
 
-
 
112820
      /**
-
 
112821
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
112822
       */
-
 
112823
      public static _Fields findByThriftId(int fieldId) {
-
 
112824
        switch(fieldId) {
-
 
112825
          case 0: // SUCCESS
-
 
112826
            return SUCCESS;
-
 
112827
          default:
-
 
112828
            return null;
-
 
112829
        }
-
 
112830
      }
-
 
112831
 
-
 
112832
      /**
-
 
112833
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
112834
       * if it is not found.
-
 
112835
       */
-
 
112836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
112837
        _Fields fields = findByThriftId(fieldId);
-
 
112838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
112839
        return fields;
-
 
112840
      }
-
 
112841
 
-
 
112842
      /**
-
 
112843
       * Find the _Fields constant that matches name, or null if its not found.
-
 
112844
       */
-
 
112845
      public static _Fields findByName(String name) {
-
 
112846
        return byName.get(name);
-
 
112847
      }
-
 
112848
 
-
 
112849
      private final short _thriftId;
-
 
112850
      private final String _fieldName;
-
 
112851
 
-
 
112852
      _Fields(short thriftId, String fieldName) {
-
 
112853
        _thriftId = thriftId;
-
 
112854
        _fieldName = fieldName;
-
 
112855
      }
-
 
112856
 
-
 
112857
      public short getThriftFieldId() {
-
 
112858
        return _thriftId;
-
 
112859
      }
-
 
112860
 
-
 
112861
      public String getFieldName() {
-
 
112862
        return _fieldName;
-
 
112863
      }
-
 
112864
    }
-
 
112865
 
-
 
112866
    // isset id assignments
-
 
112867
 
-
 
112868
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
112869
    static {
-
 
112870
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
112871
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112872
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
112873
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeOrder.class))));
-
 
112874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
112875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeOrdersForDevice_result.class, metaDataMap);
-
 
112876
    }
-
 
112877
 
-
 
112878
    public getRechargeOrdersForDevice_result() {
-
 
112879
    }
-
 
112880
 
-
 
112881
    public getRechargeOrdersForDevice_result(
-
 
112882
      List<RechargeOrder> success)
-
 
112883
    {
-
 
112884
      this();
-
 
112885
      this.success = success;
-
 
112886
    }
-
 
112887
 
-
 
112888
    /**
-
 
112889
     * Performs a deep copy on <i>other</i>.
-
 
112890
     */
-
 
112891
    public getRechargeOrdersForDevice_result(getRechargeOrdersForDevice_result other) {
-
 
112892
      if (other.isSetSuccess()) {
-
 
112893
        List<RechargeOrder> __this__success = new ArrayList<RechargeOrder>();
-
 
112894
        for (RechargeOrder other_element : other.success) {
-
 
112895
          __this__success.add(new RechargeOrder(other_element));
-
 
112896
        }
-
 
112897
        this.success = __this__success;
-
 
112898
      }
-
 
112899
    }
-
 
112900
 
-
 
112901
    public getRechargeOrdersForDevice_result deepCopy() {
-
 
112902
      return new getRechargeOrdersForDevice_result(this);
-
 
112903
    }
-
 
112904
 
-
 
112905
    @Override
-
 
112906
    public void clear() {
-
 
112907
      this.success = null;
-
 
112908
    }
-
 
112909
 
-
 
112910
    public int getSuccessSize() {
-
 
112911
      return (this.success == null) ? 0 : this.success.size();
-
 
112912
    }
-
 
112913
 
-
 
112914
    public java.util.Iterator<RechargeOrder> getSuccessIterator() {
-
 
112915
      return (this.success == null) ? null : this.success.iterator();
-
 
112916
    }
-
 
112917
 
-
 
112918
    public void addToSuccess(RechargeOrder elem) {
-
 
112919
      if (this.success == null) {
-
 
112920
        this.success = new ArrayList<RechargeOrder>();
-
 
112921
      }
-
 
112922
      this.success.add(elem);
-
 
112923
    }
-
 
112924
 
-
 
112925
    public List<RechargeOrder> getSuccess() {
-
 
112926
      return this.success;
-
 
112927
    }
-
 
112928
 
-
 
112929
    public void setSuccess(List<RechargeOrder> success) {
-
 
112930
      this.success = success;
-
 
112931
    }
-
 
112932
 
-
 
112933
    public void unsetSuccess() {
-
 
112934
      this.success = null;
-
 
112935
    }
-
 
112936
 
-
 
112937
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
112938
    public boolean isSetSuccess() {
-
 
112939
      return this.success != null;
-
 
112940
    }
-
 
112941
 
-
 
112942
    public void setSuccessIsSet(boolean value) {
-
 
112943
      if (!value) {
-
 
112944
        this.success = null;
-
 
112945
      }
-
 
112946
    }
-
 
112947
 
-
 
112948
    public void setFieldValue(_Fields field, Object value) {
-
 
112949
      switch (field) {
-
 
112950
      case SUCCESS:
-
 
112951
        if (value == null) {
-
 
112952
          unsetSuccess();
-
 
112953
        } else {
-
 
112954
          setSuccess((List<RechargeOrder>)value);
-
 
112955
        }
-
 
112956
        break;
-
 
112957
 
-
 
112958
      }
-
 
112959
    }
-
 
112960
 
-
 
112961
    public Object getFieldValue(_Fields field) {
-
 
112962
      switch (field) {
-
 
112963
      case SUCCESS:
-
 
112964
        return getSuccess();
-
 
112965
 
-
 
112966
      }
-
 
112967
      throw new IllegalStateException();
-
 
112968
    }
-
 
112969
 
-
 
112970
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
112971
    public boolean isSet(_Fields field) {
-
 
112972
      if (field == null) {
-
 
112973
        throw new IllegalArgumentException();
-
 
112974
      }
-
 
112975
 
-
 
112976
      switch (field) {
-
 
112977
      case SUCCESS:
-
 
112978
        return isSetSuccess();
-
 
112979
      }
-
 
112980
      throw new IllegalStateException();
-
 
112981
    }
-
 
112982
 
-
 
112983
    @Override
-
 
112984
    public boolean equals(Object that) {
-
 
112985
      if (that == null)
-
 
112986
        return false;
-
 
112987
      if (that instanceof getRechargeOrdersForDevice_result)
-
 
112988
        return this.equals((getRechargeOrdersForDevice_result)that);
-
 
112989
      return false;
-
 
112990
    }
-
 
112991
 
-
 
112992
    public boolean equals(getRechargeOrdersForDevice_result that) {
-
 
112993
      if (that == null)
-
 
112994
        return false;
-
 
112995
 
-
 
112996
      boolean this_present_success = true && this.isSetSuccess();
-
 
112997
      boolean that_present_success = true && that.isSetSuccess();
-
 
112998
      if (this_present_success || that_present_success) {
-
 
112999
        if (!(this_present_success && that_present_success))
-
 
113000
          return false;
-
 
113001
        if (!this.success.equals(that.success))
-
 
113002
          return false;
-
 
113003
      }
-
 
113004
 
-
 
113005
      return true;
-
 
113006
    }
-
 
113007
 
-
 
113008
    @Override
-
 
113009
    public int hashCode() {
-
 
113010
      return 0;
-
 
113011
    }
-
 
113012
 
-
 
113013
    public int compareTo(getRechargeOrdersForDevice_result other) {
-
 
113014
      if (!getClass().equals(other.getClass())) {
-
 
113015
        return getClass().getName().compareTo(other.getClass().getName());
-
 
113016
      }
-
 
113017
 
-
 
113018
      int lastComparison = 0;
-
 
113019
      getRechargeOrdersForDevice_result typedOther = (getRechargeOrdersForDevice_result)other;
-
 
113020
 
-
 
113021
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
113022
      if (lastComparison != 0) {
-
 
113023
        return lastComparison;
-
 
113024
      }
-
 
113025
      if (isSetSuccess()) {
-
 
113026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
113027
        if (lastComparison != 0) {
-
 
113028
          return lastComparison;
-
 
113029
        }
-
 
113030
      }
-
 
113031
      return 0;
-
 
113032
    }
-
 
113033
 
-
 
113034
    public _Fields fieldForId(int fieldId) {
-
 
113035
      return _Fields.findByThriftId(fieldId);
-
 
113036
    }
-
 
113037
 
-
 
113038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
113039
      org.apache.thrift.protocol.TField field;
-
 
113040
      iprot.readStructBegin();
-
 
113041
      while (true)
-
 
113042
      {
-
 
113043
        field = iprot.readFieldBegin();
-
 
113044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
113045
          break;
-
 
113046
        }
-
 
113047
        switch (field.id) {
-
 
113048
          case 0: // SUCCESS
-
 
113049
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
113050
              {
-
 
113051
                org.apache.thrift.protocol.TList _list361 = iprot.readListBegin();
-
 
113052
                this.success = new ArrayList<RechargeOrder>(_list361.size);
-
 
113053
                for (int _i362 = 0; _i362 < _list361.size; ++_i362)
-
 
113054
                {
-
 
113055
                  RechargeOrder _elem363; // required
-
 
113056
                  _elem363 = new RechargeOrder();
-
 
113057
                  _elem363.read(iprot);
-
 
113058
                  this.success.add(_elem363);
-
 
113059
                }
-
 
113060
                iprot.readListEnd();
-
 
113061
              }
-
 
113062
            } else { 
-
 
113063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113064
            }
-
 
113065
            break;
-
 
113066
          default:
-
 
113067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113068
        }
-
 
113069
        iprot.readFieldEnd();
-
 
113070
      }
-
 
113071
      iprot.readStructEnd();
-
 
113072
      validate();
-
 
113073
    }
-
 
113074
 
-
 
113075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
113076
      oprot.writeStructBegin(STRUCT_DESC);
-
 
113077
 
-
 
113078
      if (this.isSetSuccess()) {
-
 
113079
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
113080
        {
-
 
113081
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
113082
          for (RechargeOrder _iter364 : this.success)
-
 
113083
          {
-
 
113084
            _iter364.write(oprot);
-
 
113085
          }
-
 
113086
          oprot.writeListEnd();
-
 
113087
        }
-
 
113088
        oprot.writeFieldEnd();
-
 
113089
      }
-
 
113090
      oprot.writeFieldStop();
-
 
113091
      oprot.writeStructEnd();
-
 
113092
    }
-
 
113093
 
-
 
113094
    @Override
-
 
113095
    public String toString() {
-
 
113096
      StringBuilder sb = new StringBuilder("getRechargeOrdersForDevice_result(");
-
 
113097
      boolean first = true;
-
 
113098
 
-
 
113099
      sb.append("success:");
-
 
113100
      if (this.success == null) {
-
 
113101
        sb.append("null");
-
 
113102
      } else {
-
 
113103
        sb.append(this.success);
-
 
113104
      }
-
 
113105
      first = false;
-
 
113106
      sb.append(")");
-
 
113107
      return sb.toString();
-
 
113108
    }
-
 
113109
 
-
 
113110
    public void validate() throws org.apache.thrift.TException {
-
 
113111
      // check for required fields
-
 
113112
    }
-
 
113113
 
-
 
113114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
113115
      try {
-
 
113116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
113117
      } catch (org.apache.thrift.TException te) {
-
 
113118
        throw new java.io.IOException(te);
-
 
113119
      }
-
 
113120
    }
-
 
113121
 
-
 
113122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
113123
      try {
-
 
113124
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
113125
      } catch (org.apache.thrift.TException te) {
-
 
113126
        throw new java.io.IOException(te);
-
 
113127
      }
-
 
113128
    }
-
 
113129
 
-
 
113130
  }
-
 
113131
 
-
 
113132
  public static class addAmountToWallet_args implements org.apache.thrift.TBase<addAmountToWallet_args, addAmountToWallet_args._Fields>, java.io.Serializable, Cloneable   {
-
 
113133
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmountToWallet_args");
-
 
113134
 
-
 
113135
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
113136
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
113137
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
113138
 
-
 
113139
    private long userId; // required
-
 
113140
    private long orderId; // required
-
 
113141
    private long amount; // required
-
 
113142
 
-
 
113143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
113144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
113145
      USER_ID((short)1, "userId"),
-
 
113146
      ORDER_ID((short)2, "orderId"),
-
 
113147
      AMOUNT((short)3, "amount");
-
 
113148
 
-
 
113149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
113150
 
-
 
113151
      static {
-
 
113152
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
113153
          byName.put(field.getFieldName(), field);
-
 
113154
        }
-
 
113155
      }
-
 
113156
 
-
 
113157
      /**
-
 
113158
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
113159
       */
-
 
113160
      public static _Fields findByThriftId(int fieldId) {
-
 
113161
        switch(fieldId) {
-
 
113162
          case 1: // USER_ID
-
 
113163
            return USER_ID;
-
 
113164
          case 2: // ORDER_ID
-
 
113165
            return ORDER_ID;
-
 
113166
          case 3: // AMOUNT
-
 
113167
            return AMOUNT;
-
 
113168
          default:
-
 
113169
            return null;
-
 
113170
        }
-
 
113171
      }
-
 
113172
 
-
 
113173
      /**
-
 
113174
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
113175
       * if it is not found.
-
 
113176
       */
-
 
113177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
113178
        _Fields fields = findByThriftId(fieldId);
-
 
113179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
113180
        return fields;
-
 
113181
      }
-
 
113182
 
-
 
113183
      /**
-
 
113184
       * Find the _Fields constant that matches name, or null if its not found.
-
 
113185
       */
-
 
113186
      public static _Fields findByName(String name) {
-
 
113187
        return byName.get(name);
-
 
113188
      }
-
 
113189
 
-
 
113190
      private final short _thriftId;
-
 
113191
      private final String _fieldName;
-
 
113192
 
-
 
113193
      _Fields(short thriftId, String fieldName) {
-
 
113194
        _thriftId = thriftId;
-
 
113195
        _fieldName = fieldName;
-
 
113196
      }
-
 
113197
 
-
 
113198
      public short getThriftFieldId() {
-
 
113199
        return _thriftId;
-
 
113200
      }
-
 
113201
 
-
 
113202
      public String getFieldName() {
-
 
113203
        return _fieldName;
-
 
113204
      }
-
 
113205
    }
-
 
113206
 
-
 
113207
    // isset id assignments
-
 
113208
    private static final int __USERID_ISSET_ID = 0;
-
 
113209
    private static final int __ORDERID_ISSET_ID = 1;
-
 
113210
    private static final int __AMOUNT_ISSET_ID = 2;
-
 
113211
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
113212
 
-
 
113213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
113214
    static {
-
 
113215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
113216
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113218
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113220
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
113221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
113223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmountToWallet_args.class, metaDataMap);
-
 
113224
    }
-
 
113225
 
-
 
113226
    public addAmountToWallet_args() {
-
 
113227
    }
-
 
113228
 
-
 
113229
    public addAmountToWallet_args(
-
 
113230
      long userId,
-
 
113231
      long orderId,
-
 
113232
      long amount)
-
 
113233
    {
-
 
113234
      this();
-
 
113235
      this.userId = userId;
-
 
113236
      setUserIdIsSet(true);
-
 
113237
      this.orderId = orderId;
-
 
113238
      setOrderIdIsSet(true);
-
 
113239
      this.amount = amount;
-
 
113240
      setAmountIsSet(true);
-
 
113241
    }
-
 
113242
 
-
 
113243
    /**
-
 
113244
     * Performs a deep copy on <i>other</i>.
-
 
113245
     */
-
 
113246
    public addAmountToWallet_args(addAmountToWallet_args other) {
-
 
113247
      __isset_bit_vector.clear();
-
 
113248
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
113249
      this.userId = other.userId;
-
 
113250
      this.orderId = other.orderId;
-
 
113251
      this.amount = other.amount;
-
 
113252
    }
-
 
113253
 
-
 
113254
    public addAmountToWallet_args deepCopy() {
-
 
113255
      return new addAmountToWallet_args(this);
-
 
113256
    }
-
 
113257
 
-
 
113258
    @Override
-
 
113259
    public void clear() {
-
 
113260
      setUserIdIsSet(false);
-
 
113261
      this.userId = 0;
-
 
113262
      setOrderIdIsSet(false);
-
 
113263
      this.orderId = 0;
-
 
113264
      setAmountIsSet(false);
-
 
113265
      this.amount = 0;
-
 
113266
    }
-
 
113267
 
-
 
113268
    public long getUserId() {
-
 
113269
      return this.userId;
-
 
113270
    }
-
 
113271
 
-
 
113272
    public void setUserId(long userId) {
-
 
113273
      this.userId = userId;
-
 
113274
      setUserIdIsSet(true);
-
 
113275
    }
-
 
113276
 
-
 
113277
    public void unsetUserId() {
-
 
113278
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
113279
    }
-
 
113280
 
-
 
113281
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
113282
    public boolean isSetUserId() {
-
 
113283
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
113284
    }
-
 
113285
 
-
 
113286
    public void setUserIdIsSet(boolean value) {
-
 
113287
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
113288
    }
-
 
113289
 
-
 
113290
    public long getOrderId() {
-
 
113291
      return this.orderId;
-
 
113292
    }
-
 
113293
 
-
 
113294
    public void setOrderId(long orderId) {
-
 
113295
      this.orderId = orderId;
-
 
113296
      setOrderIdIsSet(true);
-
 
113297
    }
-
 
113298
 
-
 
113299
    public void unsetOrderId() {
-
 
113300
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
113301
    }
-
 
113302
 
-
 
113303
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
113304
    public boolean isSetOrderId() {
-
 
113305
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
113306
    }
-
 
113307
 
-
 
113308
    public void setOrderIdIsSet(boolean value) {
-
 
113309
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
113310
    }
-
 
113311
 
-
 
113312
    public long getAmount() {
-
 
113313
      return this.amount;
-
 
113314
    }
-
 
113315
 
-
 
113316
    public void setAmount(long amount) {
-
 
113317
      this.amount = amount;
-
 
113318
      setAmountIsSet(true);
-
 
113319
    }
-
 
113320
 
-
 
113321
    public void unsetAmount() {
-
 
113322
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
113323
    }
-
 
113324
 
-
 
113325
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
-
 
113326
    public boolean isSetAmount() {
-
 
113327
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
113328
    }
-
 
113329
 
-
 
113330
    public void setAmountIsSet(boolean value) {
-
 
113331
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
-
 
113332
    }
-
 
113333
 
-
 
113334
    public void setFieldValue(_Fields field, Object value) {
-
 
113335
      switch (field) {
-
 
113336
      case USER_ID:
-
 
113337
        if (value == null) {
-
 
113338
          unsetUserId();
-
 
113339
        } else {
-
 
113340
          setUserId((Long)value);
-
 
113341
        }
-
 
113342
        break;
-
 
113343
 
-
 
113344
      case ORDER_ID:
-
 
113345
        if (value == null) {
-
 
113346
          unsetOrderId();
-
 
113347
        } else {
-
 
113348
          setOrderId((Long)value);
-
 
113349
        }
-
 
113350
        break;
-
 
113351
 
-
 
113352
      case AMOUNT:
-
 
113353
        if (value == null) {
-
 
113354
          unsetAmount();
-
 
113355
        } else {
-
 
113356
          setAmount((Long)value);
-
 
113357
        }
-
 
113358
        break;
-
 
113359
 
-
 
113360
      }
-
 
113361
    }
-
 
113362
 
-
 
113363
    public Object getFieldValue(_Fields field) {
-
 
113364
      switch (field) {
-
 
113365
      case USER_ID:
-
 
113366
        return Long.valueOf(getUserId());
-
 
113367
 
-
 
113368
      case ORDER_ID:
-
 
113369
        return Long.valueOf(getOrderId());
-
 
113370
 
-
 
113371
      case AMOUNT:
-
 
113372
        return Long.valueOf(getAmount());
-
 
113373
 
-
 
113374
      }
-
 
113375
      throw new IllegalStateException();
-
 
113376
    }
-
 
113377
 
-
 
113378
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
113379
    public boolean isSet(_Fields field) {
-
 
113380
      if (field == null) {
-
 
113381
        throw new IllegalArgumentException();
-
 
113382
      }
-
 
113383
 
-
 
113384
      switch (field) {
-
 
113385
      case USER_ID:
-
 
113386
        return isSetUserId();
-
 
113387
      case ORDER_ID:
-
 
113388
        return isSetOrderId();
-
 
113389
      case AMOUNT:
-
 
113390
        return isSetAmount();
-
 
113391
      }
-
 
113392
      throw new IllegalStateException();
-
 
113393
    }
-
 
113394
 
-
 
113395
    @Override
-
 
113396
    public boolean equals(Object that) {
-
 
113397
      if (that == null)
-
 
113398
        return false;
-
 
113399
      if (that instanceof addAmountToWallet_args)
-
 
113400
        return this.equals((addAmountToWallet_args)that);
-
 
113401
      return false;
-
 
113402
    }
-
 
113403
 
-
 
113404
    public boolean equals(addAmountToWallet_args that) {
-
 
113405
      if (that == null)
-
 
113406
        return false;
-
 
113407
 
-
 
113408
      boolean this_present_userId = true;
-
 
113409
      boolean that_present_userId = true;
-
 
113410
      if (this_present_userId || that_present_userId) {
-
 
113411
        if (!(this_present_userId && that_present_userId))
-
 
113412
          return false;
-
 
113413
        if (this.userId != that.userId)
-
 
113414
          return false;
-
 
113415
      }
-
 
113416
 
-
 
113417
      boolean this_present_orderId = true;
-
 
113418
      boolean that_present_orderId = true;
-
 
113419
      if (this_present_orderId || that_present_orderId) {
-
 
113420
        if (!(this_present_orderId && that_present_orderId))
-
 
113421
          return false;
-
 
113422
        if (this.orderId != that.orderId)
-
 
113423
          return false;
-
 
113424
      }
-
 
113425
 
-
 
113426
      boolean this_present_amount = true;
-
 
113427
      boolean that_present_amount = true;
-
 
113428
      if (this_present_amount || that_present_amount) {
-
 
113429
        if (!(this_present_amount && that_present_amount))
-
 
113430
          return false;
-
 
113431
        if (this.amount != that.amount)
-
 
113432
          return false;
-
 
113433
      }
-
 
113434
 
-
 
113435
      return true;
-
 
113436
    }
-
 
113437
 
-
 
113438
    @Override
-
 
113439
    public int hashCode() {
-
 
113440
      return 0;
-
 
113441
    }
-
 
113442
 
-
 
113443
    public int compareTo(addAmountToWallet_args other) {
-
 
113444
      if (!getClass().equals(other.getClass())) {
-
 
113445
        return getClass().getName().compareTo(other.getClass().getName());
-
 
113446
      }
-
 
113447
 
-
 
113448
      int lastComparison = 0;
-
 
113449
      addAmountToWallet_args typedOther = (addAmountToWallet_args)other;
-
 
113450
 
-
 
113451
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
113452
      if (lastComparison != 0) {
-
 
113453
        return lastComparison;
-
 
113454
      }
-
 
113455
      if (isSetUserId()) {
-
 
113456
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
113457
        if (lastComparison != 0) {
-
 
113458
          return lastComparison;
-
 
113459
        }
-
 
113460
      }
-
 
113461
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
113462
      if (lastComparison != 0) {
-
 
113463
        return lastComparison;
-
 
113464
      }
-
 
113465
      if (isSetOrderId()) {
-
 
113466
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
113467
        if (lastComparison != 0) {
-
 
113468
          return lastComparison;
-
 
113469
        }
-
 
113470
      }
-
 
113471
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
-
 
113472
      if (lastComparison != 0) {
-
 
113473
        return lastComparison;
-
 
113474
      }
-
 
113475
      if (isSetAmount()) {
-
 
113476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
-
 
113477
        if (lastComparison != 0) {
-
 
113478
          return lastComparison;
-
 
113479
        }
-
 
113480
      }
-
 
113481
      return 0;
-
 
113482
    }
-
 
113483
 
-
 
113484
    public _Fields fieldForId(int fieldId) {
-
 
113485
      return _Fields.findByThriftId(fieldId);
-
 
113486
    }
-
 
113487
 
-
 
113488
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
113489
      org.apache.thrift.protocol.TField field;
-
 
113490
      iprot.readStructBegin();
-
 
113491
      while (true)
-
 
113492
      {
-
 
113493
        field = iprot.readFieldBegin();
-
 
113494
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
113495
          break;
-
 
113496
        }
-
 
113497
        switch (field.id) {
-
 
113498
          case 1: // USER_ID
-
 
113499
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
113500
              this.userId = iprot.readI64();
-
 
113501
              setUserIdIsSet(true);
-
 
113502
            } else { 
-
 
113503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113504
            }
-
 
113505
            break;
-
 
113506
          case 2: // ORDER_ID
-
 
113507
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
113508
              this.orderId = iprot.readI64();
-
 
113509
              setOrderIdIsSet(true);
-
 
113510
            } else { 
-
 
113511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113512
            }
-
 
113513
            break;
-
 
113514
          case 3: // AMOUNT
-
 
113515
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
113516
              this.amount = iprot.readI64();
-
 
113517
              setAmountIsSet(true);
-
 
113518
            } else { 
-
 
113519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113520
            }
-
 
113521
            break;
-
 
113522
          default:
-
 
113523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113524
        }
-
 
113525
        iprot.readFieldEnd();
-
 
113526
      }
-
 
113527
      iprot.readStructEnd();
-
 
113528
      validate();
-
 
113529
    }
-
 
113530
 
-
 
113531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
113532
      validate();
-
 
113533
 
-
 
113534
      oprot.writeStructBegin(STRUCT_DESC);
-
 
113535
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
113536
      oprot.writeI64(this.userId);
-
 
113537
      oprot.writeFieldEnd();
-
 
113538
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
113539
      oprot.writeI64(this.orderId);
-
 
113540
      oprot.writeFieldEnd();
-
 
113541
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
113542
      oprot.writeI64(this.amount);
-
 
113543
      oprot.writeFieldEnd();
-
 
113544
      oprot.writeFieldStop();
-
 
113545
      oprot.writeStructEnd();
-
 
113546
    }
-
 
113547
 
-
 
113548
    @Override
-
 
113549
    public String toString() {
-
 
113550
      StringBuilder sb = new StringBuilder("addAmountToWallet_args(");
-
 
113551
      boolean first = true;
-
 
113552
 
-
 
113553
      sb.append("userId:");
-
 
113554
      sb.append(this.userId);
-
 
113555
      first = false;
-
 
113556
      if (!first) sb.append(", ");
-
 
113557
      sb.append("orderId:");
-
 
113558
      sb.append(this.orderId);
-
 
113559
      first = false;
-
 
113560
      if (!first) sb.append(", ");
-
 
113561
      sb.append("amount:");
-
 
113562
      sb.append(this.amount);
-
 
113563
      first = false;
-
 
113564
      sb.append(")");
-
 
113565
      return sb.toString();
-
 
113566
    }
-
 
113567
 
-
 
113568
    public void validate() throws org.apache.thrift.TException {
-
 
113569
      // check for required fields
-
 
113570
    }
-
 
113571
 
-
 
113572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
113573
      try {
-
 
113574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
113575
      } catch (org.apache.thrift.TException te) {
-
 
113576
        throw new java.io.IOException(te);
-
 
113577
      }
-
 
113578
    }
-
 
113579
 
-
 
113580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
113581
      try {
-
 
113582
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
113583
        __isset_bit_vector = new BitSet(1);
-
 
113584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
113585
      } catch (org.apache.thrift.TException te) {
-
 
113586
        throw new java.io.IOException(te);
-
 
113587
      }
-
 
113588
    }
-
 
113589
 
-
 
113590
  }
-
 
113591
 
-
 
113592
  public static class addAmountToWallet_result implements org.apache.thrift.TBase<addAmountToWallet_result, addAmountToWallet_result._Fields>, java.io.Serializable, Cloneable   {
-
 
113593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmountToWallet_result");
-
 
113594
 
-
 
113595
 
-
 
113596
 
-
 
113597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
113598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
113599
;
-
 
113600
 
-
 
113601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
113602
 
-
 
113603
      static {
-
 
113604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
113605
          byName.put(field.getFieldName(), field);
-
 
113606
        }
-
 
113607
      }
-
 
113608
 
-
 
113609
      /**
-
 
113610
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
113611
       */
-
 
113612
      public static _Fields findByThriftId(int fieldId) {
-
 
113613
        switch(fieldId) {
-
 
113614
          default:
-
 
113615
            return null;
-
 
113616
        }
-
 
113617
      }
-
 
113618
 
-
 
113619
      /**
-
 
113620
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
113621
       * if it is not found.
-
 
113622
       */
-
 
113623
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
113624
        _Fields fields = findByThriftId(fieldId);
-
 
113625
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
113626
        return fields;
-
 
113627
      }
-
 
113628
 
-
 
113629
      /**
-
 
113630
       * Find the _Fields constant that matches name, or null if its not found.
-
 
113631
       */
-
 
113632
      public static _Fields findByName(String name) {
-
 
113633
        return byName.get(name);
-
 
113634
      }
-
 
113635
 
-
 
113636
      private final short _thriftId;
-
 
113637
      private final String _fieldName;
-
 
113638
 
-
 
113639
      _Fields(short thriftId, String fieldName) {
-
 
113640
        _thriftId = thriftId;
-
 
113641
        _fieldName = fieldName;
-
 
113642
      }
-
 
113643
 
-
 
113644
      public short getThriftFieldId() {
-
 
113645
        return _thriftId;
-
 
113646
      }
-
 
113647
 
-
 
113648
      public String getFieldName() {
-
 
113649
        return _fieldName;
-
 
113650
      }
-
 
113651
    }
-
 
113652
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
113653
    static {
-
 
113654
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
113655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
113656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmountToWallet_result.class, metaDataMap);
-
 
113657
    }
-
 
113658
 
-
 
113659
    public addAmountToWallet_result() {
-
 
113660
    }
-
 
113661
 
-
 
113662
    /**
-
 
113663
     * Performs a deep copy on <i>other</i>.
-
 
113664
     */
-
 
113665
    public addAmountToWallet_result(addAmountToWallet_result other) {
-
 
113666
    }
-
 
113667
 
-
 
113668
    public addAmountToWallet_result deepCopy() {
-
 
113669
      return new addAmountToWallet_result(this);
-
 
113670
    }
-
 
113671
 
-
 
113672
    @Override
-
 
113673
    public void clear() {
-
 
113674
    }
-
 
113675
 
-
 
113676
    public void setFieldValue(_Fields field, Object value) {
-
 
113677
      switch (field) {
-
 
113678
      }
-
 
113679
    }
-
 
113680
 
-
 
113681
    public Object getFieldValue(_Fields field) {
-
 
113682
      switch (field) {
-
 
113683
      }
-
 
113684
      throw new IllegalStateException();
-
 
113685
    }
-
 
113686
 
-
 
113687
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
113688
    public boolean isSet(_Fields field) {
-
 
113689
      if (field == null) {
-
 
113690
        throw new IllegalArgumentException();
-
 
113691
      }
-
 
113692
 
-
 
113693
      switch (field) {
-
 
113694
      }
-
 
113695
      throw new IllegalStateException();
-
 
113696
    }
-
 
113697
 
-
 
113698
    @Override
-
 
113699
    public boolean equals(Object that) {
-
 
113700
      if (that == null)
-
 
113701
        return false;
-
 
113702
      if (that instanceof addAmountToWallet_result)
-
 
113703
        return this.equals((addAmountToWallet_result)that);
-
 
113704
      return false;
-
 
113705
    }
-
 
113706
 
-
 
113707
    public boolean equals(addAmountToWallet_result that) {
-
 
113708
      if (that == null)
-
 
113709
        return false;
-
 
113710
 
-
 
113711
      return true;
-
 
113712
    }
-
 
113713
 
-
 
113714
    @Override
-
 
113715
    public int hashCode() {
-
 
113716
      return 0;
-
 
113717
    }
-
 
113718
 
-
 
113719
    public int compareTo(addAmountToWallet_result other) {
-
 
113720
      if (!getClass().equals(other.getClass())) {
-
 
113721
        return getClass().getName().compareTo(other.getClass().getName());
-
 
113722
      }
-
 
113723
 
-
 
113724
      int lastComparison = 0;
-
 
113725
      addAmountToWallet_result typedOther = (addAmountToWallet_result)other;
-
 
113726
 
-
 
113727
      return 0;
-
 
113728
    }
-
 
113729
 
-
 
113730
    public _Fields fieldForId(int fieldId) {
-
 
113731
      return _Fields.findByThriftId(fieldId);
-
 
113732
    }
-
 
113733
 
-
 
113734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
113735
      org.apache.thrift.protocol.TField field;
-
 
113736
      iprot.readStructBegin();
-
 
113737
      while (true)
-
 
113738
      {
-
 
113739
        field = iprot.readFieldBegin();
-
 
113740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
113741
          break;
-
 
113742
        }
-
 
113743
        switch (field.id) {
-
 
113744
          default:
-
 
113745
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
113746
        }
-
 
113747
        iprot.readFieldEnd();
-
 
113748
      }
-
 
113749
      iprot.readStructEnd();
-
 
113750
      validate();
-
 
113751
    }
-
 
113752
 
-
 
113753
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
113754
      oprot.writeStructBegin(STRUCT_DESC);
-
 
113755
 
-
 
113756
      oprot.writeFieldStop();
-
 
113757
      oprot.writeStructEnd();
-
 
113758
    }
-
 
113759
 
-
 
113760
    @Override
-
 
113761
    public String toString() {
-
 
113762
      StringBuilder sb = new StringBuilder("addAmountToWallet_result(");
-
 
113763
      boolean first = true;
-
 
113764
 
-
 
113765
      sb.append(")");
-
 
113766
      return sb.toString();
-
 
113767
    }
-
 
113768
 
-
 
113769
    public void validate() throws org.apache.thrift.TException {
112335
      // check for required fields
113770
      // check for required fields
112336
    }
113771
    }
112337
 
113772
 
112338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
113773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
112339
      try {
113774
      try {