Subversion Repositories SmartDukaan

Rev

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

Rev 7151 Rev 7169
Line 932... Line 932...
932
 
932
 
933
    public TelecomCircle getTelecomCircle(long id, String code) throws org.apache.thrift.TException;
933
    public TelecomCircle getTelecomCircle(long id, String code) throws org.apache.thrift.TException;
934
 
934
 
935
    public ByteBuffer retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException;
935
    public ByteBuffer retrieveHotspotRechargeInvoice(long rechargeId) throws org.apache.thrift.TException;
936
 
936
 
-
 
937
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number) throws org.apache.thrift.TException;
-
 
938
 
-
 
939
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
-
 
940
 
937
  }
941
  }
938
 
942
 
939
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
943
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
940
 
944
 
941
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
945
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1258... Line 1262...
1258
 
1262
 
1259
    public void getTelecomCircle(long id, String code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTelecomCircle_call> resultHandler) throws org.apache.thrift.TException;
1263
    public void getTelecomCircle(long id, String code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTelecomCircle_call> resultHandler) throws org.apache.thrift.TException;
1260
 
1264
 
1261
    public void retrieveHotspotRechargeInvoice(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveHotspotRechargeInvoice_call> resultHandler) throws org.apache.thrift.TException;
1265
    public void retrieveHotspotRechargeInvoice(long rechargeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveHotspotRechargeInvoice_call> resultHandler) throws org.apache.thrift.TException;
1262
 
1266
 
-
 
1267
    public void getRechargeTransactionsByNumber(String number, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
-
 
1268
 
-
 
1269
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
-
 
1270
 
1263
  }
1271
  }
1264
 
1272
 
1265
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1273
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1266
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1274
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1267
      public Factory() {}
1275
      public Factory() {}
Line 5324... Line 5332...
5324
        return result.success;
5332
        return result.success;
5325
      }
5333
      }
5326
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveHotspotRechargeInvoice failed: unknown result");
5334
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "retrieveHotspotRechargeInvoice failed: unknown result");
5327
    }
5335
    }
5328
 
5336
 
-
 
5337
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number) throws org.apache.thrift.TException
-
 
5338
    {
-
 
5339
      send_getRechargeTransactionsByNumber(number);
-
 
5340
      return recv_getRechargeTransactionsByNumber();
-
 
5341
    }
-
 
5342
 
-
 
5343
    public void send_getRechargeTransactionsByNumber(String number) throws org.apache.thrift.TException
-
 
5344
    {
-
 
5345
      getRechargeTransactionsByNumber_args args = new getRechargeTransactionsByNumber_args();
-
 
5346
      args.setNumber(number);
-
 
5347
      sendBase("getRechargeTransactionsByNumber", args);
-
 
5348
    }
-
 
5349
 
-
 
5350
    public List<RechargeTransaction> recv_getRechargeTransactionsByNumber() throws org.apache.thrift.TException
-
 
5351
    {
-
 
5352
      getRechargeTransactionsByNumber_result result = new getRechargeTransactionsByNumber_result();
-
 
5353
      receiveBase(result, "getRechargeTransactionsByNumber");
-
 
5354
      if (result.isSetSuccess()) {
-
 
5355
        return result.success;
-
 
5356
      }
-
 
5357
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeTransactionsByNumber failed: unknown result");
-
 
5358
    }
-
 
5359
 
-
 
5360
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException
-
 
5361
    {
-
 
5362
      send_updateHotspotStorePassword(storeId, password);
-
 
5363
      return recv_updateHotspotStorePassword();
-
 
5364
    }
-
 
5365
 
-
 
5366
    public void send_updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException
-
 
5367
    {
-
 
5368
      updateHotspotStorePassword_args args = new updateHotspotStorePassword_args();
-
 
5369
      args.setStoreId(storeId);
-
 
5370
      args.setPassword(password);
-
 
5371
      sendBase("updateHotspotStorePassword", args);
-
 
5372
    }
-
 
5373
 
-
 
5374
    public boolean recv_updateHotspotStorePassword() throws org.apache.thrift.TException
-
 
5375
    {
-
 
5376
      updateHotspotStorePassword_result result = new updateHotspotStorePassword_result();
-
 
5377
      receiveBase(result, "updateHotspotStorePassword");
-
 
5378
      if (result.isSetSuccess()) {
-
 
5379
        return result.success;
-
 
5380
      }
-
 
5381
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
-
 
5382
    }
-
 
5383
 
5329
  }
5384
  }
5330
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5385
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5331
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5386
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5332
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5387
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5333
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5388
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10968... Line 11023...
10968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11023
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10969
        return (new Client(prot)).recv_retrieveHotspotRechargeInvoice();
11024
        return (new Client(prot)).recv_retrieveHotspotRechargeInvoice();
10970
      }
11025
      }
10971
    }
11026
    }
10972
 
11027
 
-
 
11028
    public void getRechargeTransactionsByNumber(String number, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException {
-
 
11029
      checkReady();
-
 
11030
      getRechargeTransactionsByNumber_call method_call = new getRechargeTransactionsByNumber_call(number, resultHandler, this, ___protocolFactory, ___transport);
-
 
11031
      this.___currentMethod = method_call;
-
 
11032
      ___manager.call(method_call);
-
 
11033
    }
-
 
11034
 
-
 
11035
    public static class getRechargeTransactionsByNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11036
      private String number;
-
 
11037
      public getRechargeTransactionsByNumber_call(String number, org.apache.thrift.async.AsyncMethodCallback<getRechargeTransactionsByNumber_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 {
-
 
11038
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11039
        this.number = number;
-
 
11040
      }
-
 
11041
 
-
 
11042
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11043
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeTransactionsByNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11044
        getRechargeTransactionsByNumber_args args = new getRechargeTransactionsByNumber_args();
-
 
11045
        args.setNumber(number);
-
 
11046
        args.write(prot);
-
 
11047
        prot.writeMessageEnd();
-
 
11048
      }
-
 
11049
 
-
 
11050
      public List<RechargeTransaction> getResult() throws org.apache.thrift.TException {
-
 
11051
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11052
          throw new IllegalStateException("Method call not finished!");
-
 
11053
        }
-
 
11054
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11055
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11056
        return (new Client(prot)).recv_getRechargeTransactionsByNumber();
-
 
11057
      }
-
 
11058
    }
-
 
11059
 
-
 
11060
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException {
-
 
11061
      checkReady();
-
 
11062
      updateHotspotStorePassword_call method_call = new updateHotspotStorePassword_call(storeId, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
11063
      this.___currentMethod = method_call;
-
 
11064
      ___manager.call(method_call);
-
 
11065
    }
-
 
11066
 
-
 
11067
    public static class updateHotspotStorePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11068
      private long storeId;
-
 
11069
      private String password;
-
 
11070
      public updateHotspotStorePassword_call(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<updateHotspotStorePassword_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 {
-
 
11071
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11072
        this.storeId = storeId;
-
 
11073
        this.password = password;
-
 
11074
      }
-
 
11075
 
-
 
11076
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11077
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateHotspotStorePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11078
        updateHotspotStorePassword_args args = new updateHotspotStorePassword_args();
-
 
11079
        args.setStoreId(storeId);
-
 
11080
        args.setPassword(password);
-
 
11081
        args.write(prot);
-
 
11082
        prot.writeMessageEnd();
-
 
11083
      }
-
 
11084
 
-
 
11085
      public boolean getResult() throws org.apache.thrift.TException {
-
 
11086
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11087
          throw new IllegalStateException("Method call not finished!");
-
 
11088
        }
-
 
11089
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11090
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11091
        return (new Client(prot)).recv_updateHotspotStorePassword();
-
 
11092
      }
-
 
11093
    }
-
 
11094
 
10973
  }
11095
  }
10974
 
11096
 
10975
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11097
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10976
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11098
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10977
    public Processor(I iface) {
11099
    public Processor(I iface) {
Line 11142... Line 11264...
11142
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11264
      processMap.put("getRechargeTransaction", new getRechargeTransaction());
11143
      processMap.put("getFRCs", new getFRCs());
11265
      processMap.put("getFRCs", new getFRCs());
11144
      processMap.put("getHotspotStore", new getHotspotStore());
11266
      processMap.put("getHotspotStore", new getHotspotStore());
11145
      processMap.put("getTelecomCircle", new getTelecomCircle());
11267
      processMap.put("getTelecomCircle", new getTelecomCircle());
11146
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11268
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
-
 
11269
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
-
 
11270
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
11147
      return processMap;
11271
      return processMap;
11148
    }
11272
    }
11149
 
11273
 
11150
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11274
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11151
      public createTransaction() {
11275
      public createTransaction() {
Line 14149... Line 14273...
14149
        result.success = iface.retrieveHotspotRechargeInvoice(args.rechargeId);
14273
        result.success = iface.retrieveHotspotRechargeInvoice(args.rechargeId);
14150
        return result;
14274
        return result;
14151
      }
14275
      }
14152
    }
14276
    }
14153
 
14277
 
-
 
14278
    private static class getRechargeTransactionsByNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeTransactionsByNumber_args> {
-
 
14279
      public getRechargeTransactionsByNumber() {
-
 
14280
        super("getRechargeTransactionsByNumber");
-
 
14281
      }
-
 
14282
 
-
 
14283
      protected getRechargeTransactionsByNumber_args getEmptyArgsInstance() {
-
 
14284
        return new getRechargeTransactionsByNumber_args();
-
 
14285
      }
-
 
14286
 
-
 
14287
      protected getRechargeTransactionsByNumber_result getResult(I iface, getRechargeTransactionsByNumber_args args) throws org.apache.thrift.TException {
-
 
14288
        getRechargeTransactionsByNumber_result result = new getRechargeTransactionsByNumber_result();
-
 
14289
        result.success = iface.getRechargeTransactionsByNumber(args.number);
-
 
14290
        return result;
-
 
14291
      }
-
 
14292
    }
-
 
14293
 
-
 
14294
    private static class updateHotspotStorePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateHotspotStorePassword_args> {
-
 
14295
      public updateHotspotStorePassword() {
-
 
14296
        super("updateHotspotStorePassword");
-
 
14297
      }
-
 
14298
 
-
 
14299
      protected updateHotspotStorePassword_args getEmptyArgsInstance() {
-
 
14300
        return new updateHotspotStorePassword_args();
-
 
14301
      }
-
 
14302
 
-
 
14303
      protected updateHotspotStorePassword_result getResult(I iface, updateHotspotStorePassword_args args) throws org.apache.thrift.TException {
-
 
14304
        updateHotspotStorePassword_result result = new updateHotspotStorePassword_result();
-
 
14305
        result.success = iface.updateHotspotStorePassword(args.storeId, args.password);
-
 
14306
        result.setSuccessIsSet(true);
-
 
14307
        return result;
-
 
14308
      }
-
 
14309
    }
-
 
14310
 
14154
  }
14311
  }
14155
 
14312
 
14156
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
14313
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
14157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
14314
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
14158
 
14315
 
Line 58255... Line 58412...
58255
      }
58412
      }
58256
    }
58413
    }
58257
 
58414
 
58258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58415
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58259
      try {
58416
      try {
-
 
58417
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58418
        __isset_bit_vector = new BitSet(1);
58260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58419
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58261
      } catch (org.apache.thrift.TException te) {
58420
      } catch (org.apache.thrift.TException te) {
58262
        throw new java.io.IOException(te);
58421
        throw new java.io.IOException(te);
58263
      }
58422
      }
58264
    }
58423
    }
Line 63861... Line 64020...
63861
      }
64020
      }
63862
    }
64021
    }
63863
 
64022
 
63864
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63865
      try {
64024
      try {
-
 
64025
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
64026
        __isset_bit_vector = new BitSet(1);
63866
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63867
      } catch (org.apache.thrift.TException te) {
64028
      } catch (org.apache.thrift.TException te) {
63868
        throw new java.io.IOException(te);
64029
        throw new java.io.IOException(te);
63869
      }
64030
      }
63870
    }
64031
    }
Line 73874... Line 74035...
73874
      }
74035
      }
73875
    }
74036
    }
73876
 
74037
 
73877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
74038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
73878
      try {
74039
      try {
73879
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
73880
        __isset_bit_vector = new BitSet(1);
-
 
73881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
74040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
73882
      } catch (org.apache.thrift.TException te) {
74041
      } catch (org.apache.thrift.TException te) {
73883
        throw new java.io.IOException(te);
74042
        throw new java.io.IOException(te);
73884
      }
74043
      }
73885
    }
74044
    }
Line 102808... Line 102967...
102808
      }
102967
      }
102809
    }
102968
    }
102810
 
102969
 
102811
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
102970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
102812
      try {
102971
      try {
-
 
102972
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
102973
        __isset_bit_vector = new BitSet(1);
102813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
102974
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
102814
      } catch (org.apache.thrift.TException te) {
102975
      } catch (org.apache.thrift.TException te) {
102815
        throw new java.io.IOException(te);
102976
        throw new java.io.IOException(te);
102816
      }
102977
      }
102817
    }
102978
    }
Line 130882... Line 131043...
130882
      first = false;
131043
      first = false;
130883
      sb.append(")");
131044
      sb.append(")");
130884
      return sb.toString();
131045
      return sb.toString();
130885
    }
131046
    }
130886
 
131047
 
-
 
131048
    public void validate() throws org.apache.thrift.TException {
-
 
131049
      // check for required fields
-
 
131050
    }
-
 
131051
 
-
 
131052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
131053
      try {
-
 
131054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
131055
      } catch (org.apache.thrift.TException te) {
-
 
131056
        throw new java.io.IOException(te);
-
 
131057
      }
-
 
131058
    }
-
 
131059
 
-
 
131060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
131061
      try {
-
 
131062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
131063
      } catch (org.apache.thrift.TException te) {
-
 
131064
        throw new java.io.IOException(te);
-
 
131065
      }
-
 
131066
    }
-
 
131067
 
-
 
131068
  }
-
 
131069
 
-
 
131070
  public static class getRechargeTransactionsByNumber_args implements org.apache.thrift.TBase<getRechargeTransactionsByNumber_args, getRechargeTransactionsByNumber_args._Fields>, java.io.Serializable, Cloneable   {
-
 
131071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransactionsByNumber_args");
-
 
131072
 
-
 
131073
    private static final org.apache.thrift.protocol.TField NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("number", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
131074
 
-
 
131075
    private String number; // required
-
 
131076
 
-
 
131077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
131078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
131079
      NUMBER((short)1, "number");
-
 
131080
 
-
 
131081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
131082
 
-
 
131083
      static {
-
 
131084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
131085
          byName.put(field.getFieldName(), field);
-
 
131086
        }
-
 
131087
      }
-
 
131088
 
-
 
131089
      /**
-
 
131090
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
131091
       */
-
 
131092
      public static _Fields findByThriftId(int fieldId) {
-
 
131093
        switch(fieldId) {
-
 
131094
          case 1: // NUMBER
-
 
131095
            return NUMBER;
-
 
131096
          default:
-
 
131097
            return null;
-
 
131098
        }
-
 
131099
      }
-
 
131100
 
-
 
131101
      /**
-
 
131102
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
131103
       * if it is not found.
-
 
131104
       */
-
 
131105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
131106
        _Fields fields = findByThriftId(fieldId);
-
 
131107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
131108
        return fields;
-
 
131109
      }
-
 
131110
 
-
 
131111
      /**
-
 
131112
       * Find the _Fields constant that matches name, or null if its not found.
-
 
131113
       */
-
 
131114
      public static _Fields findByName(String name) {
-
 
131115
        return byName.get(name);
-
 
131116
      }
-
 
131117
 
-
 
131118
      private final short _thriftId;
-
 
131119
      private final String _fieldName;
-
 
131120
 
-
 
131121
      _Fields(short thriftId, String fieldName) {
-
 
131122
        _thriftId = thriftId;
-
 
131123
        _fieldName = fieldName;
-
 
131124
      }
-
 
131125
 
-
 
131126
      public short getThriftFieldId() {
-
 
131127
        return _thriftId;
-
 
131128
      }
-
 
131129
 
-
 
131130
      public String getFieldName() {
-
 
131131
        return _fieldName;
-
 
131132
      }
-
 
131133
    }
-
 
131134
 
-
 
131135
    // isset id assignments
-
 
131136
 
-
 
131137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
131138
    static {
-
 
131139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
131140
      tmpMap.put(_Fields.NUMBER, new org.apache.thrift.meta_data.FieldMetaData("number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
131142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
131143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeTransactionsByNumber_args.class, metaDataMap);
-
 
131144
    }
-
 
131145
 
-
 
131146
    public getRechargeTransactionsByNumber_args() {
-
 
131147
    }
-
 
131148
 
-
 
131149
    public getRechargeTransactionsByNumber_args(
-
 
131150
      String number)
-
 
131151
    {
-
 
131152
      this();
-
 
131153
      this.number = number;
-
 
131154
    }
-
 
131155
 
-
 
131156
    /**
-
 
131157
     * Performs a deep copy on <i>other</i>.
-
 
131158
     */
-
 
131159
    public getRechargeTransactionsByNumber_args(getRechargeTransactionsByNumber_args other) {
-
 
131160
      if (other.isSetNumber()) {
-
 
131161
        this.number = other.number;
-
 
131162
      }
-
 
131163
    }
-
 
131164
 
-
 
131165
    public getRechargeTransactionsByNumber_args deepCopy() {
-
 
131166
      return new getRechargeTransactionsByNumber_args(this);
-
 
131167
    }
-
 
131168
 
-
 
131169
    @Override
-
 
131170
    public void clear() {
-
 
131171
      this.number = null;
-
 
131172
    }
-
 
131173
 
-
 
131174
    public String getNumber() {
-
 
131175
      return this.number;
-
 
131176
    }
-
 
131177
 
-
 
131178
    public void setNumber(String number) {
-
 
131179
      this.number = number;
-
 
131180
    }
-
 
131181
 
-
 
131182
    public void unsetNumber() {
-
 
131183
      this.number = null;
-
 
131184
    }
-
 
131185
 
-
 
131186
    /** Returns true if field number is set (has been assigned a value) and false otherwise */
-
 
131187
    public boolean isSetNumber() {
-
 
131188
      return this.number != null;
-
 
131189
    }
-
 
131190
 
-
 
131191
    public void setNumberIsSet(boolean value) {
-
 
131192
      if (!value) {
-
 
131193
        this.number = null;
-
 
131194
      }
-
 
131195
    }
-
 
131196
 
-
 
131197
    public void setFieldValue(_Fields field, Object value) {
-
 
131198
      switch (field) {
-
 
131199
      case NUMBER:
-
 
131200
        if (value == null) {
-
 
131201
          unsetNumber();
-
 
131202
        } else {
-
 
131203
          setNumber((String)value);
-
 
131204
        }
-
 
131205
        break;
-
 
131206
 
-
 
131207
      }
-
 
131208
    }
-
 
131209
 
-
 
131210
    public Object getFieldValue(_Fields field) {
-
 
131211
      switch (field) {
-
 
131212
      case NUMBER:
-
 
131213
        return getNumber();
-
 
131214
 
-
 
131215
      }
-
 
131216
      throw new IllegalStateException();
-
 
131217
    }
-
 
131218
 
-
 
131219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
131220
    public boolean isSet(_Fields field) {
-
 
131221
      if (field == null) {
-
 
131222
        throw new IllegalArgumentException();
-
 
131223
      }
-
 
131224
 
-
 
131225
      switch (field) {
-
 
131226
      case NUMBER:
-
 
131227
        return isSetNumber();
-
 
131228
      }
-
 
131229
      throw new IllegalStateException();
-
 
131230
    }
-
 
131231
 
-
 
131232
    @Override
-
 
131233
    public boolean equals(Object that) {
-
 
131234
      if (that == null)
-
 
131235
        return false;
-
 
131236
      if (that instanceof getRechargeTransactionsByNumber_args)
-
 
131237
        return this.equals((getRechargeTransactionsByNumber_args)that);
-
 
131238
      return false;
-
 
131239
    }
-
 
131240
 
-
 
131241
    public boolean equals(getRechargeTransactionsByNumber_args that) {
-
 
131242
      if (that == null)
-
 
131243
        return false;
-
 
131244
 
-
 
131245
      boolean this_present_number = true && this.isSetNumber();
-
 
131246
      boolean that_present_number = true && that.isSetNumber();
-
 
131247
      if (this_present_number || that_present_number) {
-
 
131248
        if (!(this_present_number && that_present_number))
-
 
131249
          return false;
-
 
131250
        if (!this.number.equals(that.number))
-
 
131251
          return false;
-
 
131252
      }
-
 
131253
 
-
 
131254
      return true;
-
 
131255
    }
-
 
131256
 
-
 
131257
    @Override
-
 
131258
    public int hashCode() {
-
 
131259
      return 0;
-
 
131260
    }
-
 
131261
 
-
 
131262
    public int compareTo(getRechargeTransactionsByNumber_args other) {
-
 
131263
      if (!getClass().equals(other.getClass())) {
-
 
131264
        return getClass().getName().compareTo(other.getClass().getName());
-
 
131265
      }
-
 
131266
 
-
 
131267
      int lastComparison = 0;
-
 
131268
      getRechargeTransactionsByNumber_args typedOther = (getRechargeTransactionsByNumber_args)other;
-
 
131269
 
-
 
131270
      lastComparison = Boolean.valueOf(isSetNumber()).compareTo(typedOther.isSetNumber());
-
 
131271
      if (lastComparison != 0) {
-
 
131272
        return lastComparison;
-
 
131273
      }
-
 
131274
      if (isSetNumber()) {
-
 
131275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.number, typedOther.number);
-
 
131276
        if (lastComparison != 0) {
-
 
131277
          return lastComparison;
-
 
131278
        }
-
 
131279
      }
-
 
131280
      return 0;
-
 
131281
    }
-
 
131282
 
-
 
131283
    public _Fields fieldForId(int fieldId) {
-
 
131284
      return _Fields.findByThriftId(fieldId);
-
 
131285
    }
-
 
131286
 
-
 
131287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
131288
      org.apache.thrift.protocol.TField field;
-
 
131289
      iprot.readStructBegin();
-
 
131290
      while (true)
-
 
131291
      {
-
 
131292
        field = iprot.readFieldBegin();
-
 
131293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
131294
          break;
-
 
131295
        }
-
 
131296
        switch (field.id) {
-
 
131297
          case 1: // NUMBER
-
 
131298
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
131299
              this.number = iprot.readString();
-
 
131300
            } else { 
-
 
131301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131302
            }
-
 
131303
            break;
-
 
131304
          default:
-
 
131305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131306
        }
-
 
131307
        iprot.readFieldEnd();
-
 
131308
      }
-
 
131309
      iprot.readStructEnd();
-
 
131310
      validate();
-
 
131311
    }
-
 
131312
 
-
 
131313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
131314
      validate();
-
 
131315
 
-
 
131316
      oprot.writeStructBegin(STRUCT_DESC);
-
 
131317
      if (this.number != null) {
-
 
131318
        oprot.writeFieldBegin(NUMBER_FIELD_DESC);
-
 
131319
        oprot.writeString(this.number);
-
 
131320
        oprot.writeFieldEnd();
-
 
131321
      }
-
 
131322
      oprot.writeFieldStop();
-
 
131323
      oprot.writeStructEnd();
-
 
131324
    }
-
 
131325
 
-
 
131326
    @Override
-
 
131327
    public String toString() {
-
 
131328
      StringBuilder sb = new StringBuilder("getRechargeTransactionsByNumber_args(");
-
 
131329
      boolean first = true;
-
 
131330
 
-
 
131331
      sb.append("number:");
-
 
131332
      if (this.number == null) {
-
 
131333
        sb.append("null");
-
 
131334
      } else {
-
 
131335
        sb.append(this.number);
-
 
131336
      }
-
 
131337
      first = false;
-
 
131338
      sb.append(")");
-
 
131339
      return sb.toString();
-
 
131340
    }
-
 
131341
 
-
 
131342
    public void validate() throws org.apache.thrift.TException {
-
 
131343
      // check for required fields
-
 
131344
    }
-
 
131345
 
-
 
131346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
131347
      try {
-
 
131348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
131349
      } catch (org.apache.thrift.TException te) {
-
 
131350
        throw new java.io.IOException(te);
-
 
131351
      }
-
 
131352
    }
-
 
131353
 
-
 
131354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
131355
      try {
-
 
131356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
131357
      } catch (org.apache.thrift.TException te) {
-
 
131358
        throw new java.io.IOException(te);
-
 
131359
      }
-
 
131360
    }
-
 
131361
 
-
 
131362
  }
-
 
131363
 
-
 
131364
  public static class getRechargeTransactionsByNumber_result implements org.apache.thrift.TBase<getRechargeTransactionsByNumber_result, getRechargeTransactionsByNumber_result._Fields>, java.io.Serializable, Cloneable   {
-
 
131365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeTransactionsByNumber_result");
-
 
131366
 
-
 
131367
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
131368
 
-
 
131369
    private List<RechargeTransaction> success; // required
-
 
131370
 
-
 
131371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
131372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
131373
      SUCCESS((short)0, "success");
-
 
131374
 
-
 
131375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
131376
 
-
 
131377
      static {
-
 
131378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
131379
          byName.put(field.getFieldName(), field);
-
 
131380
        }
-
 
131381
      }
-
 
131382
 
-
 
131383
      /**
-
 
131384
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
131385
       */
-
 
131386
      public static _Fields findByThriftId(int fieldId) {
-
 
131387
        switch(fieldId) {
-
 
131388
          case 0: // SUCCESS
-
 
131389
            return SUCCESS;
-
 
131390
          default:
-
 
131391
            return null;
-
 
131392
        }
-
 
131393
      }
-
 
131394
 
-
 
131395
      /**
-
 
131396
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
131397
       * if it is not found.
-
 
131398
       */
-
 
131399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
131400
        _Fields fields = findByThriftId(fieldId);
-
 
131401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
131402
        return fields;
-
 
131403
      }
-
 
131404
 
-
 
131405
      /**
-
 
131406
       * Find the _Fields constant that matches name, or null if its not found.
-
 
131407
       */
-
 
131408
      public static _Fields findByName(String name) {
-
 
131409
        return byName.get(name);
-
 
131410
      }
-
 
131411
 
-
 
131412
      private final short _thriftId;
-
 
131413
      private final String _fieldName;
-
 
131414
 
-
 
131415
      _Fields(short thriftId, String fieldName) {
-
 
131416
        _thriftId = thriftId;
-
 
131417
        _fieldName = fieldName;
-
 
131418
      }
-
 
131419
 
-
 
131420
      public short getThriftFieldId() {
-
 
131421
        return _thriftId;
-
 
131422
      }
-
 
131423
 
-
 
131424
      public String getFieldName() {
-
 
131425
        return _fieldName;
-
 
131426
      }
-
 
131427
    }
-
 
131428
 
-
 
131429
    // isset id assignments
-
 
131430
 
-
 
131431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
131432
    static {
-
 
131433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
131434
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131435
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
131436
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeTransaction.class))));
-
 
131437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
131438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeTransactionsByNumber_result.class, metaDataMap);
-
 
131439
    }
-
 
131440
 
-
 
131441
    public getRechargeTransactionsByNumber_result() {
-
 
131442
    }
-
 
131443
 
-
 
131444
    public getRechargeTransactionsByNumber_result(
-
 
131445
      List<RechargeTransaction> success)
-
 
131446
    {
-
 
131447
      this();
-
 
131448
      this.success = success;
-
 
131449
    }
-
 
131450
 
-
 
131451
    /**
-
 
131452
     * Performs a deep copy on <i>other</i>.
-
 
131453
     */
-
 
131454
    public getRechargeTransactionsByNumber_result(getRechargeTransactionsByNumber_result other) {
-
 
131455
      if (other.isSetSuccess()) {
-
 
131456
        List<RechargeTransaction> __this__success = new ArrayList<RechargeTransaction>();
-
 
131457
        for (RechargeTransaction other_element : other.success) {
-
 
131458
          __this__success.add(new RechargeTransaction(other_element));
-
 
131459
        }
-
 
131460
        this.success = __this__success;
-
 
131461
      }
-
 
131462
    }
-
 
131463
 
-
 
131464
    public getRechargeTransactionsByNumber_result deepCopy() {
-
 
131465
      return new getRechargeTransactionsByNumber_result(this);
-
 
131466
    }
-
 
131467
 
-
 
131468
    @Override
-
 
131469
    public void clear() {
-
 
131470
      this.success = null;
-
 
131471
    }
-
 
131472
 
-
 
131473
    public int getSuccessSize() {
-
 
131474
      return (this.success == null) ? 0 : this.success.size();
-
 
131475
    }
-
 
131476
 
-
 
131477
    public java.util.Iterator<RechargeTransaction> getSuccessIterator() {
-
 
131478
      return (this.success == null) ? null : this.success.iterator();
-
 
131479
    }
-
 
131480
 
-
 
131481
    public void addToSuccess(RechargeTransaction elem) {
-
 
131482
      if (this.success == null) {
-
 
131483
        this.success = new ArrayList<RechargeTransaction>();
-
 
131484
      }
-
 
131485
      this.success.add(elem);
-
 
131486
    }
-
 
131487
 
-
 
131488
    public List<RechargeTransaction> getSuccess() {
-
 
131489
      return this.success;
-
 
131490
    }
-
 
131491
 
-
 
131492
    public void setSuccess(List<RechargeTransaction> success) {
-
 
131493
      this.success = success;
-
 
131494
    }
-
 
131495
 
-
 
131496
    public void unsetSuccess() {
-
 
131497
      this.success = null;
-
 
131498
    }
-
 
131499
 
-
 
131500
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
131501
    public boolean isSetSuccess() {
-
 
131502
      return this.success != null;
-
 
131503
    }
-
 
131504
 
-
 
131505
    public void setSuccessIsSet(boolean value) {
-
 
131506
      if (!value) {
-
 
131507
        this.success = null;
-
 
131508
      }
-
 
131509
    }
-
 
131510
 
-
 
