Subversion Repositories SmartDukaan

Rev

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

Rev 7343 Rev 7363
Line 943... Line 943...
943
 
943
 
944
    public long topupCompanyWallet(long companyId, long amount) throws org.apache.thrift.TException;
944
    public long topupCompanyWallet(long companyId, long amount) throws org.apache.thrift.TException;
945
 
945
 
946
    public long getWalletBalanceForCompany(long companyId) throws org.apache.thrift.TException;
946
    public long getWalletBalanceForCompany(long companyId) throws org.apache.thrift.TException;
947
 
947
 
-
 
948
    public long getSaholicRechargeBalance() throws org.apache.thrift.TException;
-
 
949
 
948
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException;
950
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException;
949
 
951
 
950
    public List<TelecomCircle> getAllCircles() throws org.apache.thrift.TException;
952
    public List<TelecomCircle> getAllCircles() throws org.apache.thrift.TException;
951
 
953
 
952
    public boolean deleteFrcs(List<Long> frcIdsToDelete) throws org.apache.thrift.TException;
954
    public boolean deleteFrcs(List<Long> frcIdsToDelete) throws org.apache.thrift.TException;
Line 1299... Line 1301...
1299
 
1301
 
1300
    public void topupCompanyWallet(long companyId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.topupCompanyWallet_call> resultHandler) throws org.apache.thrift.TException;
1302
    public void topupCompanyWallet(long companyId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.topupCompanyWallet_call> resultHandler) throws org.apache.thrift.TException;
1301
 
1303
 
1302
    public void getWalletBalanceForCompany(long companyId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWalletBalanceForCompany_call> resultHandler) throws org.apache.thrift.TException;
1304
    public void getWalletBalanceForCompany(long companyId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWalletBalanceForCompany_call> resultHandler) throws org.apache.thrift.TException;
1303
 
1305
 
-
 
1306
    public void getSaholicRechargeBalance(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSaholicRechargeBalance_call> resultHandler) throws org.apache.thrift.TException;
-
 
1307
 
1304
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSourceDetail_call> resultHandler) throws org.apache.thrift.TException;
1308
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSourceDetail_call> resultHandler) throws org.apache.thrift.TException;
1305
 
1309
 
1306
    public void getAllCircles(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCircles_call> resultHandler) throws org.apache.thrift.TException;
1310
    public void getAllCircles(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCircles_call> resultHandler) throws org.apache.thrift.TException;
1307
 
1311
 
1308
    public void deleteFrcs(List<Long> frcIdsToDelete, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteFrcs_call> resultHandler) throws org.apache.thrift.TException;
1312
    public void deleteFrcs(List<Long> frcIdsToDelete, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteFrcs_call> resultHandler) throws org.apache.thrift.TException;
Line 5507... Line 5511...
5507
        return result.success;
5511
        return result.success;
5508
      }
5512
      }
5509
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWalletBalanceForCompany failed: unknown result");
5513
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWalletBalanceForCompany failed: unknown result");
5510
    }
5514
    }
5511
 
5515
 
-
 
5516
    public long getSaholicRechargeBalance() throws org.apache.thrift.TException
-
 
5517
    {
-
 
5518
      send_getSaholicRechargeBalance();
-
 
5519
      return recv_getSaholicRechargeBalance();
-
 
5520
    }
-
 
5521
 
-
 
5522
    public void send_getSaholicRechargeBalance() throws org.apache.thrift.TException
-
 
5523
    {
-
 
5524
      getSaholicRechargeBalance_args args = new getSaholicRechargeBalance_args();
-
 
5525
      sendBase("getSaholicRechargeBalance", args);
-
 
5526
    }
-
 
5527
 
-
 
5528
    public long recv_getSaholicRechargeBalance() throws org.apache.thrift.TException
-
 
5529
    {
-
 
5530
      getSaholicRechargeBalance_result result = new getSaholicRechargeBalance_result();
-
 
5531
      receiveBase(result, "getSaholicRechargeBalance");
-
 
5532
      if (result.isSetSuccess()) {
-
 
5533
        return result.success;
-
 
5534
      }
-
 
5535
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSaholicRechargeBalance failed: unknown result");
-
 
5536
    }
-
 
5537
 
5512
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException
5538
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException
5513
    {
5539
    {
5514
      send_getSourceDetail(source);
5540
      send_getSourceDetail(source);
5515
      return recv_getSourceDetail();
5541
      return recv_getSourceDetail();
5516
    }
5542
    }
Line 11563... Line 11589...
11563
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11564
        return (new Client(prot)).recv_getWalletBalanceForCompany();
11590
        return (new Client(prot)).recv_getWalletBalanceForCompany();
11565
      }
11591
      }
11566
    }
11592
    }
11567
 
11593
 
-
 
11594
    public void getSaholicRechargeBalance(org.apache.thrift.async.AsyncMethodCallback<getSaholicRechargeBalance_call> resultHandler) throws org.apache.thrift.TException {
-
 
11595
      checkReady();
-
 
11596
      getSaholicRechargeBalance_call method_call = new getSaholicRechargeBalance_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
11597
      this.___currentMethod = method_call;
-
 
11598
      ___manager.call(method_call);
-
 
11599
    }
-
 
11600
 
-
 
11601
    public static class getSaholicRechargeBalance_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11602
      public getSaholicRechargeBalance_call(org.apache.thrift.async.AsyncMethodCallback<getSaholicRechargeBalance_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 {
-
 
11603
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11604
      }
-
 
11605
 
-
 
11606
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11607
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSaholicRechargeBalance", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11608
        getSaholicRechargeBalance_args args = new getSaholicRechargeBalance_args();
-
 
11609
        args.write(prot);
-
 
11610
        prot.writeMessageEnd();
-
 
11611
      }
-
 
11612
 
-
 
11613
      public long getResult() throws org.apache.thrift.TException {
-
 
11614
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11615
          throw new IllegalStateException("Method call not finished!");
-
 
11616
        }
-
 
11617
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11618
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11619
        return (new Client(prot)).recv_getSaholicRechargeBalance();
-
 
11620
      }
-
 
11621
    }
-
 
11622
 
11568
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<getSourceDetail_call> resultHandler) throws org.apache.thrift.TException {
11623
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<getSourceDetail_call> resultHandler) throws org.apache.thrift.TException {
11569
      checkReady();
11624
      checkReady();
11570
      getSourceDetail_call method_call = new getSourceDetail_call(source, resultHandler, this, ___protocolFactory, ___transport);
11625
      getSourceDetail_call method_call = new getSourceDetail_call(source, resultHandler, this, ___protocolFactory, ___transport);
11571
      this.___currentMethod = method_call;
11626
      this.___currentMethod = method_call;
11572
      ___manager.call(method_call);
11627
      ___manager.call(method_call);
Line 12074... Line 12129...
12074
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
12129
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
12075
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
12130
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
12076
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
12131
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
12077
      processMap.put("topupCompanyWallet", new topupCompanyWallet());
12132
      processMap.put("topupCompanyWallet", new topupCompanyWallet());
12078
      processMap.put("getWalletBalanceForCompany", new getWalletBalanceForCompany());
12133
      processMap.put("getWalletBalanceForCompany", new getWalletBalanceForCompany());
-
 
12134
      processMap.put("getSaholicRechargeBalance", new getSaholicRechargeBalance());
12079
      processMap.put("getSourceDetail", new getSourceDetail());
12135
      processMap.put("getSourceDetail", new getSourceDetail());
12080
      processMap.put("getAllCircles", new getAllCircles());
12136
      processMap.put("getAllCircles", new getAllCircles());
12081
      processMap.put("deleteFrcs", new deleteFrcs());
12137
      processMap.put("deleteFrcs", new deleteFrcs());
12082
      processMap.put("addAmazonOrder", new addAmazonOrder());
12138
      processMap.put("addAmazonOrder", new addAmazonOrder());
12083
      processMap.put("updateAmazonOrderStatus", new updateAmazonOrderStatus());
12139
      processMap.put("updateAmazonOrderStatus", new updateAmazonOrderStatus());
Line 15174... Line 15230...
15174
        result.setSuccessIsSet(true);
15230
        result.setSuccessIsSet(true);
15175
        return result;
15231
        return result;
15176
      }
15232
      }
15177
    }
15233
    }
15178
 
15234
 
-
 
15235
    private static class getSaholicRechargeBalance<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSaholicRechargeBalance_args> {
-
 
15236
      public getSaholicRechargeBalance() {
-
 
15237
        super("getSaholicRechargeBalance");
-
 
15238
      }
-
 
15239
 
-
 
15240
      protected getSaholicRechargeBalance_args getEmptyArgsInstance() {
-
 
15241
        return new getSaholicRechargeBalance_args();
-
 
15242
      }
-
 
15243
 
-
 
15244
      protected getSaholicRechargeBalance_result getResult(I iface, getSaholicRechargeBalance_args args) throws org.apache.thrift.TException {
-
 
15245
        getSaholicRechargeBalance_result result = new getSaholicRechargeBalance_result();
-
 
15246
        result.success = iface.getSaholicRechargeBalance();
-
 
15247
        result.setSuccessIsSet(true);
-
 
15248
        return result;
-
 
15249
      }
-
 
15250
    }
-
 
15251
 
15179
    private static class getSourceDetail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSourceDetail_args> {
15252
    private static class getSourceDetail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSourceDetail_args> {
15180
      public getSourceDetail() {
15253
      public getSourceDetail() {
15181
        super("getSourceDetail");
15254
        super("getSourceDetail");
15182
      }
15255
      }
15183
 
15256
 
Line 59625... Line 59698...
59625
      }
59698
      }
59626
    }
59699
    }
59627
 
59700
 
59628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59701
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59629
      try {
59702
      try {
-
 
59703
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
59704
        __isset_bit_vector = new BitSet(1);
59630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59705
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59631
      } catch (org.apache.thrift.TException te) {
59706
      } catch (org.apache.thrift.TException te) {
59632
        throw new java.io.IOException(te);
59707
        throw new java.io.IOException(te);
59633
      }
59708
      }
59634
    }
59709
    }
Line 64475... Line 64550...
64475
      }
64550
      }
64476
    }
64551
    }
64477
 
64552
 
64478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64479
      try {
64554
      try {
-
 
64555
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
64556
        __isset_bit_vector = new BitSet(1);
64480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64557
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64481
      } catch (org.apache.thrift.TException te) {
64558
      } catch (org.apache.thrift.TException te) {
64482
        throw new java.io.IOException(te);
64559
        throw new java.io.IOException(te);
64483
      }
64560
      }
64484
    }
64561
    }
Line 65906... Line 65983...
65906
      }
65983
      }
65907
    }
65984
    }
65908
 
65985
 
65909
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65910
      try {
65987
      try {
-
 
65988
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65989
        __isset_bit_vector = new BitSet(1);
65911
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65912
      } catch (org.apache.thrift.TException te) {
65991
      } catch (org.apache.thrift.TException te) {
65913
        throw new java.io.IOException(te);
65992
        throw new java.io.IOException(te);
65914
      }
65993
      }
65915
    }
65994
    }
Line 135654... Line 135733...
135654
      boolean first = true;
135733
      boolean first = true;
135655
 
135734
 
135656
      sb.append("success:");
135735
      sb.append("success:");
135657
      sb.append(this.success);
135736
      sb.append(this.success);
135658
      first = false;
135737
      first = false;
-
 
135738
      sb.append(")");
-
 
135739
      return sb.toString();
-
 
135740
    }
-
 
135741
 
-
 
135742
    public void validate() throws org.apache.thrift.TException {
-
 
135743
      // check for required fields
-
 
135744
    }
-
 
135745
 
-
 
135746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
135747
      try {
-
 
135748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
135749
      } catch (org.apache.thrift.TException te) {
-
 
135750
        throw new java.io.IOException(te);
-
 
135751
      }
-
 
135752
    }
-
 
135753
 
-
 
135754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
135755
      try {
-
 
135756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
135757
      } catch (org.apache.thrift.TException te) {
-
 
135758
        throw new java.io.IOException(te);
-
 
135759
      }
-
 
135760
    }
-
 
135761
 
-
 
135762
  }
-
 
135763
 
-
 
135764
  public static class getSaholicRechargeBalance_args implements org.apache.thrift.TBase<getSaholicRechargeBalance_args, getSaholicRechargeBalance_args._Fields>, java.io.Serializable, Cloneable   {
-
 
135765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSaholicRechargeBalance_args");
-
 
135766
 
-
 
135767
 
-
 
135768
 
-
 
135769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
135770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
135771
;
-
 
135772
 
-
 
135773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
135774
 
-
 
135775
      static {
-
 
135776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
135777
          byName.put(field.getFieldName(), field);
-
 
135778
        }
-
 
135779
      }
-
 
135780
 
-
 
135781
      /**
-
 
135782
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
135783
       */
-
 
135784
      public static _Fields findByThriftId(int fieldId) {
-
 
135785
        switch(fieldId) {
-
 
135786
          default:
-
 
135787
            return null;
-
 
135788
        }
-
 
135789
      }
-
 
135790
 
-
 
135791
      /**
-
 
135792
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
135793
       * if it is not found.
-
 
135794
       */
-
 
135795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
135796
        _Fields fields = findByThriftId(fieldId);
-
 
135797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
135798
        return fields;
-
 
135799
      }
-
 
135800
 
-
 
135801
      /**
-
 
135802
       * Find the _Fields constant that matches name, or null if its not found.
-
 
135803
       */
-
 
135804
      public static _Fields findByName(String name) {
-
 
135805
        return byName.get(name);
-
 
135806
      }
-
 
135807
 
-
 
135808
      private final short _thriftId;
-
 
135809
      private final String _fieldName;
-
 
135810
 
-
 
135811
      _Fields(short thriftId, String fieldName) {
-
 
135812
        _thriftId = thriftId;
-
 
135813
        _fieldName = fieldName;
-
 
135814
      }
-
 
135815
 
-
 
135816
      public short getThriftFieldId() {
-
 
135817
        return _thriftId;
-
 
135818
      }
-
 
135819
 
-
 
135820
      public String getFieldName() {
-
 
135821
        return _fieldName;
-
 
135822
      }
-
 
135823
    }
-
 
135824
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
135825
    static {
-
 
135826
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
135827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
135828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSaholicRechargeBalance_args.class, metaDataMap);
-
 
135829
    }
-
 
135830
 
-
 
135831
    public getSaholicRechargeBalance_args() {
-
 
135832
    }
-
 
135833
 
-
 
135834
    /**
-
 
135835
     * Performs a deep copy on <i>other</i>.
-
 
135836
     */
-
 
135837
    public getSaholicRechargeBalance_args(getSaholicRechargeBalance_args other) {
-
 
135838
    }
-
 
135839
 
-
 
135840
    public getSaholicRechargeBalance_args deepCopy() {
-
 
135841
      return new getSaholicRechargeBalance_args(this);
-
 
135842
    }
-
 
135843
 
-
 
135844
    @Override
-
 
135845
    public void clear() {
-
 
135846
    }
-
 
135847
 
-
 
135848
    public void setFieldValue(_Fields field, Object value) {
-
 
135849
      switch (field) {
-
 
135850
      }
-
 
135851
    }
-
 
135852
 
-
 
135853
    public Object getFieldValue(_Fields field) {
-
 
135854
      switch (field) {
-
 
135855
      }
-
 
135856
      throw new IllegalStateException();
-
 
135857
    }
-
 
135858
 
-
 
135859
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
135860
    public boolean isSet(_Fields field) {
-
 
135861
      if (field == null) {
-
 
135862
        throw new IllegalArgumentException();
-
 
135863
      }
-
 
135864
 
-
 
135865
      switch (field) {
-
 
135866
      }
-
 
135867
      throw new IllegalStateException();
-
 
135868
    }
-
 
135869
 
-
 
135870
    @Override
-
 
135871
    public boolean equals(Object that) {
-
 
135872
      if (that == null)
-
 
135873
        return false;
-
 
135874
      if (that instanceof getSaholicRechargeBalance_args)
-
 
135875
        return this.equals((getSaholicRechargeBalance_args)that);
-
 
135876
      return false;
-
 
135877
    }
-
 
135878
 
-
 
135879
    public boolean equals(getSaholicRechargeBalance_args that) {
-
 
135880
      if (that == null)
-
 
135881
        return false;
-
 
135882
 
-
 
135883
      return true;
-
 
135884
    }
-
 
135885
 
-
 
135886
    @Override
-
 
135887
    public int hashCode() {
-
 
135888
      return 0;
-
 
135889
    }
-
 
135890
 
-
 
135891
    public int compareTo(getSaholicRechargeBalance_args other) {
-
 
135892
      if (!getClass().equals(other.getClass())) {
-
 
135893
        return getClass().getName().compareTo(other.getClass().getName());
-
 
135894
      }
-
 
135895
 
-
 
135896
      int lastComparison = 0;
-
 
135897
      getSaholicRechargeBalance_args typedOther = (getSaholicRechargeBalance_args)other;
-
 
135898
 
-
 
135899
      return 0;
-
 
135900
    }
-
 
135901
 
-
 
135902
    public _Fields fieldForId(int fieldId) {
-
 
135903
      return _Fields.findByThriftId(fieldId);
-
 
135904
    }
-
 
135905
 
-
 
135906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
135907
      org.apache.thrift.protocol.TField field;
-
 
135908
      iprot.readStructBegin();
-
 
135909
      while (true)
-
 
135910
      {
-
 
135911
        field = iprot.readFieldBegin();
-
 
135912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
135913
          break;
-
 
135914
        }
-
 
135915
        switch (field.id) {
-
 
135916
          default:
-
 
135917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
135918
        }
-
 
135919
        iprot.readFieldEnd();
-
 
135920
      }
-
 
135921
      iprot.readStructEnd();
-
 
135922
      validate();
-
 
135923
    }
-
 
135924
 
-
 
135925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
135926
      validate();
-
 
135927
 
-
 
135928
      oprot.writeStructBegin(STRUCT_DESC);
-
 
135929
      oprot.writeFieldStop();
-
 
135930
      oprot.writeStructEnd();
-
 
135931
    }
-
 
135932
 
-
 
135933
    @Override
-
 
135934
    public String toString() {
-
 
135935
      StringBuilder sb = new StringBuilder("getSaholicRechargeBalance_args(");
-
 
135936
      boolean first = true;
-
 
135937
 
-
 
135938
      sb.append(")");
-
 
135939
      return sb.toString();
-
 
135940
    }
-
 
135941
 
-
 
135942
    public void validate() throws org.apache.thrift.TException {
-
 
135943
      // check for required fields
-
 
135944
    }
-
 
135945
 
-
 
135946
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
135947
      try {
-
 
135948
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
135949
      } catch (org.apache.thrift.TException te) {
-
 
135950
        throw new java.io.IOException(te);
-
 
135951
      }
-
 
135952
    }
-
 
135953
 
-
 
135954
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
135955
      try {
-
 
135956
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
135957
      } catch (org.apache.thrift.TException te) {
-
 
135958
        throw new java.io.IOException(te);
-
 
135959
      }
-
 
135960
    }
-
 
135961
 
-
 
135962
  }
-
 
135963
 
-
 
135964
  public static class getSaholicRechargeBalance_result implements org.apache.thrift.TBase<getSaholicRechargeBalance_result, getSaholicRechargeBalance_result._Fields>, java.io.Serializable, Cloneable   {
-
 
135965
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSaholicRechargeBalance_result");
-
 
135966
 
-
 
135967
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
135968
 
-
 
135969
    private long success; // required
-
 
135970
 
-
 
135971
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
135972
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
135973
      SUCCESS((short)0, "success");
-
 
135974
 
-
 
135975
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
135976
 
-
 
135977
      static {
-
 
135978
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
135979
          byName.put(field.getFieldName(), field);
-
 
135980
        }
-
 
135981
      }
-
 
135982
 
-
 
135983
      /**
-
 
135984
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
135985
       */
-
 
135986
      public static _Fields findByThriftId(int fieldId) {
-
 
135987
        switch(fieldId) {
-
 
135988
          case 0: // SUCCESS
-
 
135989
            return SUCCESS;
-
 
135990
          default:
-
 
135991
            return null;
-
 
135992
        }
-
 
135993
      }
-
 
135994
 
-
 
135995
      /**
-
 
135996
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
135997
       * if it is not found.
-
 
135998
       */
-
 
135999
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
136000
        _Fields fields = findByThriftId(fieldId);
-
 
136001
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
136002
        return fields;
-
 
136003
      }
-
 
136004
 
-
 
136005
      /**
-
 
136006
       * Find the _Fields constant that matches name, or null if its not found.
-
 
136007
       */
-
 
136008
      public static _Fields findByName(String name) {
-
 
136009
        return byName.get(name);
-
 
136010
      }
-
 
136011
 
-
 
136012
      private final short _thriftId;
-
 
136013
      private final String _fieldName;
-
 
136014
 
-
 
136015
      _Fields(short thriftId, String fieldName) {
-
 
136016
        _thriftId = thriftId;
-
 
136017
        _fieldName = fieldName;
-
 
136018
      }
-
 
136019
 
-
 
136020
      public short getThriftFieldId() {
-
 
136021
        return _thriftId;
-
 
136022
      }
-
 
136023
 
-
 
136024
      public String getFieldName() {
-
 
136025
        return _fieldName;
-
 
136026
      }
-
 
136027
    }
-
 
136028
 
-
 
136029
    // isset id assignments
-
 
136030
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
136031
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
136032
 
-
 
136033
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
136034
    static {
-
 
136035
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
136036
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
136037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
136038
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
136039
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSaholicRechargeBalance_result.class, metaDataMap);
-
 
136040
    }
-
 
136041
 
-
 
136042
    public getSaholicRechargeBalance_result() {
-
 
136043
    }
-
 
136044
 
-
 
136045
    public getSaholicRechargeBalance_result(
-
 
136046
      long success)
-
 
136047
    {
-
 
136048
      this();
-
 
136049
      this.success = success;
-
 
136050
      setSuccessIsSet(true);
-
 
136051
    }
-
 
136052
 
-
 
136053
    /**
-
 
136054
     * Performs a deep copy on <i>other</i>.
-
 
136055
     */
-
 
136056
    public getSaholicRechargeBalance_result(getSaholicRechargeBalance_result other) {
-
 
136057
      __isset_bit_vector.clear();
-
 
136058
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
136059
      this.success = other.success;
-
 
136060
    }
-
 
136061
 
-
 
136062
    public getSaholicRechargeBalance_result deepCopy() {
-
 
136063
      return new getSaholicRechargeBalance_result(this);
-
 
136064
    }
-
 
136065
 
-
 
136066
    @Override
-
 
136067
    public void clear() {
-
 
136068
      setSuccessIsSet(false);
-
 
136069
      this.success = 0;
-
 
136070
    }
-
 
136071
 
-
 
136072
    public long getSuccess() {
-
 
136073
      return this.success;
-
 
136074
    }
-
 
136075
 
-
 
136076
    public void setSuccess(long success) {
-
 
136077
      this.success = success;
-
 
136078
      setSuccessIsSet(true);
-
 
136079
    }
-
 
136080
 
-
 
136081
    public void unsetSuccess() {
-
 
136082
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
136083
    }
-
 
136084
 
-
 
136085
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
136086
    public boolean isSetSuccess() {
-
 
136087
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
136088
    }
-
 
136089
 
-
 
136090
    public void setSuccessIsSet(boolean value) {
-
 
136091
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
136092
    }
-
 
136093
 
-
 
136094
    public void setFieldValue(_Fields field, Object value) {
-
 
136095
      switch (field) {
-
 
136096
      case SUCCESS:
-
 
136097
        if (value == null) {
-
 
136098
          unsetSuccess();
-
 
136099
        } else {
-
 
136100
          setSuccess((Long)value);
-
 
136101
        }
-
 
136102
        break;
-
 
136103
 
-
 
136104
      }
-
 
136105
    }
-
 
136106
 
-
 
136107
    public Object getFieldValue(_Fields field) {
-
 
136108
      switch (field) {
-
 
136109
      case SUCCESS:
-
 
136110
        return Long.valueOf(getSuccess());
-
 
136111
 
-
 
136112
      }
-
 
136113
      throw new IllegalStateException();
-
 
136114
    }
-
 
136115
 
-
 
136116
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
136117
    public boolean isSet(_Fields field) {
-
 
136118
      if (field == null) {
-
 
136119
        throw new IllegalArgumentException();
-
 
136120
      }
-
 
136121
 
-
 
136122
      switch (field) {
-
 
136123
      case SUCCESS:
-
 
136124
        return isSetSuccess();
-
 
136125
      }
-
 
136126
      throw new IllegalStateException();
-
 
136127
    }
-
 
136128
 
-
 
136129
    @Override
-
 
136130
    public boolean equals(Object that) {
-
 
136131
      if (that == null)
-
 
136132
        return false;
-
 
136133
      if (that instanceof getSaholicRechargeBalance_result)
-
 
136134
        return this.equals((getSaholicRechargeBalance_result)that);
-
 
136135
      return false;
-
 
136136
    }
-
 
136137
 
-
 
136138
    public boolean equals(getSaholicRechargeBalance_result that) {
-
 
136139
      if (that == null)
-
 
136140
        return false;
-
 
136141
 
-
 
136142
      boolean this_present_success = true;
-
 
136143
      boolean that_present_success = true;
-
 
136144
      if (this_present_success || that_present_success) {
-
 
136145
        if (!(this_present_success && that_present_success))
-
 
136146
          return false;
-
 
136147
        if (this.success != that.success)
-
 
136148
          return false;
-
 
136149
      }
-
 
136150
 
-
 
136151
      return true;
-
 
136152
    }
-
 
136153
 
-
 
136154
    @Override
-
 
136155
    public int hashCode() {
-
 
136156
      return 0;
-
 
136157
    }
-
 
136158
 
-
 
136159
    public int compareTo(getSaholicRechargeBalance_result other) {
-
 
136160
      if (!getClass().equals(other.getClass())) {
-
 
136161
        return getClass().getName().compareTo(other.getClass().getName());
-
 
136162
      }
-
 
136163
 
-
 
136164
      int lastComparison = 0;
-
 
136165
      getSaholicRechargeBalance_result typedOther = (getSaholicRechargeBalance_result)other;
-
 
136166
 
-
 
136167
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
136168
      if (lastComparison != 0) {
-
 
136169
        return lastComparison;
-
 
136170
      }
-
 
136171
      if (isSetSuccess()) {
-
 
136172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
136173
        if (lastComparison != 0) {
-
 
136174
          return lastComparison;
-
 
136175
        }
-
 
136176
      }
-
 
136177
      return 0;
-
 
136178
    }
-
 
136179
 
-
 
136180
    public _Fields fieldForId(int fieldId) {
-
 
136181
      return _Fields.findByThriftId(fieldId);
-
 
136182
    }
-
 
136183
 
-
 
136184
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
136185
      org.apache.thrift.protocol.TField field;
-
 
136186
      iprot.readStructBegin();
-
 
136187
      while (true)
-
 
136188
      {
-
 
136189
        field = iprot.readFieldBegin();
-
 
136190
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
136191
          break;
-
 
136192
        }
-
 
136193
        switch (field.id) {
-
 
136194
          case 0: // SUCCESS
-
 
136195
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
136196
              this.success = iprot.readI64();
-
 
136197
              setSuccessIsSet(true);
-
 
136198
            } else { 
-
 
136199
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
136200
            }
-
 
136201
            break;
-
 
136202
          default:
-
 
136203
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
136204
        }
-
 
136205
        iprot.readFieldEnd();
-
 
136206
      }
-
 
136207
      iprot.readStructEnd();
-
 
136208
      validate();
-
 
136209
    }
-
 
136210
 
-
 
136211
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
136212
      oprot.writeStructBegin(STRUCT_DESC);
-
 
136213
 
-
 
136214
      if (this.isSetSuccess()) {
-
 
136215
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
136216
        oprot.writeI64(this.success);
-
 
136217
        oprot.writeFieldEnd();
-
 
136218
      }
-
 
136219
      oprot.writeFieldStop();
-
 
136220
      oprot.writeStructEnd();
-
 
136221
    }
-
 
136222
 
-
 
136223
    @Override
-
 
136224
    public String toString() {
-
 
136225
      StringBuilder sb = new StringBuilder("getSaholicRechargeBalance_result(");
-
 
136226
      boolean first = true;
-
 
136227
 
-
 
136228
      sb.append("success:");
-
 
136229
      sb.append(this.success);
-
 
136230
      first = false;
135659
      sb.append(")");
136231
      sb.append(")");
135660
      return sb.toString();
136232
      return sb.toString();
135661
    }
136233
    }
135662
 
136234
 
135663
    public void validate() throws org.apache.thrift.TException {
136235
    public void validate() throws org.apache.thrift.TException {