Subversion Repositories SmartDukaan

Rev

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

Rev 6031 Rev 6048
Line 864... Line 864...
864
 
864
 
865
    public UserWallet getUserWallet(long userId) throws org.apache.thrift.TException;
865
    public UserWallet getUserWallet(long userId) throws org.apache.thrift.TException;
866
 
866
 
867
    public List<UserWalletHistory> getUserWalletHistory(long userId) throws org.apache.thrift.TException;
867
    public List<UserWalletHistory> getUserWalletHistory(long userId) throws org.apache.thrift.TException;
868
 
868
 
-
 
869
    public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException;
-
 
870
 
-
 
871
    public long getServiceProviderForDevice(String deviceNumber) throws org.apache.thrift.TException;
-
 
872
 
869
  }
873
  }
870
 
874
 
871
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
875
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
872
 
876
 
873
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
877
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1136... Line 1140...
1136
 
1140
 
1137
    public void getUserWallet(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWallet_call> resultHandler) throws org.apache.thrift.TException;
1141
    public void getUserWallet(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWallet_call> resultHandler) throws org.apache.thrift.TException;
1138
 
1142
 
1139
    public void getUserWalletHistory(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWalletHistory_call> resultHandler) throws org.apache.thrift.TException;
1143
    public void getUserWalletHistory(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserWalletHistory_call> resultHandler) throws org.apache.thrift.TException;
1140
 
1144
 
-
 
1145
    public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviders_call> resultHandler) throws org.apache.thrift.TException;
-
 
1146
 
-
 
1147
    public void getServiceProviderForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException;
-
 
1148
 
1141
  }
1149
  }
1142
 
1150
 
1143
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1151
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1144
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1152
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1145
      public Factory() {}
1153
      public Factory() {}
Line 4553... Line 4561...
4553
        return result.success;
4561
        return result.success;
4554
      }
4562
      }
4555
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserWalletHistory failed: unknown result");
4563
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserWalletHistory failed: unknown result");
4556
    }
4564
    }
4557
 
4565
 
-
 
4566
    public Map<Long,String> getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException
-
 
4567
    {
-
 
4568
      send_getServiceProviders(rechargeType);
-
 
4569
      return recv_getServiceProviders();
-
 
4570
    }
-
 
4571
 
-
 
4572
    public void send_getServiceProviders(RechargeType rechargeType) throws org.apache.thrift.TException
-
 
4573
    {
-
 
4574
      getServiceProviders_args args = new getServiceProviders_args();
-
 
4575
      args.setRechargeType(rechargeType);
-
 
4576
      sendBase("getServiceProviders", args);
-
 
4577
    }
-
 
4578
 
-
 
4579
    public Map<Long,String> recv_getServiceProviders() throws org.apache.thrift.TException
-
 
4580
    {
-
 
4581
      getServiceProviders_result result = new getServiceProviders_result();
-
 
4582
      receiveBase(result, "getServiceProviders");
-
 
4583
      if (result.isSetSuccess()) {
-
 
4584
        return result.success;
-
 
4585
      }
-
 
4586
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviders failed: unknown result");
-
 
4587
    }
-
 
4588
 
-
 
4589
    public long getServiceProviderForDevice(String deviceNumber) throws org.apache.thrift.TException
-
 
4590
    {
-
 
4591
      send_getServiceProviderForDevice(deviceNumber);
-
 
4592
      return recv_getServiceProviderForDevice();
-
 
4593
    }
-
 
4594
 
-
 
4595
    public void send_getServiceProviderForDevice(String deviceNumber) throws org.apache.thrift.TException
-
 
4596
    {
-
 
4597
      getServiceProviderForDevice_args args = new getServiceProviderForDevice_args();
-
 
4598
      args.setDeviceNumber(deviceNumber);
-
 
4599
      sendBase("getServiceProviderForDevice", args);
-
 
4600
    }
-
 
4601
 
-
 
4602
    public long recv_getServiceProviderForDevice() throws org.apache.thrift.TException
-
 
4603
    {
-
 
4604
      getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
-
 
4605
      receiveBase(result, "getServiceProviderForDevice");
-
 
4606
      if (result.isSetSuccess()) {
-
 
4607
        return result.success;
-
 
4608
      }
-
 
4609
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getServiceProviderForDevice failed: unknown result");
-
 
4610
    }
-
 
4611
 
4558
  }
4612
  }
4559
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4613
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4560
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4614
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4561
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4615
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4562
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4616
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9258... Line 9312...
9258
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9312
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9259
        return (new Client(prot)).recv_getUserWalletHistory();
9313
        return (new Client(prot)).recv_getUserWalletHistory();
9260
      }
9314
      }
9261
    }
9315
    }
9262
 
9316
 
-
 
9317
    public void getServiceProviders(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<getServiceProviders_call> resultHandler) throws org.apache.thrift.TException {
-
 
9318
      checkReady();
-
 
9319
      getServiceProviders_call method_call = new getServiceProviders_call(rechargeType, resultHandler, this, ___protocolFactory, ___transport);
-
 
9320
      this.___currentMethod = method_call;
-
 
9321
      ___manager.call(method_call);
-
 
9322
    }
-
 
9323
 
-
 
9324
    public static class getServiceProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9325
      private RechargeType rechargeType;
-
 
9326
      public getServiceProviders_call(RechargeType rechargeType, org.apache.thrift.async.AsyncMethodCallback<getServiceProviders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
9327
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9328
        this.rechargeType = rechargeType;
-
 
9329
      }
-
 
9330
 
-
 
9331
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9332
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9333
        getServiceProviders_args args = new getServiceProviders_args();
-
 
9334
        args.setRechargeType(rechargeType);
-
 
9335
        args.write(prot);
-
 
9336
        prot.writeMessageEnd();
-
 
9337
      }
-
 
9338
 
-
 
9339
      public Map<Long,String> getResult() throws org.apache.thrift.TException {
-
 
9340
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9341
          throw new IllegalStateException("Method call not finished!");
-
 
9342
        }
-
 
9343
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9344
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9345
        return (new Client(prot)).recv_getServiceProviders();
-
 
9346
      }
-
 
9347
    }
-
 
9348
 
-
 
9349
    public void getServiceProviderForDevice(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getServiceProviderForDevice_call> resultHandler) throws org.apache.thrift.TException {
-
 
9350
      checkReady();
-
 
9351
      getServiceProviderForDevice_call method_call = new getServiceProviderForDevice_call(deviceNumber, resultHandler, this, ___protocolFactory, ___transport);
-
 
9352
      this.___currentMethod = method_call;
-
 
9353
      ___manager.call(method_call);
-
 
9354
    }
-
 
9355
 
-
 
9356
    public static class getServiceProviderForDevice_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9357
      private String deviceNumber;
-
 
9358
      public getServiceProviderForDevice_call(String deviceNumber, org.apache.thrift.async.AsyncMethodCallback<getServiceProviderForDevice_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 {
-
 
9359
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9360
        this.deviceNumber = deviceNumber;
-
 
9361
      }
-
 
9362
 
-
 
9363
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9364
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getServiceProviderForDevice", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9365
        getServiceProviderForDevice_args args = new getServiceProviderForDevice_args();
-
 
9366
        args.setDeviceNumber(deviceNumber);
-
 
9367
        args.write(prot);
-
 
9368
        prot.writeMessageEnd();
-
 
9369
      }
-
 
9370
 
-
 
9371
      public long getResult() throws org.apache.thrift.TException {
-
 
9372
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9373
          throw new IllegalStateException("Method call not finished!");
-
 
9374
        }
-
 
9375
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9376
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9377
        return (new Client(prot)).recv_getServiceProviderForDevice();
-
 
9378
      }
-
 
9379
    }
-
 
9380
 
9263
  }
9381
  }
9264
 
9382
 
9265
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9383
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9266
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9384
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9267
    public Processor(I iface) {
9385
    public Processor(I iface) {
Line 9405... Line 9523...
9405
      processMap.put("getRechargeOrders", new getRechargeOrders());
9523
      processMap.put("getRechargeOrders", new getRechargeOrders());
9406
      processMap.put("updateRechargeOrderStatus", new updateRechargeOrderStatus());
9524
      processMap.put("updateRechargeOrderStatus", new updateRechargeOrderStatus());
9407
      processMap.put("activateRechargeTxn", new activateRechargeTxn());
9525
      processMap.put("activateRechargeTxn", new activateRechargeTxn());
9408
      processMap.put("getUserWallet", new getUserWallet());
9526
      processMap.put("getUserWallet", new getUserWallet());
9409
      processMap.put("getUserWalletHistory", new getUserWalletHistory());
9527
      processMap.put("getUserWalletHistory", new getUserWalletHistory());
-
 
9528
      processMap.put("getServiceProviders", new getServiceProviders());
-
 
9529
      processMap.put("getServiceProviderForDevice", new getServiceProviderForDevice());
9410
      return processMap;
9530
      return processMap;
9411
    }
9531
    }
9412
 
9532
 
9413
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9533
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
9414
      public createTransaction() {
9534
      public createTransaction() {
Line 11966... Line 12086...
11966
        result.success = iface.getUserWalletHistory(args.userId);
12086
        result.success = iface.getUserWalletHistory(args.userId);
11967
        return result;
12087
        return result;
11968
      }
12088
      }
11969
    }
12089
    }
11970
 
12090
 
-
 
12091
    private static class getServiceProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServiceProviders_args> {
-
 
12092
      public getServiceProviders() {
-
 
12093
        super("getServiceProviders");
-
 
12094
      }
-
 
12095
 
-
 
12096
      protected getServiceProviders_args getEmptyArgsInstance() {
-
 
12097
        return new getServiceProviders_args();
-
 
12098
      }
-
 
12099
 
-
 
12100
      protected getServiceProviders_result getResult(I iface, getServiceProviders_args args) throws org.apache.thrift.TException {
-
 
12101
        getServiceProviders_result result = new getServiceProviders_result();
-
 
12102
        result.success = iface.getServiceProviders(args.rechargeType);
-
 
12103
        return result;
-
 
12104
      }
-
 
12105
    }
-
 
12106
 
-
 
12107
    private static class getServiceProviderForDevice<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServiceProviderForDevice_args> {
-
 
12108
      public getServiceProviderForDevice() {
-
 
12109
        super("getServiceProviderForDevice");
-
 
12110
      }
-
 
12111
 
-
 
12112
      protected getServiceProviderForDevice_args getEmptyArgsInstance() {
-
 
12113
        return new getServiceProviderForDevice_args();
-
 
12114
      }
-
 
12115
 
-
 
12116
      protected getServiceProviderForDevice_result getResult(I iface, getServiceProviderForDevice_args args) throws org.apache.thrift.TException {
-
 
12117
        getServiceProviderForDevice_result result = new getServiceProviderForDevice_result();
-
 
12118
        result.success = iface.getServiceProviderForDevice(args.deviceNumber);
-
 
12119
        result.setSuccessIsSet(true);
-
 
12120
        return result;
-
 
12121
      }
-
 
12122
    }
-
 
12123
 
11971
  }
12124
  }
11972
 
12125
 
11973
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
12126
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
11974
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
12127
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
11975
 
12128
 
Line 110071... Line 110224...
110071
      first = false;
110224
      first = false;
110072
      sb.append(")");
110225
      sb.append(")");
110073
      return sb.toString();
110226
      return sb.toString();
110074
    }
110227
    }
110075
 
110228
 
-
 
110229
    public void validate() throws org.apache.thrift.TException {
-
 
110230
      // check for required fields
-
 
110231
    }
-
 
110232
 
-
 
110233
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
110234
      try {
-
 
110235
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
110236
      } catch (org.apache.thrift.TException te) {
-
 
110237
        throw new java.io.IOException(te);
-
 
110238
      }
-
 
110239
    }
-
 
110240
 
-
 
110241
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
110242
      try {
-
 
110243
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
110244
      } catch (org.apache.thrift.TException te) {
-
 
110245
        throw new java.io.IOException(te);
-
 
110246
      }
-
 
110247
    }
-
 
110248
 
-
 
110249
  }
-
 
110250
 
-
 
110251
  public static class getServiceProviders_args implements org.apache.thrift.TBase<getServiceProviders_args, getServiceProviders_args._Fields>, java.io.Serializable, Cloneable   {
-
 
110252
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviders_args");
-
 
110253
 
-
 
110254
    private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
110255
 
-
 
110256
    private RechargeType rechargeType; // required
-
 
110257
 
-
 
110258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
110259
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
110260
      /**
-
 
110261
       * 
-
 
110262
       * @see RechargeType
-
 
110263
       */
-
 
110264
      RECHARGE_TYPE((short)1, "rechargeType");
-
 
110265
 
-
 
110266
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
110267
 
-
 
110268
      static {
-
 
110269
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
110270
          byName.put(field.getFieldName(), field);
-
 
110271
        }
-
 
110272
      }
-
 
110273
 
-
 
110274
      /**
-
 
110275
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
110276
       */
-
 
110277
      public static _Fields findByThriftId(int fieldId) {
-
 
110278
        switch(fieldId) {
-
 
110279
          case 1: // RECHARGE_TYPE
-
 
110280
            return RECHARGE_TYPE;
-
 
110281
          default:
-
 
110282
            return null;
-
 
110283
        }
-
 
110284
      }
-
 
110285
 
-
 
110286
      /**
-
 
110287
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
110288
       * if it is not found.
-
 
110289
       */
-
 
110290
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
110291
        _Fields fields = findByThriftId(fieldId);
-
 
110292
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
110293
        return fields;
-
 
110294
      }
-
 
110295
 
-
 
110296
      /**
-
 
110297
       * Find the _Fields constant that matches name, or null if its not found.
-
 
110298
       */
-
 
110299
      public static _Fields findByName(String name) {
-
 
110300
        return byName.get(name);
-
 
110301
      }
-
 
110302
 
-
 
110303
      private final short _thriftId;
-
 
110304
      private final String _fieldName;
-
 
110305
 
-
 
110306
      _Fields(short thriftId, String fieldName) {
-
 
110307
        _thriftId = thriftId;
-
 
110308
        _fieldName = fieldName;
-
 
110309
      }
-
 
110310
 
-
 
110311
      public short getThriftFieldId() {
-
 
110312
        return _thriftId;
-
 
110313
      }
-
 
110314
 
-
 
110315
      public String getFieldName() {
-
 
110316
        return _fieldName;
-
 
110317
      }
-
 
110318
    }
-
 
110319
 
-
 
110320
    // isset id assignments
-
 
110321
 
-
 
110322
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
110323
    static {
-
 
110324
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110325
      tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
110326
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
-
 
110327
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110328
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviders_args.class, metaDataMap);
-
 
110329
    }
-
 
110330
 
-
 
110331
    public getServiceProviders_args() {
-
 
110332
    }
-
 
110333
 
-
 
110334
    public getServiceProviders_args(
-
 
110335
      RechargeType rechargeType)
-
 
110336
    {
-
 
110337
      this();
-
 
110338
      this.rechargeType = rechargeType;
-
 
110339
    }
-
 
110340
 
-
 
110341
    /**
-
 
110342
     * Performs a deep copy on <i>other</i>.
-
 
110343
     */
-
 
110344
    public getServiceProviders_args(getServiceProviders_args other) {
-
 
110345
      if (other.isSetRechargeType()) {
-
 
110346
        this.rechargeType = other.rechargeType;
-
 
110347
      }
-
 
110348
    }
-
 
110349
 
-
 
110350
    public getServiceProviders_args deepCopy() {
-
 
110351
      return new getServiceProviders_args(this);
-
 
110352
    }
-
 
110353
 
-
 
110354
    @Override
-
 
110355
    public void clear() {
-
 
110356
      this.rechargeType = null;
-
 
110357
    }
-
 
110358
 
-
 
110359
    /**
-
 
110360
     * 
-
 
110361
     * @see RechargeType
-
 
110362
     */
-
 
110363
    public RechargeType getRechargeType() {
-
 
110364
      return this.rechargeType;
-
 
110365
    }
-
 
110366
 
-
 
110367
    /**
-
 
110368
     * 
-
 
110369
     * @see RechargeType
-
 
110370
     */
-
 
110371
    public void setRechargeType(RechargeType rechargeType) {
-
 
110372
      this.rechargeType = rechargeType;
-
 
110373
    }
-
 
110374
 
-
 
110375
    public void unsetRechargeType() {
-
 
110376
      this.rechargeType = null;
-
 
110377
    }
-
 
110378
 
-
 
110379
    /** Returns true if field rechargeType is set (has been assigned a value) and false otherwise */
-
 
110380
    public boolean isSetRechargeType() {
-
 
110381
      return this.rechargeType != null;
-
 
110382
    }
-
 
110383
 
-
 
110384
    public void setRechargeTypeIsSet(boolean value) {
-
 
110385
      if (!value) {
-
 
110386
        this.rechargeType = null;
-
 
110387
      }
-
 
110388
    }
-
 
110389
 
-
 
110390
    public void setFieldValue(_Fields field, Object value) {
-
 
110391
      switch (field) {
-
 
110392
      case RECHARGE_TYPE:
-
 
110393
        if (value == null) {
-
 
110394
          unsetRechargeType();
-
 
110395
        } else {
-
 
110396
          setRechargeType((RechargeType)value);
-
 
110397
        }
-
 
110398
        break;
-
 
110399
 
-
 
110400
      }
-
 
110401
    }
-
 
110402
 
-
 
110403
    public Object getFieldValue(_Fields field) {
-
 
110404
      switch (field) {
-
 
110405
      case RECHARGE_TYPE:
-
 
110406
        return getRechargeType();
-
 
110407
 
-
 
110408
      }
-
 
110409
      throw new IllegalStateException();
-
 
110410
    }
-
 
110411
 
-
 
110412
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
110413
    public boolean isSet(_Fields field) {
-
 
110414
      if (field == null) {
-
 
110415
        throw new IllegalArgumentException();
-
 
110416
      }
-
 
110417
 
-
 
110418
      switch (field) {
-
 
110419
      case RECHARGE_TYPE:
-
 
110420
        return isSetRechargeType();
-
 
110421
      }
-
 
110422
      throw new IllegalStateException();
-
 
110423
    }
-
 
110424
 
-
 
110425
    @Override
-
 
110426
    public boolean equals(Object that) {
-
 
110427
      if (that == null)
-
 
110428
        return false;
-
 
110429
      if (that instanceof getServiceProviders_args)
-
 
110430
        return this.equals((getServiceProviders_args)that);
-
 
110431
      return false;
-
 
110432
    }
-
 
110433
 
-
 
110434
    public boolean equals(getServiceProviders_args that) {
-
 
110435
      if (that == null)
-
 
110436
        return false;
-
 
110437
 
-
 
110438
      boolean this_present_rechargeType = true && this.isSetRechargeType();
-
 
110439
      boolean that_present_rechargeType = true && that.isSetRechargeType();
-
 
110440
      if (this_present_rechargeType || that_present_rechargeType) {
-
 
110441
        if (!(this_present_rechargeType && that_present_rechargeType))
-
 
110442
          return false;
-
 
110443
        if (!this.rechargeType.equals(that.rechargeType))
-
 
110444
          return false;
-
 
110445
      }
-
 
110446
 
-
 
110447
      return true;
-
 
110448
    }
-
 
110449
 
-
 
110450
    @Override
-
 
110451
    public int hashCode() {
-
 
110452
      return 0;
-
 
110453
    }
-
 
110454
 
-
 
110455
    public int compareTo(getServiceProviders_args other) {
-
 
110456
      if (!getClass().equals(other.getClass())) {
-
 
110457
        return getClass().getName().compareTo(other.getClass().getName());
-
 
110458
      }
-
 
110459
 
-
 
110460
      int lastComparison = 0;
-
 
110461
      getServiceProviders_args typedOther = (getServiceProviders_args)other;
-
 
110462
 
-
 
110463
      lastComparison = Boolean.valueOf(isSetRechargeType()).compareTo(typedOther.isSetRechargeType());
-
 
110464
      if (lastComparison != 0) {
-
 
110465
        return lastComparison;
-
 
110466
      }
-
 
110467
      if (isSetRechargeType()) {
-
 
110468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
-
 
110469
        if (lastComparison != 0) {
-
 
110470
          return lastComparison;
-
 
110471
        }
-
 
110472
      }
-
 
110473
      return 0;
-
 
110474
    }
-
 
110475
 
-
 
110476
    public _Fields fieldForId(int fieldId) {
-
 
110477
      return _Fields.findByThriftId(fieldId);
-
 
110478
    }
-
 
110479
 
-
 
110480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
110481
      org.apache.thrift.protocol.TField field;
-
 
110482
      iprot.readStructBegin();
-
 
110483
      while (true)
-
 
110484
      {
-
 
110485
        field = iprot.readFieldBegin();
-
 
110486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
110487
          break;
-
 
110488
        }
-
 