131511
    public void setFieldValue(_Fields field, Object value) {
-
 
131512
      switch (field) {
-
 
131513
      case SUCCESS:
-
 
131514
        if (value == null) {
-
 
131515
          unsetSuccess();
-
 
131516
        } else {
-
 
131517
          setSuccess((List<RechargeTransaction>)value);
-
 
131518
        }
-
 
131519
        break;
-
 
131520
 
-
 
131521
      }
-
 
131522
    }
-
 
131523
 
-
 
131524
    public Object getFieldValue(_Fields field) {
-
 
131525
      switch (field) {
-
 
131526
      case SUCCESS:
-
 
131527
        return getSuccess();
-
 
131528
 
-
 
131529
      }
-
 
131530
      throw new IllegalStateException();
-
 
131531
    }
-
 
131532
 
-
 
131533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
131534
    public boolean isSet(_Fields field) {
-
 
131535
      if (field == null) {
-
 
131536
        throw new IllegalArgumentException();
-
 
131537
      }
-
 
131538
 
-
 
131539
      switch (field) {
-
 
131540
      case SUCCESS:
-
 
131541
        return isSetSuccess();
-
 
131542
      }
-
 
131543
      throw new IllegalStateException();
-
 
131544
    }
-
 
131545
 
-
 
131546
    @Override
-
 
131547
    public boolean equals(Object that) {
-
 
131548
      if (that == null)
-
 
131549
        return false;
-
 
131550
      if (that instanceof getRechargeTransactionsByNumber_result)
-
 
131551
        return this.equals((getRechargeTransactionsByNumber_result)that);
-
 
131552
      return false;
-
 
131553
    }
-
 
131554
 
-
 
131555
    public boolean equals(getRechargeTransactionsByNumber_result that) {
-
 
131556
      if (that == null)
-
 
131557
        return false;
-
 
131558
 
-
 
131559
      boolean this_present_success = true && this.isSetSuccess();
-
 
131560
      boolean that_present_success = true && that.isSetSuccess();
-
 
131561
      if (this_present_success || that_present_success) {
-
 
131562
        if (!(this_present_success && that_present_success))
-
 
131563
          return false;
-
 
131564
        if (!this.success.equals(that.success))
-
 
131565
          return false;
-
 
131566
      }
-
 
131567
 
-
 
131568
      return true;
-
 
131569
    }
-
 
131570
 
-
 
131571
    @Override
-
 
131572
    public int hashCode() {
-
 
131573
      return 0;
-
 
131574
    }
-
 
131575
 
-
 
131576
    public int compareTo(getRechargeTransactionsByNumber_result other) {
-
 
131577
      if (!getClass().equals(other.getClass())) {
-
 
131578
        return getClass().getName().compareTo(other.getClass().getName());
-
 
131579
      }
-
 
131580
 
-
 
131581
      int lastComparison = 0;
-
 
131582
      getRechargeTransactionsByNumber_result typedOther = (getRechargeTransactionsByNumber_result)other;
-
 
131583
 
-
 
131584
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
131585
      if (lastComparison != 0) {
-
 
131586
        return lastComparison;
-
 
131587
      }
-
 
131588
      if (isSetSuccess()) {
-
 
131589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
131590
        if (lastComparison != 0) {
-
 
131591
          return lastComparison;
-
 
131592
        }
-
 
131593
      }
-
 
131594
      return 0;
-
 
131595
    }
-
 
131596
 
-
 
131597
    public _Fields fieldForId(int fieldId) {
-
 
131598
      return _Fields.findByThriftId(fieldId);
-
 
131599
    }
-
 
131600
 
-
 
131601
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
131602
      org.apache.thrift.protocol.TField field;
-
 
131603
      iprot.readStructBegin();
-
 
131604
      while (true)
-
 
131605
      {
-
 
131606
        field = iprot.readFieldBegin();
-
 
131607
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
131608
          break;
-
 
131609
        }
-
 
131610
        switch (field.id) {
-
 
131611
          case 0: // SUCCESS
-
 
131612
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
131613
              {
-
 
131614
                org.apache.thrift.protocol.TList _list430 = iprot.readListBegin();
-
 
131615
                this.success = new ArrayList<RechargeTransaction>(_list430.size);
-
 
131616
                for (int _i431 = 0; _i431 < _list430.size; ++_i431)
-
 
131617
                {
-
 
131618
                  RechargeTransaction _elem432; // required
-
 
131619
                  _elem432 = new RechargeTransaction();
-
 
131620
                  _elem432.read(iprot);
-
 
131621
                  this.success.add(_elem432);
-
 
131622
                }
-
 
131623
                iprot.readListEnd();
-
 
131624
              }
-
 
131625
            } else { 
-
 
131626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131627
            }
-
 
131628
            break;
-
 
131629
          default:
-
 
131630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131631
        }
-
 
131632
        iprot.readFieldEnd();
-
 
131633
      }
-
 
131634
      iprot.readStructEnd();
-
 
131635
      validate();
-
 
131636
    }
-
 
131637
 
-
 
131638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
131639
      oprot.writeStructBegin(STRUCT_DESC);
-
 
131640
 
-
 
131641
      if (this.isSetSuccess()) {
-
 
131642
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
131643
        {
-
 
131644
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
131645
          for (RechargeTransaction _iter433 : this.success)
-
 
131646
          {
-
 
131647
            _iter433.write(oprot);
-
 
131648
          }
-
 
131649
          oprot.writeListEnd();
-
 
131650
        }
-
 
131651
        oprot.writeFieldEnd();
-
 
131652
      }
-
 
131653
      oprot.writeFieldStop();
-
 
131654
      oprot.writeStructEnd();
-
 
131655
    }
-
 
131656
 
-
 
131657
    @Override
-
 
131658
    public String toString() {
-
 
131659
      StringBuilder sb = new StringBuilder("getRechargeTransactionsByNumber_result(");
-
 
131660
      boolean first = true;
-
 
131661
 
-
 
131662
      sb.append("success:");
-
 
131663
      if (this.success == null) {
-
 
131664
        sb.append("null");
-
 
131665
      } else {
-
 
131666
        sb.append(this.success);
-
 
131667
      }
-
 
131668
      first = false;
-
 
131669
      sb.append(")");
-
 
131670
      return sb.toString();
-
 
131671
    }
-
 
131672
 
-
 
131673
    public void validate() throws org.apache.thrift.TException {
-
 
131674
      // check for required fields
-
 
131675
    }
-
 
131676
 
-
 
131677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
131678
      try {
-
 
131679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
131680
      } catch (org.apache.thrift.TException te) {
-
 
131681
        throw new java.io.IOException(te);
-
 
131682
      }
-
 
131683
    }
-
 
131684
 
-
 
131685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
131686
      try {
-
 
131687
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
131688
      } catch (org.apache.thrift.TException te) {
-
 
131689
        throw new java.io.IOException(te);
-
 
131690
      }
-
 
131691
    }
-
 
131692
 
-
 
131693
  }
-
 
131694
 
-
 
131695
  public static class updateHotspotStorePassword_args implements org.apache.thrift.TBase<updateHotspotStorePassword_args, updateHotspotStorePassword_args._Fields>, java.io.Serializable, Cloneable   {
-
 
131696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateHotspotStorePassword_args");
-
 
131697
 
-
 
131698
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
131699
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
131700
 
-
 
131701
    private long storeId; // required
-
 
131702
    private String password; // required
-
 
131703
 
-
 
131704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
131705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
131706
      STORE_ID((short)1, "storeId"),
-
 
131707
      PASSWORD((short)2, "password");
-
 
131708
 
-
 
131709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
131710
 
-
 
131711
      static {
-
 
131712
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
131713
          byName.put(field.getFieldName(), field);
-
 
131714
        }
-
 
131715
      }
-
 
131716
 
-
 
131717
      /**
-
 
131718
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
131719
       */
-
 
131720
      public static _Fields findByThriftId(int fieldId) {
-
 
131721
        switch(fieldId) {
-
 
131722
          case 1: // STORE_ID
-
 
131723
            return STORE_ID;
-
 
131724
          case 2: // PASSWORD
-
 
131725
            return PASSWORD;
-
 
131726
          default:
-
 
131727
            return null;
-
 
131728
        }
-
 
131729
      }
-
 
131730
 
-
 
131731
      /**
-
 
131732
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
131733
       * if it is not found.
-
 
131734
       */
-
 
131735
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
131736
        _Fields fields = findByThriftId(fieldId);
-
 
131737
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
131738
        return fields;
-
 
131739
      }
-
 
131740
 
-
 
131741
      /**
-
 
131742
       * Find the _Fields constant that matches name, or null if its not found.
-
 
131743
       */
-
 
131744
      public static _Fields findByName(String name) {
-
 
131745
        return byName.get(name);
-
 
131746
      }
-
 
131747
 
-
 
131748
      private final short _thriftId;
-
 
131749
      private final String _fieldName;
-
 
131750
 
-
 
131751
      _Fields(short thriftId, String fieldName) {
-
 
131752
        _thriftId = thriftId;
-
 
131753
        _fieldName = fieldName;
-
 
131754
      }
-
 
131755
 
-
 
131756
      public short getThriftFieldId() {
-
 
131757
        return _thriftId;
-
 
131758
      }
-
 
131759
 
-
 
131760
      public String getFieldName() {
-
 
131761
        return _fieldName;
-
 
131762
      }
-
 
131763
    }
-
 
131764
 
-
 
131765
    // isset id assignments
-
 
131766
    private static final int __STOREID_ISSET_ID = 0;
-
 
131767
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
131768
 
-
 
131769
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
131770
    static {
-
 
131771
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
131772
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131773
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
131774
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131775
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
131776
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
131777
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateHotspotStorePassword_args.class, metaDataMap);
-
 
131778
    }
-
 
131779
 
-
 
131780
    public updateHotspotStorePassword_args() {
-
 
131781
    }
-
 
131782
 
-
 
131783
    public updateHotspotStorePassword_args(
-
 
131784
      long storeId,
-
 
131785
      String password)
-
 
131786
    {
-
 
131787
      this();
-
 
131788
      this.storeId = storeId;
-
 
131789
      setStoreIdIsSet(true);
-
 
131790
      this.password = password;
-
 
131791
    }
-
 
131792
 
-
 
131793
    /**
-
 
131794
     * Performs a deep copy on <i>other</i>.
-
 
131795
     */
-
 
131796
    public updateHotspotStorePassword_args(updateHotspotStorePassword_args other) {
-
 
131797
      __isset_bit_vector.clear();
-
 
131798
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
131799
      this.storeId = other.storeId;
-
 
131800
      if (other.isSetPassword()) {
-
 
131801
        this.password = other.password;
-
 
131802
      }
-
 
131803
    }
-
 
131804
 
-
 
131805
    public updateHotspotStorePassword_args deepCopy() {
-
 
131806
      return new updateHotspotStorePassword_args(this);
-
 
131807
    }
-
 
131808
 
-
 
131809
    @Override
-
 
131810
    public void clear() {
-
 
131811
      setStoreIdIsSet(false);
-
 
131812
      this.storeId = 0;
-
 
131813
      this.password = null;
-
 
131814
    }
-
 
131815
 
-
 
131816
    public long getStoreId() {
-
 
131817
      return this.storeId;
-
 
131818
    }
-
 
131819
 
-
 
131820
    public void setStoreId(long storeId) {
-
 
131821
      this.storeId = storeId;
-
 
131822
      setStoreIdIsSet(true);
-
 
131823
    }
-
 
131824
 
-
 
131825
    public void unsetStoreId() {
-
 
131826
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
131827
    }
-
 
131828
 
-
 
131829
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
131830
    public boolean isSetStoreId() {
-
 
131831
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
131832
    }
-
 
131833
 
-
 
131834
    public void setStoreIdIsSet(boolean value) {
-
 
131835
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
131836
    }
-
 
131837
 
-
 
131838
    public String getPassword() {
-
 
131839
      return this.password;
-
 
131840
    }
-
 
131841
 
-
 
131842
    public void setPassword(String password) {
-
 
131843
      this.password = password;
-
 
131844
    }
-
 
131845
 
-
 
131846
    public void unsetPassword() {
-
 
131847
      this.password = null;
-
 
131848
    }
-
 
131849
 
-
 
131850
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
-
 
131851
    public boolean isSetPassword() {
-
 
131852
      return this.password != null;
-
 
131853
    }
-
 
131854
 
-
 
131855
    public void setPasswordIsSet(boolean value) {
-
 
131856
      if (!value) {
-
 
131857
        this.password = null;
-
 
131858
      }
-
 
131859
    }
-
 
131860
 
-
 
131861
    public void setFieldValue(_Fields field, Object value) {
-
 
131862
      switch (field) {
-
 
131863
      case STORE_ID:
-
 
131864
        if (value == null) {
-
 
131865
          unsetStoreId();
-
 
131866
        } else {
-
 
131867
          setStoreId((Long)value);
-
 
131868
        }
-
 
131869
        break;
-
 
131870
 
-
 
131871
      case PASSWORD:
-
 
131872
        if (value == null) {
-
 
131873
          unsetPassword();
-
 
131874
        } else {
-
 
131875
          setPassword((String)value);
-
 
131876
        }
-
 
131877
        break;
-
 
131878
 
-
 
131879
      }
-
 
131880
    }
-
 
131881
 
-
 
131882
    public Object getFieldValue(_Fields field) {
-
 
131883
      switch (field) {
-
 
131884
      case STORE_ID:
-
 
131885
        return Long.valueOf(getStoreId());
-
 
131886
 
-
 
131887
      case PASSWORD:
-
 
131888
        return getPassword();
-
 
131889
 
-
 
131890
      }
-
 
131891
      throw new IllegalStateException();
-
 
131892
    }
-
 
131893
 
-
 
131894
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
131895
    public boolean isSet(_Fields field) {
-
 
131896
      if (field == null) {
-
 
131897
        throw new IllegalArgumentException();
-
 
131898
      }
-
 
131899
 
-
 
131900
      switch (field) {
-
 
131901
      case STORE_ID:
-
 
131902
        return isSetStoreId();
-
 
131903
      case PASSWORD:
-
 
131904
        return isSetPassword();
-
 
131905
      }
-
 
131906
      throw new IllegalStateException();
-
 
131907
    }
-
 
131908
 
-
 
131909
    @Override
-
 
131910
    public boolean equals(Object that) {
-
 
131911
      if (that == null)
-
 
131912
        return false;
-
 
131913
      if (that instanceof updateHotspotStorePassword_args)
-
 
131914
        return this.equals((updateHotspotStorePassword_args)that);
-
 
131915
      return false;
-
 
131916
    }
-
 
131917
 
-
 
131918
    public boolean equals(updateHotspotStorePassword_args that) {
-
 
131919
      if (that == null)
-
 
131920
        return false;
-
 
131921
 
-
 
131922
      boolean this_present_storeId = true;
-
 
131923
      boolean that_present_storeId = true;
-
 
131924
      if (this_present_storeId || that_present_storeId) {
-
 
131925
        if (!(this_present_storeId && that_present_storeId))
-
 
131926
          return false;
-
 
131927
        if (this.storeId != that.storeId)
-
 
131928
          return false;
-
 
131929
      }
-
 
131930
 
-
 
131931
      boolean this_present_password = true && this.isSetPassword();
-
 
131932
      boolean that_present_password = true && that.isSetPassword();
-
 
131933
      if (this_present_password || that_present_password) {
-
 
131934
        if (!(this_present_password && that_present_password))
-
 
131935
          return false;
-
 
131936
        if (!this.password.equals(that.password))
-
 
131937
          return false;
-
 
131938
      }
-
 
131939
 
-
 
131940
      return true;
-
 
131941
    }
-
 
131942
 
-
 
131943
    @Override
-
 
131944
    public int hashCode() {
-
 
131945
      return 0;
-
 
131946
    }
-
 
131947
 
-
 
131948
    public int compareTo(updateHotspotStorePassword_args other) {
-
 
131949
      if (!getClass().equals(other.getClass())) {
-
 
131950
        return getClass().getName().compareTo(other.getClass().getName());
-
 
131951
      }
-
 
131952
 
-
 
131953
      int lastComparison = 0;
-
 
131954
      updateHotspotStorePassword_args typedOther = (updateHotspotStorePassword_args)other;
-
 
131955
 
-
 
131956
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
131957
      if (lastComparison != 0) {
-
 
131958
        return lastComparison;
-
 
131959
      }
-
 
131960
      if (isSetStoreId()) {
-
 
131961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
131962
        if (lastComparison != 0) {
-
 
131963
          return lastComparison;
-
 
131964
        }
-
 
131965
      }
-
 
131966
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
-
 
131967
      if (lastComparison != 0) {
-
 
131968
        return lastComparison;
-
 
131969
      }
-
 
131970
      if (isSetPassword()) {
-
 
131971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
-
 
131972
        if (lastComparison != 0) {
-
 
131973
          return lastComparison;
-
 
131974
        }
-
 
131975
      }
-
 
131976
      return 0;
-
 
131977
    }
-
 
131978
 
-
 
131979
    public _Fields fieldForId(int fieldId) {
-
 
131980
      return _Fields.findByThriftId(fieldId);
-
 
131981
    }
-
 
131982
 
-
 
131983
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
131984
      org.apache.thrift.protocol.TField field;
-
 
131985
      iprot.readStructBegin();
-
 
131986
      while (true)
-
 
131987
      {
-
 
131988
        field = iprot.readFieldBegin();
-
 
131989
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
131990
          break;
-
 
131991
        }
-
 
131992
        switch (field.id) {
-
 
131993
          case 1: // STORE_ID
-
 
131994
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
131995
              this.storeId = iprot.readI64();
-
 
131996
              setStoreIdIsSet(true);
-
 
131997
            } else { 
-
 
131998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
131999
            }
-
 
132000
            break;
-
 
132001
          case 2: // PASSWORD
-
 
132002
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
132003
              this.password = iprot.readString();
-
 
132004
            } else { 
-
 
132005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
132006
            }
-
 
132007
            break;
-
 
132008
          default:
-
 
132009
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
132010
        }
-
 
132011
        iprot.readFieldEnd();
-
 
132012
      }
-
 
132013
      iprot.readStructEnd();
-
 
132014
      validate();
-
 
132015
    }
-
 
132016
 
-
 
132017
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
132018
      validate();
-
 
132019
 
-
 
132020
      oprot.writeStructBegin(STRUCT_DESC);
-
 
132021
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
132022
      oprot.writeI64(this.storeId);
-
 
132023
      oprot.writeFieldEnd();
-
 
132024
      if (this.password != null) {
-
 
132025
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
132026
        oprot.writeString(this.password);
-
 
132027
        oprot.writeFieldEnd();
-
 
132028
      }
-
 
132029
      oprot.writeFieldStop();
-
 
132030
      oprot.writeStructEnd();
-
 
132031
    }
-
 
132032
 
-
 
132033
    @Override
-
 
132034
    public String toString() {
-
 
132035
      StringBuilder sb = new StringBuilder("updateHotspotStorePassword_args(");
-
 
132036
      boolean first = true;
-
 
132037
 
-
 
132038
      sb.append("storeId:");
-
 
132039
      sb.append(this.storeId);
-
 
132040
      first = false;
-
 
132041
      if (!first) sb.append(", ");
-
 
132042
      sb.append("password:");
-
 
132043
      if (this.password == null) {
-
 
132044
        sb.append("null");
-
 
132045
      } else {
-
 
132046
        sb.append(this.password);
-
 
132047
      }
-
 
132048
      first = false;
-
 
132049
      sb.append(")");
-
 
132050
      return sb.toString();
-
 
132051
    }
-
 
132052
 
-
 
132053
    public void validate() throws org.apache.thrift.TException {
-
 
132054
      // check for required fields
-
 
132055
    }
-
 
132056
 
-
 
132057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
132058
      try {
-
 
132059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
132060
      } catch (org.apache.thrift.TException te) {
-
 
132061
        throw new java.io.IOException(te);
-
 
132062
      }
-
 
132063
    }
-
 
132064
 
-
 
132065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
132066
      try {
-
 
132067
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
132068
        __isset_bit_vector = new BitSet(1);
-
 
132069
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
132070
      } catch (org.apache.thrift.TException te) {
-
 
132071
        throw new java.io.IOException(te);
-
 
132072
      }
-
 
132073
    }
-
 
132074
 
-
 
132075
  }
-
 
132076
 
-
 
132077
  public static class updateHotspotStorePassword_result implements org.apache.thrift.TBase<updateHotspotStorePassword_result, updateHotspotStorePassword_result._Fields>, java.io.Serializable, Cloneable   {
-
 
132078
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateHotspotStorePassword_result");
-
 
132079
 
-
 
132080
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
132081
 
-
 
132082
    private boolean success; // required
-
 
132083
 
-
 
132084
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
132085
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
132086
      SUCCESS((short)0, "success");
-
 
132087
 
-
 
132088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
132089
 
-
 
132090
      static {
-
 
132091
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
132092
          byName.put(field.getFieldName(), field);
-
 
132093
        }
-
 
132094
      }
-
 
132095
 
-
 
132096
      /**
-
 
132097
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
132098
       */
-
 
132099
      public static _Fields findByThriftId(int fieldId) {
-
 
132100
        switch(fieldId) {
-
 
132101
          case 0: // SUCCESS
-
 
132102
            return SUCCESS;
-
 
132103
          default:
-
 
132104
            return null;
-
 
132105
        }
-
 
132106
      }
-
 
132107
 
-
 
132108
      /**
-
 
132109
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
132110
       * if it is not found.
-
 
132111
       */
-
 
132112
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
132113
        _Fields fields = findByThriftId(fieldId);
-
 
132114
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
132115
        return fields;
-
 
132116
      }
-
 
132117
 
-
 
132118
      /**
-
 
132119
       * Find the _Fields constant that matches name, or null if its not found.
-
 
132120
       */
-
 
132121
      public static _Fields findByName(String name) {
-
 
132122
        return byName.get(name);
-
 
132123
      }
-
 
132124
 
-
 
132125
      private final short _thriftId;
-
 
132126
      private final String _fieldName;
-
 
132127
 
-
 
132128
      _Fields(short thriftId, String fieldName) {
-
 
132129
        _thriftId = thriftId;
-
 
132130
        _fieldName = fieldName;
-
 
132131
      }
-
 
132132
 
-
 
132133
      public short getThriftFieldId() {
-
 
132134
        return _thriftId;
-
 
132135
      }
-
 
132136
 
-
 
132137
      public String getFieldName() {
-
 
132138
        return _fieldName;
-
 
132139
      }
-
 
132140
    }
-
 
132141
 
-
 
132142
    // isset id assignments
-
 
132143
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
132144
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
132145
 
-
 
132146
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
132147
    static {
-
 
132148
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
132149
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
132150
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
132151
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
132152
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateHotspotStorePassword_result.class, metaDataMap);
-
 
132153
    }
-
 
132154
 
-
 
132155
    public updateHotspotStorePassword_result() {
-
 
132156
    }
-
 
132157
 
-
 
132158
    public updateHotspotStorePassword_result(
-
 
132159
      boolean success)
-
 
132160
    {
-
 
132161
      this();
-
 
132162
      this.success = success;
-
 
132163
      setSuccessIsSet(true);
-
 
132164
    }
-
 
132165
 
-
 
132166
    /**
-
 
132167
     * Performs a deep copy on <i>other</i>.
-
 
132168
     */
-
 
132169
    public updateHotspotStorePassword_result(updateHotspotStorePassword_result other) {
-
 
132170
      __isset_bit_vector.clear();
-
 
132171
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
132172
      this.success = other.success;
-
 
132173
    }
-
 
132174
 
-
 
132175
    public updateHotspotStorePassword_result deepCopy() {
-
 
132176
      return new updateHotspotStorePassword_result(this);
-
 
132177
    }
-
 
132178
 
-
 
132179
    @Override
-
 
132180
    public void clear() {
-
 
132181
      setSuccessIsSet(false);
-
 
132182
      this.success = false;
-
 
132183
    }
-
 
132184
 
-
 
132185
    public boolean isSuccess() {
-
 
132186
      return this.success;
-
 
132187
    }
-
 
132188
 
-
 
132189
    public void setSuccess(boolean success) {
-
 
132190
      this.success = success;
-
 
132191
      setSuccessIsSet(true);
-
 
132192
    }
-
 
132193
 
-
 
132194
    public void unsetSuccess() {
-
 
132195
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
132196
    }
-
 
132197
 
-
 
132198
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
132199
    public boolean isSetSuccess() {
-
 
132200
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
132201
    }
-
 
132202
 
-
 
132203
    public void setSuccessIsSet(boolean value) {
-
 
132204
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
132205
    }
-
 
132206
 
-
 
132207
    public void setFieldValue(_Fields field, Object value) {
-
 
132208
      switch (field) {
-
 
132209
      case SUCCESS:
-
 
132210
        if (value == null) {
-
 
132211
          unsetSuccess();
-
 
132212
        } else {
-
 
132213
          setSuccess((Boolean)value);
-
 
132214
        }
-
 
132215
        break;
-
 
132216
 
-
 
132217
      }
-
 
132218
    }
-
 
132219
 
-
 
132220
    public Object getFieldValue(_Fields field) {
-
 
132221
      switch (field) {
-
 
132222
      case SUCCESS:
-
 
132223
        return Boolean.valueOf(isSuccess());
-
 
132224
 
-
 
132225
      }
-
 
132226
      throw new IllegalStateException();
-
 
132227
    }
-
 
132228
 
-
 
132229
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
132230
    public boolean isSet(_Fields field) {
-
 
132231
      if (field == null) {
-
 
132232
        throw new IllegalArgumentException();
-
 
132233
      }
-
 
132234
 
-
 
132235
      switch (field) {
-
 
132236
      case SUCCESS:
-
 
132237
        return isSetSuccess();
-
 
132238
      }
-
 
132239
      throw new IllegalStateException();
-
 
132240
    }
-
 
132241
 
-
 
132242
    @Override
-
 
132243
    public boolean equals(Object that) {
-
 
132244
      if (that == null)
-
 
132245
        return false;
-
 
132246
      if (that instanceof updateHotspotStorePassword_result)
-
 
132247
        return this.equals((updateHotspotStorePassword_result)that);
-
 
132248
      return false;
-
 
132249
    }
-
 
132250
 
-
 
132251
    public boolean equals(updateHotspotStorePassword_result that) {
-
 
132252
      if (that == null)
-
 
132253
        return false;
-
 
132254
 
-
 
132255
      boolean this_present_success = true;
-
 
132256
      boolean that_present_success = true;
-
 
132257
      if (this_present_success || that_present_success) {
-
 
132258
        if (!(this_present_success && that_present_success))
-
 
132259
          return false;
-
 
132260
        if (this.success != that.success)
-
 
132261
          return false;
-
 
132262
      }
-
 
132263
 
-
 
132264
      return true;
-
 
132265
    }
-
 
132266
 
-
 
132267
    @Override
-
 
132268
    public int hashCode() {
-
 
132269
      return 0;
-
 
132270
    }
-
 
132271
 
-
 
132272
    public int compareTo(updateHotspotStorePassword_result other) {
-
 
132273
      if (!getClass().equals(other.getClass())) {
-
 
132274
        return getClass().getName().compareTo(other.getClass().getName());
-
 
132275
      }
-
 
132276
 
-
 
132277
      int lastComparison = 0;
-
 
132278
      updateHotspotStorePassword_result typedOther = (updateHotspotStorePassword_result)other;
-
 
132279
 
-
 
132280
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
132281
      if (lastComparison != 0) {
-
 
132282
        return lastComparison;
-
 
132283
      }
-
 
132284
      if (isSetSuccess()) {
-
 
132285
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
132286
        if (lastComparison != 0) {
-
 
132287
          return lastComparison;
-
 
132288
        }
-
 
132289
      }
-
 
132290
      return 0;
-
 
132291
    }
-
 
132292
 
-
 
132293
    public _Fields fieldForId(int fieldId) {
-
 
132294
      return _Fields.findByThriftId(fieldId);
-
 
132295
    }
-
 
132296
 
-
 
132297
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
132298
      org.apache.thrift.protocol.TField field;
-
 
132299
      iprot.readStructBegin();
-
 
132300
      while (true)
-
 
132301
      {
-
 
132302
        field = iprot.readFieldBegin();
-
 
132303
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
132304
          break;
-
 
132305
        }
-
 
132306
        switch (field.id) {
-
 
132307
          case 0: // SUCCESS
-
 
132308
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
132309
              this.success = iprot.readBool();
-
 
132310
              setSuccessIsSet(true);
-
 
132311
            } else { 
-
 
132312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
132313
            }
-
 
132314
            break;
-
 
132315
          default:
-
 
132316
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
132317
        }
-
 
132318
        iprot.readFieldEnd();
-
 
132319
      }
-
 
132320
      iprot.readStructEnd();
-
 
132321
      validate();
-
 
132322
    }
-
 
132323
 
-
 
132324
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
132325
      oprot.writeStructBegin(STRUCT_DESC);
-
 
132326
 
-
 
132327
      if (this.isSetSuccess()) {
-
 
132328
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
132329
        oprot.writeBool(this.success);
-
 
132330
        oprot.writeFieldEnd();
-
 
132331
      }
-
 
132332
      oprot.writeFieldStop();
-
 
132333
      oprot.writeStructEnd();
-
 
132334
    }
-
 
132335
 
-
 
132336
    @Override
-
 
132337
    public String toString() {
-
 
132338
      StringBuilder sb = new StringBuilder("updateHotspotStorePassword_result(");
-
 
132339
      boolean first = true;
-
 
132340
 
-
 
132341
      sb.append("success:");
-
 
132342
      sb.append(this.success);
-
 
132343
      first = false;
-
 
132344
      sb.append(")");
-
 
132345
      return sb.toString();
-
 
132346
    }
-
 
132347
 
130887
    public void validate() throws org.apache.thrift.TException {
132348
    public void validate() throws org.apache.thrift.TException {
130888
      // check for required fields
132349
      // check for required fields
130889
    }
132350
    }
130890
 
132351
 
130891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
132352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {