Subversion Repositories SmartDukaan

Rev

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

Rev 6188 Rev 6206
Line 871... Line 871...
871
     * 
871
     * 
872
     * @param txnId
872
     * @param txnId
873
     */
873
     */
874
    public RechargeOrder getRechargeOrdersForTransaction(long txnId) throws TransactionServiceException, org.apache.thrift.TException;
874
    public RechargeOrder getRechargeOrdersForTransaction(long txnId) throws TransactionServiceException, org.apache.thrift.TException;
875
 
875
 
876
    public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException;
876
    public Map<Long,String> getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException;
877
 
877
 
878
    public long getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber) throws org.apache.thrift.TException;
878
    public 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;
880
    public List<RechargeOrder> getRechargeOrdersForDevice(String deviceNumber) throws org.apache.thrift.TException;
881
 
881
 
Line 1159... Line 1159...
1159
 
1159
 
1160
    public void getUserWalletHistory(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWalletHistory_call> resultHandler) throws org.apache.thrift.TException;
1160
    public void getUserWalletHistory(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWalletHistory_call> resultHandler) throws org.apache.thrift.TException;
1161
 
1161
 
1162
    public void getRechargeOrdersForTransaction(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1162
    public void getRechargeOrdersForTransaction(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1163
 
1163
 
1164
    public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
1164
    public void getServiceProviders(RechargeType rechargeType, boolean onlyActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
1165
 
1165
 
1166
    public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
1166
    public void getServiceProviderForDevice(RechargeType rechargeType, String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
1167
 
1167
 
1168
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
1168
    public void getRechargeOrdersForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrdersForDevice_call> resultHandler) throws org.apache.thrift.TException;
1169
 
1169
 
Line 4616... Line 4616...
4616
        throw result.ex;
4616
        throw result.ex;
4617
      }
4617
      }
4618
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeOrdersForTransaction failed: unknown result");
4618
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeOrdersForTransaction failed: unknown result");
4619
    }
4619
    }
4620
 
4620
 
4621
    public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException
4621
    public Map<Long,String> getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException
4622
    {
4622
    {
4623
      send_getServiceProviders(rechargeType);
4623
      send_getServiceProviders(rechargeType, onlyActive);
4624
      return recv_getServiceProviders();
4624
      return recv_getServiceProviders();
4625
    }
4625
    }
4626
 
4626
 
4627
    public void send_getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException
4627
    public void send_getServiceProviders(RechargeType rechargeType, boolean onlyActive) throws org.apache.thrift.TException
4628
    {
4628
    {
4629
      getServiceProviders_args args = new getServiceProviders_args();
4629
      getServiceProviders_args args = new getServiceProviders_args();
4630
      args.setRechargeType(rechargeType);
4630
      args.setRechargeType(rechargeType);
-
 
4631
      args.setOnlyActive(onlyActive);
4631
      sendBase("getServiceProviders", args);
4632
      sendBase("getServiceProviders", args);
4632
    }
4633
    }
4633
 
4634
 
4634
    public Map<Long,String> recv_getServiceProviders() throws org.apache.thrift.TException
4635
    public Map<Long,String> recv_getServiceProviders() throws org.apache.thrift.TException
4635
    {
4636
    {
Line 9513... Line 9514...
9513
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9514
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9514
        return (new Client(prot)).recv_getRechargeOrdersForTransaction();
9515
        return (new Client(prot)).recv_getRechargeOrdersForTransaction();
9515
      }
9516
      }
9516
    }
9517
    }
9517
 
9518
 
9518
    public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<getServiceProviders_call> resultHandler) throws org.apache.thrift.TException {
9519
    public void getServiceProviders(RechargeType rechargeType, boolean onlyActive, org.apache.thrift.async.AsyncMethodCallback<getServiceProviders_call> resultHandler) throws org.apache.thrift.TException {
9519
      checkReady();
9520
      checkReady();
9520
      getServiceProviders_call method_call = new getServiceProviders_call(rechargeType, resultHandler, this, ___protocolFactory, ___transport);
9521
      getServiceProviders_call method_call = new getServiceProviders_call(rechargeType, onlyActive, resultHandler, this, ___protocolFactory, ___transport);
9521
      this.___currentMethod = method_call;
9522
      this.___currentMethod = method_call;
9522
      ___manager.call(method_call);
9523
      ___manager.call(method_call);
9523
    }
9524
    }
9524
 
9525
 
9525
    public static class getServiceProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
9526
    public static class getServiceProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
9526
      private RechargeType rechargeType;
9527
      private RechargeType rechargeType;
-
 
9528
      private boolean onlyActive;
9527
      public getServiceProviders_call(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<getServiceProviders_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 {
9529
      public getServiceProviders_call(RechargeType rechargeType, boolean onlyActive, org.apache.thrift.async.AsyncMethodCallback<getServiceProviders_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 {
9528
        super(client, protocolFactory, transport, resultHandler, false);
9530
        super(client, protocolFactory, transport, resultHandler, false);
9529
        this.rechargeType = rechargeType;
9531
        this.rechargeType = rechargeType;
-
 
9532
        this.onlyActive = onlyActive;
9530
      }
9533
      }
9531
 
9534
 
9532
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9535
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9533
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
9536
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
9534
        getServiceProviders_args args = new getServiceProviders_args();
9537
        getServiceProviders_args args = new getServiceProviders_args();
9535
        args.setRechargeType(rechargeType);
9538
        args.setRechargeType(rechargeType);
-
 
9539
        args.setOnlyActive(onlyActive);
9536
        args.write(prot);
9540
        args.write(prot);
9537
        prot.writeMessageEnd();
9541
        prot.writeMessageEnd();
9538
      }
9542
      }
9539
 
9543
 
9540
      public Map<Long,String> getResult() throws org.apache.thrift.TException {
9544
      public Map<Long,String> getResult() throws org.apache.thrift.TException {
Line 12490... Line 12494...
12490
        return new getServiceProviders_args();
12494
        return new getServiceProviders_args();
12491
      }
12495
      }
12492
 
12496
 
12493
      protected getServiceProviders_result getResult(I iface, getServiceProviders_args args) throws org.apache.thrift.TException {
12497
      protected getServiceProviders_result getResult(I iface, getServiceProviders_args args) throws org.apache.thrift.TException {
12494
        getServiceProviders_result result = new getServiceProviders_result();
12498
        getServiceProviders_result result = new getServiceProviders_result();
12495
        result.success = iface.getServiceProviders(args.rechargeType);
12499
        result.success = iface.getServiceProviders(args.rechargeType, args.onlyActive);
12496
        return result;
12500
        return result;
12497
      }
12501
      }
12498
    }
12502
    }
12499
 
12503
 
12500
    private static class getServiceProviderForDevice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServiceProviderForDevice_args> {
12504
    private static class getServiceProviderForDevice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServiceProviderForDevice_args> {
Line 111399... Line 111403...
111399
 
111403
 
111400
  public static class getServiceProviders_args implements org.apache.thrift.TBase<getServiceProviders_args, getServiceProviders_args._Fields>, java.io.Serializable, Cloneable   {
111404
  public static class getServiceProviders_args implements org.apache.thrift.TBase<getServiceProviders_args, getServiceProviders_args._Fields>, java.io.Serializable, Cloneable   {
111401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviders_args");
111405
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviders_args");
111402
 
111406
 
111403
    private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)1);
111407
    private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
111408
    private static final org.apache.thrift.protocol.TField ONLY_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("onlyActive", org.apache.thrift.protocol.TType.BOOL, (short)2);
111404
 
111409
 
111405
    private RechargeType rechargeType; // required
111410
    private RechargeType rechargeType; // required
-
 
111411
    private boolean onlyActive; // required
111406
 
111412
 
111407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
111413
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
111408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
111414
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
111409
      /**
111415
      /**
111410
       * 
111416
       * 
111411
       * @see RechargeType
111417
       * @see RechargeType
111412
       */
111418
       */
111413
      RECHARGE_TYPE((short)1, "rechargeType");
111419
      RECHARGE_TYPE((short)1, "rechargeType"),
-
 
111420
      ONLY_ACTIVE((short)2, "onlyActive");
111414
 
111421
 
111415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
111422
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
111416
 
111423
 
111417
      static {
111424
      static {
111418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
111425
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 111425... Line 111432...
111425
       */
111432
       */
111426
      public static _Fields findByThriftId(int fieldId) {
111433
      public static _Fields findByThriftId(int fieldId) {
111427
        switch(fieldId) {
111434
        switch(fieldId) {
111428
          case 1: // RECHARGE_TYPE
111435
          case 1: // RECHARGE_TYPE
111429
            return RECHARGE_TYPE;
111436
            return RECHARGE_TYPE;
-
 
111437
          case 2: // ONLY_ACTIVE
-
 
111438
            return ONLY_ACTIVE;
111430
          default:
111439
          default:
111431
            return null;
111440
            return null;
111432
        }
111441
        }
111433
      }
111442
      }
111434
 
111443
 
Line 111465... Line 111474...
111465
        return _fieldName;
111474
        return _fieldName;
111466
      }
111475
      }
111467
    }
111476
    }
111468
 
111477
 
111469
    // isset id assignments
111478
    // isset id assignments
-
 
111479
    private static final int __ONLYACTIVE_ISSET_ID = 0;
-
 
111480
    private BitSet __isset_bit_vector = new BitSet(1);
111470
 
111481
 
111471
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
111482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
111472
    static {
111483
    static {
111473
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
111484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
111474
      tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
111485
      tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
111475
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
111486
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
-
 
111487
      tmpMap.put(_Fields.ONLY_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("onlyActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
111488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
111476
      metaDataMap = Collections.unmodifiableMap(tmpMap);
111489
      metaDataMap = Collections.unmodifiableMap(tmpMap);
111477
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviders_args.class, metaDataMap);
111490
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviders_args.class, metaDataMap);
111478
    }
111491
    }
111479
 
111492
 
111480
    public getServiceProviders_args() {
111493
    public getServiceProviders_args() {
111481
    }
111494
    }
111482
 
111495
 
111483
    public getServiceProviders_args(
111496
    public getServiceProviders_args(
111484
      RechargeType rechargeType)
111497
      RechargeType rechargeType,
-
 
111498
      boolean onlyActive)
111485
    {
111499
    {
111486
      this();
111500
      this();
111487
      this.rechargeType = rechargeType;
111501
      this.rechargeType = rechargeType;
-
 
111502
      this.onlyActive = onlyActive;
-
 
111503
      setOnlyActiveIsSet(true);
111488
    }
111504
    }
111489
 
111505
 
111490
    /**
111506
    /**
111491
     * Performs a deep copy on <i>other</i>.
111507
     * Performs a deep copy on <i>other</i>.
111492
     */
111508
     */
111493
    public getServiceProviders_args(getServiceProviders_args other) {
111509
    public getServiceProviders_args(getServiceProviders_args other) {
-
 
111510
      __isset_bit_vector.clear();
-
 
111511
      __isset_bit_vector.or(other.__isset_bit_vector);
111494
      if (other.isSetRechargeType()) {
111512
      if (other.isSetRechargeType()) {
111495
        this.rechargeType = other.rechargeType;
111513
        this.rechargeType = other.rechargeType;
111496
      }
111514
      }
-
 
111515
      this.onlyActive = other.onlyActive;
111497
    }
111516
    }
111498
 
111517
 
111499
    public getServiceProviders_args deepCopy() {
111518
    public getServiceProviders_args deepCopy() {
111500
      return new getServiceProviders_args(this);
111519
      return new getServiceProviders_args(this);
111501
    }
111520
    }
111502
 
111521
 
111503
    @Override
111522
    @Override
111504
    public void clear() {
111523
    public void clear() {
111505
      this.rechargeType = null;
111524
      this.rechargeType = null;
-
 
111525
      setOnlyActiveIsSet(false);
-
 
111526
      this.onlyActive = false;
111506
    }
111527
    }
111507
 
111528
 
111508
    /**
111529
    /**
111509
     * 
111530
     * 
111510
     * @see RechargeType
111531
     * @see RechargeType
Line 111534... Line 111555...
111534
      if (!value) {
111555
      if (!value) {
111535
        this.rechargeType = null;
111556
        this.rechargeType = null;
111536
      }
111557
      }
111537
    }
111558
    }
111538
 
111559
 
-
 
111560
    public boolean isOnlyActive() {
-
 
111561
      return this.onlyActive;
-
 
111562
    }
-
 
111563
 
-
 
111564
    public void setOnlyActive(boolean onlyActive) {
-
 
111565
      this.onlyActive = onlyActive;
-
 
111566
      setOnlyActiveIsSet(true);
-
 
111567
    }
-
 
111568
 
-
 
111569
    public void unsetOnlyActive() {
-
 
111570
      __isset_bit_vector.clear(__ONLYACTIVE_ISSET_ID);
-
 
111571
    }
-
 
111572
 
-
 
111573
    /** Returns true if field onlyActive is set (has been assigned a value) and false otherwise */
-
 
111574
    public boolean isSetOnlyActive() {
-
 
111575
      return __isset_bit_vector.get(__ONLYACTIVE_ISSET_ID);
-
 
111576
    }
-
 
111577
 
-
 
111578
    public void setOnlyActiveIsSet(boolean value) {
-
 
111579
      __isset_bit_vector.set(__ONLYACTIVE_ISSET_ID, value);
-
 
111580
    }
-
 
111581
 
111539
    public void setFieldValue(_Fields field, Object value) {
111582
    public void setFieldValue(_Fields field, Object value) {
111540
      switch (field) {
111583
      switch (field) {
111541
      case RECHARGE_TYPE:
111584
      case RECHARGE_TYPE:
111542
        if (value == null) {
111585
        if (value == null) {
111543
          unsetRechargeType();
111586
          unsetRechargeType();
111544
        } else {
111587
        } else {
111545
          setRechargeType((RechargeType)value);
111588
          setRechargeType((RechargeType)value);
111546
        }
111589
        }
111547
        break;
111590
        break;
111548
 
111591
 
-
 
111592
      case ONLY_ACTIVE:
-
 
111593
        if (value == null) {
-
 
111594
          unsetOnlyActive();
-
 
111595
        } else {
-
 
111596
          setOnlyActive((Boolean)value);
-
 
111597
        }
-
 
111598
        break;
-
 
111599
 
111549
      }
111600
      }
111550
    }
111601
    }
111551
 
111602
 
111552
    public Object getFieldValue(_Fields field) {
111603
    public Object getFieldValue(_Fields field) {
111553
      switch (field) {
111604
      switch (field) {
111554
      case RECHARGE_TYPE:
111605
      case RECHARGE_TYPE:
111555
        return getRechargeType();
111606
        return getRechargeType();
111556
 
111607
 
-
 
111608
      case ONLY_ACTIVE:
-
 
111609
        return Boolean.valueOf(isOnlyActive());
-
 
111610
 
111557
      }
111611
      }
111558
      throw new IllegalStateException();
111612
      throw new IllegalStateException();
111559
    }
111613
    }
111560
 
111614
 
111561
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
111615
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 111565... Line 111619...
111565
      }
111619
      }
111566
 
111620
 
111567
      switch (field) {
111621
      switch (field) {
111568
      case RECHARGE_TYPE:
111622
      case RECHARGE_TYPE:
111569
        return isSetRechargeType();
111623
        return isSetRechargeType();
-
 
111624
      case ONLY_ACTIVE:
-
 
111625
        return isSetOnlyActive();
111570
      }
111626
      }
111571
      throw new IllegalStateException();
111627
      throw new IllegalStateException();
111572
    }
111628
    }
111573
 
111629
 
111574
    @Override
111630
    @Override
Line 111591... Line 111647...
111591
          return false;
111647
          return false;
111592
        if (!this.rechargeType.equals(that.rechargeType))
111648
        if (!this.rechargeType.equals(that.rechargeType))
111593
          return false;
111649
          return false;
111594
      }
111650
      }
111595
 
111651
 
-
 
111652
      boolean this_present_onlyActive = true;
-
 
111653
      boolean that_present_onlyActive = true;
-
 
111654
      if (this_present_onlyActive || that_present_onlyActive) {
-
 
111655
        if (!(this_present_onlyActive && that_present_onlyActive))
-
 
111656
          return false;
-
 
111657
        if (this.onlyActive != that.onlyActive)
-
 
111658
          return false;
-
 
111659
      }
-
 
111660
 
111596
      return true;
111661
      return true;
111597
    }
111662
    }
111598
 
111663
 
111599
    @Override
111664
    @Override
111600
    public int hashCode() {
111665
    public int hashCode() {
Line 111617... Line 111682...
111617
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
111682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
111618
        if (lastComparison != 0) {
111683
        if (lastComparison != 0) {
111619
          return lastComparison;
111684
          return lastComparison;
111620
        }
111685
        }
111621
      }
111686
      }
-
 
111687
      lastComparison = Boolean.valueOf(isSetOnlyActive()).compareTo(typedOther.isSetOnlyActive());
-
 
111688
      if (lastComparison != 0) {
-
 
111689
        return lastComparison;
-
 
111690
      }
-
 
111691
      if (isSetOnlyActive()) {
-
 
111692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.onlyActive, typedOther.onlyActive);
-
 
111693
        if (lastComparison != 0) {
-
 
111694
          return lastComparison;
-
 
111695
        }
-
 
111696
      }
111622
      return 0;
111697
      return 0;
111623
    }
111698
    }
111624
 
111699
 
111625
    public _Fields fieldForId(int fieldId) {
111700
    public _Fields fieldForId(int fieldId) {
111626
      return _Fields.findByThriftId(fieldId);
111701
      return _Fields.findByThriftId(fieldId);
Line 111641... Line 111716...
111641
              this.rechargeType = RechargeType.findByValue(iprot.readI32());
111716
              this.rechargeType = RechargeType.findByValue(iprot.readI32());
111642
            } else { 
111717
            } else { 
111643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111644
            }
111719
            }
111645
            break;
111720
            break;
-
 
111721
          case 2: // ONLY_ACTIVE
-
 
111722
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
111723
              this.onlyActive = iprot.readBool();
-
 
111724
              setOnlyActiveIsSet(true);
-
 
111725
            } else { 
-
 
111726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111727
            }
-
 
111728
            break;
111646
          default:
111729
          default:
111647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111648
        }
111731
        }
111649
        iprot.readFieldEnd();
111732
        iprot.readFieldEnd();
111650
      }
111733
      }
Line 111659... Line 111742...
111659
      if (this.rechargeType != null) {
111742
      if (this.rechargeType != null) {
111660
        oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
111743
        oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
111661
        oprot.writeI32(this.rechargeType.getValue());
111744
        oprot.writeI32(this.rechargeType.getValue());
111662
        oprot.writeFieldEnd();
111745
        oprot.writeFieldEnd();
111663
      }
111746
      }
-
 
111747
      oprot.writeFieldBegin(ONLY_ACTIVE_FIELD_DESC);
-
 
111748
      oprot.writeBool(this.onlyActive);
-
 
111749
      oprot.writeFieldEnd();
111664
      oprot.writeFieldStop();
111750
      oprot.writeFieldStop();
111665
      oprot.writeStructEnd();
111751
      oprot.writeStructEnd();
111666
    }
111752
    }
111667
 
111753
 
111668
    @Override
111754
    @Override
Line 111675... Line 111761...
111675
        sb.append("null");
111761
        sb.append("null");
111676
      } else {
111762
      } else {
111677
        sb.append(this.rechargeType);
111763
        sb.append(this.rechargeType);
111678
      }
111764
      }
111679
      first = false;
111765
      first = false;
-
 
111766
      if (!first) sb.append(", ");
-
 
111767
      sb.append("onlyActive:");
-
 
111768
      sb.append(this.onlyActive);
-
 
111769
      first = false;
111680
      sb.append(")");
111770
      sb.append(")");
111681
      return sb.toString();
111771
      return sb.toString();
111682
    }
111772
    }
111683
 
111773
 
111684
    public void validate() throws org.apache.thrift.TException {
111774
    public void validate() throws org.apache.thrift.TException {
Line 111693... Line 111783...
111693
      }
111783
      }
111694
    }
111784
    }
111695
 
111785
 
111696
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
111786
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
111697
      try {
111787
      try {
-
 
111788
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
111789
        __isset_bit_vector = new BitSet(1);
111698
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
111790
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
111699
      } catch (org.apache.thrift.TException te) {
111791
      } catch (org.apache.thrift.TException te) {
111700
        throw new java.io.IOException(te);
111792
        throw new java.io.IOException(te);
111701
      }
111793
      }
111702
    }
111794
    }