Subversion Repositories SmartDukaan

Rev

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

Rev 7267 Rev 7285
Line 939... Line 939...
939
 
939
 
940
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException;
940
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException;
941
 
941
 
942
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
942
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
943
 
943
 
-
 
944
    public long topupCompanyWallet(long companyId, long amount) throws org.apache.thrift.TException;
-
 
945
 
-
 
946
    public long getWalletBalanceForCompany(long companyId) throws org.apache.thrift.TException;
-
 
947
 
944
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException;
948
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException;
945
 
949
 
946
    public List<TelecomCircle> getAllCircles() throws org.apache.thrift.TException;
950
    public List<TelecomCircle> getAllCircles() throws org.apache.thrift.TException;
947
 
951
 
948
    public boolean deleteFrcs(List<Long> frcIdsToDelete) throws org.apache.thrift.TException;
952
    public boolean deleteFrcs(List<Long> frcIdsToDelete) throws org.apache.thrift.TException;
Line 1277... Line 1281...
1277
 
1281
 
1278
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
1282
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
1279
 
1283
 
1280
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
1284
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
1281
 
1285
 
-
 
1286
    public void topupCompanyWallet(long companyId, long amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.topupCompanyWallet_call> resultHandler) throws org.apache.thrift.TException;
-
 
1287
 
-
 
1288
    public void getWalletBalanceForCompany(long companyId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWalletBalanceForCompany_call> resultHandler) throws org.apache.thrift.TException;
-
 
1289
 
1282
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSourceDetail_call> resultHandler) throws org.apache.thrift.TException;
1290
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSourceDetail_call> resultHandler) throws org.apache.thrift.TException;
1283
 
1291
 
1284
    public void getAllCircles(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCircles_call> resultHandler) throws org.apache.thrift.TException;
1292
    public void getAllCircles(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllCircles_call> resultHandler) throws org.apache.thrift.TException;
1285
 
1293
 
1286
    public void deleteFrcs(List<Long> frcIdsToDelete, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteFrcs_call> resultHandler) throws org.apache.thrift.TException;
1294
    public void deleteFrcs(List<Long> frcIdsToDelete, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteFrcs_call> resultHandler) throws org.apache.thrift.TException;
Line 5423... Line 5431...
5423
        return result.success;
5431
        return result.success;
5424
      }
5432
      }
5425
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
5433
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
5426
    }
5434
    }
5427
 
5435
 
-
 
5436
    public long topupCompanyWallet(long companyId, long amount) throws org.apache.thrift.TException
-
 
5437
    {
-
 
5438
      send_topupCompanyWallet(companyId, amount);
-
 
5439
      return recv_topupCompanyWallet();
-
 
5440
    }
-
 
5441
 
-
 
5442
    public void send_topupCompanyWallet(long companyId, long amount) throws org.apache.thrift.TException
-
 
5443
    {
-
 
5444
      topupCompanyWallet_args args = new topupCompanyWallet_args();
-
 
5445
      args.setCompanyId(companyId);
-
 
5446
      args.setAmount(amount);
-
 
5447
      sendBase("topupCompanyWallet", args);
-
 
5448
    }
-
 
5449
 
-
 
5450
    public long recv_topupCompanyWallet() throws org.apache.thrift.TException
-
 
5451
    {
-
 
5452
      topupCompanyWallet_result result = new topupCompanyWallet_result();
-
 
5453
      receiveBase(result, "topupCompanyWallet");
-
 
5454
      if (result.isSetSuccess()) {
-
 
5455
        return result.success;
-
 
5456
      }
-
 
5457
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "topupCompanyWallet failed: unknown result");
-
 
5458
    }
-
 
5459
 
-
 
5460
    public long getWalletBalanceForCompany(long companyId) throws org.apache.thrift.TException
-
 
5461
    {
-
 
5462
      send_getWalletBalanceForCompany(companyId);
-
 
5463
      return recv_getWalletBalanceForCompany();
-
 
5464
    }
-
 
5465
 
-
 
5466
    public void send_getWalletBalanceForCompany(long companyId) throws org.apache.thrift.TException
-
 
5467
    {
-
 
5468
      getWalletBalanceForCompany_args args = new getWalletBalanceForCompany_args();
-
 
5469
      args.setCompanyId(companyId);
-
 
5470
      sendBase("getWalletBalanceForCompany", args);
-
 
5471
    }
-
 
5472
 
-
 
5473
    public long recv_getWalletBalanceForCompany() throws org.apache.thrift.TException
-
 
5474
    {
-
 
5475
      getWalletBalanceForCompany_result result = new getWalletBalanceForCompany_result();
-
 
5476
      receiveBase(result, "getWalletBalanceForCompany");
-
 
5477
      if (result.isSetSuccess()) {
-
 
5478
        return result.success;
-
 
5479
      }
-
 
5480
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWalletBalanceForCompany failed: unknown result");
-
 
5481
    }
-
 
5482
 
5428
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException
5483
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException
5429
    {
5484
    {
5430
      send_getSourceDetail(source);
5485
      send_getSourceDetail(source);
5431
      return recv_getSourceDetail();
5486
      return recv_getSourceDetail();
5432
    }
5487
    }
Line 11246... Line 11301...
11246
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11301
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11247
        return (new Client(prot)).recv_updateHotspotStorePassword();
11302
        return (new Client(prot)).recv_updateHotspotStorePassword();
11248
      }
11303
      }
11249
    }
11304
    }
11250
 
11305
 
-
 
11306
    public void topupCompanyWallet(long companyId, long amount, org.apache.thrift.async.AsyncMethodCallback<topupCompanyWallet_call> resultHandler) throws org.apache.thrift.TException {
-
 
11307
      checkReady();
-
 
11308
      topupCompanyWallet_call method_call = new topupCompanyWallet_call(companyId, amount, resultHandler, this, ___protocolFactory, ___transport);
-
 
11309
      this.___currentMethod = method_call;
-
 
11310
      ___manager.call(method_call);
-
 
11311
    }
-
 
11312
 
-
 
11313
    public static class topupCompanyWallet_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11314
      private long companyId;
-
 
11315
      private long amount;
-
 
11316
      public topupCompanyWallet_call(long companyId, long amount, org.apache.thrift.async.AsyncMethodCallback<topupCompanyWallet_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 {
-
 
11317
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11318
        this.companyId = companyId;
-
 
11319
        this.amount = amount;
-
 
11320
      }
-
 
11321
 
-
 
11322
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11323
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("topupCompanyWallet", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11324
        topupCompanyWallet_args args = new topupCompanyWallet_args();
-
 
11325
        args.setCompanyId(companyId);
-
 
11326
        args.setAmount(amount);
-
 
11327
        args.write(prot);
-
 
11328
        prot.writeMessageEnd();
-
 
11329
      }
-
 
11330
 
-
 
11331
      public long getResult() throws org.apache.thrift.TException {
-
 
11332
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11333
          throw new IllegalStateException("Method call not finished!");
-
 
11334
        }
-
 
11335
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11336
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11337
        return (new Client(prot)).recv_topupCompanyWallet();
-
 
11338
      }
-
 
11339
    }
-
 
11340
 
-
 
11341
    public void getWalletBalanceForCompany(long companyId, org.apache.thrift.async.AsyncMethodCallback<getWalletBalanceForCompany_call> resultHandler) throws org.apache.thrift.TException {
-
 
11342
      checkReady();
-
 
11343
      getWalletBalanceForCompany_call method_call = new getWalletBalanceForCompany_call(companyId, resultHandler, this, ___protocolFactory, ___transport);
-
 
11344
      this.___currentMethod = method_call;
-
 
11345
      ___manager.call(method_call);
-
 
11346
    }
-
 
11347
 
-
 
11348
    public static class getWalletBalanceForCompany_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11349
      private long companyId;
-
 
11350
      public getWalletBalanceForCompany_call(long companyId, org.apache.thrift.async.AsyncMethodCallback<getWalletBalanceForCompany_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 {
-
 
11351
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11352
        this.companyId = companyId;
-
 
11353
      }
-
 
11354
 
-
 
11355
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11356
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWalletBalanceForCompany", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11357
        getWalletBalanceForCompany_args args = new getWalletBalanceForCompany_args();
-
 
11358
        args.setCompanyId(companyId);
-
 
11359
        args.write(prot);
-
 
11360
        prot.writeMessageEnd();
-
 
11361
      }
-
 
11362
 
-
 
11363
      public long getResult() throws org.apache.thrift.TException {
-
 
11364
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11365
          throw new IllegalStateException("Method call not finished!");
-
 
11366
        }
-
 
11367
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11368
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11369
        return (new Client(prot)).recv_getWalletBalanceForCompany();
-
 
11370
      }
-
 
11371
    }
-
 
11372
 
11251
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<getSourceDetail_call> resultHandler) throws org.apache.thrift.TException {
11373
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<getSourceDetail_call> resultHandler) throws org.apache.thrift.TException {
11252
      checkReady();
11374
      checkReady();
11253
      getSourceDetail_call method_call = new getSourceDetail_call(source, resultHandler, this, ___protocolFactory, ___transport);
11375
      getSourceDetail_call method_call = new getSourceDetail_call(source, resultHandler, this, ___protocolFactory, ___transport);
11254
      this.___currentMethod = method_call;
11376
      this.___currentMethod = method_call;
11255
      ___manager.call(method_call);
11377
      ___manager.call(method_call);
Line 11516... Line 11638...
11516
      processMap.put("getTelecomCircle", new getTelecomCircle());
11638
      processMap.put("getTelecomCircle", new getTelecomCircle());
11517
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11639
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11518
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
11640
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
11519
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
11641
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
11520
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
11642
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
-
 
11643
      processMap.put("topupCompanyWallet", new topupCompanyWallet());
-
 
11644
      processMap.put("getWalletBalanceForCompany", new getWalletBalanceForCompany());
11521
      processMap.put("getSourceDetail", new getSourceDetail());
11645
      processMap.put("getSourceDetail", new getSourceDetail());
11522
      processMap.put("getAllCircles", new getAllCircles());
11646
      processMap.put("getAllCircles", new getAllCircles());
11523
      processMap.put("deleteFrcs", new deleteFrcs());
11647
      processMap.put("deleteFrcs", new deleteFrcs());
11524
      return processMap;
11648
      return processMap;
11525
    }
11649
    }
Line 14575... Line 14699...
14575
        result.setSuccessIsSet(true);
14699
        result.setSuccessIsSet(true);
14576
        return result;
14700
        return result;
14577
      }
14701
      }
14578
    }
14702
    }
14579
 
14703
 
-
 
14704
    private static class topupCompanyWallet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, topupCompanyWallet_args> {
-
 
14705
      public topupCompanyWallet() {
-
 
14706
        super("topupCompanyWallet");
-
 
14707
      }
-
 
14708
 
-
 
14709
      protected topupCompanyWallet_args getEmptyArgsInstance() {
-
 
14710
        return new topupCompanyWallet_args();
-
 
14711
      }
-
 
14712
 
-
 
14713
      protected topupCompanyWallet_result getResult(I iface, topupCompanyWallet_args args) throws org.apache.thrift.TException {
-
 
14714
        topupCompanyWallet_result result = new topupCompanyWallet_result();
-
 
14715
        result.success = iface.topupCompanyWallet(args.companyId, args.amount);
-
 
14716
        result.setSuccessIsSet(true);
-
 
14717
        return result;
-
 
14718
      }
-
 
14719
    }
-
 
14720
 
-
 
14721
    private static class getWalletBalanceForCompany<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWalletBalanceForCompany_args> {
-
 
14722
      public getWalletBalanceForCompany() {
-
 
14723
        super("getWalletBalanceForCompany");
-
 
14724
      }
-
 
14725
 
-
 
14726
      protected getWalletBalanceForCompany_args getEmptyArgsInstance() {
-
 
14727
        return new getWalletBalanceForCompany_args();
-
 
14728
      }
-
 
14729
 
-
 
14730
      protected getWalletBalanceForCompany_result getResult(I iface, getWalletBalanceForCompany_args args) throws org.apache.thrift.TException {
-
 
14731
        getWalletBalanceForCompany_result result = new getWalletBalanceForCompany_result();
-
 
14732
        result.success = iface.getWalletBalanceForCompany(args.companyId);
-
 
14733
        result.setSuccessIsSet(true);
-
 
14734
        return result;
-
 
14735
      }
-
 
14736
    }
-
 
14737
 
14580
    private static class getSourceDetail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSourceDetail_args> {
14738
    private static class getSourceDetail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSourceDetail_args> {
14581
      public getSourceDetail() {
14739
      public getSourceDetail() {
14582
        super("getSourceDetail");
14740
        super("getSourceDetail");
14583
      }
14741
      }
14584
 
14742
 
Line 63663... Line 63821...
63663
      }
63821
      }
63664
    }
63822
    }
63665
 
63823
 
63666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63824
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63667
      try {
63825
      try {
-
 
63826
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63827
        __isset_bit_vector = new BitSet(1);
63668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63828
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63669
      } catch (org.apache.thrift.TException te) {
63829
      } catch (org.apache.thrift.TException te) {
63670
        throw new java.io.IOException(te);
63830
        throw new java.io.IOException(te);
63671
      }
63831
      }
63672
    }
63832
    }
Line 65094... Line 65254...
65094
      }
65254
      }
65095
    }
65255
    }
65096
 
65256
 
65097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65257
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
65098
      try {
65258
      try {
-
 
65259
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65260
        __isset_bit_vector = new BitSet(1);
65099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
65100
      } catch (org.apache.thrift.TException te) {
65262
      } catch (org.apache.thrift.TException te) {
65101
        throw new java.io.IOException(te);
65263
        throw new java.io.IOException(te);
65102
      }
65264
      }
65103
    }
65265
    }
Line 133585... Line 133747...
133585
      boolean first = true;
133747
      boolean first = true;
133586
 
133748
 
133587
      sb.append("success:");
133749
      sb.append("success:");
133588
      sb.append(this.success);
133750
      sb.append(this.success);
133589
      first = false;
133751
      first = false;
-
 
133752
      sb.append(")");
-
 
133753
      return sb.toString();
-
 
133754
    }
-
 
133755
 
-
 
133756
    public void validate() throws org.apache.thrift.TException {
-
 
133757
      // check for required fields
-
 
133758
    }
-
 
133759
 
-
 
133760
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133761
      try {
-
 
133762
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133763
      } catch (org.apache.thrift.TException te) {
-
 
133764
        throw new java.io.IOException(te);
-
 
133765
      }
-
 
133766
    }
-
 
133767
 
-
 
133768
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133769
      try {
-
 
133770
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133771
      } catch (org.apache.thrift.TException te) {
-
 
133772
        throw new java.io.IOException(te);
-
 
133773
      }
-
 
133774
    }
-
 
133775
 
-
 
133776
  }
-
 
133777
 
-
 
133778
  public static class topupCompanyWallet_args implements org.apache.thrift.TBase<topupCompanyWallet_args, topupCompanyWallet_args._Fields>, java.io.Serializable, Cloneable   {
-
 
133779
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("topupCompanyWallet_args");
-
 
133780
 
-
 
133781
    private static final org.apache.thrift.protocol.TField COMPANY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("companyId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
133782
    private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
133783
 
-
 
133784
    private long companyId; // required
-
 
133785
    private long amount; // required
-
 
133786
 
-
 
133787
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133788
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133789
      COMPANY_ID((short)1, "companyId"),
-
 
133790
      AMOUNT((short)2, "amount");
-
 
133791
 
-
 
133792
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133793
 
-
 
133794
      static {
-
 
133795
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133796
          byName.put(field.getFieldName(), field);
-
 
133797
        }
-
 
133798
      }
-
 
133799
 
-
 
133800
      /**
-
 
133801
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133802
       */
-
 
133803
      public static _Fields findByThriftId(int fieldId) {
-
 
133804
        switch(fieldId) {
-
 
133805
          case 1: // COMPANY_ID
-
 
133806
            return COMPANY_ID;
-
 
133807
          case 2: // AMOUNT
-
 
133808
            return AMOUNT;
-
 
133809
          default:
-
 
133810
            return null;
-
 
133811
        }
-
 
133812
      }
-
 
133813
 
-
 
133814
      /**
-
 
133815
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
133816
       * if it is not found.
-
 
133817
       */
-
 
133818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
133819
        _Fields fields = findByThriftId(fieldId);
-
 
133820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
133821
        return fields;
-
 
133822
      }
-
 
133823
 
-
 
133824
      /**
-
 
133825
       * Find the _Fields constant that matches name, or null if its not found.
-
 
133826
       */
-
 
133827
      public static _Fields findByName(String name) {
-
 
133828
        return byName.get(name);
-
 
133829
      }
-
 
133830
 
-
 
133831
      private final short _thriftId;
-
 
133832
      private final String _fieldName;
-
 
133833
 
-
 
133834
      _Fields(short thriftId, String fieldName) {
-
 
133835
        _thriftId = thriftId;
-
 
133836
        _fieldName = fieldName;
-
 
133837
      }
-
 
133838
 
-
 
133839
      public short getThriftFieldId() {
-
 
133840
        return _thriftId;
-
 
133841
      }
-
 
133842
 
-
 
133843
      public String getFieldName() {
-
 
133844
        return _fieldName;
-
 
133845
      }
-
 
133846
    }
-
 
133847
 
-
 
133848
    // isset id assignments
-
 
133849
    private static final int __COMPANYID_ISSET_ID = 0;
-
 
133850
    private static final int __AMOUNT_ISSET_ID = 1;
-
 
133851
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
133852
 
-
 
133853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
133854
    static {
-
 
133855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
133856
      tmpMap.put(_Fields.COMPANY_ID, new org.apache.thrift.meta_data.FieldMetaData("companyId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
133858
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
133860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
133861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(topupCompanyWallet_args.class, metaDataMap);
-
 
133862
    }
-
 
133863
 
-
 
133864
    public topupCompanyWallet_args() {
-
 
133865
    }
-
 
133866
 
-
 
133867
    public topupCompanyWallet_args(
-
 
133868
      long companyId,
-
 
133869
      long amount)
-
 
133870
    {
-
 
133871
      this();
-
 
133872
      this.companyId = companyId;
-
 
133873
      setCompanyIdIsSet(true);
-
 
133874
      this.amount = amount;
-
 
133875
      setAmountIsSet(true);
-
 
133876
    }
-
 
133877
 
-
 
133878
    /**
-
 
133879
     * Performs a deep copy on <i>other</i>.
-
 
133880
     */
-
 
133881
    public topupCompanyWallet_args(topupCompanyWallet_args other) {
-
 
133882
      __isset_bit_vector.clear();
-
 
133883
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
133884
      this.companyId = other.companyId;
-
 
133885
      this.amount = other.amount;
-
 
133886
    }
-
 
133887
 
-
 
133888
    public topupCompanyWallet_args deepCopy() {
-
 
133889
      return new topupCompanyWallet_args(this);
-
 
133890
    }
-
 
133891
 
-
 
133892
    @Override
-
 
133893
    public void clear() {
-
 
133894
      setCompanyIdIsSet(false);
-
 
133895
      this.companyId = 0;
-
 
133896
      setAmountIsSet(false);
-
 
133897
      this.amount = 0;
-
 
133898
    }
-
 
133899
 
-
 
133900
    public long getCompanyId() {
-
 
133901
      return this.companyId;
-
 
133902
    }
-
 
133903
 
-
 
133904
    public void setCompanyId(long companyId) {
-
 
133905
      this.companyId = companyId;
-
 
133906
      setCompanyIdIsSet(true);
-
 
133907
    }
-
 
133908
 
-
 
133909
    public void unsetCompanyId() {
-
 
133910
      __isset_bit_vector.clear(__COMPANYID_ISSET_ID);
-
 
133911
    }
-
 
133912
 
-
 
133913
    /** Returns true if field companyId is set (has been assigned a value) and false otherwise */
-
 
133914
    public boolean isSetCompanyId() {
-
 
133915
      return __isset_bit_vector.get(__COMPANYID_ISSET_ID);
-
 
133916
    }
-
 
133917
 
-
 
133918
    public void setCompanyIdIsSet(boolean value) {
-
 
133919
      __isset_bit_vector.set(__COMPANYID_ISSET_ID, value);
-
 
133920
    }
-
 
133921
 
-
 
133922
    public long getAmount() {
-
 
133923
      return this.amount;
-
 
133924
    }
-
 
133925
 
-
 
133926
    public void setAmount(long amount) {
-
 
133927
      this.amount = amount;
-
 
133928
      setAmountIsSet(true);
-
 
133929
    }
-
 
133930
 
-
 
133931
    public void unsetAmount() {
-
 
133932
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
133933
    }
-
 
133934
 
-
 
133935
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
-
 
133936
    public boolean isSetAmount() {
-
 
133937
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
133938
    }
-
 
133939
 
-
 
133940
    public void setAmountIsSet(boolean value) {
-
 
133941
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
-
 
133942
    }
-
 
133943
 
-
 
133944
    public void setFieldValue(_Fields field, Object value) {
-
 
133945
      switch (field) {
-
 
133946
      case COMPANY_ID:
-
 
133947
        if (value == null) {
-
 
133948
          unsetCompanyId();
-
 
133949
        } else {
-
 
133950
          setCompanyId((Long)value);
-
 
133951
        }
-
 
133952
        break;
-
 
133953
 
-
 
133954
      case AMOUNT:
-
 
133955
        if (value == null) {
-
 
133956
          unsetAmount();
-
 
133957
        } else {
-
 
133958
          setAmount((Long)value);
-
 
133959
        }
-
 
133960
        break;
-
 
133961
 
-
 
133962
      }
-
 
133963
    }
-
 
133964
 
-
 
133965
    public Object getFieldValue(_Fields field) {
-
 
133966
      switch (field) {
-
 
133967
      case COMPANY_ID:
-
 
133968
        return Long.valueOf(getCompanyId());
-
 
133969
 
-
 
133970
      case AMOUNT:
-
 
133971
        return Long.valueOf(getAmount());
-
 
133972
 
-
 
133973
      }
-
 
133974
      throw new IllegalStateException();
-
 
133975
    }
-
 
133976
 
-
 
133977
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
133978
    public boolean isSet(_Fields field) {
-
 
133979
      if (field == null) {
-
 
133980
        throw new IllegalArgumentException();
-
 
133981
      }
-
 
133982
 
-
 
133983
      switch (field) {
-
 
133984
      case COMPANY_ID:
-
 
133985
        return isSetCompanyId();
-
 
133986
      case AMOUNT:
-
 
133987
        return isSetAmount();
-
 
133988
      }
-
 
133989
      throw new IllegalStateException();
-
 
133990
    }
-
 
133991
 
-
 
133992
    @Override
-
 
133993
    public boolean equals(Object that) {
-
 
133994
      if (that == null)
-
 
133995
        return false;
-
 
133996
      if (that instanceof topupCompanyWallet_args)
-
 
133997
        return this.equals((topupCompanyWallet_args)that);
-
 
133998
      return false;
-
 
133999
    }
-
 
134000
 
-
 
134001
    public boolean equals(topupCompanyWallet_args that) {
-
 
134002
      if (that == null)
-
 
134003
        return false;
-
 
134004
 
-
 
134005
      boolean this_present_companyId = true;
-
 
134006
      boolean that_present_companyId = true;
-
 
134007
      if (this_present_companyId || that_present_companyId) {
-
 
134008
        if (!(this_present_companyId && that_present_companyId))
-
 
134009
          return false;
-
 
134010
        if (this.companyId != that.companyId)
-
 
134011
          return false;
-
 
134012
      }
-
 
134013
 
-
 
134014
      boolean this_present_amount = true;
-
 
134015
      boolean that_present_amount = true;
-
 
134016
      if (this_present_amount || that_present_amount) {
-
 
134017
        if (!(this_present_amount && that_present_amount))
-
 
134018
          return false;
-
 
134019
        if (this.amount != that.amount)
-
 
134020
          return false;
-
 
134021
      }
-
 
134022
 
-
 
134023
      return true;
-
 
134024
    }
-
 
134025
 
-
 
134026
    @Override
-
 
134027
    public int hashCode() {
-
 
134028
      return 0;
-
 
134029
    }
-
 
134030
 
-
 
134031
    public int compareTo(topupCompanyWallet_args other) {
-
 
134032
      if (!getClass().equals(other.getClass())) {
-
 
134033
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134034
      }
-
 
134035
 
-
 
134036
      int lastComparison = 0;
-
 
134037
      topupCompanyWallet_args typedOther = (topupCompanyWallet_args)other;
-
 
134038
 
-
 
134039
      lastComparison = Boolean.valueOf(isSetCompanyId()).compareTo(typedOther.isSetCompanyId());
-
 
134040
      if (lastComparison != 0) {
-
 
134041
        return lastComparison;
-
 
134042
      }
-
 
134043
      if (isSetCompanyId()) {
-
 
134044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.companyId, typedOther.companyId);
-
 
134045
        if (lastComparison != 0) {
-
 
134046
          return lastComparison;
-
 
134047
        }
-
 
134048
      }
-
 
134049
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
-
 
134050
      if (lastComparison != 0) {
-
 
134051
        return lastComparison;
-
 
134052
      }
-
 
134053
      if (isSetAmount()) {
-
 
134054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
-
 
134055
        if (lastComparison != 0) {
-
 
134056
          return lastComparison;
-
 
134057
        }
-
 
134058
      }
-
 
134059
      return 0;
-
 
134060
    }
-
 
134061
 
-
 
134062
    public _Fields fieldForId(int fieldId) {
-
 
134063
      return _Fields.findByThriftId(fieldId);
-
 
134064
    }
-
 
134065
 
-
 
134066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134067
      org.apache.thrift.protocol.TField field;
-
 
134068
      iprot.readStructBegin();
-
 
134069
      while (true)
-
 
134070
      {
-
 
134071
        field = iprot.readFieldBegin();
-
 
134072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134073
          break;
-
 
134074
        }
-
 
134075
        switch (field.id) {
-
 
134076
          case 1: // COMPANY_ID
-
 
134077
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
134078
              this.companyId = iprot.readI64();
-
 
134079
              setCompanyIdIsSet(true);
-
 
134080
            } else { 
-
 
134081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134082
            }
-
 
134083
            break;
-
 
134084
          case 2: // AMOUNT
-
 
134085
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
134086
              this.amount = iprot.readI64();
-
 
134087
              setAmountIsSet(true);
-
 
134088
            } else { 
-
 
134089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134090
            }
-
 
134091
            break;
-
 
134092
          default:
-
 
134093
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134094
        }
-
 
134095
        iprot.readFieldEnd();
-
 
134096
      }
-
 
134097
      iprot.readStructEnd();
-
 
134098
      validate();
-
 
134099
    }
-
 
134100
 
-
 
134101
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134102
      validate();
-
 
134103
 
-
 
134104
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134105
      oprot.writeFieldBegin(COMPANY_ID_FIELD_DESC);
-
 
134106
      oprot.writeI64(this.companyId);
-
 
134107
      oprot.writeFieldEnd();
-
 
134108
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
134109
      oprot.writeI64(this.amount);
-
 
134110
      oprot.writeFieldEnd();
-
 
134111
      oprot.writeFieldStop();
-
 
134112
      oprot.writeStructEnd();
-
 
134113
    }
-
 
134114
 
-
 
134115
    @Override
-
 
134116
    public String toString() {
-
 
134117
      StringBuilder sb = new StringBuilder("topupCompanyWallet_args(");
-
 
134118
      boolean first = true;
-
 
134119
 
-
 
134120
      sb.append("companyId:");
-
 
134121
      sb.append(this.companyId);
-
 
134122
      first = false;
-
 
134123
      if (!first) sb.append(", ");
-
 
134124
      sb.append("amount:");
-
 
134125
      sb.append(this.amount);
-
 
134126
      first = false;
-
 
134127
      sb.append(")");
-
 
134128
      return sb.toString();
-
 
134129
    }
-
 
134130
 
-
 
134131
    public void validate() throws org.apache.thrift.TException {
-
 
134132
      // check for required fields
-
 
134133
    }
-
 
134134
 
-
 
134135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134136
      try {
-
 
134137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134138
      } catch (org.apache.thrift.TException te) {
-
 
134139
        throw new java.io.IOException(te);
-
 
134140
      }
-
 
134141
    }
-
 
134142
 
-
 
134143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134144
      try {
-
 
134145
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
134146
        __isset_bit_vector = new BitSet(1);
-
 
134147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134148
      } catch (org.apache.thrift.TException te) {
-
 
134149
        throw new java.io.IOException(te);
-
 
134150
      }
-
 
134151
    }
-
 
134152
 
-
 
134153
  }
-
 
134154
 
-
 
134155
  public static class topupCompanyWallet_result implements org.apache.thrift.TBase<topupCompanyWallet_result, topupCompanyWallet_result._Fields>, java.io.Serializable, Cloneable   {
-
 
134156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("topupCompanyWallet_result");
-
 
134157
 
-
 
134158
    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);
-
 
134159
 
-
 
134160
    private long success; // required
-
 
134161
 
-
 
134162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134164
      SUCCESS((short)0, "success");
-
 
134165
 
-
 
134166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134167
 
-
 
134168
      static {
-
 
134169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134170
          byName.put(field.getFieldName(), field);
-
 
134171
        }
-
 
134172
      }
-
 
134173
 
-
 
134174
      /**
-
 
134175
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134176
       */
-
 
134177
      public static _Fields findByThriftId(int fieldId) {
-
 
134178
        switch(fieldId) {
-
 
134179
          case 0: // SUCCESS
-
 
134180
            return SUCCESS;
-
 
134181
          default:
-
 
134182
            return null;
-
 
134183
        }
-
 
134184
      }
-
 
134185
 
-
 
134186
      /**
-
 
134187
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134188
       * if it is not found.
-
 
134189
       */
-
 
134190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134191
        _Fields fields = findByThriftId(fieldId);
-
 
134192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134193
        return fields;
-
 
134194
      }
-
 
134195
 
-
 
134196
      /**
-
 
134197
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134198
       */
-
 
134199
      public static _Fields findByName(String name) {
-
 
134200
        return byName.get(name);
-
 
134201
      }
-
 
134202
 
-
 
134203
      private final short _thriftId;
-
 
134204
      private final String _fieldName;
-
 
134205
 
-
 
134206
      _Fields(short thriftId, String fieldName) {
-
 
134207
        _thriftId = thriftId;
-
 
134208
        _fieldName = fieldName;
-
 
134209
      }
-
 
134210
 
-
 
134211
      public short getThriftFieldId() {
-
 
134212
        return _thriftId;
-
 
134213
      }
-
 
134214
 
-
 
134215
      public String getFieldName() {
-
 
134216
        return _fieldName;
-
 
134217
      }
-
 
134218
    }
-
 
134219
 
-
 
134220
    // isset id assignments
-
 
134221
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
134222
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
134223
 
-
 
134224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134225
    static {
-
 
134226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134227
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(topupCompanyWallet_result.class, metaDataMap);
-
 
134231
    }
-
 
134232
 
-
 
134233
    public topupCompanyWallet_result() {
-
 
134234
    }
-
 
134235
 
-
 
134236
    public topupCompanyWallet_result(
-
 
134237
      long success)
-
 
134238
    {
-
 
134239
      this();
-
 
134240
      this.success = success;
-
 
134241
      setSuccessIsSet(true);
-
 
134242
    }
-
 
134243
 
-
 
134244
    /**
-
 
134245
     * Performs a deep copy on <i>other</i>.
-
 
134246
     */
-
 
134247
    public topupCompanyWallet_result(topupCompanyWallet_result other) {
-
 
134248
      __isset_bit_vector.clear();
-
 
134249
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
134250
      this.success = other.success;
-
 
134251
    }
-
 
134252
 
-
 
134253
    public topupCompanyWallet_result deepCopy() {
-
 
134254
      return new topupCompanyWallet_result(this);
-
 
134255
    }
-
 
134256
 
-
 
134257
    @Override
-
 
134258
    public void clear() {
-
 
134259
      setSuccessIsSet(false);
-
 
134260
      this.success = 0;
-
 
134261
    }
-
 
134262
 
-
 
134263
    public long getSuccess() {
-
 
134264
      return this.success;
-
 
134265
    }
-
 
134266
 
-
 
134267
    public void setSuccess(long success) {
-
 
134268
      this.success = success;
-
 
134269
      setSuccessIsSet(true);
-
 
134270
    }
-
 
134271
 
-
 
134272
    public void unsetSuccess() {
-
 
134273
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
134274
    }
-
 
134275
 
-
 
134276
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
134277
    public boolean isSetSuccess() {
-
 
134278
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
134279
    }
-
 
134280
 
-
 
134281
    public void setSuccessIsSet(boolean value) {
-
 
134282
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
134283
    }
-
 
134284
 
-
 
134285
    public void setFieldValue(_Fields field, Object value) {
-
 
134286
      switch (field) {
-
 
134287
      case SUCCESS:
-
 
134288
        if (value == null) {
-
 
134289
          unsetSuccess();
-
 
134290
        } else {
-
 
134291
          setSuccess((Long)value);
-
 
134292
        }
-
 
134293
        break;
-
 
134294
 
-
 
134295
      }
-
 
134296
    }
-
 
134297
 
-
 
134298
    public Object getFieldValue(_Fields field) {
-
 
134299
      switch (field) {
-
 
134300
      case SUCCESS:
-
 
134301
        return Long.valueOf(getSuccess());
-
 
134302
 
-
 
134303
      }
-
 
134304
      throw new IllegalStateException();
-
 
134305
    }
-
 
134306
 
-
 
134307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
134308
    public boolean isSet(_Fields field) {
-
 
134309
      if (field == null) {
-
 
134310
        throw new IllegalArgumentException();
-
 
134311
      }
-
 
134312
 
-
 
134313
      switch (field) {
-
 
134314
      case SUCCESS:
-
 
134315
        return isSetSuccess();
-
 
134316
      }
-
 
134317
      throw new IllegalStateException();
-
 
134318
    }
-
 
134319
 
-
 
134320
    @Override
-
 
134321
    public boolean equals(Object that) {
-
 
134322
      if (that == null)
-
 
134323
        return false;
-
 
134324
      if (that instanceof topupCompanyWallet_result)
-
 
134325
        return this.equals((topupCompanyWallet_result)that);
-
 
134326
      return false;
-
 
134327
    }
-
 
134328
 
-
 
134329
    public boolean equals(topupCompanyWallet_result that) {
-
 
134330
      if (that == null)
-
 
134331
        return false;
-
 
134332
 
-
 
134333
      boolean this_present_success = true;
-
 
134334
      boolean that_present_success = true;
-
 
134335
      if (this_present_success || that_present_success) {
-
 
134336
        if (!(this_present_success && that_present_success))
-
 
134337
          return false;
-
 
134338
        if (this.success != that.success)
-
 
134339
          return false;
-
 
134340
      }
-
 
134341
 
-
 
134342
      return true;
-
 
134343
    }
-
 
134344
 
-
 
134345
    @Override
-
 
134346
    public int hashCode() {
-
 
134347
      return 0;
-
 
134348
    }
-
 
134349
 
-
 
134350
    public int compareTo(topupCompanyWallet_result other) {
-
 
134351
      if (!getClass().equals(other.getClass())) {
-
 
134352
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134353
      }
-
 
134354
 
-
 
134355
      int lastComparison = 0;
-
 
134356
      topupCompanyWallet_result typedOther = (topupCompanyWallet_result)other;
-
 
134357
 
-
 
134358
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
134359
      if (lastComparison != 0) {
-
 
134360
        return lastComparison;
-
 
134361
      }
-
 
134362
      if (isSetSuccess()) {
-
 
134363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
134364
        if (lastComparison != 0) {
-
 
134365
          return lastComparison;
-
 
134366
        }
-
 
134367
      }
-
 
134368
      return 0;
-
 
134369
    }
-
 
134370
 
-
 
134371
    public _Fields fieldForId(int fieldId) {
-
 
134372
      return _Fields.findByThriftId(fieldId);
-
 
134373
    }
-
 
134374
 
-
 
134375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134376
      org.apache.thrift.protocol.TField field;
-
 
134377
      iprot.readStructBegin();
-
 
134378
      while (true)
-
 
134379
      {
-
 
134380
        field = iprot.readFieldBegin();
-
 
134381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134382
          break;
-
 
134383
        }
-
 
134384
        switch (field.id) {
-
 
134385
          case 0: // SUCCESS
-
 
134386
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
134387
              this.success = iprot.readI64();
-
 
134388
              setSuccessIsSet(true);
-
 
134389
            } else { 
-
 
134390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134391
            }
-
 
134392
            break;
-
 
134393
          default:
-
 
134394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134395
        }
-
 
134396
        iprot.readFieldEnd();
-
 
134397
      }
-
 
134398
      iprot.readStructEnd();
-
 
134399
      validate();
-
 
134400
    }
-
 
134401
 
-
 
134402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134403
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134404
 
-
 
134405
      if (this.isSetSuccess()) {
-
 
134406
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
134407
        oprot.writeI64(this.success);
-
 
134408
        oprot.writeFieldEnd();
-
 
134409
      }
-
 
134410
      oprot.writeFieldStop();
-
 
134411
      oprot.writeStructEnd();
-
 
134412
    }
-
 
134413
 
-
 
134414
    @Override
-
 
134415
    public String toString() {
-
 
134416
      StringBuilder sb = new StringBuilder("topupCompanyWallet_result(");
-
 
134417
      boolean first = true;
-
 
134418
 
-
 
134419
      sb.append("success:");
-
 
134420
      sb.append(this.success);
-
 
134421
      first = false;
-
 
134422
      sb.append(")");
-
 
134423
      return sb.toString();
-
 
134424
    }
-
 
134425
 
-
 
134426
    public void validate() throws org.apache.thrift.TException {
-
 
134427
      // check for required fields
-
 
134428
    }
-
 
134429
 
-
 
134430
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134431
      try {
-
 
134432
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134433
      } catch (org.apache.thrift.TException te) {
-
 
134434
        throw new java.io.IOException(te);
-
 
134435
      }
-
 
134436
    }
-
 
134437
 
-
 
134438
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134439
      try {
-
 
134440
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134441
      } catch (org.apache.thrift.TException te) {
-
 
134442
        throw new java.io.IOException(te);
-
 
134443
      }
-
 
134444
    }
-
 
134445
 
-
 
134446
  }
-
 
134447
 
-
 
134448
  public static class getWalletBalanceForCompany_args implements org.apache.thrift.TBase<getWalletBalanceForCompany_args, getWalletBalanceForCompany_args._Fields>, java.io.Serializable, Cloneable   {
-
 
134449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWalletBalanceForCompany_args");
-
 
134450
 
-
 
134451
    private static final org.apache.thrift.protocol.TField COMPANY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("companyId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
134452
 
-
 
134453
    private long companyId; // required
-
 
134454
 
-
 
134455
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134456
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134457
      COMPANY_ID((short)1, "companyId");
-
 
134458
 
-
 
134459
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134460
 
-
 
134461
      static {
-
 
134462
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134463
          byName.put(field.getFieldName(), field);
-
 
134464
        }
-
 
134465
      }
-
 
134466
 
-
 
134467
      /**
-
 
134468
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134469
       */
-
 
134470
      public static _Fields findByThriftId(int fieldId) {
-
 
134471
        switch(fieldId) {
-
 
134472
          case 1: // COMPANY_ID
-
 
134473
            return COMPANY_ID;
-
 
134474
          default:
-
 
134475
            return null;
-
 
134476
        }
-
 
134477
      }
-
 
134478
 
-
 
134479
      /**
-
 
134480
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134481
       * if it is not found.
-
 
134482
       */
-
 
134483
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134484
        _Fields fields = findByThriftId(fieldId);
-
 
134485
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134486
        return fields;
-
 
134487
      }
-
 
134488
 
-
 
134489
      /**
-
 
134490
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134491
       */
-
 
134492
      public static _Fields findByName(String name) {
-
 
134493
        return byName.get(name);
-
 
134494
      }
-
 
134495
 
-
 
134496
      private final short _thriftId;
-
 
134497
      private final String _fieldName;
-
 
134498
 
-
 
134499
      _Fields(short thriftId, String fieldName) {
-
 
134500
        _thriftId = thriftId;
-
 
134501
        _fieldName = fieldName;
-
 
134502
      }
-
 
134503
 
-
 
134504
      public short getThriftFieldId() {
-
 
134505
        return _thriftId;
-
 
134506
      }
-
 
134507
 
-
 
134508
      public String getFieldName() {
-
 
134509
        return _fieldName;
-
 
134510
      }
-
 
134511
    }
-
 
134512
 
-
 
134513
    // isset id assignments
-
 
134514
    private static final int __COMPANYID_ISSET_ID = 0;
-
 
134515
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
134516
 
-
 
134517
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134518
    static {
-
 
134519
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134520
      tmpMap.put(_Fields.COMPANY_ID, new org.apache.thrift.meta_data.FieldMetaData("companyId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134521
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134522
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134523
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWalletBalanceForCompany_args.class, metaDataMap);
-
 
134524
    }
-
 
134525
 
-
 
134526
    public getWalletBalanceForCompany_args() {
-
 
134527
    }
-
 
134528
 
-
 
134529
    public getWalletBalanceForCompany_args(
-
 
134530
      long companyId)
-
 
134531
    {
-
 
134532
      this();
-
 
134533
      this.companyId = companyId;
-
 
134534
      setCompanyIdIsSet(true);
-
 
134535
    }
-
 
134536
 
-
 
134537
    /**
-
 
134538
     * Performs a deep copy on <i>other</i>.
-
 
134539
     */
-
 
134540
    public getWalletBalanceForCompany_args(getWalletBalanceForCompany_args other) {
-
 
134541
      __isset_bit_vector.clear();
-
 
134542
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
134543
      this.companyId = other.companyId;
-
 
134544
    }
-
 
134545
 
-
 
134546
    public getWalletBalanceForCompany_args deepCopy() {
-
 
134547
      return new getWalletBalanceForCompany_args(this);
-
 
134548
    }
-
 
134549
 
-
 
134550
    @Override
-
 
134551
    public void clear() {
-
 
134552
      setCompanyIdIsSet(false);
-
 
134553
      this.companyId = 0;
-
 
134554
    }
-
 
134555
 
-
 
134556
    public long getCompanyId() {
-
 
134557
      return this.companyId;
-
 
134558
    }
-
 
134559
 
-
 
134560
    public void setCompanyId(long companyId) {
-
 
134561
      this.companyId = companyId;
-
 
134562
      setCompanyIdIsSet(true);
-
 
134563
    }
-
 
134564
 
-
 
134565
    public void unsetCompanyId() {
-
 
134566
      __isset_bit_vector.clear(__COMPANYID_ISSET_ID);
-
 
134567
    }
-
 
134568
 
-
 
134569
    /** Returns true if field companyId is set (has been assigned a value) and false otherwise */
-
 
134570
    public boolean isSetCompanyId() {
-
 
134571
      return __isset_bit_vector.get(__COMPANYID_ISSET_ID);
-
 
134572
    }
-
 
134573
 
-
 
134574
    public void setCompanyIdIsSet(boolean value) {
-
 
134575
      __isset_bit_vector.set(__COMPANYID_ISSET_ID, value);
-
 
134576
    }
-
 
134577
 
-
 
134578
    public void setFieldValue(_Fields field, Object value) {
-
 
134579
      switch (field) {
-
 
134580
      case COMPANY_ID:
-
 
134581
        if (value == null) {
-
 
134582
          unsetCompanyId();
-
 
134583
        } else {
-
 
134584
          setCompanyId((Long)value);
-
 
134585
        }
-
 
134586
        break;
-
 
134587
 
-
 
134588
      }
-
 
134589
    }
-
 
134590
 
-
 
134591
    public Object getFieldValue(_Fields field) {
-
 
134592
      switch (field) {
-
 
134593
      case COMPANY_ID:
-
 
134594
        return Long.valueOf(getCompanyId());
-
 
134595
 
-
 
134596
      }
-
 
134597
      throw new IllegalStateException();
-
 
134598
    }
-
 
134599
 
-
 
134600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
134601
    public boolean isSet(_Fields field) {
-
 
134602
      if (field == null) {
-
 
134603
        throw new IllegalArgumentException();
-
 
134604
      }
-
 
134605
 
-
 
134606
      switch (field) {
-
 
134607
      case COMPANY_ID:
-
 
134608
        return isSetCompanyId();
-
 
134609
      }
-
 
134610
      throw new IllegalStateException();
-
 
134611
    }
-
 
134612
 
-
 
134613
    @Override
-
 
134614
    public boolean equals(Object that) {
-
 
134615
      if (that == null)
-
 
134616
        return false;
-
 
134617
      if (that instanceof getWalletBalanceForCompany_args)
-
 
134618
        return this.equals((getWalletBalanceForCompany_args)that);
-
 
134619
      return false;
-
 
134620
    }
-
 
134621
 
-
 
134622
    public boolean equals(getWalletBalanceForCompany_args that) {
-
 
134623
      if (that == null)
-
 
134624
        return false;
-
 
134625
 
-
 
134626
      boolean this_present_companyId = true;
-
 
134627
      boolean that_present_companyId = true;
-
 
134628
      if (this_present_companyId || that_present_companyId) {
-
 
134629
        if (!(this_present_companyId && that_present_companyId))
-
 
134630
          return false;
-
 
134631
        if (this.companyId != that.companyId)
-
 
134632
          return false;
-
 
134633
      }
-
 
134634
 
-
 
134635
      return true;
-
 
134636
    }
-
 
134637
 
-
 
134638
    @Override
-
 
134639
    public int hashCode() {
-
 
134640
      return 0;
-
 
134641
    }
-
 
134642
 
-
 
134643
    public int compareTo(getWalletBalanceForCompany_args other) {
-
 
134644
      if (!getClass().equals(other.getClass())) {
-
 
134645
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134646
      }
-
 
134647
 
-
 
134648
      int lastComparison = 0;
-
 
134649
      getWalletBalanceForCompany_args typedOther = (getWalletBalanceForCompany_args)other;
-
 
134650
 
-
 
134651
      lastComparison = Boolean.valueOf(isSetCompanyId()).compareTo(typedOther.isSetCompanyId());
-
 
134652
      if (lastComparison != 0) {
-
 
134653
        return lastComparison;
-
 
134654
      }
-
 
134655
      if (isSetCompanyId()) {
-
 
134656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.companyId, typedOther.companyId);
-
 
134657
        if (lastComparison != 0) {
-
 
134658
          return lastComparison;
-
 
134659
        }
-
 
134660
      }
-
 
134661
      return 0;
-
 
134662
    }
-
 
134663
 
-
 
134664
    public _Fields fieldForId(int fieldId) {
-
 
134665
      return _Fields.findByThriftId(fieldId);
-
 
134666
    }
-
 
134667
 
-
 
134668
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134669
      org.apache.thrift.protocol.TField field;
-
 
134670
      iprot.readStructBegin();
-
 
134671
      while (true)
-
 
134672
      {
-
 
134673
        field = iprot.readFieldBegin();
-
 
134674
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134675
          break;
-
 
134676
        }
-
 
134677
        switch (field.id) {
-
 
134678
          case 1: // COMPANY_ID
-
 
134679
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
134680
              this.companyId = iprot.readI64();
-
 
134681
              setCompanyIdIsSet(true);
-
 
134682
            } else { 
-
 
134683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134684
            }
-
 
134685
            break;
-
 
134686
          default:
-
 
134687
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134688
        }
-
 
134689
        iprot.readFieldEnd();
-
 
134690
      }
-
 
134691
      iprot.readStructEnd();
-
 
134692
      validate();
-
 
134693
    }
-
 
134694
 
-
 
134695
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134696
      validate();
-
 
134697
 
-
 
134698
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134699
      oprot.writeFieldBegin(COMPANY_ID_FIELD_DESC);
-
 
134700
      oprot.writeI64(this.companyId);
-
 
134701
      oprot.writeFieldEnd();
-
 
134702
      oprot.writeFieldStop();
-
 
134703
      oprot.writeStructEnd();
-
 
134704
    }
-
 
134705
 
-
 
134706
    @Override
-
 
134707
    public String toString() {
-
 
134708
      StringBuilder sb = new StringBuilder("getWalletBalanceForCompany_args(");
-
 
134709
      boolean first = true;
-
 
134710
 
-
 
134711
      sb.append("companyId:");
-
 
134712
      sb.append(this.companyId);
-
 
134713
      first = false;
-
 
134714
      sb.append(")");
-
 
134715
      return sb.toString();
-
 
134716
    }
-
 
134717
 
-
 
134718
    public void validate() throws org.apache.thrift.TException {
-
 
134719
      // check for required fields
-
 
134720
    }
-
 
134721
 
-
 
134722
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
134723
      try {
-
 
134724
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
134725
      } catch (org.apache.thrift.TException te) {
-
 
134726
        throw new java.io.IOException(te);
-
 
134727
      }
-
 
134728
    }
-
 
134729
 
-
 
134730
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
134731
      try {
-
 
134732
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
134733
        __isset_bit_vector = new BitSet(1);
-
 
134734
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
134735
      } catch (org.apache.thrift.TException te) {
-
 
134736
        throw new java.io.IOException(te);
-
 
134737
      }
-
 
134738
    }
-
 
134739
 
-
 
134740
  }
-
 
134741
 
-
 
134742
  public static class getWalletBalanceForCompany_result implements org.apache.thrift.TBase<getWalletBalanceForCompany_result, getWalletBalanceForCompany_result._Fields>, java.io.Serializable, Cloneable   {
-
 
134743
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWalletBalanceForCompany_result");
-
 
134744
 
-
 
134745
    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);
-
 
134746
 
-
 
134747
    private long success; // required
-
 
134748
 
-
 
134749
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
134750
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
134751
      SUCCESS((short)0, "success");
-
 
134752
 
-
 
134753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
134754
 
-
 
134755
      static {
-
 
134756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
134757
          byName.put(field.getFieldName(), field);
-
 
134758
        }
-
 
134759
      }
-
 
134760
 
-
 
134761
      /**
-
 
134762
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
134763
       */
-
 
134764
      public static _Fields findByThriftId(int fieldId) {
-
 
134765
        switch(fieldId) {
-
 
134766
          case 0: // SUCCESS
-
 
134767
            return SUCCESS;
-
 
134768
          default:
-
 
134769
            return null;
-
 
134770
        }
-
 
134771
      }
-
 
134772
 
-
 
134773
      /**
-
 
134774
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
134775
       * if it is not found.
-
 
134776
       */
-
 
134777
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
134778
        _Fields fields = findByThriftId(fieldId);
-
 
134779
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
134780
        return fields;
-
 
134781
      }
-
 
134782
 
-
 
134783
      /**
-
 
134784
       * Find the _Fields constant that matches name, or null if its not found.
-
 
134785
       */
-
 
134786
      public static _Fields findByName(String name) {
-
 
134787
        return byName.get(name);
-
 
134788
      }
-
 
134789
 
-
 
134790
      private final short _thriftId;
-
 
134791
      private final String _fieldName;
-
 
134792
 
-
 
134793
      _Fields(short thriftId, String fieldName) {
-
 
134794
        _thriftId = thriftId;
-
 
134795
        _fieldName = fieldName;
-
 
134796
      }
-
 
134797
 
-
 
134798
      public short getThriftFieldId() {
-
 
134799
        return _thriftId;
-
 
134800
      }
-
 
134801
 
-
 
134802
      public String getFieldName() {
-
 
134803
        return _fieldName;
-
 
134804
      }
-
 
134805
    }
-
 
134806
 
-
 
134807
    // isset id assignments
-
 
134808
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
134809
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
134810
 
-
 
134811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
134812
    static {
-
 
134813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
134814
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
134815
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
134817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWalletBalanceForCompany_result.class, metaDataMap);
-
 
134818
    }
-
 
134819
 
-
 
134820
    public getWalletBalanceForCompany_result() {
-
 
134821
    }
-
 
134822
 
-
 
134823
    public getWalletBalanceForCompany_result(
-
 
134824
      long success)
-
 
134825
    {
-
 
134826
      this();
-
 
134827
      this.success = success;
-
 
134828
      setSuccessIsSet(true);
-
 
134829
    }
-
 
134830
 
-
 
134831
    /**
-
 
134832
     * Performs a deep copy on <i>other</i>.
-
 
134833
     */
-
 
134834
    public getWalletBalanceForCompany_result(getWalletBalanceForCompany_result other) {
-
 
134835
      __isset_bit_vector.clear();
-
 
134836
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
134837
      this.success = other.success;
-
 
134838
    }
-
 
134839
 
-
 
134840
    public getWalletBalanceForCompany_result deepCopy() {
-
 
134841
      return new getWalletBalanceForCompany_result(this);
-
 
134842
    }
-
 
134843
 
-
 
134844
    @Override
-
 
134845
    public void clear() {
-
 
134846
      setSuccessIsSet(false);
-
 
134847
      this.success = 0;
-
 
134848
    }
-
 
134849
 
-
 
134850
    public long getSuccess() {
-
 
134851
      return this.success;
-
 
134852
    }
-
 
134853
 
-
 
134854
    public void setSuccess(long success) {
-
 
134855
      this.success = success;
-
 
134856
      setSuccessIsSet(true);
-
 
134857
    }
-
 
134858
 
-
 
134859
    public void unsetSuccess() {
-
 
134860
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
134861
    }
-
 
134862
 
-
 
134863
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
134864
    public boolean isSetSuccess() {
-
 
134865
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
134866
    }
-
 
134867
 
-
 
134868
    public void setSuccessIsSet(boolean value) {
-
 
134869
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
134870
    }
-
 
134871
 
-
 
134872
    public void setFieldValue(_Fields field, Object value) {
-
 
134873
      switch (field) {
-
 
134874
      case SUCCESS:
-
 
134875
        if (value == null) {
-
 
134876
          unsetSuccess();
-
 
134877
        } else {
-
 
134878
          setSuccess((Long)value);
-
 
134879
        }
-
 
134880
        break;
-
 
134881
 
-
 
134882
      }
-
 
134883
    }
-
 
134884
 
-
 
134885
    public Object getFieldValue(_Fields field) {
-
 
134886
      switch (field) {
-
 
134887
      case SUCCESS:
-
 
134888
        return Long.valueOf(getSuccess());
-
 
134889
 
-
 
134890
      }
-
 
134891
      throw new IllegalStateException();
-
 
134892
    }
-
 
134893
 
-
 
134894
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
134895
    public boolean isSet(_Fields field) {
-
 
134896
      if (field == null) {
-
 
134897
        throw new IllegalArgumentException();
-
 
134898
      }
-
 
134899
 
-
 
134900
      switch (field) {
-
 
134901
      case SUCCESS:
-
 
134902
        return isSetSuccess();
-
 
134903
      }
-
 
134904
      throw new IllegalStateException();
-
 
134905
    }
-
 
134906
 
-
 
134907
    @Override
-
 
134908
    public boolean equals(Object that) {
-
 
134909
      if (that == null)
-
 
134910
        return false;
-
 
134911
      if (that instanceof getWalletBalanceForCompany_result)
-
 
134912
        return this.equals((getWalletBalanceForCompany_result)that);
-
 
134913
      return false;
-
 
134914
    }
-
 
134915
 
-
 
134916
    public boolean equals(getWalletBalanceForCompany_result that) {
-
 
134917
      if (that == null)
-
 
134918
        return false;
-
 
134919
 
-
 
134920
      boolean this_present_success = true;
-
 
134921
      boolean that_present_success = true;
-
 
134922
      if (this_present_success || that_present_success) {
-
 
134923
        if (!(this_present_success && that_present_success))
-
 
134924
          return false;
-
 
134925
        if (this.success != that.success)
-
 
134926
          return false;
-
 
134927
      }
-
 
134928
 
-
 
134929
      return true;
-
 
134930
    }
-
 
134931
 
-
 
134932
    @Override
-
 
134933
    public int hashCode() {
-
 
134934
      return 0;
-
 
134935
    }
-
 
134936
 
-
 
134937
    public int compareTo(getWalletBalanceForCompany_result other) {
-
 
134938
      if (!getClass().equals(other.getClass())) {
-
 
134939
        return getClass().getName().compareTo(other.getClass().getName());
-
 
134940
      }
-
 
134941
 
-
 
134942
      int lastComparison = 0;
-
 
134943
      getWalletBalanceForCompany_result typedOther = (getWalletBalanceForCompany_result)other;
-
 
134944
 
-
 
134945
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
134946
      if (lastComparison != 0) {
-
 
134947
        return lastComparison;
-
 
134948
      }
-
 
134949
      if (isSetSuccess()) {
-
 
134950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
134951
        if (lastComparison != 0) {
-
 
134952
          return lastComparison;
-
 
134953
        }
-
 
134954
      }
-
 
134955
      return 0;
-
 
134956
    }
-
 
134957
 
-
 
134958
    public _Fields fieldForId(int fieldId) {
-
 
134959
      return _Fields.findByThriftId(fieldId);
-
 
134960
    }
-
 
134961
 
-
 
134962
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
134963
      org.apache.thrift.protocol.TField field;
-
 
134964
      iprot.readStructBegin();
-
 
134965
      while (true)
-
 
134966
      {
-
 
134967
        field = iprot.readFieldBegin();
-
 
134968
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
134969
          break;
-
 
134970
        }
-
 
134971
        switch (field.id) {
-
 
134972
          case 0: // SUCCESS
-
 
134973
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
134974
              this.success = iprot.readI64();
-
 
134975
              setSuccessIsSet(true);
-
 
134976
            } else { 
-
 
134977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134978
            }
-
 
134979
            break;
-
 
134980
          default:
-
 
134981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134982
        }
-
 
134983
        iprot.readFieldEnd();
-
 
134984
      }
-
 
134985
      iprot.readStructEnd();
-
 
134986
      validate();
-
 
134987
    }
-
 
134988
 
-
 
134989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134990
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134991
 
-
 
134992
      if (this.isSetSuccess()) {
-
 
134993
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
134994
        oprot.writeI64(this.success);
-
 
134995
        oprot.writeFieldEnd();
-
 
134996
      }
-
 
134997
      oprot.writeFieldStop();
-
 
134998
      oprot.writeStructEnd();
-
 
134999
    }
-
 
135000
 
-
 
135001
    @Override
-
 
135002
    public String toString() {
-
 
135003
      StringBuilder sb = new StringBuilder("getWalletBalanceForCompany_result(");
-
 
135004
      boolean first = true;
-
 
135005
 
-
 
135006
      sb.append("success:");
-
 
135007
      sb.append(this.success);
-
 
135008
      first = false;
133590
      sb.append(")");
135009
      sb.append(")");
133591
      return sb.toString();
135010
      return sb.toString();
133592
    }
135011
    }
133593
 
135012
 
133594
    public void validate() throws org.apache.thrift.TException {
135013
    public void validate() throws org.apache.thrift.TException {