Subversion Repositories SmartDukaan

Rev

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

Rev 11592 Rev 11679
Line 333... Line 333...
333
     * @param cartId
333
     * @param cartId
334
     * @param sourceId
334
     * @param sourceId
335
     */
335
     */
336
    public CartPlus validateCartPlus(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
336
    public CartPlus validateCartPlus(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
337
 
337
 
-
 
338
    public boolean isPrivateDealUser(long userId) throws org.apache.thrift.TException;
-
 
339
 
338
  }
340
  }
339
 
341
 
340
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
342
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
341
 
343
 
342
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
344
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 483... Line 485...
483
 
485
 
484
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
486
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
485
 
487
 
486
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
488
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
487
 
489
 
-
 
490
    public void isPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
491
 
488
  }
492
  }
489
 
493
 
490
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
494
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
491
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
495
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
492
      public Factory() {}
496
      public Factory() {}
Line 2380... Line 2384...
2380
        throw result.scex;
2384
        throw result.scex;
2381
      }
2385
      }
2382
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCartPlus failed: unknown result");
2386
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCartPlus failed: unknown result");
2383
    }
2387
    }
2384
 
2388
 
-
 
2389
    public boolean isPrivateDealUser(long userId) throws org.apache.thrift.TException
-
 
2390
    {
-
 
2391
      send_isPrivateDealUser(userId);
-
 
2392
      return recv_isPrivateDealUser();
-
 
2393
    }
-
 
2394
 
-
 
2395
    public void send_isPrivateDealUser(long userId) throws org.apache.thrift.TException
-
 
2396
    {
-
 
2397
      isPrivateDealUser_args args = new isPrivateDealUser_args();
-
 
2398
      args.setUserId(userId);
-
 
2399
      sendBase("isPrivateDealUser", args);
-
 
2400
    }
-
 
2401
 
-
 
2402
    public boolean recv_isPrivateDealUser() throws org.apache.thrift.TException
-
 
2403
    {
-
 
2404
      isPrivateDealUser_result result = new isPrivateDealUser_result();
-
 
2405
      receiveBase(result, "isPrivateDealUser");
-
 
2406
      if (result.isSetSuccess()) {
-
 
2407
        return result.success;
-
 
2408
      }
-
 
2409
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isPrivateDealUser failed: unknown result");
-
 
2410
    }
-
 
2411
 
2385
  }
2412
  }
2386
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2413
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2387
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2414
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2388
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2415
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2389
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2416
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4922... Line 4949...
4922
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4949
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4923
        return (new Client(prot)).recv_validateCartPlus();
4950
        return (new Client(prot)).recv_validateCartPlus();
4924
      }
4951
      }
4925
    }
4952
    }
4926
 
4953
 
-
 
4954
    public void isPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<isPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
4955
      checkReady();
-
 
4956
      isPrivateDealUser_call method_call = new isPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4957
      this.___currentMethod = method_call;
-
 
4958
      ___manager.call(method_call);
-
 
4959
    }
-
 
4960
 
-
 
4961
    public static class isPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4962
      private long userId;
-
 
4963
      public isPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<isPrivateDealUser_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 {
-
 
4964
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4965
        this.userId = userId;
-
 
4966
      }
-
 
4967
 
-
 
4968
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4969
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4970
        isPrivateDealUser_args args = new isPrivateDealUser_args();
-
 
4971
        args.setUserId(userId);
-
 
4972
        args.write(prot);
-
 
4973
        prot.writeMessageEnd();
-
 
4974
      }
-
 
4975
 
-
 
4976
      public boolean getResult() throws org.apache.thrift.TException {
-
 
4977
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4978
          throw new IllegalStateException("Method call not finished!");
-
 
4979
        }
-
 
4980
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4981
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4982
        return (new Client(prot)).recv_isPrivateDealUser();
-
 
4983
      }
-
 
4984
    }
-
 
4985
 
4927
  }
4986
  }
4928
 
4987
 
4929
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4988
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4930
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4989
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4931
    public Processor(I iface) {
4990
    public Processor(I iface) {
Line 5008... Line 5067...
5008
      processMap.put("cancelInsurance", new cancelInsurance());
5067
      processMap.put("cancelInsurance", new cancelInsurance());
5009
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
5068
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
5010
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
5069
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
5011
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
5070
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
5012
      processMap.put("validateCartPlus", new validateCartPlus());
5071
      processMap.put("validateCartPlus", new validateCartPlus());
-
 
5072
      processMap.put("isPrivateDealUser", new isPrivateDealUser());
5013
      return processMap;
5073
      return processMap;
5014
    }
5074
    }
5015
 
5075
 
5016
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5076
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5017
      public createAnonymousUser() {
5077
      public createAnonymousUser() {
Line 6437... Line 6497...
6437
        }
6497
        }
6438
        return result;
6498
        return result;
6439
      }
6499
      }
6440
    }
6500
    }
6441
 
6501
 
-
 
6502
    private static class isPrivateDealUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isPrivateDealUser_args> {
-
 
6503
      public isPrivateDealUser() {
-
 
6504
        super("isPrivateDealUser");
-
 
6505
      }
-
 
6506
 
-
 
6507
      protected isPrivateDealUser_args getEmptyArgsInstance() {
-
 
6508
        return new isPrivateDealUser_args();
-
 
6509
      }
-
 
6510
 
-
 
6511
      protected isPrivateDealUser_result getResult(I iface, isPrivateDealUser_args args) throws org.apache.thrift.TException {
-
 
6512
        isPrivateDealUser_result result = new isPrivateDealUser_result();
-
 
6513
        result.success = iface.isPrivateDealUser(args.userId);
-
 
6514
        result.setSuccessIsSet(true);
-
 
6515
        return result;
-
 
6516
      }
-
 
6517
    }
-
 
6518
 
6442
  }
6519
  }
6443
 
6520
 
6444
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6521
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6446
 
6523
 
Line 59239... Line 59316...
59239
      first = false;
59316
      first = false;
59240
      sb.append(")");
59317
      sb.append(")");
59241
      return sb.toString();
59318
      return sb.toString();
59242
    }
59319
    }
59243
 
59320
 
-
 
59321
    public void validate() throws org.apache.thrift.TException {
-
 
59322
      // check for required fields
-
 
59323
    }
-
 
59324
 
-
 
59325
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
59326
      try {
-
 
59327
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
59328
      } catch (org.apache.thrift.TException te) {
-
 
59329
        throw new java.io.IOException(te);
-
 
59330
      }
-
 
59331
    }
-
 
59332
 
-
 
59333
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
59334
      try {
-
 
59335
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
59336
      } catch (org.apache.thrift.TException te) {
-
 
59337
        throw new java.io.IOException(te);
-
 
59338
      }
-
 
59339
    }
-
 
59340
 
-
 
59341
  }
-
 
59342
 
-
 
59343
  public static class isPrivateDealUser_args implements org.apache.thrift.TBase<isPrivateDealUser_args, isPrivateDealUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
59344
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPrivateDealUser_args");
-
 
59345
 
-
 
59346
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
59347
 
-
 
59348
    private long userId; // required
-
 
59349
 
-
 
59350
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
59351
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
59352
      USER_ID((short)1, "userId");
-
 
59353
 
-
 
59354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
59355
 
-
 
59356
      static {
-
 
59357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
59358
          byName.put(field.getFieldName(), field);
-
 
59359
        }
-
 
59360
      }
-
 
59361
 
-
 
59362
      /**
-
 
59363
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
59364
       */
-
 
59365
      public static _Fields findByThriftId(int fieldId) {
-
 
59366
        switch(fieldId) {
-
 
59367
          case 1: // USER_ID
-
 
59368
            return USER_ID;
-
 
59369
          default:
-
 
59370
            return null;
-
 
59371
        }
-
 
59372
      }
-
 
59373
 
-
 
59374
      /**
-
 
59375
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
59376
       * if it is not found.
-
 
59377
       */
-
 
59378
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
59379
        _Fields fields = findByThriftId(fieldId);
-
 
59380
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
59381
        return fields;
-
 
59382
      }
-
 
59383
 
-
 
59384
      /**
-
 
59385
       * Find the _Fields constant that matches name, or null if its not found.
-
 
59386
       */
-
 
59387
      public static _Fields findByName(String name) {
-
 
59388
        return byName.get(name);
-
 
59389
      }
-
 
59390
 
-
 
59391
      private final short _thriftId;
-
 
59392
      private final String _fieldName;
-
 
59393
 
-
 
59394
      _Fields(short thriftId, String fieldName) {
-
 
59395
        _thriftId = thriftId;
-
 
59396
        _fieldName = fieldName;
-
 
59397
      }
-
 
59398
 
-
 
59399
      public short getThriftFieldId() {
-
 
59400
        return _thriftId;
-
 
59401
      }
-
 
59402
 
-
 
59403
      public String getFieldName() {
-
 
59404
        return _fieldName;
-
 
59405
      }
-
 
59406
    }
-
 
59407
 
-
 
59408
    // isset id assignments
-
 
59409
    private static final int __USERID_ISSET_ID = 0;
-
 
59410
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
59411
 
-
 
59412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
59413
    static {
-
 
59414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
59415
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59416
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
59417
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
59418
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPrivateDealUser_args.class, metaDataMap);
-
 
59419
    }
-
 
59420
 
-
 
59421
    public isPrivateDealUser_args() {
-
 
59422
    }
-
 
59423
 
-
 
59424
    public isPrivateDealUser_args(
-
 
59425
      long userId)
-
 
59426
    {
-
 
59427
      this();
-
 
59428
      this.userId = userId;
-
 
59429
      setUserIdIsSet(true);
-
 
59430
    }
-
 
59431
 
-
 
59432
    /**
-
 
59433
     * Performs a deep copy on <i>other</i>.
-
 
59434
     */
-
 
59435
    public isPrivateDealUser_args(isPrivateDealUser_args other) {
-
 
59436
      __isset_bit_vector.clear();
-
 
59437
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
59438
      this.userId = other.userId;
-
 
59439
    }
-
 
59440
 
-
 
59441
    public isPrivateDealUser_args deepCopy() {
-
 
59442
      return new isPrivateDealUser_args(this);
-
 
59443
    }
-
 
59444
 
-
 
59445
    @Override
-
 
59446
    public void clear() {
-
 
59447
      setUserIdIsSet(false);
-
 
59448
      this.userId = 0;
-
 
59449
    }
-
 
59450
 
-
 
59451
    public long getUserId() {
-
 
59452
      return this.userId;
-
 
59453
    }
-
 
59454
 
-
 
59455
    public void setUserId(long userId) {
-
 
59456
      this.userId = userId;
-
 
59457
      setUserIdIsSet(true);
-
 
59458
    }
-
 
59459
 
-
 
59460
    public void unsetUserId() {
-
 
59461
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
59462
    }
-
 
59463
 
-
 
59464
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
59465
    public boolean isSetUserId() {
-
 
59466
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
59467
    }
-
 
59468
 
-
 
59469
    public void setUserIdIsSet(boolean value) {
-
 
59470
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
59471
    }
-
 
59472
 
-
 
59473
    public void setFieldValue(_Fields field, Object value) {
-
 
59474
      switch (field) {
-
 
59475
      case USER_ID:
-
 
59476
        if (value == null) {
-
 
59477
          unsetUserId();
-
 
59478
        } else {
-
 
59479
          setUserId((Long)value);
-
 
59480
        }
-
 
59481
        break;
-
 
59482
 
-
 
59483
      }
-
 
59484
    }
-
 
59485
 
-
 
59486
    public Object getFieldValue(_Fields field) {
-
 
59487
      switch (field) {
-
 
59488
      case USER_ID:
-
 
59489
        return Long.valueOf(getUserId());
-
 
59490
 
-
 
59491
      }
-
 
59492
      throw new IllegalStateException();
-
 
59493
    }
-
 
59494
 
-
 
59495
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59496
    public boolean isSet(_Fields field) {
-
 
59497
      if (field == null) {
-
 
59498
        throw new IllegalArgumentException();
-
 
59499
      }
-
 
59500
 
-
 
59501
      switch (field) {
-
 
59502
      case USER_ID:
-
 
59503
        return isSetUserId();
-
 
59504
      }
-
 
59505
      throw new IllegalStateException();
-
 
59506
    }
-
 
59507
 
-
 
59508
    @Override
-
 
59509
    public boolean equals(Object that) {
-
 
59510
      if (that == null)
-
 
59511
        return false;
-
 
59512
      if (that instanceof isPrivateDealUser_args)
-
 
59513
        return this.equals((isPrivateDealUser_args)that);
-
 
59514
      return false;
-
 
59515
    }
-
 
59516
 
-
 
59517
    public boolean equals(isPrivateDealUser_args that) {
-
 
59518
      if (that == null)
-
 
59519
        return false;
-
 
59520
 
-
 
59521
      boolean this_present_userId = true;
-
 
59522
      boolean that_present_userId = true;
-
 
59523
      if (this_present_userId || that_present_userId) {
-
 
59524
        if (!(this_present_userId && that_present_userId))
-
 
59525
          return false;
-
 
59526
        if (this.userId != that.userId)
-
 
59527
          return false;
-
 
59528
      }
-
 
59529
 
-
 
59530
      return true;
-
 
59531
    }
-
 
59532
 
-
 
59533
    @Override
-
 
59534
    public int hashCode() {
-
 
59535
      return 0;
-
 
59536
    }
-
 
59537
 
-
 
59538
    public int compareTo(isPrivateDealUser_args other) {
-
 
59539
      if (!getClass().equals(other.getClass())) {
-
 
59540
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59541
      }
-
 
59542
 
-
 
59543
      int lastComparison = 0;
-
 
59544
      isPrivateDealUser_args typedOther = (isPrivateDealUser_args)other;
-
 
59545
 
-
 
59546
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
59547
      if (lastComparison != 0) {
-
 
59548
        return lastComparison;
-
 
59549
      }
-
 
59550
      if (isSetUserId()) {
-
 
59551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
59552
        if (lastComparison != 0) {
-
 
59553
          return lastComparison;
-
 
59554
        }
-
 
59555
      }
-
 
59556
      return 0;
-
 
59557
    }
-
 
59558
 
-
 
59559
    public _Fields fieldForId(int fieldId) {
-
 
59560
      return _Fields.findByThriftId(fieldId);
-
 
59561
    }
-
 
59562
 
-
 
59563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59564
      org.apache.thrift.protocol.TField field;
-
 
59565
      iprot.readStructBegin();
-
 
59566
      while (true)
-
 
59567
      {
-
 
59568
        field = iprot.readFieldBegin();
-
 
59569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59570
          break;
-
 
59571
        }
-
 
59572
        switch (field.id) {
-
 
59573
          case 1: // USER_ID
-
 
59574
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
59575
              this.userId = iprot.readI64();
-
 
59576
              setUserIdIsSet(true);
-
 
59577
            } else { 
-
 
59578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59579
            }
-
 
59580
            break;
-
 
59581
          default:
-
 
59582
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59583
        }
-
 
59584
        iprot.readFieldEnd();
-
 
59585
      }
-
 
59586
      iprot.readStructEnd();
-
 
59587
      validate();
-
 
59588
    }
-
 
59589
 
-
 
59590
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59591
      validate();
-
 
59592
 
-
 
59593
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59594
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
59595
      oprot.writeI64(this.userId);
-
 
59596
      oprot.writeFieldEnd();
-
 
59597
      oprot.writeFieldStop();
-
 
59598
      oprot.writeStructEnd();
-
 
59599
    }
-
 
59600
 
-
 
59601
    @Override
-
 
59602
    public String toString() {
-
 
59603
      StringBuilder sb = new StringBuilder("isPrivateDealUser_args(");
-
 
59604
      boolean first = true;
-
 
59605
 
-
 
59606
      sb.append("userId:");
-
 
59607
      sb.append(this.userId);
-
 
59608
      first = false;
-
 
59609
      sb.append(")");
-
 
59610
      return sb.toString();
-
 
59611
    }
-
 
59612
 
-
 
59613
    public void validate() throws org.apache.thrift.TException {
-
 
59614
      // check for required fields
-
 
59615
    }
-
 
59616
 
-
 
59617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
59618
      try {
-
 
59619
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
59620
      } catch (org.apache.thrift.TException te) {
-
 
59621
        throw new java.io.IOException(te);
-
 
59622
      }
-
 
59623
    }
-
 
59624
 
-
 
59625
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
59626
      try {
-
 
59627
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
59628
        __isset_bit_vector = new BitSet(1);
-
 
59629
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
59630
      } catch (org.apache.thrift.TException te) {
-
 
59631
        throw new java.io.IOException(te);
-
 
59632
      }
-
 
59633
    }
-
 
59634
 
-
 
59635
  }
-
 
59636
 
-
 
59637
  public static class isPrivateDealUser_result implements org.apache.thrift.TBase<isPrivateDealUser_result, isPrivateDealUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
59638
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPrivateDealUser_result");
-
 
59639
 
-
 
59640
    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);
-
 
59641
 
-
 
59642
    private boolean success; // required
-
 
59643
 
-
 
59644
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
59645
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
59646
      SUCCESS((short)0, "success");
-
 
59647
 
-
 
59648
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
59649
 
-
 
59650
      static {
-
 
59651
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
59652
          byName.put(field.getFieldName(), field);
-
 
59653
        }
-
 
59654
      }
-
 
59655
 
-
 
59656
      /**
-
 
59657
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
59658
       */
-
 
59659
      public static _Fields findByThriftId(int fieldId) {
-
 
59660
        switch(fieldId) {
-
 
59661
          case 0: // SUCCESS
-
 
59662
            return SUCCESS;
-
 
59663
          default:
-
 
59664
            return null;
-
 
59665
        }
-
 
59666
      }
-
 
59667
 
-
 
59668
      /**
-
 
59669
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
59670
       * if it is not found.
-
 
59671
       */
-
 
59672
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
59673
        _Fields fields = findByThriftId(fieldId);
-
 
59674
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
59675
        return fields;
-
 
59676
      }
-
 
59677
 
-
 
59678
      /**
-
 
59679
       * Find the _Fields constant that matches name, or null if its not found.
-
 
59680
       */
-
 
59681
      public static _Fields findByName(String name) {
-
 
59682
        return byName.get(name);
-
 
59683
      }
-
 
59684
 
-
 
59685
      private final short _thriftId;
-
 
59686
      private final String _fieldName;
-
 
59687
 
-
 
59688
      _Fields(short thriftId, String fieldName) {
-
 
59689
        _thriftId = thriftId;
-
 
59690
        _fieldName = fieldName;
-
 
59691
      }
-
 
59692
 
-
 
59693
      public short getThriftFieldId() {
-
 
59694
        return _thriftId;
-
 
59695
      }
-
 
59696
 
-
 
59697
      public String getFieldName() {
-
 
59698
        return _fieldName;
-
 
59699
      }
-
 
59700
    }
-
 
59701
 
-
 
59702
    // isset id assignments
-
 
59703
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
59704
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
59705
 
-
 
59706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
59707
    static {
-
 
59708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
59709
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
59711
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
59712
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPrivateDealUser_result.class, metaDataMap);
-
 
59713
    }
-
 
59714
 
-
 
59715
    public isPrivateDealUser_result() {
-
 
59716
    }
-
 
59717
 
-
 
59718
    public isPrivateDealUser_result(
-
 
59719
      boolean success)
-
 
59720
    {
-
 
59721
      this();
-
 
59722
      this.success = success;
-
 
59723
      setSuccessIsSet(true);
-
 
59724
    }
-
 
59725
 
-
 
59726
    /**
-
 
59727
     * Performs a deep copy on <i>other</i>.
-
 
59728
     */
-
 
59729
    public isPrivateDealUser_result(isPrivateDealUser_result other) {
-
 
59730
      __isset_bit_vector.clear();
-
 
59731
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
59732
      this.success = other.success;
-
 
59733
    }
-
 
59734
 
-
 
59735
    public isPrivateDealUser_result deepCopy() {
-
 
59736
      return new isPrivateDealUser_result(this);
-
 
59737
    }
-
 
59738
 
-
 
59739
    @Override
-
 
59740
    public void clear() {
-
 
59741
      setSuccessIsSet(false);
-
 
59742
      this.success = false;
-
 
59743
    }
-
 
59744
 
-
 
59745
    public boolean isSuccess() {
-
 
59746
      return this.success;
-
 
59747
    }
-
 
59748
 
-
 
59749
    public void setSuccess(boolean success) {
-
 
59750
      this.success = success;
-
 
59751
      setSuccessIsSet(true);
-
 
59752
    }
-
 
59753
 
-
 
59754
    public void unsetSuccess() {
-
 
59755
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
59756
    }
-
 
59757
 
-
 
59758
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
59759
    public boolean isSetSuccess() {
-
 
59760
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
59761
    }
-
 
59762
 
-
 
59763
    public void setSuccessIsSet(boolean value) {
-
 
59764
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
59765
    }
-
 
59766
 
-
 
59767
    public void setFieldValue(_Fields field, Object value) {
-
 
59768
      switch (field) {
-
 
59769
      case SUCCESS:
-
 
59770
        if (value == null) {
-
 
59771
          unsetSuccess();
-
 
59772
        } else {
-
 
59773
          setSuccess((Boolean)value);
-
 
59774
        }
-
 
59775
        break;
-
 
59776
 
-
 
59777
      }
-
 
59778
    }
-
 
59779
 
-
 
59780
    public Object getFieldValue(_Fields field) {
-
 
59781
      switch (field) {
-
 
59782
      case SUCCESS:
-
 
59783
        return Boolean.valueOf(isSuccess());
-
 
59784
 
-
 
59785
      }
-
 
59786
      throw new IllegalStateException();
-
 
59787
    }
-
 
59788
 
-
 
59789
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59790
    public boolean isSet(_Fields field) {
-
 
59791
      if (field == null) {
-
 
59792
        throw new IllegalArgumentException();
-
 
59793
      }
-
 
59794
 
-
 
59795
      switch (field) {
-
 
59796
      case SUCCESS:
-
 
59797
        return isSetSuccess();
-
 
59798
      }
-
 
59799
      throw new IllegalStateException();
-
 
59800
    }
-
 
59801
 
-
 
59802
    @Override
-
 
59803
    public boolean equals(Object that) {
-
 
59804
      if (that == null)
-
 
59805
        return false;
-
 
59806
      if (that instanceof isPrivateDealUser_result)
-
 
59807
        return this.equals((isPrivateDealUser_result)that);
-
 
59808
      return false;
-
 
59809
    }
-
 
59810
 
-
 
59811
    public boolean equals(isPrivateDealUser_result that) {
-
 
59812
      if (that == null)
-
 
59813
        return false;
-
 
59814
 
-
 
59815
      boolean this_present_success = true;
-
 
59816
      boolean that_present_success = true;
-
 
59817
      if (this_present_success || that_present_success) {
-
 
59818
        if (!(this_present_success && that_present_success))
-
 
59819
          return false;
-
 
59820
        if (this.success != that.success)
-
 
59821
          return false;
-
 
59822
      }
-
 
59823
 
-
 
59824
      return true;
-
 
59825
    }
-
 
59826
 
-
 
59827
    @Override
-
 
59828
    public int hashCode() {
-
 
59829
      return 0;
-
 
59830
    }
-
 
59831
 
-
 
59832
    public int compareTo(isPrivateDealUser_result other) {
-
 
59833
      if (!getClass().equals(other.getClass())) {
-
 
59834
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59835
      }
-
 
59836
 
-
 
59837
      int lastComparison = 0;
-
 
59838
      isPrivateDealUser_result typedOther = (isPrivateDealUser_result)other;
-
 
59839
 
-
 
59840
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
59841
      if (lastComparison != 0) {
-
 
59842
        return lastComparison;
-
 
59843
      }
-
 
59844
      if (isSetSuccess()) {
-
 
59845
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
59846
        if (lastComparison != 0) {
-
 
59847
          return lastComparison;
-
 
59848
        }
-
 
59849
      }
-
 
59850
      return 0;
-
 
59851
    }
-
 
59852
 
-
 
59853
    public _Fields fieldForId(int fieldId) {
-
 
59854
      return _Fields.findByThriftId(fieldId);
-
 
59855
    }
-
 
59856
 
-
 
59857
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59858
      org.apache.thrift.protocol.TField field;
-
 
59859
      iprot.readStructBegin();
-
 
59860
      while (true)
-
 
59861
      {
-
 
59862
        field = iprot.readFieldBegin();
-
 
59863
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59864
          break;
-
 
59865
        }
-
 
59866
        switch (field.id) {
-
 
59867
          case 0: // SUCCESS
-
 
59868
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
59869
              this.success = iprot.readBool();
-
 
59870
              setSuccessIsSet(true);
-
 
59871
            } else { 
-
 
59872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59873
            }
-
 
59874
            break;
-
 
59875
          default:
-
 
59876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59877
        }
-
 
59878
        iprot.readFieldEnd();
-
 
59879
      }
-
 
59880
      iprot.readStructEnd();
-
 
59881
      validate();
-
 
59882
    }
-
 
59883
 
-
 
59884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59885
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59886
 
-
 
59887
      if (this.isSetSuccess()) {
-
 
59888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
59889
        oprot.writeBool(this.success);
-
 
59890
        oprot.writeFieldEnd();
-
 
59891
      }
-
 
59892
      oprot.writeFieldStop();
-
 
59893
      oprot.writeStructEnd();
-
 
59894
    }
-
 
59895
 
-
 
59896
    @Override
-
 
59897
    public String toString() {
-
 
59898
      StringBuilder sb = new StringBuilder("isPrivateDealUser_result(");
-
 
59899
      boolean first = true;
-
 
59900
 
-
 
59901
      sb.append("success:");
-
 
59902
      sb.append(this.success);
-
 
59903
      first = false;
-
 
59904
      sb.append(")");
-
 
59905
      return sb.toString();
-
 
59906
    }
-
 
59907
 
59244
    public void validate() throws org.apache.thrift.TException {
59908
    public void validate() throws org.apache.thrift.TException {
59245
      // check for required fields
59909
      // check for required fields
59246
    }
59910
    }
59247
 
59911
 
59248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {