Subversion Repositories SmartDukaan

Rev

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

Rev 13691 Rev 13941
Line 894... Line 894...
894
 
894
 
895
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
895
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
896
 
896
 
897
    public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
897
    public void addAmountToWallet(long userId, long orderId, long amount) throws org.apache.thrift.TException;
898
 
898
 
-
 
899
    public void creditBatch(long batchId, String userAmount) throws org.apache.thrift.TException;
-
 
900
 
899
    public RechargeStatistics getRechargeStatistics() throws org.apache.thrift.TException;
901
    public RechargeStatistics getRechargeStatistics() throws org.apache.thrift.TException;
900
 
902
 
901
    public List<RechargeOrder> getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException;
903
    public List<RechargeOrder> getRechargeOrdersForStatus(long status) throws org.apache.thrift.TException;
902
 
904
 
903
    public List<RechargePlan> getPlansForOperator(long operatorId) throws org.apache.thrift.TException;
905
    public List<RechargePlan> getPlansForOperator(long operatorId) throws org.apache.thrift.TException;
Line 1401... Line 1403...
1401
 
1403
 
1402
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
1404
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
1403
 
1405
 
1404
    public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
1406
    public void addAmountToWallet(long userId, long orderId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmountToWallet_call> resultHandler) throws org.apache.thrift.TException;
1405
 
1407
 
-
 
1408
    public void creditBatch(long batchId, String userAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.creditBatch_call> resultHandler) throws org.apache.thrift.TException;
-
 
1409
 
1406
    public void getRechargeStatistics(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeStatistics_call> resultHandler) throws org.apache.thrift.TException;
1410
    public void getRechargeStatistics(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeStatistics_call> resultHandler) throws org.apache.thrift.TException;
1407
 
1411
 
1408
    public void getRechargeOrdersForStatus(long status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForStatus_call> resultHandler) throws org.apache.thrift.TException;
1412
    public void getRechargeOrdersForStatus(long status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForStatus_call> resultHandler) throws org.apache.thrift.TException;
1409
 
1413
 
1410
    public void getPlansForOperator(long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPlansForOperator_call> resultHandler) throws org.apache.thrift.TException;
1414
    public void getPlansForOperator(long operatorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPlansForOperator_call> resultHandler) throws org.apache.thrift.TException;
Line 5216... Line 5220...
5216
      addAmountToWallet_result result = new addAmountToWallet_result();
5220
      addAmountToWallet_result result = new addAmountToWallet_result();
5217
      receiveBase(result, "addAmountToWallet");
5221
      receiveBase(result, "addAmountToWallet");
5218
      return;
5222
      return;
5219
    }
5223
    }
5220
 
5224
 
-
 
5225
    public void creditBatch(long batchId, String userAmount) throws org.apache.thrift.TException
-
 
5226
    {
-
 
5227
      send_creditBatch(batchId, userAmount);
-
 
5228
      recv_creditBatch();
-
 
5229
    }
-
 
5230
 
-
 
5231
    public void send_creditBatch(long batchId, String userAmount) throws org.apache.thrift.TException
-
 
5232
    {
-
 
5233
      creditBatch_args args = new creditBatch_args();
-
 
5234
      args.setBatchId(batchId);
-
 
5235
      args.setUserAmount(userAmount);
-
 
5236
      sendBase("creditBatch", args);
-
 
5237
    }
-
 
5238
 
-
 
5239
    public void recv_creditBatch() throws org.apache.thrift.TException
-
 
5240
    {
-
 
5241
      creditBatch_result result = new creditBatch_result();
-
 
5242
      receiveBase(result, "creditBatch");
-
 
5243
      return;
-
 
5244
    }
-
 
5245
 
5221
    public RechargeStatistics getRechargeStatistics() throws org.apache.thrift.TException
5246
    public RechargeStatistics getRechargeStatistics() throws org.apache.thrift.TException
5222
    {
5247
    {
5223
      send_getRechargeStatistics();
5248
      send_getRechargeStatistics();
5224
      return recv_getRechargeStatistics();
5249
      return recv_getRechargeStatistics();
5225
    }
5250
    }
Line 12747... Line 12772...
12747
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12748
        (new Client(prot)).recv_addAmountToWallet();
12773
        (new Client(prot)).recv_addAmountToWallet();
12749
      }
12774
      }
12750
    }
12775
    }
12751
 
12776
 
-
 
12777
    public void creditBatch(long batchId, String userAmount, org.apache.thrift.async.AsyncMethodCallback<creditBatch_call> resultHandler) throws org.apache.thrift.TException {
-
 
12778
      checkReady();
-
 
12779
      creditBatch_call method_call = new creditBatch_call(batchId, userAmount, resultHandler, this, ___protocolFactory, ___transport);
-
 
12780
      this.___currentMethod = method_call;
-
 
12781
      ___manager.call(method_call);
-
 
12782
    }
-
 
12783
 
-
 
12784
    public static class creditBatch_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12785
      private long batchId;
-
 
12786
      private String userAmount;
-
 
12787
      public creditBatch_call(long batchId, String userAmount, org.apache.thrift.async.AsyncMethodCallback<creditBatch_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 {
-
 
12788
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12789
        this.batchId = batchId;
-
 
12790
        this.userAmount = userAmount;
-
 
12791
      }
-
 
12792
 
-
 
12793
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12794
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("creditBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12795
        creditBatch_args args = new creditBatch_args();
-
 
12796
        args.setBatchId(batchId);
-
 
12797
        args.setUserAmount(userAmount);
-
 
12798
        args.write(prot);
-
 
12799
        prot.writeMessageEnd();
-
 
12800
      }
-
 
12801
 
-
 
12802
      public void getResult() throws org.apache.thrift.TException {
-
 
12803
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12804
          throw new IllegalStateException("Method call not finished!");
-
 
12805
        }
-
 
12806
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12807
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12808
        (new Client(prot)).recv_creditBatch();
-
 
12809
      }
-
 
12810
    }
-
 
12811
 
12752
    public void getRechargeStatistics(org.apache.thrift.async.AsyncMethodCallback<getRechargeStatistics_call> resultHandler) throws org.apache.thrift.TException {
12812
    public void getRechargeStatistics(org.apache.thrift.async.AsyncMethodCallback<getRechargeStatistics_call> resultHandler) throws org.apache.thrift.TException {
12753
      checkReady();
12813
      checkReady();
12754
      getRechargeStatistics_call method_call = new getRechargeStatistics_call(resultHandler, this, ___protocolFactory, ___transport);
12814
      getRechargeStatistics_call method_call = new getRechargeStatistics_call(resultHandler, this, ___protocolFactory, ___transport);
12755
      this.___currentMethod = method_call;
12815
      this.___currentMethod = method_call;
12756
      ___manager.call(method_call);
12816
      ___manager.call(method_call);
Line 16559... Line 16619...
16559
      processMap.put("getServiceProviders", new getServiceProviders());
16619
      processMap.put("getServiceProviders", new getServiceProviders());
16560
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
16620
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
16561
      processMap.put("validateRecharge", new validateRecharge());
16621
      processMap.put("validateRecharge", new validateRecharge());
16562
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
16622
      processMap.put("getRechargeOrdersForDevice", new getRechargeOrdersForDevice());
16563
      processMap.put("addAmountToWallet", new addAmountToWallet());
16623
      processMap.put("addAmountToWallet", new addAmountToWallet());
-
 
16624
      processMap.put("creditBatch", new creditBatch());
16564
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
16625
      processMap.put("getRechargeStatistics", new getRechargeStatistics());
16565
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
16626
      processMap.put("getRechargeOrdersForStatus", new getRechargeOrdersForStatus());
16566
      processMap.put("getPlansForOperator", new getPlansForOperator());
16627
      processMap.put("getPlansForOperator", new getPlansForOperator());
16567
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
16628
      processMap.put("getRechargeDenominations", new getRechargeDenominations());
16568
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
16629
      processMap.put("updateAvailabilityStatus", new updateAvailabilityStatus());
Line 19347... Line 19408...
19347
        iface.addAmountToWallet(args.userId, args.orderId, args.amount);
19408
        iface.addAmountToWallet(args.userId, args.orderId, args.amount);
19348
        return result;
19409
        return result;
19349
      }
19410
      }
19350
    }
19411
    }
19351
 
19412
 
-
 
19413
    private static class creditBatch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, creditBatch_args> {
-
 
19414
      public creditBatch() {
-
 
19415
        super("creditBatch");
-
 
19416
      }
-
 
19417
 
-
 
19418
      protected creditBatch_args getEmptyArgsInstance() {
-
 
19419
        return new creditBatch_args();
-
 
19420
      }
-
 
19421
 
-
 
19422
      protected creditBatch_result getResult(I iface, creditBatch_args args) throws org.apache.thrift.TException {
-
 
19423
        creditBatch_result result = new creditBatch_result();
-
 
19424
        iface.creditBatch(args.batchId, args.userAmount);
-
 
19425
        return result;
-
 
19426
      }
-
 
19427
    }
-
 
19428
 
19352
    private static class getRechargeStatistics<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeStatistics_args> {
19429
    private static class getRechargeStatistics<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeStatistics_args> {
19353
      public getRechargeStatistics() {
19430
      public getRechargeStatistics() {
19354
        super("getRechargeStatistics");
19431
        super("getRechargeStatistics");
19355
      }
19432
      }
19356
 
19433
 
Line 125334... Line 125411...
125334
      boolean first = true;
125411
      boolean first = true;
125335
 
125412
 
125336
      sb.append(")");
125413
      sb.append(")");
125337
      return sb.toString();
125414
      return sb.toString();
125338
    }
125415
    }
-
 
125416
 
-
 
125417
    public void validate() throws org.apache.thrift.TException {
-
 
125418
      // check for required fields
-
 
125419
    }
-
 
125420
 
-
 
125421
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
125422
      try {
-
 
125423
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
125424
      } catch (org.apache.thrift.TException te) {
-
 
125425
        throw new java.io.IOException(te);
-
 
125426
      }
-
 
125427
    }
-
 
125428
 
-
 
125429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
125430
      try {
-
 
125431
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
125432
      } catch (org.apache.thrift.TException te) {
-
 
125433
        throw new java.io.IOException(te);
-
 
125434
      }
-
 
125435
    }
-
 
125436
 
-
 
125437
  }
-
 
125438
 
-
 
125439
  public static class creditBatch_args implements org.apache.thrift.TBase<creditBatch_args, creditBatch_args._Fields>, java.io.Serializable, Cloneable   {
-
 
125440
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("creditBatch_args");
-
 
125441
 
-
 
125442
    private static final org.apache.thrift.protocol.TField BATCH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("batchId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
125443
    private static final org.apache.thrift.protocol.TField USER_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("userAmount", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
125444
 
-
 
125445
    private long batchId; // required
-
 
125446
    private String userAmount; // required
-
 
125447
 
-
 
125448
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125449
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125450
      BATCH_ID((short)1, "batchId"),
-
 
125451
      USER_AMOUNT((short)2, "userAmount");
-
 
125452
 
-
 
125453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125454
 
-
 
125455
      static {
-
 
125456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125457
          byName.put(field.getFieldName(), field);
-
 
125458
        }
-
 
125459
      }
-
 
125460
 
-
 
125461
      /**
-
 
125462
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125463
       */
-
 
125464
      public static _Fields findByThriftId(int fieldId) {
-
 
125465
        switch(fieldId) {
-
 
125466
          case 1: // BATCH_ID
-
 
125467
            return BATCH_ID;
-
 
125468
          case 2: // USER_AMOUNT
-
 
125469
            return USER_AMOUNT;
-
 
125470
          default:
-
 
125471
            return null;
-
 
125472
        }
-
 
125473
      }
-
 
125474
 
-
 
125475
      /**
-
 
125476
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125477
       * if it is not found.
-
 
125478
       */
-
 
125479
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125480
        _Fields fields = findByThriftId(fieldId);
-
 
125481
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125482
        return fields;
-
 
125483
      }
-
 
125484
 
-
 
125485
      /**
-
 
125486
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125487
       */
-
 
125488
      public static _Fields findByName(String name) {
-
 
125489
        return byName.get(name);
-
 
125490
      }
-
 
125491
 
-
 
125492
      private final short _thriftId;
-
 
125493
      private final String _fieldName;
-
 
125494
 
-
 
125495
      _Fields(short thriftId, String fieldName) {
-
 
125496
        _thriftId = thriftId;
-
 
125497
        _fieldName = fieldName;
-
 
125498
      }
-
 
125499
 
-
 
125500
      public short getThriftFieldId() {
-
 
125501
        return _thriftId;
-
 
125502
      }
-
 
125503
 
-
 
125504
      public String getFieldName() {
-
 
125505
        return _fieldName;
-
 
125506
      }
-
 
125507
    }
-
 
125508
 
-
 
125509
    // isset id assignments
-
 
125510
    private static final int __BATCHID_ISSET_ID = 0;
-
 
125511
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
125512
 
-
 
125513
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125514
    static {
-
 
125515
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125516
      tmpMap.put(_Fields.BATCH_ID, new org.apache.thrift.meta_data.FieldMetaData("batchId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
125518
      tmpMap.put(_Fields.USER_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("userAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125519
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
125520
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125521
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(creditBatch_args.class, metaDataMap);
-
 
125522
    }
-
 
125523
 
-
 
125524
    public creditBatch_args() {
-
 
125525
    }
-
 
125526
 
-
 
125527
    public creditBatch_args(
-
 
125528
      long batchId,
-
 
125529
      String userAmount)
-
 
125530
    {
-
 
125531
      this();
-
 
125532
      this.batchId = batchId;
-
 
125533
      setBatchIdIsSet(true);
-
 
125534
      this.userAmount = userAmount;
-
 
125535
    }
-
 
125536
 
-
 
125537
    /**
-
 
125538
     * Performs a deep copy on <i>other</i>.
-
 
125539
     */
-
 
125540
    public creditBatch_args(creditBatch_args other) {
-
 
125541
      __isset_bit_vector.clear();
-
 
125542
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
125543
      this.batchId = other.batchId;
-
 
125544
      if (other.isSetUserAmount()) {
-
 
125545
        this.userAmount = other.userAmount;
-
 
125546
      }
-
 
125547
    }
-
 
125548
 
-
 
125549
    public creditBatch_args deepCopy() {
-
 
125550
      return new creditBatch_args(this);
-
 
125551
    }
-
 
125552
 
-
 
125553
    @Override
-
 
125554
    public void clear() {
-
 
125555
      setBatchIdIsSet(false);
-
 
125556
      this.batchId = 0;
-
 
125557
      this.userAmount = null;
-
 
125558
    }
-
 
125559
 
-
 
125560
    public long getBatchId() {
-
 
125561
      return this.batchId;
-
 
125562
    }
-
 
125563
 
-
 
125564
    public void setBatchId(long batchId) {
-
 
125565
      this.batchId = batchId;
-
 
125566
      setBatchIdIsSet(true);
-
 
125567
    }
-
 
125568
 
-
 
125569
    public void unsetBatchId() {
-
 
125570
      __isset_bit_vector.clear(__BATCHID_ISSET_ID);
-
 
125571
    }
-
 
125572
 
-
 
125573
    /** Returns true if field batchId is set (has been assigned a value) and false otherwise */
-
 
125574
    public boolean isSetBatchId() {
-
 
125575
      return __isset_bit_vector.get(__BATCHID_ISSET_ID);
-
 
125576
    }
-
 
125577
 
-
 
125578
    public void setBatchIdIsSet(boolean value) {
-
 
125579
      __isset_bit_vector.set(__BATCHID_ISSET_ID, value);
-
 
125580
    }
-
 
125581
 
-
 
125582
    public String getUserAmount() {
-
 
125583
      return this.userAmount;
-
 
125584
    }
-
 
125585
 
-
 
125586
    public void setUserAmount(String userAmount) {
-
 
125587
      this.userAmount = userAmount;
-
 
125588
    }
-
 
125589
 
-
 
125590
    public void unsetUserAmount() {
-
 
125591
      this.userAmount = null;
-
 
125592
    }
-
 
125593
 
-
 
125594
    /** Returns true if field userAmount is set (has been assigned a value) and false otherwise */
-
 
125595
    public boolean isSetUserAmount() {
-
 
125596
      return this.userAmount != null;
-
 
125597
    }
-
 
125598
 
-
 
125599
    public void setUserAmountIsSet(boolean value) {
-
 
125600
      if (!value) {
-
 
125601
        this.userAmount = null;
-
 
125602
      }
-
 
125603
    }
-
 
125604
 
-
 
125605
    public void setFieldValue(_Fields field, Object value) {
-
 
125606
      switch (field) {
-
 
125607
      case BATCH_ID:
-
 
125608
        if (value == null) {
-
 
125609
          unsetBatchId();
-
 
125610
        } else {
-
 
125611
          setBatchId((Long)value);
-
 
125612
        }
-
 
125613
        break;
-
 
125614
 
-
 
125615
      case USER_AMOUNT:
-
 
125616
        if (value == null) {
-
 
125617
          unsetUserAmount();
-
 
125618
        } else {
-
 
125619
          setUserAmount((String)value);
-
 
125620
        }
-
 
125621
        break;
-
 
125622
 
-
 
125623
      }
-
 
125624
    }
-
 
125625
 
-
 
125626
    public Object getFieldValue(_Fields field) {
-
 
125627
      switch (field) {
-
 
125628
      case BATCH_ID:
-
 
125629
        return Long.valueOf(getBatchId());
-
 
125630
 
-
 
125631
      case USER_AMOUNT:
-
 
125632
        return getUserAmount();
-
 
125633
 
-
 
125634
      }
-
 
125635
      throw new IllegalStateException();
-
 
125636
    }
-
 
125637
 
-
 
125638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125639
    public boolean isSet(_Fields field) {
-
 
125640
      if (field == null) {
-
 
125641
        throw new IllegalArgumentException();
-
 
125642
      }
-
 
125643
 
-
 
125644
      switch (field) {
-
 
125645
      case BATCH_ID:
-
 
125646
        return isSetBatchId();
-
 
125647
      case USER_AMOUNT:
-
 
125648
        return isSetUserAmount();
-
 
125649
      }
-
 
125650
      throw new IllegalStateException();
-
 
125651
    }
-
 
125652
 
-
 
125653
    @Override
-
 
125654
    public boolean equals(Object that) {
-
 
125655
      if (that == null)
-
 
125656
        return false;
-
 
125657
      if (that instanceof creditBatch_args)
-
 
125658
        return this.equals((creditBatch_args)that);
-
 
125659
      return false;
-
 
125660
    }
-
 
125661
 
-
 
125662
    public boolean equals(creditBatch_args that) {
-
 
125663
      if (that == null)
-
 
125664
        return false;
-
 
125665
 
-
 
125666
      boolean this_present_batchId = true;
-
 
125667
      boolean that_present_batchId = true;
-
 
125668
      if (this_present_batchId || that_present_batchId) {
-
 
125669
        if (!(this_present_batchId && that_present_batchId))
-
 
125670
          return false;
-
 
125671
        if (this.batchId != that.batchId)
-
 
125672
          return false;
-
 
125673
      }
-
 
125674
 
-
 
125675
      boolean this_present_userAmount = true && this.isSetUserAmount();
-
 
125676
      boolean that_present_userAmount = true && that.isSetUserAmount();
-
 
125677
      if (this_present_userAmount || that_present_userAmount) {
-
 
125678
        if (!(this_present_userAmount && that_present_userAmount))
-
 
125679
          return false;
-
 
125680
        if (!this.userAmount.equals(that.userAmount))
-
 
125681
          return false;
-
 
125682
      }
-
 
125683
 
-
 
125684
      return true;
-
 
125685
    }
-
 
125686
 
-
 
125687
    @Override
-
 
125688
    public int hashCode() {
-
 
125689
      return 0;
-
 
125690
    }
-
 
125691
 
-
 
125692
    public int compareTo(creditBatch_args other) {
-
 
125693
      if (!getClass().equals(other.getClass())) {
-
 
125694
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125695
      }
-
 
125696
 
-
 
125697
      int lastComparison = 0;
-
 
125698
      creditBatch_args typedOther = (creditBatch_args)other;
-
 
125699
 
-
 
125700
      lastComparison = Boolean.valueOf(isSetBatchId()).compareTo(typedOther.isSetBatchId());
-
 
125701
      if (lastComparison != 0) {
-
 
125702
        return lastComparison;
-
 
125703
      }
-
 
125704
      if (isSetBatchId()) {
-
 
125705
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batchId, typedOther.batchId);
-
 
125706
        if (lastComparison != 0) {
-
 
125707
          return lastComparison;
-
 
125708
        }
-
 
125709
      }
-
 
125710
      lastComparison = Boolean.valueOf(isSetUserAmount()).compareTo(typedOther.isSetUserAmount());
-
 
125711
      if (lastComparison != 0) {
-
 
125712
        return lastComparison;
-
 
125713
      }
-
 
125714
      if (isSetUserAmount()) {
-
 
125715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userAmount, typedOther.userAmount);
-
 
125716
        if (lastComparison != 0) {
-
 
125717
          return lastComparison;
-
 
125718
        }
-
 
125719
      }
-
 
125720
      return 0;
-
 
125721
    }
-
 
125722
 
-
 
125723
    public _Fields fieldForId(int fieldId) {
-
 
125724
      return _Fields.findByThriftId(fieldId);
-
 
125725
    }
-
 
125726
 
-
 
125727
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125728
      org.apache.thrift.protocol.TField field;
-
 
125729
      iprot.readStructBegin();
-
 
125730
      while (true)
-
 
125731
      {
-
 
125732
        field = iprot.readFieldBegin();
-
 
125733
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125734
          break;
-
 
125735
        }
-
 
125736
        switch (field.id) {
-
 
125737
          case 1: // BATCH_ID
-
 
125738
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
125739
              this.batchId = iprot.readI64();
-
 
125740
              setBatchIdIsSet(true);
-
 
125741
            } else { 
-
 
125742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125743
            }
-
 
125744
            break;
-
 
125745
          case 2: // USER_AMOUNT
-
 
125746
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
125747
              this.userAmount = iprot.readString();
-
 
125748
            } else { 
-
 
125749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125750
            }
-
 
125751
            break;
-
 
125752
          default:
-
 
125753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125754
        }
-
 
125755
        iprot.readFieldEnd();
-
 
125756
      }
-
 
125757
      iprot.readStructEnd();
-
 
125758
      validate();
-
 
125759
    }
-
 
125760
 
-
 
125761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125762
      validate();
-
 
125763
 
-
 
125764
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125765
      oprot.writeFieldBegin(BATCH_ID_FIELD_DESC);
-
 
125766
      oprot.writeI64(this.batchId);
-
 
125767
      oprot.writeFieldEnd();
-
 
125768
      if (this.userAmount != null) {
-
 
125769
        oprot.writeFieldBegin(USER_AMOUNT_FIELD_DESC);
-
 
125770
        oprot.writeString(this.userAmount);
-
 
125771
        oprot.writeFieldEnd();
-
 
125772
      }
-
 
125773
      oprot.writeFieldStop();
-
 
125774
      oprot.writeStructEnd();
-
 
125775
    }
-
 
125776
 
-
 
125777
    @Override
-
 
125778
    public String toString() {
-
 
125779
      StringBuilder sb = new StringBuilder("creditBatch_args(");
-
 
125780
      boolean first = true;
-
 
125781
 
-
 
125782
      sb.append("batchId:");
-
 
125783
      sb.append(this.batchId);
-
 
125784
      first = false;
-
 
125785
      if (!first) sb.append(", ");
-
 
125786
      sb.append("userAmount:");
-
 
125787
      if (this.userAmount == null) {
-
 
125788
        sb.append("null");
-
 
125789
      } else {
-
 
125790
        sb.append(this.userAmount);
-
 
125791
      }
-
 
125792
      first = false;
-
 
125793
      sb.append(")");
-
 
125794
      return sb.toString();
-
 
125795
    }
-
 
125796
 
-
 
125797
    public void validate() throws org.apache.thrift.TException {
-
 
125798
      // check for required fields
-
 
125799
    }
-
 
125800
 
-
 
125801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
125802
      try {
-
 
125803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
125804
      } catch (org.apache.thrift.TException te) {
-
 
125805
        throw new java.io.IOException(te);
-
 
125806
      }
-
 
125807
    }
-
 
125808
 
-
 
125809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
125810
      try {
-
 
125811
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
125812
        __isset_bit_vector = new BitSet(1);
-
 
125813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
125814
      } catch (org.apache.thrift.TException te) {
-
 
125815
        throw new java.io.IOException(te);
-
 
125816
      }
-
 
125817
    }
-
 
125818
 
-
 
125819
  }
-
 
125820
 
-
 
125821
  public static class creditBatch_result implements org.apache.thrift.TBase<creditBatch_result, creditBatch_result._Fields>, java.io.Serializable, Cloneable   {
-
 
125822
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("creditBatch_result");
-
 
125823
 
-
 
125824
 
-
 
125825
 
-
 
125826
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125827
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125828
;
-
 
125829
 
-
 
125830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125831
 
-
 
125832
      static {
-
 
125833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125834
          byName.put(field.getFieldName(), field);
-
 
125835
        }
-
 
125836
      }
-
 
125837
 
-
 
125838
      /**
-
 
125839
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125840
       */
-
 
125841
      public static _Fields findByThriftId(int fieldId) {
-
 
125842
        switch(fieldId) {
-
 
125843
          default:
-
 
125844
            return null;
-
 
125845
        }
-
 
125846
      }
-
 
125847
 
-
 
125848
      /**
-
 
125849
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125850
       * if it is not found.
-
 
125851
       */
-
 
125852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125853
        _Fields fields = findByThriftId(fieldId);
-
 
125854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125855
        return fields;
-
 
125856
      }
-
 
125857
 
-
 
125858
      /**
-
 
125859
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125860
       */
-
 
125861
      public static _Fields findByName(String name) {
-
 
125862
        return byName.get(name);
-
 
125863
      }
-
 
125864
 
-
 
125865
      private final short _thriftId;
-
 
125866
      private final String _fieldName;
-
 
125867
 
-
 
125868
      _Fields(short thriftId, String fieldName) {
-
 
125869
        _thriftId = thriftId;
-
 
125870
        _fieldName = fieldName;
-
 
125871
      }
-
 
125872
 
-
 
125873
      public short getThriftFieldId() {
-
 
125874
        return _thriftId;
-
 
125875
      }
-
 
125876
 
-
 
125877
      public String getFieldName() {
-
 
125878
        return _fieldName;
-
 
125879
      }
-
 
125880
    }
-
 
125881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125882
    static {
-
 
125883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125884
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125885
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(creditBatch_result.class, metaDataMap);
-
 
125886
    }
-
 
125887
 
-
 
125888
    public creditBatch_result() {
-
 
125889
    }
-
 
125890
 
-
 
125891
    /**
-
 
125892
     * Performs a deep copy on <i>other</i>.
-
 
125893
     */
-
 
125894
    public creditBatch_result(creditBatch_result other) {
-
 
125895
    }
-
 
125896
 
-
 
125897
    public creditBatch_result deepCopy() {
-
 
125898
      return new creditBatch_result(this);
-
 
125899
    }
-
 
125900
 
-
 
125901
    @Override
-
 
125902
    public void clear() {
-
 
125903
    }
-
 
125904
 
-
 
125905
    public void setFieldValue(_Fields field, Object value) {
-
 
125906
      switch (field) {
-
 
125907
      }
-
 
125908
    }
-
 
125909
 
-
 
125910
    public Object getFieldValue(_Fields field) {
-
 
125911
      switch (field) {
-
 
125912
      }
-
 
125913
      throw new IllegalStateException();
-
 
125914
    }
-
 
125915
 
-
 
125916
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125917
    public boolean isSet(_Fields field) {
-
 
125918
      if (field == null) {
-
 
125919
        throw new IllegalArgumentException();
-
 
125920
      }
-
 
125921
 
-
 
125922
      switch (field) {
-
 
125923
      }
-
 
125924
      throw new IllegalStateException();
-
 
125925
    }
-
 
125926
 
-
 
125927
    @Override
-
 
125928
    public boolean equals(Object that) {
-
 
125929
      if (that == null)
-
 
125930
        return false;
-
 
125931
      if (that instanceof creditBatch_result)
-
 
125932
        return this.equals((creditBatch_result)that);
-
 
125933
      return false;
-
 
125934
    }
-
 
125935
 
-
 
125936
    public boolean equals(creditBatch_result that) {
-
 
125937
      if (that == null)
-
 
125938
        return false;
-
 
125939
 
-
 
125940
      return true;
-
 
125941
    }
-
 
125942
 
-
 
125943
    @Override
-
 
125944
    public int hashCode() {
-
 
125945
      return 0;
-
 
125946
    }
-
 
125947
 
-
 
125948
    public int compareTo(creditBatch_result other) {
-
 
125949
      if (!getClass().equals(other.getClass())) {
-
 
125950
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125951
      }
-
 
125952
 
-
 
125953
      int lastComparison = 0;
-
 
125954
      creditBatch_result typedOther = (creditBatch_result)other;
-
 
125955
 
-
 
125956
      return 0;
-
 
125957
    }
-
 
125958
 
-
 
125959
    public _Fields fieldForId(int fieldId) {
-
 
125960
      return _Fields.findByThriftId(fieldId);
-
 
125961
    }
-
 
125962
 
-
 
125963
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125964
      org.apache.thrift.protocol.TField field;
-
 
125965
      iprot.readStructBegin();
-
 
125966
      while (true)
-
 
125967
      {
-
 
125968
        field = iprot.readFieldBegin();
-
 
125969
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125970
          break;
-
 
125971
        }
-
 
125972
        switch (field.id) {
-
 
125973
          default:
-
 
125974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125975
        }
-
 
125976
        iprot.readFieldEnd();
-
 
125977
      }
-
 
125978
      iprot.readStructEnd();
-
 
125979
      validate();
-
 
125980
    }
-
 
125981
 
-
 
125982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125983
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125984
 
-
 
125985
      oprot.writeFieldStop();
-
 
125986
      oprot.writeStructEnd();
-
 
125987
    }
-
 
125988
 
-
 
125989
    @Override
-
 
125990
    public String toString() {
-
 
125991
      StringBuilder sb = new StringBuilder("creditBatch_result(");
-
 
125992
      boolean first = true;
-
 
125993
 
-
 
125994
      sb.append(")");
-
 
125995
      return sb.toString();
-
 
125996
    }
125339
 
125997
 
125340
    public void validate() throws org.apache.thrift.TException {
125998
    public void validate() throws org.apache.thrift.TException {
125341
      // check for required fields
125999
      // check for required fields
125342
    }
126000
    }
125343
 
126001