110489
        switch (field.id) {
-
 
110490
          case 1: // RECHARGE_TYPE
-
 
110491
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
110492
              this.rechargeType = RechargeType.findByValue(iprot.readI32());
-
 
110493
            } else { 
-
 
110494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110495
            }
-
 
110496
            break;
-
 
110497
          default:
-
 
110498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110499
        }
-
 
110500
        iprot.readFieldEnd();
-
 
110501
      }
-
 
110502
      iprot.readStructEnd();
-
 
110503
      validate();
-
 
110504
    }
-
 
110505
 
-
 
110506
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
110507
      validate();
-
 
110508
 
-
 
110509
      oprot.writeStructBegin(STRUCT_DESC);
-
 
110510
      if (this.rechargeType != null) {
-
 
110511
        oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
-
 
110512
        oprot.writeI32(this.rechargeType.getValue());
-
 
110513
        oprot.writeFieldEnd();
-
 
110514
      }
-
 
110515
      oprot.writeFieldStop();
-
 
110516
      oprot.writeStructEnd();
-
 
110517
    }
-
 
110518
 
-
 
110519
    @Override
-
 
110520
    public String toString() {
-
 
110521
      StringBuilder sb = new StringBuilder("getServiceProviders_args(");
-
 
110522
      boolean first = true;
-
 
110523
 
-
 
110524
      sb.append("rechargeType:");
-
 
110525
      if (this.rechargeType == null) {
-
 
110526
        sb.append("null");
-
 
110527
      } else {
-
 
110528
        sb.append(this.rechargeType);
-
 
110529
      }
-
 
110530
      first = false;
-
 
110531
      sb.append(")");
-
 
110532
      return sb.toString();
-
 
110533
    }
-
 
110534
 
-
 
110535
    public void validate() throws org.apache.thrift.TException {
-
 
110536
      // check for required fields
-
 
110537
    }
-
 
110538
 
-
 
110539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
110540
      try {
-
 
110541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
110542
      } catch (org.apache.thrift.TException te) {
-
 
110543
        throw new java.io.IOException(te);
-
 
110544
      }
-
 
110545
    }
-
 
110546
 
-
 
110547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
110548
      try {
-
 
110549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
110550
      } catch (org.apache.thrift.TException te) {
-
 
110551
        throw new java.io.IOException(te);
-
 
110552
      }
-
 
110553
    }
-
 
110554
 
-
 
110555
  }
-
 
110556
 
-
 
110557
  public static class getServiceProviders_result implements org.apache.thrift.TBase<getServiceProviders_result, getServiceProviders_result._Fields>, java.io.Serializable, Cloneable   {
-
 
110558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviders_result");
-
 
110559
 
-
 
110560
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
110561
 
-
 
110562
    private Map<Long,String> success; // required
-
 
110563
 
-
 
110564
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
110565
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
110566
      SUCCESS((short)0, "success");
-
 
110567
 
-
 
110568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
110569
 
-
 
110570
      static {
-
 
110571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
110572
          byName.put(field.getFieldName(), field);
-
 
110573
        }
-
 
110574
      }
-
 
110575
 
-
 
110576
      /**
-
 
110577
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
110578
       */
-
 
110579
      public static _Fields findByThriftId(int fieldId) {
-
 
110580
        switch(fieldId) {
-
 
110581
          case 0: // SUCCESS
-
 
110582
            return SUCCESS;
-
 
110583
          default:
-
 
110584
            return null;
-
 
110585
        }
-
 
110586
      }
-
 
110587
 
-
 
110588
      /**
-
 
110589
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
110590
       * if it is not found.
-
 
110591
       */
-
 
110592
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
110593
        _Fields fields = findByThriftId(fieldId);
-
 
110594
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
110595
        return fields;
-
 
110596
      }
-
 
110597
 
-
 
110598
      /**
-
 
110599
       * Find the _Fields constant that matches name, or null if its not found.
-
 
110600
       */
-
 
110601
      public static _Fields findByName(String name) {
-
 
110602
        return byName.get(name);
-
 
110603
      }
-
 
110604
 
-
 
110605
      private final short _thriftId;
-
 
110606
      private final String _fieldName;
-
 
110607
 
-
 
110608
      _Fields(short thriftId, String fieldName) {
-
 
110609
        _thriftId = thriftId;
-
 
110610
        _fieldName = fieldName;
-
 
110611
      }
-
 
110612
 
-
 
110613
      public short getThriftFieldId() {
-
 
110614
        return _thriftId;
-
 
110615
      }
-
 
110616
 
-
 
110617
      public String getFieldName() {
-
 
110618
        return _fieldName;
-
 
110619
      }
-
 
110620
    }
-
 
110621
 
-
 
110622
    // isset id assignments
-
 
110623
 
-
 
110624
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
110625
    static {
-
 
110626
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110627
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
110628
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
110629
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
110630
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
110631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviders_result.class, metaDataMap);
-
 
110633
    }
-
 
110634
 
-
 
110635
    public getServiceProviders_result() {
-
 
110636
    }
-
 
110637
 
-
 
110638
    public getServiceProviders_result(
-
 
110639
      Map<Long,String> success)
-
 
110640
    {
-
 
110641
      this();
-
 
110642
      this.success = success;
-
 
110643
    }
-
 
110644
 
-
 
110645
    /**
-
 
110646
     * Performs a deep copy on <i>other</i>.
-
 
110647
     */
-
 
110648
    public getServiceProviders_result(getServiceProviders_result other) {
-
 
110649
      if (other.isSetSuccess()) {
-
 
110650
        Map<Long,String> __this__success = new HashMap<Long,String>();
-
 
110651
        for (Map.Entry<Long, String> other_element : other.success.entrySet()) {
-
 
110652
 
-
 
110653
          Long other_element_key = other_element.getKey();
-
 
110654
          String other_element_value = other_element.getValue();
-
 
110655
 
-
 
110656
          Long __this__success_copy_key = other_element_key;
-
 
110657
 
-
 
110658
          String __this__success_copy_value = other_element_value;
-
 
110659
 
-
 
110660
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
110661
        }
-
 
110662
        this.success = __this__success;
-
 
110663
      }
-
 
110664
    }
-
 
110665
 
-
 
110666
    public getServiceProviders_result deepCopy() {
-
 
110667
      return new getServiceProviders_result(this);
-
 
110668
    }
-
 
110669
 
-
 
110670
    @Override
-
 
110671
    public void clear() {
-
 
110672
      this.success = null;
-
 
110673
    }
-
 
110674
 
-
 
110675
    public int getSuccessSize() {
-
 
110676
      return (this.success == null) ? 0 : this.success.size();
-
 
110677
    }
-
 
110678
 
-
 
110679
    public void putToSuccess(long key, String val) {
-
 
110680
      if (this.success == null) {
-
 
110681
        this.success = new HashMap<Long,String>();
-
 
110682
      }
-
 
110683
      this.success.put(key, val);
-
 
110684
    }
-
 
110685
 
-
 
110686
    public Map<Long,String> getSuccess() {
-
 
110687
      return this.success;
-
 
110688
    }
-
 
110689
 
-
 
110690
    public void setSuccess(Map<Long,String> success) {
-
 
110691
      this.success = success;
-
 
110692
    }
-
 
110693
 
-
 
110694
    public void unsetSuccess() {
-
 
110695
      this.success = null;
-
 
110696
    }
-
 
110697
 
-
 
110698
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
110699
    public boolean isSetSuccess() {
-
 
110700
      return this.success != null;
-
 
110701
    }
-
 
110702
 
-
 
110703
    public void setSuccessIsSet(boolean value) {
-
 
110704
      if (!value) {
-
 
110705
        this.success = null;
-
 
110706
      }
-
 
110707
    }
-
 
110708
 
-
 
110709
    public void setFieldValue(_Fields field, Object value) {
-
 
110710
      switch (field) {
-
 
110711
      case SUCCESS:
-
 
110712
        if (value == null) {
-
 
110713
          unsetSuccess();
-
 
110714
        } else {
-
 
110715
          setSuccess((Map<Long,String>)value);
-
 
110716
        }
-
 
110717
        break;
-
 
110718
 
-
 
110719
      }
-
 
110720
    }
-
 
110721
 
-
 
110722
    public Object getFieldValue(_Fields field) {
-
 
110723
      switch (field) {
-
 
110724
      case SUCCESS:
-
 
110725
        return getSuccess();
-
 
110726
 
-
 
110727
      }
-
 
110728
      throw new IllegalStateException();
-
 
110729
    }
-
 
110730
 
-
 
110731
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
110732
    public boolean isSet(_Fields field) {
-
 
110733
      if (field == null) {
-
 
110734
        throw new IllegalArgumentException();
-
 
110735
      }
-
 
110736
 
-
 
110737
      switch (field) {
-
 
110738
      case SUCCESS:
-
 
110739
        return isSetSuccess();
-
 
110740
      }
-
 
110741
      throw new IllegalStateException();
-
 
110742
    }
-
 
110743
 
-
 
110744
    @Override
-
 
110745
    public boolean equals(Object that) {
-
 
110746
      if (that == null)
-
 
110747
        return false;
-
 
110748
      if (that instanceof getServiceProviders_result)
-
 
110749
        return this.equals((getServiceProviders_result)that);
-
 
110750
      return false;
-
 
110751
    }
-
 
110752
 
-
 
110753
    public boolean equals(getServiceProviders_result that) {
-
 
110754
      if (that == null)
-
 
110755
        return false;
-
 
110756
 
-
 
110757
      boolean this_present_success = true && this.isSetSuccess();
-
 
110758
      boolean that_present_success = true && that.isSetSuccess();
-
 
110759
      if (this_present_success || that_present_success) {
-
 
110760
        if (!(this_present_success && that_present_success))
-
 
110761
          return false;
-
 
110762
        if (!this.success.equals(that.success))
-
 
110763
          return false;
-
 
110764
      }
-
 
110765
 
-
 
110766
      return true;
-
 
110767
    }
-
 
110768
 
-
 
110769
    @Override
-
 
110770
    public int hashCode() {
-
 
110771
      return 0;
-
 
110772
    }
-
 
110773
 
-
 
110774
    public int compareTo(getServiceProviders_result other) {
-
 
110775
      if (!getClass().equals(other.getClass())) {
-
 
110776
        return getClass().getName().compareTo(other.getClass().getName());
-
 
110777
      }
-
 
110778
 
-
 
110779
      int lastComparison = 0;
-
 
110780
      getServiceProviders_result typedOther = (getServiceProviders_result)other;
-
 
110781
 
-
 
110782
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
110783
      if (lastComparison != 0) {
-
 
110784
        return lastComparison;
-
 
110785
      }
-
 
110786
      if (isSetSuccess()) {
-
 
110787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
110788
        if (lastComparison != 0) {
-
 
110789
          return lastComparison;
-
 
110790
        }
-
 
110791
      }
-
 
110792
      return 0;
-
 
110793
    }
-
 
110794
 
-
 
110795
    public _Fields fieldForId(int fieldId) {
-
 
110796
      return _Fields.findByThriftId(fieldId);
-
 
110797
    }
-
 
110798
 
-
 
110799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
110800
      org.apache.thrift.protocol.TField field;
-
 
110801
      iprot.readStructBegin();
-
 
110802
      while (true)
-
 
110803
      {
-
 
110804
        field = iprot.readFieldBegin();
-
 
110805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
110806
          break;
-
 
110807
        }
-
 
110808
        switch (field.id) {
-
 
110809
          case 0: // SUCCESS
-
 
110810
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
110811
              {
-
 
110812
                org.apache.thrift.protocol.TMap _map356 = iprot.readMapBegin();
-
 
110813
                this.success = new HashMap<Long,String>(2*_map356.size);
-
 
110814
                for (int _i357 = 0; _i357 < _map356.size; ++_i357)
-
 
110815
                {
-
 
110816
                  long _key358; // required
-
 
110817
                  String _val359; // required
-
 
110818
                  _key358 = iprot.readI64();
-
 
110819
                  _val359 = iprot.readString();
-
 
110820
                  this.success.put(_key358, _val359);
-
 
110821
                }
-
 
110822
                iprot.readMapEnd();
-
 
110823
              }
-
 
110824
            } else { 
-
 
110825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110826
            }
-
 
110827
            break;
-
 
110828
          default:
-
 
110829
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110830
        }
-
 
110831
        iprot.readFieldEnd();
-
 
110832
      }
-
 
110833
      iprot.readStructEnd();
-
 
110834
      validate();
-
 
110835
    }
-
 
110836
 
-
 
110837
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
110838
      oprot.writeStructBegin(STRUCT_DESC);
-
 
110839
 
-
 
110840
      if (this.isSetSuccess()) {
-
 
110841
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
110842
        {
-
 
110843
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
110844
          for (Map.Entry<Long, String> _iter360 : this.success.entrySet())
-
 
110845
          {
-
 
110846
            oprot.writeI64(_iter360.getKey());
-
 
110847
            oprot.writeString(_iter360.getValue());
-
 
110848
          }
-
 
110849
          oprot.writeMapEnd();
-
 
110850
        }
-
 
110851
        oprot.writeFieldEnd();
-
 
110852
      }
-
 
110853
      oprot.writeFieldStop();
-
 
110854
      oprot.writeStructEnd();
-
 
110855
    }
-
 
110856
 
-
 
110857
    @Override
-
 
110858
    public String toString() {
-
 
110859
      StringBuilder sb = new StringBuilder("getServiceProviders_result(");
-
 
110860
      boolean first = true;
-
 
110861
 
-
 
110862
      sb.append("success:");
-
 
110863
      if (this.success == null) {
-
 
110864
        sb.append("null");
-
 
110865
      } else {
-
 
110866
        sb.append(this.success);
-
 
110867
      }
-
 
110868
      first = false;
-
 
110869
      sb.append(")");
-
 
110870
      return sb.toString();
-
 
110871
    }
-
 
110872
 
-
 
110873
    public void validate() throws org.apache.thrift.TException {
-
 
110874
      // check for required fields
-
 
110875
    }
-
 
110876
 
-
 
110877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
110878
      try {
-
 
110879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
110880
      } catch (org.apache.thrift.TException te) {
-
 
110881
        throw new java.io.IOException(te);
-
 
110882
      }
-
 
110883
    }
-
 
110884
 
-
 
110885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
110886
      try {
-
 
110887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
110888
      } catch (org.apache.thrift.TException te) {
-
 
110889
        throw new java.io.IOException(te);
-
 
110890
      }
-
 
110891
    }
-
 
110892
 
-
 
110893
  }
-
 
110894
 
-
 
110895
  public static class getServiceProviderForDevice_args implements org.apache.thrift.TBase<getServiceProviderForDevice_args, getServiceProviderForDevice_args._Fields>, java.io.Serializable, Cloneable   {
-
 
110896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviderForDevice_args");
-
 
110897
 
-
 
110898
    private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
110899
 
-
 
110900
    private String deviceNumber; // required
-
 
110901
 
-
 
110902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
110903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
110904
      DEVICE_NUMBER((short)1, "deviceNumber");
-
 
110905
 
-
 
110906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
110907
 
-
 
110908
      static {
-
 
110909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
110910
          byName.put(field.getFieldName(), field);
-
 
110911
        }
-
 
110912
      }
-
 
110913
 
-
 
110914
      /**
-
 
110915
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
110916
       */
-
 
110917
      public static _Fields findByThriftId(int fieldId) {
-
 
110918
        switch(fieldId) {
-
 
110919
          case 1: // DEVICE_NUMBER
-
 
110920
            return DEVICE_NUMBER;
-
 
110921
          default:
-
 
110922
            return null;
-
 
110923
        }
-
 
110924
      }
-
 
110925
 
-
 
110926
      /**
-
 
110927
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
110928
       * if it is not found.
-
 
110929
       */
-
 
110930
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
110931
        _Fields fields = findByThriftId(fieldId);
-
 
110932
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
110933
        return fields;
-
 
110934
      }
-
 
110935
 
-
 
110936
      /**
-
 
110937
       * Find the _Fields constant that matches name, or null if its not found.
-
 
110938
       */
-
 
110939
      public static _Fields findByName(String name) {
-
 
110940
        return byName.get(name);
-
 
110941
      }
-
 
110942
 
-
 
110943
      private final short _thriftId;
-
 
110944
      private final String _fieldName;
-
 
110945
 
-
 
110946
      _Fields(short thriftId, String fieldName) {
-
 
110947
        _thriftId = thriftId;
-
 
110948
        _fieldName = fieldName;
-
 
110949
      }
-
 
110950
 
-
 
110951
      public short getThriftFieldId() {
-
 
110952
        return _thriftId;
-
 
110953
      }
-
 
110954
 
-
 
110955
      public String getFieldName() {
-
 
110956
        return _fieldName;
-
 
110957
      }
-
 
110958
    }
-
 
110959
 
-
 
110960
    // isset id assignments
-
 
110961
 
-
 
110962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
110963
    static {
-
 
110964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110965
      tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
110966
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
110967
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110968
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviderForDevice_args.class, metaDataMap);
-
 
110969
    }
-
 
110970
 
-
 
110971
    public getServiceProviderForDevice_args() {
-
 
110972
    }
-
 
110973
 
-
 
110974
    public getServiceProviderForDevice_args(
-
 
110975
      String deviceNumber)
-
 
110976
    {
-
 
110977
      this();
-
 
110978
      this.deviceNumber = deviceNumber;
-
 
110979
    }
-
 
110980
 
-
 
110981
    /**
-
 
110982
     * Performs a deep copy on <i>other</i>.
-
 
110983
     */
-
 
110984
    public getServiceProviderForDevice_args(getServiceProviderForDevice_args other) {
-
 
110985
      if (other.isSetDeviceNumber()) {
-
 
110986
        this.deviceNumber = other.deviceNumber;
-
 
110987
      }
-
 
110988
    }
-
 
110989
 
-
 
110990
    public getServiceProviderForDevice_args deepCopy() {
-
 
110991
      return new getServiceProviderForDevice_args(this);
-
 
110992
    }
-
 
110993
 
-
 
110994
    @Override
-
 
110995
    public void clear() {
-
 
110996
      this.deviceNumber = null;
-
 
110997
    }
-
 
110998
 
-
 
110999
    public String getDeviceNumber() {
-
 
111000
      return this.deviceNumber;
-
 
111001
    }
-
 
111002
 
-
 
111003
    public void setDeviceNumber(String deviceNumber) {
-
 
111004
      this.deviceNumber = deviceNumber;
-
 
111005
    }
-
 
111006
 
-
 
111007
    public void unsetDeviceNumber() {
-
 
111008
      this.deviceNumber = null;
-
 
111009
    }
-
 
111010
 
-
 
111011
    /** Returns true if field deviceNumber is set (has been assigned a value) and false otherwise */
-
 
111012
    public boolean isSetDeviceNumber() {
-
 
111013
      return this.deviceNumber != null;
-
 
111014
    }
-
 
111015
 
-
 
111016
    public void setDeviceNumberIsSet(boolean value) {
-
 
111017
      if (!value) {
-
 
111018
        this.deviceNumber = null;
-
 
111019
      }
-
 
111020
    }
-
 
111021
 
-
 
111022
    public void setFieldValue(_Fields field, Object value) {
-
 
111023
      switch (field) {
-
 
111024
      case DEVICE_NUMBER:
-
 
111025
        if (value == null) {
-
 
111026
          unsetDeviceNumber();
-
 
111027
        } else {
-
 
111028
          setDeviceNumber((String)value);
-
 
111029
        }
-
 
111030
        break;
-
 
111031
 
-
 
111032
      }
-
 
111033
    }
-
 
111034
 
-
 
111035
    public Object getFieldValue(_Fields field) {
-
 
111036
      switch (field) {
-
 
111037
      case DEVICE_NUMBER:
-
 
111038
        return getDeviceNumber();
-
 
111039
 
-
 
111040
      }
-
 
111041
      throw new IllegalStateException();
-
 
111042
    }
-
 
111043
 
-
 
111044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
111045
    public boolean isSet(_Fields field) {
-
 
111046
      if (field == null) {
-
 
111047
        throw new IllegalArgumentException();
-
 
111048
      }
-
 
111049
 
-
 
111050
      switch (field) {
-
 
111051
      case DEVICE_NUMBER:
-
 
111052
        return isSetDeviceNumber();
-
 
111053
      }
-
 
111054
      throw new IllegalStateException();
-
 
111055
    }
-
 
111056
 
-
 
111057
    @Override
-
 
111058
    public boolean equals(Object that) {
-
 
111059
      if (that == null)
-
 
111060
        return false;
-
 
111061
      if (that instanceof getServiceProviderForDevice_args)
-
 
111062
        return this.equals((getServiceProviderForDevice_args)that);
-
 
111063
      return false;
-
 
111064
    }
-
 
111065
 
-
 
111066
    public boolean equals(getServiceProviderForDevice_args that) {
-
 
111067
      if (that == null)
-
 
111068
        return false;
-
 
111069
 
-
 
111070
      boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
-
 
111071
      boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
-
 
111072
      if (this_present_deviceNumber || that_present_deviceNumber) {
-
 
111073
        if (!(this_present_deviceNumber && that_present_deviceNumber))
-
 
111074
          return false;
-
 
111075
        if (!this.deviceNumber.equals(that.deviceNumber))
-
 
111076
          return false;
-
 
111077
      }
-
 
111078
 
-
 
111079
      return true;
-
 
111080
    }
-
 
111081
 
-
 
111082
    @Override
-
 
111083
    public int hashCode() {
-
 
111084
      return 0;
-
 
111085
    }
-
 
111086
 
-
 
111087
    public int compareTo(getServiceProviderForDevice_args other) {
-
 
111088
      if (!getClass().equals(other.getClass())) {
-
 
111089
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111090
      }
-
 
111091
 
-
 
111092
      int lastComparison = 0;
-
 
111093
      getServiceProviderForDevice_args typedOther = (getServiceProviderForDevice_args)other;
-
 
111094
 
-
 
111095
      lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
-
 
111096
      if (lastComparison != 0) {
-
 
111097
        return lastComparison;
-
 
111098
      }
-
 
111099
      if (isSetDeviceNumber()) {
-
 
111100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNumber, typedOther.deviceNumber);
-
 
111101
        if (lastComparison != 0) {
-
 
111102
          return lastComparison;
-
 
111103
        }
-
 
111104
      }
-
 
111105
      return 0;
-
 
111106
    }
-
 
111107
 
-
 
111108
    public _Fields fieldForId(int fieldId) {
-
 
111109
      return _Fields.findByThriftId(fieldId);
-
 
111110
    }
-
 
111111
 
-
 
111112
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111113
      org.apache.thrift.protocol.TField field;
-
 
111114
      iprot.readStructBegin();
-
 
111115
      while (true)
-
 
111116
      {
-
 
111117
        field = iprot.readFieldBegin();
-
 
111118
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111119
          break;
-
 
111120
        }
-
 
111121
        switch (field.id) {
-
 
111122
          case 1: // DEVICE_NUMBER
-
 
111123
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
111124
              this.deviceNumber = iprot.readString();
-
 
111125
            } else { 
-
 
111126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111127
            }
-
 
111128
            break;
-
 
111129
          default:
-
 
111130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111131
        }
-
 
111132
        iprot.readFieldEnd();
-
 
111133
      }
-
 
111134
      iprot.readStructEnd();
-
 
111135
      validate();
-
 
111136
    }
-
 
111137
 
-
 
111138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111139
      validate();
-
 
111140
 
-
 
111141
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111142
      if (this.deviceNumber != null) {
-
 
111143
        oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
-
 
111144
        oprot.writeString(this.deviceNumber);
-
 
111145
        oprot.writeFieldEnd();
-
 
111146
      }
-
 
111147
      oprot.writeFieldStop();
-
 
111148
      oprot.writeStructEnd();
-
 
111149
    }
-
 
111150
 
-
 
111151
    @Override
-
 
111152
    public String toString() {
-
 
111153
      StringBuilder sb = new StringBuilder("getServiceProviderForDevice_args(");
-
 
111154
      boolean first = true;
-
 
111155
 
-
 
111156
      sb.append("deviceNumber:");
-
 
111157
      if (this.deviceNumber == null) {
-
 
111158
        sb.append("null");
-
 
111159
      } else {
-
 
111160
        sb.append(this.deviceNumber);
-
 
111161
      }
-
 
111162
      first = false;
-
 
111163
      sb.append(")");
-
 
111164
      return sb.toString();
-
 
111165
    }
-
 
111166
 
-
 
111167
    public void validate() throws org.apache.thrift.TException {
-
 
111168
      // check for required fields
-
 
111169
    }
-
 
111170
 
-
 
111171
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
111172
      try {
-
 
111173
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
111174
      } catch (org.apache.thrift.TException te) {
-
 
111175
        throw new java.io.IOException(te);
-
 
111176
      }
-
 
111177
    }
-
 
111178
 
-
 
111179
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
111180
      try {
-
 
111181
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
111182
      } catch (org.apache.thrift.TException te) {
-
 
111183
        throw new java.io.IOException(te);
-
 
111184
      }
-
 
111185
    }
-
 
111186
 
-
 
111187
  }
-
 
111188
 
-
 
111189
  public static class getServiceProviderForDevice_result implements org.apache.thrift.TBase<getServiceProviderForDevice_result, getServiceProviderForDevice_result._Fields>, java.io.Serializable, Cloneable   {
-
 
111190
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getServiceProviderForDevice_result");
-
 
111191
 
-
 
111192
    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);
-
 
111193
 
-
 
111194
    private long success; // required
-
 
111195
 
-
 
111196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
111197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
111198
      SUCCESS((short)0, "success");
-
 
111199
 
-
 
111200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
111201
 
-
 
111202
      static {
-
 
111203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
111204
          byName.put(field.getFieldName(), field);
-
 
111205
        }
-
 
111206
      }
-
 
111207
 
-
 
111208
      /**
-
 
111209
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
111210
       */
-
 
111211
      public static _Fields findByThriftId(int fieldId) {
-
 
111212
        switch(fieldId) {
-
 
111213
          case 0: // SUCCESS
-
 
111214
            return SUCCESS;
-
 
111215
          default:
-
 
111216
            return null;
-
 
111217
        }
-
 
111218
      }
-
 
111219
 
-
 
111220
      /**
-
 
111221
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
111222
       * if it is not found.
-
 
111223
       */
-
 
111224
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
111225
        _Fields fields = findByThriftId(fieldId);
-
 
111226
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
111227
        return fields;
-
 
111228
      }
-
 
111229
 
-
 
111230
      /**
-
 
111231
       * Find the _Fields constant that matches name, or null if its not found.
-
 
111232
       */
-
 
111233
      public static _Fields findByName(String name) {
-
 
111234
        return byName.get(name);
-
 
111235
      }
-
 
111236
 
-
 
111237
      private final short _thriftId;
-
 
111238
      private final String _fieldName;
-
 
111239
 
-
 
111240
      _Fields(short thriftId, String fieldName) {
-
 
111241
        _thriftId = thriftId;
-
 
111242
        _fieldName = fieldName;
-
 
111243
      }
-
 
111244
 
-
 
111245
      public short getThriftFieldId() {
-
 
111246
        return _thriftId;
-
 
111247
      }
-
 
111248
 
-
 
111249
      public String getFieldName() {
-
 
111250
        return _fieldName;
-
 
111251
      }
-
 
111252
    }
-
 
111253
 
-
 
111254
    // isset id assignments
-
 
111255
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
111256
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
111257
 
-
 
111258
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
111259
    static {
-
 
111260
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111261
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
111262
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
111263
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
111264
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getServiceProviderForDevice_result.class, metaDataMap);
-
 
111265
    }
-
 
111266
 
-
 
111267
    public getServiceProviderForDevice_result() {
-
 
111268
    }
-
 
111269
 
-
 
111270
    public getServiceProviderForDevice_result(
-
 
111271
      long success)
-
 
111272
    {
-
 
111273
      this();
-
 
111274
      this.success = success;
-
 
111275
      setSuccessIsSet(true);
-
 
111276
    }
-
 
111277
 
-
 
111278
    /**
-
 
111279
     * Performs a deep copy on <i>other</i>.
-
 
111280
     */
-
 
111281
    public getServiceProviderForDevice_result(getServiceProviderForDevice_result other) {
-
 
111282
      __isset_bit_vector.clear();
-
 
111283
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
111284
      this.success = other.success;
-
 
111285
    }
-
 
111286
 
-
 
111287
    public getServiceProviderForDevice_result deepCopy() {
-
 
111288
      return new getServiceProviderForDevice_result(this);
-
 
111289
    }
-
 
111290
 
-
 
111291
    @Override
-
 
111292
    public void clear() {
-
 
111293
      setSuccessIsSet(false);
-
 
111294
      this.success = 0;
-
 
111295
    }
-
 
111296
 
-
 
111297
    public long getSuccess() {
-
 
111298
      return this.success;
-
 
111299
    }
-
 
111300
 
-
 
111301
    public void setSuccess(long success) {
-
 
111302
      this.success = success;
-
 
111303
      setSuccessIsSet(true);
-
 
111304
    }
-
 
111305
 
-
 
111306
    public void unsetSuccess() {
-
 
111307
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
111308
    }
-
 
111309
 
-
 
111310
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
111311
    public boolean isSetSuccess() {
-
 
111312
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
111313
    }
-
 
111314
 
-
 
111315
    public void setSuccessIsSet(boolean value) {
-
 
111316
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
111317
    }
-
 
111318
 
-
 
111319
    public void setFieldValue(_Fields field, Object value) {
-
 
111320
      switch (field) {
-
 
111321
      case SUCCESS:
-
 
111322
        if (value == null) {
-
 
111323
          unsetSuccess();
-
 
111324
        } else {
-
 
111325
          setSuccess((Long)value);
-
 
111326
        }
-
 
111327
        break;
-
 
111328
 
-
 
111329
      }
-
 
111330
    }
-
 
111331
 
-
 
111332
    public Object getFieldValue(_Fields field) {
-
 
111333
      switch (field) {
-
 
111334
      case SUCCESS:
-
 
111335
        return Long.valueOf(getSuccess());
-
 
111336
 
-
 
111337
      }
-
 
111338
      throw new IllegalStateException();
-
 
111339
    }
-
 
111340
 
-
 
111341
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
111342
    public boolean isSet(_Fields field) {
-
 
111343
      if (field == null) {
-
 
111344
        throw new IllegalArgumentException();
-
 
111345
      }
-
 
111346
 
-
 
111347
      switch (field) {
-
 
111348
      case SUCCESS:
-
 
111349
        return isSetSuccess();
-
 
111350
      }
-
 
111351
      throw new IllegalStateException();
-
 
111352
    }
-
 
111353
 
-
 
111354
    @Override
-
 
111355
    public boolean equals(Object that) {
-
 
111356
      if (that == null)
-
 
111357
        return false;
-
 
111358
      if (that instanceof getServiceProviderForDevice_result)
-
 
111359
        return this.equals((getServiceProviderForDevice_result)that);
-
 
111360
      return false;
-
 
111361
    }
-
 
111362
 
-
 
111363
    public boolean equals(getServiceProviderForDevice_result that) {
-
 
111364
      if (that == null)
-
 
111365
        return false;
-
 
111366
 
-
 
111367
      boolean this_present_success = true;
-
 
111368
      boolean that_present_success = true;
-
 
111369
      if (this_present_success || that_present_success) {
-
 
111370
        if (!(this_present_success && that_present_success))
-
 
111371
          return false;
-
 
111372
        if (this.success != that.success)
-
 
111373
          return false;
-
 
111374
      }
-
 
111375
 
-
 
111376
      return true;
-
 
111377
    }
-
 
111378
 
-
 
111379
    @Override
-
 
111380
    public int hashCode() {
-
 
111381
      return 0;
-
 
111382
    }
-
 
111383
 
-
 
111384
    public int compareTo(getServiceProviderForDevice_result other) {
-
 
111385
      if (!getClass().equals(other.getClass())) {
-
 
111386
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111387
      }
-
 
111388
 
-
 
111389
      int lastComparison = 0;
-
 
111390
      getServiceProviderForDevice_result typedOther = (getServiceProviderForDevice_result)other;
-
 
111391
 
-
 
111392
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
111393
      if (lastComparison != 0) {
-
 
111394
        return lastComparison;
-
 
111395
      }
-
 
111396
      if (isSetSuccess()) {
-
 
111397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
111398
        if (lastComparison != 0) {
-
 
111399
          return lastComparison;
-
 
111400
        }
-
 
111401
      }
-
 
111402
      return 0;
-
 
111403
    }
-
 
111404
 
-
 
111405
    public _Fields fieldForId(int fieldId) {
-
 
111406
      return _Fields.findByThriftId(fieldId);
-
 
111407
    }
-
 
111408
 
-
 
111409
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111410
      org.apache.thrift.protocol.TField field;
-
 
111411
      iprot.readStructBegin();
-
 
111412
      while (true)
-
 
111413
      {
-
 
111414
        field = iprot.readFieldBegin();
-
 
111415
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111416
          break;
-
 
111417
        }
-
 
111418
        switch (field.id) {
-
 
111419
          case 0: // SUCCESS
-
 
111420
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
111421
              this.success = iprot.readI64();
-
 
111422
              setSuccessIsSet(true);
-
 
111423
            } else { 
-
 
111424
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111425
            }
-
 
111426
            break;
-
 
111427
          default:
-
 
111428
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111429
        }
-
 
111430
        iprot.readFieldEnd();
-
 
111431
      }
-
 
111432
      iprot.readStructEnd();
-
 
111433
      validate();
-
 
111434
    }
-
 
111435
 
-
 
111436
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111437
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111438
 
-
 
111439
      if (this.isSetSuccess()) {
-
 
111440
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
111441
        oprot.writeI64(this.success);
-
 
111442
        oprot.writeFieldEnd();
-
 
111443
      }
-
 
111444
      oprot.writeFieldStop();
-
 
111445
      oprot.writeStructEnd();
-
 
111446
    }
-
 
111447
 
-
 
111448
    @Override
-
 
111449
    public String toString() {
-
 
111450
      StringBuilder sb = new StringBuilder("getServiceProviderForDevice_result(");
-
 
111451
      boolean first = true;
-
 
111452
 
-
 
111453
      sb.append("success:");
-
 
111454
      sb.append(this.success);
-
 
111455
      first = false;
-
 
111456
      sb.append(")");
-
 
111457
      return sb.toString();
-
 
111458
    }
-
 
111459
 
110076
    public void validate() throws org.apache.thrift.TException {
111460
    public void validate() throws org.apache.thrift.TException {
110077
      // check for required fields
111461
      // check for required fields
110078
    }
111462
    }
110079
 
111463
 
110080
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
111464
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {