Subversion Repositories SmartDukaan

Rev

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

Rev 11679 Rev 11890
Line 335... Line 335...
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;
338
    public boolean isPrivateDealUser(long userId) throws org.apache.thrift.TException;
339
 
339
 
-
 
340
    public boolean addPrivateDealUser(long userId) throws org.apache.thrift.TException;
-
 
341
 
-
 
342
    public boolean changePrivateDealUserStatus(long userId, boolean isActive) throws org.apache.thrift.TException;
-
 
343
 
-
 
344
    public PrivateDealUser getPrivateDealUser(long userId) throws org.apache.thrift.TException;
-
 
345
 
340
  }
346
  }
341
 
347
 
342
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
348
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
343
 
349
 
344
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
350
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 487... Line 493...
487
 
493
 
488
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
494
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
489
 
495
 
490
    public void isPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
496
    public void isPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
491
 
497
 
-
 
498
    public void addPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
499
 
-
 
500
    public void changePrivateDealUserStatus(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changePrivateDealUserStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
501
 
-
 
502
    public void getPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
503
 
492
  }
504
  }
493
 
505
 
494
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
506
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
495
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
507
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
496
      public Factory() {}
508
      public Factory() {}
Line 2407... Line 2419...
2407
        return result.success;
2419
        return result.success;
2408
      }
2420
      }
2409
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isPrivateDealUser failed: unknown result");
2421
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isPrivateDealUser failed: unknown result");
2410
    }
2422
    }
2411
 
2423
 
-
 
2424
    public boolean addPrivateDealUser(long userId) throws org.apache.thrift.TException
-
 
2425
    {
-
 
2426
      send_addPrivateDealUser(userId);
-
 
2427
      return recv_addPrivateDealUser();
-
 
2428
    }
-
 
2429
 
-
 
2430
    public void send_addPrivateDealUser(long userId) throws org.apache.thrift.TException
-
 
2431
    {
-
 
2432
      addPrivateDealUser_args args = new addPrivateDealUser_args();
-
 
2433
      args.setUserId(userId);
-
 
2434
      sendBase("addPrivateDealUser", args);
-
 
2435
    }
-
 
2436
 
-
 
2437
    public boolean recv_addPrivateDealUser() throws org.apache.thrift.TException
-
 
2438
    {
-
 
2439
      addPrivateDealUser_result result = new addPrivateDealUser_result();
-
 
2440
      receiveBase(result, "addPrivateDealUser");
-
 
2441
      if (result.isSetSuccess()) {
-
 
2442
        return result.success;
-
 
2443
      }
-
 
2444
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addPrivateDealUser failed: unknown result");
-
 
2445
    }
-
 
2446
 
-
 
2447
    public boolean changePrivateDealUserStatus(long userId, boolean isActive) throws org.apache.thrift.TException
-
 
2448
    {
-
 
2449
      send_changePrivateDealUserStatus(userId, isActive);
-
 
2450
      return recv_changePrivateDealUserStatus();
-
 
2451
    }
-
 
2452
 
-
 
2453
    public void send_changePrivateDealUserStatus(long userId, boolean isActive) throws org.apache.thrift.TException
-
 
2454
    {
-
 
2455
      changePrivateDealUserStatus_args args = new changePrivateDealUserStatus_args();
-
 
2456
      args.setUserId(userId);
-
 
2457
      args.setIsActive(isActive);
-
 
2458
      sendBase("changePrivateDealUserStatus", args);
-
 
2459
    }
-
 
2460
 
-
 
2461
    public boolean recv_changePrivateDealUserStatus() throws org.apache.thrift.TException
-
 
2462
    {
-
 
2463
      changePrivateDealUserStatus_result result = new changePrivateDealUserStatus_result();
-
 
2464
      receiveBase(result, "changePrivateDealUserStatus");
-
 
2465
      if (result.isSetSuccess()) {
-
 
2466
        return result.success;
-
 
2467
      }
-
 
2468
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changePrivateDealUserStatus failed: unknown result");
-
 
2469
    }
-
 
2470
 
-
 
2471
    public PrivateDealUser getPrivateDealUser(long userId) throws org.apache.thrift.TException
-
 
2472
    {
-
 
2473
      send_getPrivateDealUser(userId);
-
 
2474
      return recv_getPrivateDealUser();
-
 
2475
    }
-
 
2476
 
-
 
2477
    public void send_getPrivateDealUser(long userId) throws org.apache.thrift.TException
-
 
2478
    {
-
 
2479
      getPrivateDealUser_args args = new getPrivateDealUser_args();
-
 
2480
      args.setUserId(userId);
-
 
2481
      sendBase("getPrivateDealUser", args);
-
 
2482
    }
-
 
2483
 
-
 
2484
    public PrivateDealUser recv_getPrivateDealUser() throws org.apache.thrift.TException
-
 
2485
    {
-
 
2486
      getPrivateDealUser_result result = new getPrivateDealUser_result();
-
 
2487
      receiveBase(result, "getPrivateDealUser");
-
 
2488
      if (result.isSetSuccess()) {
-
 
2489
        return result.success;
-
 
2490
      }
-
 
2491
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealUser failed: unknown result");
-
 
2492
    }
-
 
2493
 
2412
  }
2494
  }
2413
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2495
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2414
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2496
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2415
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2497
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2416
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2498
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4981... Line 5063...
4981
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5063
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4982
        return (new Client(prot)).recv_isPrivateDealUser();
5064
        return (new Client(prot)).recv_isPrivateDealUser();
4983
      }
5065
      }
4984
    }
5066
    }
4985
 
5067
 
-
 
5068
    public void addPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<addPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5069
      checkReady();
-
 
5070
      addPrivateDealUser_call method_call = new addPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5071
      this.___currentMethod = method_call;
-
 
5072
      ___manager.call(method_call);
-
 
5073
    }
-
 
5074
 
-
 
5075
    public static class addPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5076
      private long userId;
-
 
5077
      public addPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<addPrivateDealUser_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 {
-
 
5078
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5079
        this.userId = userId;
-
 
5080
      }
-
 
5081
 
-
 
5082
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5083
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5084
        addPrivateDealUser_args args = new addPrivateDealUser_args();
-
 
5085
        args.setUserId(userId);
-
 
5086
        args.write(prot);
-
 
5087
        prot.writeMessageEnd();
-
 
5088
      }
-
 
5089
 
-
 
5090
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5091
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5092
          throw new IllegalStateException("Method call not finished!");
-
 
5093
        }
-
 
5094
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5095
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5096
        return (new Client(prot)).recv_addPrivateDealUser();
-
 
5097
      }
-
 
5098
    }
-
 
5099
 
-
 
5100
    public void changePrivateDealUserStatus(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<changePrivateDealUserStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
5101
      checkReady();
-
 
5102
      changePrivateDealUserStatus_call method_call = new changePrivateDealUserStatus_call(userId, isActive, resultHandler, this, ___protocolFactory, ___transport);
-
 
5103
      this.___currentMethod = method_call;
-
 
5104
      ___manager.call(method_call);
-
 
5105
    }
-
 
5106
 
-
 
5107
    public static class changePrivateDealUserStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5108
      private long userId;
-
 
5109
      private boolean isActive;
-
 
5110
      public changePrivateDealUserStatus_call(long userId, boolean isActive, org.apache.thrift.async.AsyncMethodCallback<changePrivateDealUserStatus_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 {
-
 
5111
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5112
        this.userId = userId;
-
 
5113
        this.isActive = isActive;
-
 
5114
      }
-
 
5115
 
-
 
5116
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5117
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changePrivateDealUserStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5118
        changePrivateDealUserStatus_args args = new changePrivateDealUserStatus_args();
-
 
5119
        args.setUserId(userId);
-
 
5120
        args.setIsActive(isActive);
-
 
5121
        args.write(prot);
-
 
5122
        prot.writeMessageEnd();
-
 
5123
      }
-
 
5124
 
-
 
5125
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5126
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5127
          throw new IllegalStateException("Method call not finished!");
-
 
5128
        }
-
 
5129
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5130
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5131
        return (new Client(prot)).recv_changePrivateDealUserStatus();
-
 
5132
      }
-
 
5133
    }
-
 
5134
 
-
 
5135
    public void getPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5136
      checkReady();
-
 
5137
      getPrivateDealUser_call method_call = new getPrivateDealUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5138
      this.___currentMethod = method_call;
-
 
5139
      ___manager.call(method_call);
-
 
5140
    }
-
 
5141
 
-
 
5142
    public static class getPrivateDealUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5143
      private long userId;
-
 
5144
      public getPrivateDealUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealUser_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 {
-
 
5145
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5146
        this.userId = userId;
-
 
5147
      }
-
 
5148
 
-
 
5149
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5150
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5151
        getPrivateDealUser_args args = new getPrivateDealUser_args();
-
 
5152
        args.setUserId(userId);
-
 
5153
        args.write(prot);
-
 
5154
        prot.writeMessageEnd();
-
 
5155
      }
-
 
5156
 
-
 
5157
      public PrivateDealUser getResult() throws org.apache.thrift.TException {
-
 
5158
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5159
          throw new IllegalStateException("Method call not finished!");
-
 
5160
        }
-
 
5161
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5162
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5163
        return (new Client(prot)).recv_getPrivateDealUser();
-
 
5164
      }
-
 
5165
    }
-
 
5166
 
4986
  }
5167
  }
4987
 
5168
 
4988
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5169
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4989
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5170
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4990
    public Processor(I iface) {
5171
    public Processor(I iface) {
Line 5068... Line 5249...
5068
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
5249
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
5069
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
5250
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
5070
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
5251
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
5071
      processMap.put("validateCartPlus", new validateCartPlus());
5252
      processMap.put("validateCartPlus", new validateCartPlus());
5072
      processMap.put("isPrivateDealUser", new isPrivateDealUser());
5253
      processMap.put("isPrivateDealUser", new isPrivateDealUser());
-
 
5254
      processMap.put("addPrivateDealUser", new addPrivateDealUser());
-
 
5255
      processMap.put("changePrivateDealUserStatus", new changePrivateDealUserStatus());
-
 
5256
      processMap.put("getPrivateDealUser", new getPrivateDealUser());
5073
      return processMap;
5257
      return processMap;
5074
    }
5258
    }
5075
 
5259
 
5076
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5260
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5077
      public createAnonymousUser() {
5261
      public createAnonymousUser() {
Line 6514... Line 6698...
6514
        result.setSuccessIsSet(true);
6698
        result.setSuccessIsSet(true);
6515
        return result;
6699
        return result;
6516
      }
6700
      }
6517
    }
6701
    }
6518
 
6702
 
-
 
6703
    private static class addPrivateDealUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPrivateDealUser_args> {
-
 
6704
      public addPrivateDealUser() {
-
 
6705
        super("addPrivateDealUser");
-
 
6706
      }
-
 
6707
 
-
 
6708
      protected addPrivateDealUser_args getEmptyArgsInstance() {
-
 
6709
        return new addPrivateDealUser_args();
-
 
6710
      }
-
 
6711
 
-
 
6712
      protected addPrivateDealUser_result getResult(I iface, addPrivateDealUser_args args) throws org.apache.thrift.TException {
-
 
6713
        addPrivateDealUser_result result = new addPrivateDealUser_result();
-
 
6714
        result.success = iface.addPrivateDealUser(args.userId);
-
 
6715
        result.setSuccessIsSet(true);
-
 
6716
        return result;
-
 
6717
      }
-
 
6718
    }
-
 
6719
 
-
 
6720
    private static class changePrivateDealUserStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changePrivateDealUserStatus_args> {
-
 
6721
      public changePrivateDealUserStatus() {
-
 
6722
        super("changePrivateDealUserStatus");
-
 
6723
      }
-
 
6724
 
-
 
6725
      protected changePrivateDealUserStatus_args getEmptyArgsInstance() {
-
 
6726
        return new changePrivateDealUserStatus_args();
-
 
6727
      }
-
 
6728
 
-
 
6729
      protected changePrivateDealUserStatus_result getResult(I iface, changePrivateDealUserStatus_args args) throws org.apache.thrift.TException {
-
 
6730
        changePrivateDealUserStatus_result result = new changePrivateDealUserStatus_result();
-
 
6731
        result.success = iface.changePrivateDealUserStatus(args.userId, args.isActive);
-
 
6732
        result.setSuccessIsSet(true);
-
 
6733
        return result;
-
 
6734
      }
-
 
6735
    }
-
 
6736
 
-
 
6737
    private static class getPrivateDealUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealUser_args> {
-
 
6738
      public getPrivateDealUser() {
-
 
6739
        super("getPrivateDealUser");
-
 
6740
      }
-
 
6741
 
-
 
6742
      protected getPrivateDealUser_args getEmptyArgsInstance() {
-
 
6743
        return new getPrivateDealUser_args();
-
 
6744
      }
-
 
6745
 
-
 
6746
      protected getPrivateDealUser_result getResult(I iface, getPrivateDealUser_args args) throws org.apache.thrift.TException {
-
 
6747
        getPrivateDealUser_result result = new getPrivateDealUser_result();
-
 
6748
        result.success = iface.getPrivateDealUser(args.userId);
-
 
6749
        return result;
-
 
6750
      }
-
 
6751
    }
-
 
6752
 
6519
  }
6753
  }
6520
 
6754
 
6521
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6755
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6756
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6523
 
6757
 
Line 59903... Line 60137...
59903
      first = false;
60137
      first = false;
59904
      sb.append(")");
60138
      sb.append(")");
59905
      return sb.toString();
60139
      return sb.toString();
59906
    }
60140
    }
59907
 
60141
 
-
 
60142
    public void validate() throws org.apache.thrift.TException {
-
 
60143
      // check for required fields
-
 
60144
    }
-
 
60145
 
-
 
60146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60147
      try {
-
 
60148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60149
      } catch (org.apache.thrift.TException te) {
-
 
60150
        throw new java.io.IOException(te);
-
 
60151
      }
-
 
60152
    }
-
 
60153
 
-
 
60154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60155
      try {
-
 
60156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60157
      } catch (org.apache.thrift.TException te) {
-
 
60158
        throw new java.io.IOException(te);
-
 
60159
      }
-
 
60160
    }
-
 
60161
 
-
 
60162
  }
-
 
60163
 
-
 
60164
  public static class addPrivateDealUser_args implements org.apache.thrift.TBase<addPrivateDealUser_args, addPrivateDealUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPrivateDealUser_args");
-
 
60166
 
-
 
60167
    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);
-
 
60168
 
-
 
60169
    private long userId; // required
-
 
60170
 
-
 
60171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60173
      USER_ID((short)1, "userId");
-
 
60174
 
-
 
60175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60176
 
-
 
60177
      static {
-
 
60178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60179
          byName.put(field.getFieldName(), field);
-
 
60180
        }
-
 
60181
      }
-
 
60182
 
-
 
60183
      /**
-
 
60184
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60185
       */
-
 
60186
      public static _Fields findByThriftId(int fieldId) {
-
 
60187
        switch(fieldId) {
-
 
60188
          case 1: // USER_ID
-
 
60189
            return USER_ID;
-
 
60190
          default:
-
 
60191
            return null;
-
 
60192
        }
-
 
60193
      }
-
 
60194
 
-
 
60195
      /**
-
 
60196
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60197
       * if it is not found.
-
 
60198
       */
-
 
60199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60200
        _Fields fields = findByThriftId(fieldId);
-
 
60201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60202
        return fields;
-
 
60203
      }
-
 
60204
 
-
 
60205
      /**
-
 
60206
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60207
       */
-
 
60208
      public static _Fields findByName(String name) {
-
 
60209
        return byName.get(name);
-
 
60210
      }
-
 
60211
 
-
 
60212
      private final short _thriftId;
-
 
60213
      private final String _fieldName;
-
 
60214
 
-
 
60215
      _Fields(short thriftId, String fieldName) {
-
 
60216
        _thriftId = thriftId;
-
 
60217
        _fieldName = fieldName;
-
 
60218
      }
-
 
60219
 
-
 
60220
      public short getThriftFieldId() {
-
 
60221
        return _thriftId;
-
 
60222
      }
-
 
60223
 
-
 
60224
      public String getFieldName() {
-
 
60225
        return _fieldName;
-
 
60226
      }
-
 
60227
    }
-
 
60228
 
-
 
60229
    // isset id assignments
-
 
60230
    private static final int __USERID_ISSET_ID = 0;
-
 
60231
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
60232
 
-
 
60233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60234
    static {
-
 
60235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60236
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
60238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPrivateDealUser_args.class, metaDataMap);
-
 
60240
    }
-
 
60241
 
-
 
60242
    public addPrivateDealUser_args() {
-
 
60243
    }
-
 
60244
 
-
 
60245
    public addPrivateDealUser_args(
-
 
60246
      long userId)
-
 
60247
    {
-
 
60248
      this();
-
 
60249
      this.userId = userId;
-
 
60250
      setUserIdIsSet(true);
-
 
60251
    }
-
 
60252
 
-
 
60253
    /**
-
 
60254
     * Performs a deep copy on <i>other</i>.
-
 
60255
     */
-
 
60256
    public addPrivateDealUser_args(addPrivateDealUser_args other) {
-
 
60257
      __isset_bit_vector.clear();
-
 
60258
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
60259
      this.userId = other.userId;
-
 
60260
    }
-
 
60261
 
-
 
60262
    public addPrivateDealUser_args deepCopy() {
-
 
60263
      return new addPrivateDealUser_args(this);
-
 
60264
    }
-
 
60265
 
-
 
60266
    @Override
-
 
60267
    public void clear() {
-
 
60268
      setUserIdIsSet(false);
-
 
60269
      this.userId = 0;
-
 
60270
    }
-
 
60271
 
-
 
60272
    public long getUserId() {
-
 
60273
      return this.userId;
-
 
60274
    }
-
 
60275
 
-
 
60276
    public void setUserId(long userId) {
-
 
60277
      this.userId = userId;
-
 
60278
      setUserIdIsSet(true);
-
 
60279
    }
-
 
60280
 
-
 
60281
    public void unsetUserId() {
-
 
60282
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
60283
    }
-
 
60284
 
-
 
60285
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
60286
    public boolean isSetUserId() {
-
 
60287
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
60288
    }
-
 
60289
 
-
 
60290
    public void setUserIdIsSet(boolean value) {
-
 
60291
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
60292
    }
-
 
60293
 
-
 
60294
    public void setFieldValue(_Fields field, Object value) {
-
 
60295
      switch (field) {
-
 
60296
      case USER_ID:
-
 
60297
        if (value == null) {
-
 
60298
          unsetUserId();
-
 
60299
        } else {
-
 
60300
          setUserId((Long)value);
-
 
60301
        }
-
 
60302
        break;
-
 
60303
 
-
 
60304
      }
-
 
60305
    }
-
 
60306
 
-
 
60307
    public Object getFieldValue(_Fields field) {
-
 
60308
      switch (field) {
-
 
60309
      case USER_ID:
-
 
60310
        return Long.valueOf(getUserId());
-
 
60311
 
-
 
60312
      }
-
 
60313
      throw new IllegalStateException();
-
 
60314
    }
-
 
60315
 
-
 
60316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60317
    public boolean isSet(_Fields field) {
-
 
60318
      if (field == null) {
-
 
60319
        throw new IllegalArgumentException();
-
 
60320
      }
-
 
60321
 
-
 
60322
      switch (field) {
-
 
60323
      case USER_ID:
-
 
60324
        return isSetUserId();
-
 
60325
      }
-
 
60326
      throw new IllegalStateException();
-
 
60327
    }
-
 
60328
 
-
 
60329
    @Override
-
 
60330
    public boolean equals(Object that) {
-
 
60331
      if (that == null)
-
 
60332
        return false;
-
 
60333
      if (that instanceof addPrivateDealUser_args)
-
 
60334
        return this.equals((addPrivateDealUser_args)that);
-
 
60335
      return false;
-
 
60336
    }
-
 
60337
 
-
 
60338
    public boolean equals(addPrivateDealUser_args that) {
-
 
60339
      if (that == null)
-
 
60340
        return false;
-
 
60341
 
-
 
60342
      boolean this_present_userId = true;
-
 
60343
      boolean that_present_userId = true;
-
 
60344
      if (this_present_userId || that_present_userId) {
-
 
60345
        if (!(this_present_userId && that_present_userId))
-
 
60346
          return false;
-
 
60347
        if (this.userId != that.userId)
-
 
60348
          return false;
-
 
60349
      }
-
 
60350
 
-
 
60351
      return true;
-
 
60352
    }
-
 
60353
 
-
 
60354
    @Override
-
 
60355
    public int hashCode() {
-
 
60356
      return 0;
-
 
60357
    }
-
 
60358
 
-
 
60359
    public int compareTo(addPrivateDealUser_args other) {
-
 
60360
      if (!getClass().equals(other.getClass())) {
-
 
60361
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60362
      }
-
 
60363
 
-
 
60364
      int lastComparison = 0;
-
 
60365
      addPrivateDealUser_args typedOther = (addPrivateDealUser_args)other;
-
 
60366
 
-
 
60367
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
60368
      if (lastComparison != 0) {
-
 
60369
        return lastComparison;
-
 
60370
      }
-
 
60371
      if (isSetUserId()) {
-
 
60372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
60373
        if (lastComparison != 0) {
-
 
60374
          return lastComparison;
-
 
60375
        }
-
 
60376
      }
-
 
60377
      return 0;
-
 
60378
    }
-
 
60379
 
-
 
60380
    public _Fields fieldForId(int fieldId) {
-
 
60381
      return _Fields.findByThriftId(fieldId);
-
 
60382
    }
-
 
60383
 
-
 
60384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60385
      org.apache.thrift.protocol.TField field;
-
 
60386
      iprot.readStructBegin();
-
 
60387
      while (true)
-
 
60388
      {
-
 
60389
        field = iprot.readFieldBegin();
-
 
60390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60391
          break;
-
 
60392
        }
-
 
60393
        switch (field.id) {
-
 
60394
          case 1: // USER_ID
-
 
60395
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
60396
              this.userId = iprot.readI64();
-
 
60397
              setUserIdIsSet(true);
-
 
60398
            } else { 
-
 
60399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60400
            }
-
 
60401
            break;
-
 
60402
          default:
-
 
60403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60404
        }
-
 
60405
        iprot.readFieldEnd();
-
 
60406
      }
-
 
60407
      iprot.readStructEnd();
-
 
60408
      validate();
-
 
60409
    }
-
 
60410
 
-
 
60411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
60412
      validate();
-
 
60413
 
-
 
60414
      oprot.writeStructBegin(STRUCT_DESC);
-
 
60415
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
60416
      oprot.writeI64(this.userId);
-
 
60417
      oprot.writeFieldEnd();
-
 
60418
      oprot.writeFieldStop();
-
 
60419
      oprot.writeStructEnd();
-
 
60420
    }
-
 
60421
 
-
 
60422
    @Override
-
 
60423
    public String toString() {
-
 
60424
      StringBuilder sb = new StringBuilder("addPrivateDealUser_args(");
-
 
60425
      boolean first = true;
-
 
60426
 
-
 
60427
      sb.append("userId:");
-
 
60428
      sb.append(this.userId);
-
 
60429
      first = false;
-
 
60430
      sb.append(")");
-
 
60431
      return sb.toString();
-
 
60432
    }
-
 
60433
 
-
 
60434
    public void validate() throws org.apache.thrift.TException {
-
 
60435
      // check for required fields
-
 
60436
    }
-
 
60437
 
-
 
60438
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60439
      try {
-
 
60440
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60441
      } catch (org.apache.thrift.TException te) {
-
 
60442
        throw new java.io.IOException(te);
-
 
60443
      }
-
 
60444
    }
-
 
60445
 
-
 
60446
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60447
      try {
-
 
60448
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
60449
        __isset_bit_vector = new BitSet(1);
-
 
60450
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60451
      } catch (org.apache.thrift.TException te) {
-
 
60452
        throw new java.io.IOException(te);
-
 
60453
      }
-
 
60454
    }
-
 
60455
 
-
 
60456
  }
-
 
60457
 
-
 
60458
  public static class addPrivateDealUser_result implements org.apache.thrift.TBase<addPrivateDealUser_result, addPrivateDealUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
60459
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPrivateDealUser_result");
-
 
60460
 
-
 
60461
    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);
-
 
60462
 
-
 
60463
    private boolean success; // required
-
 
60464
 
-
 
60465
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60466
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60467
      SUCCESS((short)0, "success");
-
 
60468
 
-
 
60469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60470
 
-
 
60471
      static {
-
 
60472
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60473
          byName.put(field.getFieldName(), field);
-
 
60474
        }
-
 
60475
      }
-
 
60476
 
-
 
60477
      /**
-
 
60478
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60479
       */
-
 
60480
      public static _Fields findByThriftId(int fieldId) {
-
 
60481
        switch(fieldId) {
-
 
60482
          case 0: // SUCCESS
-
 
60483
            return SUCCESS;
-
 
60484
          default:
-
 
60485
            return null;
-
 
60486
        }
-
 
60487
      }
-
 
60488
 
-
 
60489
      /**
-
 
60490
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60491
       * if it is not found.
-
 
60492
       */
-
 
60493
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60494
        _Fields fields = findByThriftId(fieldId);
-
 
60495
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60496
        return fields;
-
 
60497
      }
-
 
60498
 
-
 
60499
      /**
-
 
60500
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60501
       */
-
 
60502
      public static _Fields findByName(String name) {
-
 
60503
        return byName.get(name);
-
 
60504
      }
-
 
60505
 
-
 
60506
      private final short _thriftId;
-
 
60507
      private final String _fieldName;
-
 
60508
 
-
 
60509
      _Fields(short thriftId, String fieldName) {
-
 
60510
        _thriftId = thriftId;
-
 
60511
        _fieldName = fieldName;
-
 
60512
      }
-
 
60513
 
-
 
60514
      public short getThriftFieldId() {
-
 
60515
        return _thriftId;
-
 
60516
      }
-
 
60517
 
-
 
60518
      public String getFieldName() {
-
 
60519
        return _fieldName;
-
 
60520
      }
-
 
60521
    }
-
 
60522
 
-
 
60523
    // isset id assignments
-
 
60524
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
60525
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
60526
 
-
 
60527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60528
    static {
-
 
60529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60530
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
60532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPrivateDealUser_result.class, metaDataMap);
-
 
60534
    }
-
 
60535
 
-
 
60536
    public addPrivateDealUser_result() {
-
 
60537
    }
-
 
60538
 
-
 
60539
    public addPrivateDealUser_result(
-
 
60540
      boolean success)
-
 
60541
    {
-
 
60542
      this();
-
 
60543
      this.success = success;
-
 
60544
      setSuccessIsSet(true);
-
 
60545
    }
-
 
60546
 
-
 
60547
    /**
-
 
60548
     * Performs a deep copy on <i>other</i>.
-
 
60549
     */
-
 
60550
    public addPrivateDealUser_result(addPrivateDealUser_result other) {
-
 
60551
      __isset_bit_vector.clear();
-
 
60552
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
60553
      this.success = other.success;
-
 
60554
    }
-
 
60555
 
-
 
60556
    public addPrivateDealUser_result deepCopy() {
-
 
60557
      return new addPrivateDealUser_result(this);
-
 
60558
    }
-
 
60559
 
-
 
60560
    @Override
-
 
60561
    public void clear() {
-
 
60562
      setSuccessIsSet(false);
-
 
60563
      this.success = false;
-
 
60564
    }
-
 
60565
 
-
 
60566
    public boolean isSuccess() {
-
 
60567
      return this.success;
-
 
60568
    }
-
 
60569
 
-
 
60570
    public void setSuccess(boolean success) {
-
 
60571
      this.success = success;
-
 
60572
      setSuccessIsSet(true);
-
 
60573
    }
-
 
60574
 
-
 
60575
    public void unsetSuccess() {
-
 
60576
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
60577
    }
-
 
60578
 
-
 
60579
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
60580
    public boolean isSetSuccess() {
-
 
60581
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
60582
    }
-
 
60583
 
-
 
60584
    public void setSuccessIsSet(boolean value) {
-
 
60585
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
60586
    }
-
 
60587
 
-
 
60588
    public void setFieldValue(_Fields field, Object value) {
-
 
60589
      switch (field) {
-
 
60590
      case SUCCESS:
-
 
60591
        if (value == null) {
-
 
60592
          unsetSuccess();
-
 
60593
        } else {
-
 
60594
          setSuccess((Boolean)value);
-
 
60595
        }
-
 
60596
        break;
-
 
60597
 
-
 
60598
      }
-
 
60599
    }
-
 
60600
 
-
 
60601
    public Object getFieldValue(_Fields field) {
-
 
60602
      switch (field) {
-
 
60603
      case SUCCESS:
-
 
60604
        return Boolean.valueOf(isSuccess());
-
 
60605
 
-
 
60606
      }
-
 
60607
      throw new IllegalStateException();
-
 
60608
    }
-
 
60609
 
-
 
60610
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60611
    public boolean isSet(_Fields field) {
-
 
60612
      if (field == null) {
-
 
60613
        throw new IllegalArgumentException();
-
 
60614
      }
-
 
60615
 
-
 
60616
      switch (field) {
-
 
60617
      case SUCCESS:
-
 
60618
        return isSetSuccess();
-
 
60619
      }
-
 
60620
      throw new IllegalStateException();
-
 
60621
    }
-
 
60622
 
-
 
60623
    @Override
-
 
60624
    public boolean equals(Object that) {
-
 
60625
      if (that == null)
-
 
60626
        return false;
-
 
60627
      if (that instanceof addPrivateDealUser_result)
-
 
60628
        return this.equals((addPrivateDealUser_result)that);
-
 
60629
      return false;
-
 
60630
    }
-
 
60631
 
-
 
60632
    public boolean equals(addPrivateDealUser_result that) {
-
 
60633
      if (that == null)
-
 
60634
        return false;
-
 
60635
 
-
 
60636
      boolean this_present_success = true;
-
 
60637
      boolean that_present_success = true;
-
 
60638
      if (this_present_success || that_present_success) {
-
 
60639
        if (!(this_present_success && that_present_success))
-
 
60640
          return false;
-
 
60641
        if (this.success != that.success)
-
 
60642
          return false;
-
 
60643
      }
-
 
60644
 
-
 
60645
      return true;
-
 
60646
    }
-
 
60647
 
-
 
60648
    @Override
-
 
60649
    public int hashCode() {
-
 
60650
      return 0;
-
 
60651
    }
-
 
60652
 
-
 
60653
    public int compareTo(addPrivateDealUser_result other) {
-
 
60654
      if (!getClass().equals(other.getClass())) {
-
 
60655
        return getClass().getName().compareTo(other.getClass().getName());
-
 
60656
      }
-
 
60657
 
-
 
60658
      int lastComparison = 0;
-
 
60659
      addPrivateDealUser_result typedOther = (addPrivateDealUser_result)other;
-
 
60660
 
-
 
60661
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
60662
      if (lastComparison != 0) {
-
 
60663
        return lastComparison;
-
 
60664
      }
-
 
60665
      if (isSetSuccess()) {
-
 
60666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
60667
        if (lastComparison != 0) {
-
 
60668
          return lastComparison;
-
 
60669
        }
-
 
60670
      }
-
 
60671
      return 0;
-
 
60672
    }
-
 
60673
 
-
 
60674
    public _Fields fieldForId(int fieldId) {
-
 
60675
      return _Fields.findByThriftId(fieldId);
-
 
60676
    }
-
 
60677
 
-
 
60678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
60679
      org.apache.thrift.protocol.TField field;
-
 
60680
      iprot.readStructBegin();
-
 
60681
      while (true)
-
 
60682
      {
-
 
60683
        field = iprot.readFieldBegin();
-
 
60684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
60685
          break;
-
 
60686
        }
-
 
60687
        switch (field.id) {
-
 
60688
          case 0: // SUCCESS
-
 
60689
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
60690
              this.success = iprot.readBool();
-
 
60691
              setSuccessIsSet(true);
-
 
60692
            } else { 
-
 
60693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60694
            }
-
 
60695
            break;
-
 
60696
          default:
-
 
60697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
60698
        }
-
 
60699
        iprot.readFieldEnd();
-
 
60700
      }
-
 
60701
      iprot.readStructEnd();
-
 
60702
      validate();
-
 
60703
    }
-
 
60704
 
-
 
60705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
60706
      oprot.writeStructBegin(STRUCT_DESC);
-
 
60707
 
-
 
60708
      if (this.isSetSuccess()) {
-
 
60709
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
60710
        oprot.writeBool(this.success);
-
 
60711
        oprot.writeFieldEnd();
-
 
60712
      }
-
 
60713
      oprot.writeFieldStop();
-
 
60714
      oprot.writeStructEnd();
-
 
60715
    }
-
 
60716
 
-
 
60717
    @Override
-
 
60718
    public String toString() {
-
 
60719
      StringBuilder sb = new StringBuilder("addPrivateDealUser_result(");
-
 
60720
      boolean first = true;
-
 
60721
 
-
 
60722
      sb.append("success:");
-
 
60723
      sb.append(this.success);
-
 
60724
      first = false;
-
 
60725
      sb.append(")");
-
 
60726
      return sb.toString();
-
 
60727
    }
-
 
60728
 
-
 
60729
    public void validate() throws org.apache.thrift.TException {
-
 
60730
      // check for required fields
-
 
60731
    }
-
 
60732
 
-
 
60733
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
60734
      try {
-
 
60735
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
60736
      } catch (org.apache.thrift.TException te) {
-
 
60737
        throw new java.io.IOException(te);
-
 
60738
      }
-
 
60739
    }
-
 
60740
 
-
 
60741
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
60742
      try {
-
 
60743
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
60744
      } catch (org.apache.thrift.TException te) {
-
 
60745
        throw new java.io.IOException(te);
-
 
60746
      }
-
 
60747
    }
-
 
60748
 
-
 
60749
  }
-
 
60750
 
-
 
60751
  public static class changePrivateDealUserStatus_args implements org.apache.thrift.TBase<changePrivateDealUserStatus_args, changePrivateDealUserStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
60752
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changePrivateDealUserStatus_args");
-
 
60753
 
-
 
60754
    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);
-
 
60755
    private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)2);
-
 
60756
 
-
 
60757
    private long userId; // required
-
 
60758
    private boolean isActive; // required
-
 
60759
 
-
 
60760
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
60761
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
60762
      USER_ID((short)1, "userId"),
-
 
60763
      IS_ACTIVE((short)2, "isActive");
-
 
60764
 
-
 
60765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
60766
 
-
 
60767
      static {
-
 
60768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
60769
          byName.put(field.getFieldName(), field);
-
 
60770
        }
-
 
60771
      }
-
 
60772
 
-
 
60773
      /**
-
 
60774
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
60775
       */
-
 
60776
      public static _Fields findByThriftId(int fieldId) {
-
 
60777
        switch(fieldId) {
-
 
60778
          case 1: // USER_ID
-
 
60779
            return USER_ID;
-
 
60780
          case 2: // IS_ACTIVE
-
 
60781
            return IS_ACTIVE;
-
 
60782
          default:
-
 
60783
            return null;
-
 
60784
        }
-
 
60785
      }
-
 
60786
 
-
 
60787
      /**
-
 
60788
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
60789
       * if it is not found.
-
 
60790
       */
-
 
60791
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
60792
        _Fields fields = findByThriftId(fieldId);
-
 
60793
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
60794
        return fields;
-
 
60795
      }
-
 
60796
 
-
 
60797
      /**
-
 
60798
       * Find the _Fields constant that matches name, or null if its not found.
-
 
60799
       */
-
 
60800
      public static _Fields findByName(String name) {
-
 
60801
        return byName.get(name);
-
 
60802
      }
-
 
60803
 
-
 
60804
      private final short _thriftId;
-
 
60805
      private final String _fieldName;
-
 
60806
 
-
 
60807
      _Fields(short thriftId, String fieldName) {
-
 
60808
        _thriftId = thriftId;
-
 
60809
        _fieldName = fieldName;
-
 
60810
      }
-
 
60811
 
-
 
60812
      public short getThriftFieldId() {
-
 
60813
        return _thriftId;
-
 
60814
      }
-
 
60815
 
-
 
60816
      public String getFieldName() {
-
 
60817
        return _fieldName;
-
 
60818
      }
-
 
60819
    }
-
 
60820
 
-
 
60821
    // isset id assignments
-
 
60822
    private static final int __USERID_ISSET_ID = 0;
-
 
60823
    private static final int __ISACTIVE_ISSET_ID = 1;
-
 
60824
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
60825
 
-
 
60826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
60827
    static {
-
 
60828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
60829
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
60831
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
60832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
60833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
60834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changePrivateDealUserStatus_args.class, metaDataMap);
-
 
60835
    }
-
 
60836
 
-
 
60837
    public changePrivateDealUserStatus_args() {
-
 
60838
    }
-
 
60839
 
-
 
60840
    public changePrivateDealUserStatus_args(
-
 
60841
      long userId,
-
 
60842
      boolean isActive)
-
 
60843
    {
-
 
60844
      this();
-
 
60845
      this.userId = userId;
-
 
60846
      setUserIdIsSet(true);
-
 
60847
      this.isActive = isActive;
-
 
60848
      setIsActiveIsSet(true);
-
 
60849
    }
-
 
60850
 
-
 
60851
    /**
-
 
60852
     * Performs a deep copy on <i>other</i>.
-
 
60853
     */
-
 
60854
    public changePrivateDealUserStatus_args(changePrivateDealUserStatus_args other) {
-
 
60855
      __isset_bit_vector.clear();
-
 
60856
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
60857
      this.userId = other.userId;
-
 
60858
      this.isActive = other.isActive;
-
 
60859
    }
-
 
60860
 
-
 
60861
    public changePrivateDealUserStatus_args deepCopy() {
-
 
60862
      return new changePrivateDealUserStatus_args(this);
-
 
60863
    }
-
 
60864
 
-
 
60865
    @Override
-
 
60866
    public void clear() {
-
 
60867
      setUserIdIsSet(false);
-
 
60868
      this.userId = 0;
-
 
60869
      setIsActiveIsSet(false);
-
 
60870
      this.isActive = false;
-
 
60871
    }
-
 
60872
 
-
 
60873
    public long getUserId() {
-
 
60874
      return this.userId;
-
 
60875
    }
-
 
60876
 
-
 
60877
    public void setUserId(long userId) {
-
 
60878
      this.userId = userId;
-
 
60879
      setUserIdIsSet(true);
-
 
60880
    }
-
 
60881
 
-
 
60882
    public void unsetUserId() {
-
 
60883
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
60884
    }
-
 
60885
 
-
 
60886
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
60887
    public boolean isSetUserId() {
-
 
60888
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
60889
    }
-
 
60890
 
-
 
60891
    public void setUserIdIsSet(boolean value) {
-
 
60892
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
60893
    }
-
 
60894
 
-
 
60895
    public boolean isIsActive() {
-
 
60896
      return this.isActive;
-
 
60897
    }
-
 
60898
 
-
 
60899
    public void setIsActive(boolean isActive) {
-
 
60900
      this.isActive = isActive;
-
 
60901
      setIsActiveIsSet(true);
-
 
60902
    }
-
 
60903
 
-
 
60904
    public void unsetIsActive() {
-
 
60905
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
-
 
60906
    }
-
 
60907
 
-
 
60908
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
-
 
60909
    public boolean isSetIsActive() {
-
 
60910
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
-
 
60911
    }
-
 
60912
 
-
 
60913
    public void setIsActiveIsSet(boolean value) {
-
 
60914
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
-
 
60915
    }
-
 
60916
 
-
 
60917
    public void setFieldValue(_Fields field, Object value) {
-
 
60918
      switch (field) {
-
 
60919
      case USER_ID:
-
 
60920
        if (value == null) {
-
 
60921
          unsetUserId();
-
 
60922
        } else {
-
 
60923
          setUserId((Long)value);
-
 
60924
        }
-
 
60925
        break;
-
 
60926
 
-
 
60927
      case IS_ACTIVE:
-
 
60928
        if (value == null) {
-
 
60929
          unsetIsActive();
-
 
60930
        } else {
-
 
60931
          setIsActive((Boolean)value);
-
 
60932
        }
-
 
60933
        break;
-
 
60934
 
-
 
60935
      }
-
 
60936
    }
-
 
60937
 
-
 
60938
    public Object getFieldValue(_Fields field) {
-
 
60939
      switch (field) {
-
 
60940
      case USER_ID:
-
 
60941
        return Long.valueOf(getUserId());
-
 
60942
 
-
 
60943
      case IS_ACTIVE:
-
 
60944
        return Boolean.valueOf(isIsActive());
-
 
60945
 
-
 
60946
      }
-
 
60947
      throw new IllegalStateException();
-
 
60948
    }
-
 
60949
 
-
 
60950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
60951
    public boolean isSet(_Fields field) {
-
 
60952
      if (field == null) {
-
 
60953
        throw new IllegalArgumentException();
-
 
60954
      }
-
 
60955
 
-
 
60956
      switch (field) {
-
 
60957
      case USER_ID:
-
 
60958
        return isSetUserId();
-
 
60959
      case IS_ACTIVE:
-
 
60960
        return isSetIsActive();
-
 
60961
      }
-
 
60962
      throw new IllegalStateException();
-
 
60963
    }
-
 
60964
 
-
 
60965
    @Override
-
 
60966
    public boolean equals(Object that) {
-
 
60967
      if (that == null)
-
 
60968
        return false;
-
 
60969
      if (that instanceof changePrivateDealUserStatus_args)
-
 
60970
        return this.equals((changePrivateDealUserStatus_args)that);
-
 
60971
      return false;
-
 
60972
    }
-
 
60973
 
-
 
60974
    public boolean equals(changePrivateDealUserStatus_args that) {
-
 
60975
      if (that == null)
-
 
60976
        return false;
-
 
60977
 
-
 
60978
      boolean this_present_userId = true;
-
 
60979
      boolean that_present_userId = true;
-
 
60980
      if (this_present_userId || that_present_userId) {
-
 
60981
        if (!(this_present_userId && that_present_userId))
-
 
60982
          return false;
-
 
60983
        if (this.userId != that.userId)
-
 
60984
          return false;
-
 
60985
      }
-
 
60986
 
-
 
60987
      boolean this_present_isActive = true;
-
 
60988
      boolean that_present_isActive = true;
-
 
60989
      if (this_present_isActive || that_present_isActive) {
-
 
60990
        if (!(this_present_isActive && that_present_isActive))
-
 
60991
          return false;
-
 
60992
        if (this.isActive != that.isActive)
-
 
60993
          return false;
-
 
60994
      }
-
 
60995
 
-
 
60996
      return true;
-
 
60997
    }
-
 
60998
 
-
 
60999
    @Override
-
 
61000
    public int hashCode() {
-
 
61001
      return 0;
-
 
61002
    }
-
 
61003
 
-
 
61004
    public int compareTo(changePrivateDealUserStatus_args other) {
-
 
61005
      if (!getClass().equals(other.getClass())) {
-
 
61006
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61007
      }
-
 
61008
 
-
 
61009
      int lastComparison = 0;
-
 
61010
      changePrivateDealUserStatus_args typedOther = (changePrivateDealUserStatus_args)other;
-
 
61011
 
-
 
61012
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
61013
      if (lastComparison != 0) {
-
 
61014
        return lastComparison;
-
 
61015
      }
-
 
61016
      if (isSetUserId()) {
-
 
61017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
61018
        if (lastComparison != 0) {
-
 
61019
          return lastComparison;
-
 
61020
        }
-
 
61021
      }
-
 
61022
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
-
 
61023
      if (lastComparison != 0) {
-
 
61024
        return lastComparison;
-
 
61025
      }
-
 
61026
      if (isSetIsActive()) {
-
 
61027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
-
 
61028
        if (lastComparison != 0) {
-
 
61029
          return lastComparison;
-
 
61030
        }
-
 
61031
      }
-
 
61032
      return 0;
-
 
61033
    }
-
 
61034
 
-
 
61035
    public _Fields fieldForId(int fieldId) {
-
 
61036
      return _Fields.findByThriftId(fieldId);
-
 
61037
    }
-
 
61038
 
-
 
61039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61040
      org.apache.thrift.protocol.TField field;
-
 
61041
      iprot.readStructBegin();
-
 
61042
      while (true)
-
 
61043
      {
-
 
61044
        field = iprot.readFieldBegin();
-
 
61045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61046
          break;
-
 
61047
        }
-
 
61048
        switch (field.id) {
-
 
61049
          case 1: // USER_ID
-
 
61050
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
61051
              this.userId = iprot.readI64();
-
 
61052
              setUserIdIsSet(true);
-
 
61053
            } else { 
-
 
61054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61055
            }
-
 
61056
            break;
-
 
61057
          case 2: // IS_ACTIVE
-
 
61058
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
61059
              this.isActive = iprot.readBool();
-
 
61060
              setIsActiveIsSet(true);
-
 
61061
            } else { 
-
 
61062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61063
            }
-
 
61064
            break;
-
 
61065
          default:
-
 
61066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61067
        }
-
 
61068
        iprot.readFieldEnd();
-
 
61069
      }
-
 
61070
      iprot.readStructEnd();
-
 
61071
      validate();
-
 
61072
    }
-
 
61073
 
-
 
61074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61075
      validate();
-
 
61076
 
-
 
61077
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61078
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
61079
      oprot.writeI64(this.userId);
-
 
61080
      oprot.writeFieldEnd();
-
 
61081
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
-
 
61082
      oprot.writeBool(this.isActive);
-
 
61083
      oprot.writeFieldEnd();
-
 
61084
      oprot.writeFieldStop();
-
 
61085
      oprot.writeStructEnd();
-
 
61086
    }
-
 
61087
 
-
 
61088
    @Override
-
 
61089
    public String toString() {
-
 
61090
      StringBuilder sb = new StringBuilder("changePrivateDealUserStatus_args(");
-
 
61091
      boolean first = true;
-
 
61092
 
-
 
61093
      sb.append("userId:");
-
 
61094
      sb.append(this.userId);
-
 
61095
      first = false;
-
 
61096
      if (!first) sb.append(", ");
-
 
61097
      sb.append("isActive:");
-
 
61098
      sb.append(this.isActive);
-
 
61099
      first = false;
-
 
61100
      sb.append(")");
-
 
61101
      return sb.toString();
-
 
61102
    }
-
 
61103
 
-
 
61104
    public void validate() throws org.apache.thrift.TException {
-
 
61105
      // check for required fields
-
 
61106
    }
-
 
61107
 
-
 
61108
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61109
      try {
-
 
61110
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61111
      } catch (org.apache.thrift.TException te) {
-
 
61112
        throw new java.io.IOException(te);
-
 
61113
      }
-
 
61114
    }
-
 
61115
 
-
 
61116
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61117
      try {
-
 
61118
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
61119
        __isset_bit_vector = new BitSet(1);
-
 
61120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61121
      } catch (org.apache.thrift.TException te) {
-
 
61122
        throw new java.io.IOException(te);
-
 
61123
      }
-
 
61124
    }
-
 
61125
 
-
 
61126
  }
-
 
61127
 
-
 
61128
  public static class changePrivateDealUserStatus_result implements org.apache.thrift.TBase<changePrivateDealUserStatus_result, changePrivateDealUserStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changePrivateDealUserStatus_result");
-
 
61130
 
-
 
61131
    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);
-
 
61132
 
-
 
61133
    private boolean success; // required
-
 
61134
 
-
 
61135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61137
      SUCCESS((short)0, "success");
-
 
61138
 
-
 
61139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61140
 
-
 
61141
      static {
-
 
61142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61143
          byName.put(field.getFieldName(), field);
-
 
61144
        }
-
 
61145
      }
-
 
61146
 
-
 
61147
      /**
-
 
61148
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61149
       */
-
 
61150
      public static _Fields findByThriftId(int fieldId) {
-
 
61151
        switch(fieldId) {
-
 
61152
          case 0: // SUCCESS
-
 
61153
            return SUCCESS;
-
 
61154
          default:
-
 
61155
            return null;
-
 
61156
        }
-
 
61157
      }
-
 
61158
 
-
 
61159
      /**
-
 
61160
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61161
       * if it is not found.
-
 
61162
       */
-
 
61163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61164
        _Fields fields = findByThriftId(fieldId);
-
 
61165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61166
        return fields;
-
 
61167
      }
-
 
61168
 
-
 
61169
      /**
-
 
61170
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61171
       */
-
 
61172
      public static _Fields findByName(String name) {
-
 
61173
        return byName.get(name);
-
 
61174
      }
-
 
61175
 
-
 
61176
      private final short _thriftId;
-
 
61177
      private final String _fieldName;
-
 
61178
 
-
 
61179
      _Fields(short thriftId, String fieldName) {
-
 
61180
        _thriftId = thriftId;
-
 
61181
        _fieldName = fieldName;
-
 
61182
      }
-
 
61183
 
-
 
61184
      public short getThriftFieldId() {
-
 
61185
        return _thriftId;
-
 
61186
      }
-
 
61187
 
-
 
61188
      public String getFieldName() {
-
 
61189
        return _fieldName;
-
 
61190
      }
-
 
61191
    }
-
 
61192
 
-
 
61193
    // isset id assignments
-
 
61194
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
61195
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
61196
 
-
 
61197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61198
    static {
-
 
61199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61200
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
61202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changePrivateDealUserStatus_result.class, metaDataMap);
-
 
61204
    }
-
 
61205
 
-
 
61206
    public changePrivateDealUserStatus_result() {
-
 
61207
    }
-
 
61208
 
-
 
61209
    public changePrivateDealUserStatus_result(
-
 
61210
      boolean success)
-
 
61211
    {
-
 
61212
      this();
-
 
61213
      this.success = success;
-
 
61214
      setSuccessIsSet(true);
-
 
61215
    }
-
 
61216
 
-
 
61217
    /**
-
 
61218
     * Performs a deep copy on <i>other</i>.
-
 
61219
     */
-
 
61220
    public changePrivateDealUserStatus_result(changePrivateDealUserStatus_result other) {
-
 
61221
      __isset_bit_vector.clear();
-
 
61222
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
61223
      this.success = other.success;
-
 
61224
    }
-
 
61225
 
-
 
61226
    public changePrivateDealUserStatus_result deepCopy() {
-
 
61227
      return new changePrivateDealUserStatus_result(this);
-
 
61228
    }
-
 
61229
 
-
 
61230
    @Override
-
 
61231
    public void clear() {
-
 
61232
      setSuccessIsSet(false);
-
 
61233
      this.success = false;
-
 
61234
    }
-
 
61235
 
-
 
61236
    public boolean isSuccess() {
-
 
61237
      return this.success;
-
 
61238
    }
-
 
61239
 
-
 
61240
    public void setSuccess(boolean success) {
-
 
61241
      this.success = success;
-
 
61242
      setSuccessIsSet(true);
-
 
61243
    }
-
 
61244
 
-
 
61245
    public void unsetSuccess() {
-
 
61246
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
61247
    }
-
 
61248
 
-
 
61249
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
61250
    public boolean isSetSuccess() {
-
 
61251
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
61252
    }
-
 
61253
 
-
 
61254
    public void setSuccessIsSet(boolean value) {
-
 
61255
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
61256
    }
-
 
61257
 
-
 
61258
    public void setFieldValue(_Fields field, Object value) {
-
 
61259
      switch (field) {
-
 
61260
      case SUCCESS:
-
 
61261
        if (value == null) {
-
 
61262
          unsetSuccess();
-
 
61263
        } else {
-
 
61264
          setSuccess((Boolean)value);
-
 
61265
        }
-
 
61266
        break;
-
 
61267
 
-
 
61268
      }
-
 
61269
    }
-
 
61270
 
-
 
61271
    public Object getFieldValue(_Fields field) {
-
 
61272
      switch (field) {
-
 
61273
      case SUCCESS:
-
 
61274
        return Boolean.valueOf(isSuccess());
-
 
61275
 
-
 
61276
      }
-
 
61277
      throw new IllegalStateException();
-
 
61278
    }
-
 
61279
 
-
 
61280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61281
    public boolean isSet(_Fields field) {
-
 
61282
      if (field == null) {
-
 
61283
        throw new IllegalArgumentException();
-
 
61284
      }
-
 
61285
 
-
 
61286
      switch (field) {
-
 
61287
      case SUCCESS:
-
 
61288
        return isSetSuccess();
-
 
61289
      }
-
 
61290
      throw new IllegalStateException();
-
 
61291
    }
-
 
61292
 
-
 
61293
    @Override
-
 
61294
    public boolean equals(Object that) {
-
 
61295
      if (that == null)
-
 
61296
        return false;
-
 
61297
      if (that instanceof changePrivateDealUserStatus_result)
-
 
61298
        return this.equals((changePrivateDealUserStatus_result)that);
-
 
61299
      return false;
-
 
61300
    }
-
 
61301
 
-
 
61302
    public boolean equals(changePrivateDealUserStatus_result that) {
-
 
61303
      if (that == null)
-
 
61304
        return false;
-
 
61305
 
-
 
61306
      boolean this_present_success = true;
-
 
61307
      boolean that_present_success = true;
-
 
61308
      if (this_present_success || that_present_success) {
-
 
61309
        if (!(this_present_success && that_present_success))
-
 
61310
          return false;
-
 
61311
        if (this.success != that.success)
-
 
61312
          return false;
-
 
61313
      }
-
 
61314
 
-
 
61315
      return true;
-
 
61316
    }
-
 
61317
 
-
 
61318
    @Override
-
 
61319
    public int hashCode() {
-
 
61320
      return 0;
-
 
61321
    }
-
 
61322
 
-
 
61323
    public int compareTo(changePrivateDealUserStatus_result other) {
-
 
61324
      if (!getClass().equals(other.getClass())) {
-
 
61325
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61326
      }
-
 
61327
 
-
 
61328
      int lastComparison = 0;
-
 
61329
      changePrivateDealUserStatus_result typedOther = (changePrivateDealUserStatus_result)other;
-
 
61330
 
-
 
61331
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
61332
      if (lastComparison != 0) {
-
 
61333
        return lastComparison;
-
 
61334
      }
-
 
61335
      if (isSetSuccess()) {
-
 
61336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
61337
        if (lastComparison != 0) {
-
 
61338
          return lastComparison;
-
 
61339
        }
-
 
61340
      }
-
 
61341
      return 0;
-
 
61342
    }
-
 
61343
 
-
 
61344
    public _Fields fieldForId(int fieldId) {
-
 
61345
      return _Fields.findByThriftId(fieldId);
-
 
61346
    }
-
 
61347
 
-
 
61348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61349
      org.apache.thrift.protocol.TField field;
-
 
61350
      iprot.readStructBegin();
-
 
61351
      while (true)
-
 
61352
      {
-
 
61353
        field = iprot.readFieldBegin();
-
 
61354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61355
          break;
-
 
61356
        }
-
 
61357
        switch (field.id) {
-
 
61358
          case 0: // SUCCESS
-
 
61359
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
61360
              this.success = iprot.readBool();
-
 
61361
              setSuccessIsSet(true);
-
 
61362
            } else { 
-
 
61363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61364
            }
-
 
61365
            break;
-
 
61366
          default:
-
 
61367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61368
        }
-
 
61369
        iprot.readFieldEnd();
-
 
61370
      }
-
 
61371
      iprot.readStructEnd();
-
 
61372
      validate();
-
 
61373
    }
-
 
61374
 
-
 
61375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61376
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61377
 
-
 
61378
      if (this.isSetSuccess()) {
-
 
61379
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
61380
        oprot.writeBool(this.success);
-
 
61381
        oprot.writeFieldEnd();
-
 
61382
      }
-
 
61383
      oprot.writeFieldStop();
-
 
61384
      oprot.writeStructEnd();
-
 
61385
    }
-
 
61386
 
-
 
61387
    @Override
-
 
61388
    public String toString() {
-
 
61389
      StringBuilder sb = new StringBuilder("changePrivateDealUserStatus_result(");
-
 
61390
      boolean first = true;
-
 
61391
 
-
 
61392
      sb.append("success:");
-
 
61393
      sb.append(this.success);
-
 
61394
      first = false;
-
 
61395
      sb.append(")");
-
 
61396
      return sb.toString();
-
 
61397
    }
-
 
61398
 
-
 
61399
    public void validate() throws org.apache.thrift.TException {
-
 
61400
      // check for required fields
-
 
61401
    }
-
 
61402
 
-
 
61403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61404
      try {
-
 
61405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61406
      } catch (org.apache.thrift.TException te) {
-
 
61407
        throw new java.io.IOException(te);
-
 
61408
      }
-
 
61409
    }
-
 
61410
 
-
 
61411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61412
      try {
-
 
61413
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61414
      } catch (org.apache.thrift.TException te) {
-
 
61415
        throw new java.io.IOException(te);
-
 
61416
      }
-
 
61417
    }
-
 
61418
 
-
 
61419
  }
-
 
61420
 
-
 
61421
  public static class getPrivateDealUser_args implements org.apache.thrift.TBase<getPrivateDealUser_args, getPrivateDealUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
61422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealUser_args");
-
 
61423
 
-
 
61424
    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);
-
 
61425
 
-
 
61426
    private long userId; // required
-
 
61427
 
-
 
61428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61430
      USER_ID((short)1, "userId");
-
 
61431
 
-
 
61432
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61433
 
-
 
61434
      static {
-
 
61435
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61436
          byName.put(field.getFieldName(), field);
-
 
61437
        }
-
 
61438
      }
-
 
61439
 
-
 
61440
      /**
-
 
61441
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61442
       */
-
 
61443
      public static _Fields findByThriftId(int fieldId) {
-
 
61444
        switch(fieldId) {
-
 
61445
          case 1: // USER_ID
-
 
61446
            return USER_ID;
-
 
61447
          default:
-
 
61448
            return null;
-
 
61449
        }
-
 
61450
      }
-
 
61451
 
-
 
61452
      /**
-
 
61453
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61454
       * if it is not found.
-
 
61455
       */
-
 
61456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61457
        _Fields fields = findByThriftId(fieldId);
-
 
61458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61459
        return fields;
-
 
61460
      }
-
 
61461
 
-
 
61462
      /**
-
 
61463
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61464
       */
-
 
61465
      public static _Fields findByName(String name) {
-
 
61466
        return byName.get(name);
-
 
61467
      }
-
 
61468
 
-
 
61469
      private final short _thriftId;
-
 
61470
      private final String _fieldName;
-
 
61471
 
-
 
61472
      _Fields(short thriftId, String fieldName) {
-
 
61473
        _thriftId = thriftId;
-
 
61474
        _fieldName = fieldName;
-
 
61475
      }
-
 
61476
 
-
 
61477
      public short getThriftFieldId() {
-
 
61478
        return _thriftId;
-
 
61479
      }
-
 
61480
 
-
 
61481
      public String getFieldName() {
-
 
61482
        return _fieldName;
-
 
61483
      }
-
 
61484
    }
-
 
61485
 
-
 
61486
    // isset id assignments
-
 
61487
    private static final int __USERID_ISSET_ID = 0;
-
 
61488
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
61489
 
-
 
61490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61491
    static {
-
 
61492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61493
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
61495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealUser_args.class, metaDataMap);
-
 
61497
    }
-
 
61498
 
-
 
61499
    public getPrivateDealUser_args() {
-
 
61500
    }
-
 
61501
 
-
 
61502
    public getPrivateDealUser_args(
-
 
61503
      long userId)
-
 
61504
    {
-
 
61505
      this();
-
 
61506
      this.userId = userId;
-
 
61507
      setUserIdIsSet(true);
-
 
61508
    }
-
 
61509
 
-
 
61510
    /**
-
 
61511
     * Performs a deep copy on <i>other</i>.
-
 
61512
     */
-
 
61513
    public getPrivateDealUser_args(getPrivateDealUser_args other) {
-
 
61514
      __isset_bit_vector.clear();
-
 
61515
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
61516
      this.userId = other.userId;
-
 
61517
    }
-
 
61518
 
-
 
61519
    public getPrivateDealUser_args deepCopy() {
-
 
61520
      return new getPrivateDealUser_args(this);
-
 
61521
    }
-
 
61522
 
-
 
61523
    @Override
-
 
61524
    public void clear() {
-
 
61525
      setUserIdIsSet(false);
-
 
61526
      this.userId = 0;
-
 
61527
    }
-
 
61528
 
-
 
61529
    public long getUserId() {
-
 
61530
      return this.userId;
-
 
61531
    }
-
 
61532
 
-
 
61533
    public void setUserId(long userId) {
-
 
61534
      this.userId = userId;
-
 
61535
      setUserIdIsSet(true);
-
 
61536
    }
-
 
61537
 
-
 
61538
    public void unsetUserId() {
-
 
61539
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
61540
    }
-
 
61541
 
-
 
61542
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
61543
    public boolean isSetUserId() {
-
 
61544
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
61545
    }
-
 
61546
 
-
 
61547
    public void setUserIdIsSet(boolean value) {
-
 
61548
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
61549
    }
-
 
61550
 
-
 
61551
    public void setFieldValue(_Fields field, Object value) {
-
 
61552
      switch (field) {
-
 
61553
      case USER_ID:
-
 
61554
        if (value == null) {
-
 
61555
          unsetUserId();
-
 
61556
        } else {
-
 
61557
          setUserId((Long)value);
-
 
61558
        }
-
 
61559
        break;
-
 
61560
 
-
 
61561
      }
-
 
61562
    }
-
 
61563
 
-
 
61564
    public Object getFieldValue(_Fields field) {
-
 
61565
      switch (field) {
-
 
61566
      case USER_ID:
-
 
61567
        return Long.valueOf(getUserId());
-
 
61568
 
-
 
61569
      }
-
 
61570
      throw new IllegalStateException();
-
 
61571
    }
-
 
61572
 
-
 
61573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61574
    public boolean isSet(_Fields field) {
-
 
61575
      if (field == null) {
-
 
61576
        throw new IllegalArgumentException();
-
 
61577
      }
-
 
61578
 
-
 
61579
      switch (field) {
-
 
61580
      case USER_ID:
-
 
61581
        return isSetUserId();
-
 
61582
      }
-
 
61583
      throw new IllegalStateException();
-
 
61584
    }
-
 
61585
 
-
 
61586
    @Override
-
 
61587
    public boolean equals(Object that) {
-
 
61588
      if (that == null)
-
 
61589
        return false;
-
 
61590
      if (that instanceof getPrivateDealUser_args)
-
 
61591
        return this.equals((getPrivateDealUser_args)that);
-
 
61592
      return false;
-
 
61593
    }
-
 
61594
 
-
 
61595
    public boolean equals(getPrivateDealUser_args that) {
-
 
61596
      if (that == null)
-
 
61597
        return false;
-
 
61598
 
-
 
61599
      boolean this_present_userId = true;
-
 
61600
      boolean that_present_userId = true;
-
 
61601
      if (this_present_userId || that_present_userId) {
-
 
61602
        if (!(this_present_userId && that_present_userId))
-
 
61603
          return false;
-
 
61604
        if (this.userId != that.userId)
-
 
61605
          return false;
-
 
61606
      }
-
 
61607
 
-
 
61608
      return true;
-
 
61609
    }
-
 
61610
 
-
 
61611
    @Override
-
 
61612
    public int hashCode() {
-
 
61613
      return 0;
-
 
61614
    }
-
 
61615
 
-
 
61616
    public int compareTo(getPrivateDealUser_args other) {
-
 
61617
      if (!getClass().equals(other.getClass())) {
-
 
61618
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61619
      }
-
 
61620
 
-
 
61621
      int lastComparison = 0;
-
 
61622
      getPrivateDealUser_args typedOther = (getPrivateDealUser_args)other;
-
 
61623
 
-
 
61624
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
61625
      if (lastComparison != 0) {
-
 
61626
        return lastComparison;
-
 
61627
      }
-
 
61628
      if (isSetUserId()) {
-
 
61629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
61630
        if (lastComparison != 0) {
-
 
61631
          return lastComparison;
-
 
61632
        }
-
 
61633
      }
-
 
61634
      return 0;
-
 
61635
    }
-
 
61636
 
-
 
61637
    public _Fields fieldForId(int fieldId) {
-
 
61638
      return _Fields.findByThriftId(fieldId);
-
 
61639
    }
-
 
61640
 
-
 
61641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61642
      org.apache.thrift.protocol.TField field;
-
 
61643
      iprot.readStructBegin();
-
 
61644
      while (true)
-
 
61645
      {
-
 
61646
        field = iprot.readFieldBegin();
-
 
61647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61648
          break;
-
 
61649
        }
-
 
61650
        switch (field.id) {
-
 
61651
          case 1: // USER_ID
-
 
61652
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
61653
              this.userId = iprot.readI64();
-
 
61654
              setUserIdIsSet(true);
-
 
61655
            } else { 
-
 
61656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61657
            }
-
 
61658
            break;
-
 
61659
          default:
-
 
61660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61661
        }
-
 
61662
        iprot.readFieldEnd();
-
 
61663
      }
-
 
61664
      iprot.readStructEnd();
-
 
61665
      validate();
-
 
61666
    }
-
 
61667
 
-
 
61668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61669
      validate();
-
 
61670
 
-
 
61671
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61672
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
61673
      oprot.writeI64(this.userId);
-
 
61674
      oprot.writeFieldEnd();
-
 
61675
      oprot.writeFieldStop();
-
 
61676
      oprot.writeStructEnd();
-
 
61677
    }
-
 
61678
 
-
 
61679
    @Override
-
 
61680
    public String toString() {
-
 
61681
      StringBuilder sb = new StringBuilder("getPrivateDealUser_args(");
-
 
61682
      boolean first = true;
-
 
61683
 
-
 
61684
      sb.append("userId:");
-
 
61685
      sb.append(this.userId);
-
 
61686
      first = false;
-
 
61687
      sb.append(")");
-
 
61688
      return sb.toString();
-
 
61689
    }
-
 
61690
 
-
 
61691
    public void validate() throws org.apache.thrift.TException {
-
 
61692
      // check for required fields
-
 
61693
    }
-
 
61694
 
-
 
61695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61696
      try {
-
 
61697
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61698
      } catch (org.apache.thrift.TException te) {
-
 
61699
        throw new java.io.IOException(te);
-
 
61700
      }
-
 
61701
    }
-
 
61702
 
-
 
61703
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61704
      try {
-
 
61705
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
61706
        __isset_bit_vector = new BitSet(1);
-
 
61707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61708
      } catch (org.apache.thrift.TException te) {
-
 
61709
        throw new java.io.IOException(te);
-
 
61710
      }
-
 
61711
    }
-
 
61712
 
-
 
61713
  }
-
 
61714
 
-
 
61715
  public static class getPrivateDealUser_result implements org.apache.thrift.TBase<getPrivateDealUser_result, getPrivateDealUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealUser_result");
-
 
61717
 
-
 
61718
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
61719
 
-
 
61720
    private PrivateDealUser success; // required
-
 
61721
 
-
 
61722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61724
      SUCCESS((short)0, "success");
-
 
61725
 
-
 
61726
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61727
 
-
 
61728
      static {
-
 
61729
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61730
          byName.put(field.getFieldName(), field);
-
 
61731
        }
-
 
61732
      }
-
 
61733
 
-
 
61734
      /**
-
 
61735
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61736
       */
-
 
61737
      public static _Fields findByThriftId(int fieldId) {
-
 
61738
        switch(fieldId) {
-
 
61739
          case 0: // SUCCESS
-
 
61740
            return SUCCESS;
-
 
61741
          default:
-
 
61742
            return null;
-
 
61743
        }
-
 
61744
      }
-
 
61745
 
-
 
61746
      /**
-
 
61747
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61748
       * if it is not found.
-
 
61749
       */
-
 
61750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61751
        _Fields fields = findByThriftId(fieldId);
-
 
61752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61753
        return fields;
-
 
61754
      }
-
 
61755
 
-
 
61756
      /**
-
 
61757
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61758
       */
-
 
61759
      public static _Fields findByName(String name) {
-
 
61760
        return byName.get(name);
-
 
61761
      }
-
 
61762
 
-
 
61763
      private final short _thriftId;
-
 
61764
      private final String _fieldName;
-
 
61765
 
-
 
61766
      _Fields(short thriftId, String fieldName) {
-
 
61767
        _thriftId = thriftId;
-
 
61768
        _fieldName = fieldName;
-
 
61769
      }
-
 
61770
 
-
 
61771
      public short getThriftFieldId() {
-
 
61772
        return _thriftId;
-
 
61773
      }
-
 
61774
 
-
 
61775
      public String getFieldName() {
-
 
61776
        return _fieldName;
-
 
61777
      }
-
 
61778
    }
-
 
61779
 
-
 
61780
    // isset id assignments
-
 
61781
 
-
 
61782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61783
    static {
-
 
61784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61785
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61786
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDealUser.class)));
-
 
61787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealUser_result.class, metaDataMap);
-
 
61789
    }
-
 
61790
 
-
 
61791
    public getPrivateDealUser_result() {
-
 
61792
    }
-
 
61793
 
-
 
61794
    public getPrivateDealUser_result(
-
 
61795
      PrivateDealUser success)
-
 
61796
    {
-
 
61797
      this();
-
 
61798
      this.success = success;
-
 
61799
    }
-
 
61800
 
-
 
61801
    /**
-
 
61802
     * Performs a deep copy on <i>other</i>.
-
 
61803
     */
-
 
61804
    public getPrivateDealUser_result(getPrivateDealUser_result other) {
-
 
61805
      if (other.isSetSuccess()) {
-
 
61806
        this.success = new PrivateDealUser(other.success);
-
 
61807
      }
-
 
61808
    }
-
 
61809
 
-
 
61810
    public getPrivateDealUser_result deepCopy() {
-
 
61811
      return new getPrivateDealUser_result(this);
-
 
61812
    }
-
 
61813
 
-
 
61814
    @Override
-
 
61815
    public void clear() {
-
 
61816
      this.success = null;
-
 
61817
    }
-
 
61818
 
-
 
61819
    public PrivateDealUser getSuccess() {
-
 
61820
      return this.success;
-
 
61821
    }
-
 
61822
 
-
 
61823
    public void setSuccess(PrivateDealUser success) {
-
 
61824
      this.success = success;
-
 
61825
    }
-
 
61826
 
-
 
61827
    public void unsetSuccess() {
-
 
61828
      this.success = null;
-
 
61829
    }
-
 
61830
 
-
 
61831
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
61832
    public boolean isSetSuccess() {
-
 
61833
      return this.success != null;
-
 
61834
    }
-
 
61835
 
-
 
61836
    public void setSuccessIsSet(boolean value) {
-
 
61837
      if (!value) {
-
 
61838
        this.success = null;
-
 
61839
      }
-
 
61840
    }
-
 
61841
 
-
 
61842
    public void setFieldValue(_Fields field, Object value) {
-
 
61843
      switch (field) {
-
 
61844
      case SUCCESS:
-
 
61845
        if (value == null) {
-
 
61846
          unsetSuccess();
-
 
61847
        } else {
-
 
61848
          setSuccess((PrivateDealUser)value);
-
 
61849
        }
-
 
61850
        break;
-
 
61851
 
-
 
61852
      }
-
 
61853
    }
-
 
61854
 
-
 
61855
    public Object getFieldValue(_Fields field) {
-
 
61856
      switch (field) {
-
 
61857
      case SUCCESS:
-
 
61858
        return getSuccess();
-
 
61859
 
-
 
61860
      }
-
 
61861
      throw new IllegalStateException();
-
 
61862
    }
-
 
61863
 
-
 
61864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61865
    public boolean isSet(_Fields field) {
-
 
61866
      if (field == null) {
-
 
61867
        throw new IllegalArgumentException();
-
 
61868
      }
-
 
61869
 
-
 
61870
      switch (field) {
-
 
61871
      case SUCCESS:
-
 
61872
        return isSetSuccess();
-
 
61873
      }
-
 
61874
      throw new IllegalStateException();
-
 
61875
    }
-
 
61876
 
-
 
61877
    @Override
-
 
61878
    public boolean equals(Object that) {
-
 
61879
      if (that == null)
-
 
61880
        return false;
-
 
61881
      if (that instanceof getPrivateDealUser_result)
-
 
61882
        return this.equals((getPrivateDealUser_result)that);
-
 
61883
      return false;
-
 
61884
    }
-
 
61885
 
-
 
61886
    public boolean equals(getPrivateDealUser_result that) {
-
 
61887
      if (that == null)
-
 
61888
        return false;
-
 
61889
 
-
 
61890
      boolean this_present_success = true && this.isSetSuccess();
-
 
61891
      boolean that_present_success = true && that.isSetSuccess();
-
 
61892
      if (this_present_success || that_present_success) {
-
 
61893
        if (!(this_present_success && that_present_success))
-
 
61894
          return false;
-
 
61895
        if (!this.success.equals(that.success))
-
 
61896
          return false;
-
 
61897
      }
-
 
61898
 
-
 
61899
      return true;
-
 
61900
    }
-
 
61901
 
-
 
61902
    @Override
-
 
61903
    public int hashCode() {
-
 
61904
      return 0;
-
 
61905
    }
-
 
61906
 
-
 
61907
    public int compareTo(getPrivateDealUser_result other) {
-
 
61908
      if (!getClass().equals(other.getClass())) {
-
 
61909
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61910
      }
-
 
61911
 
-
 
61912
      int lastComparison = 0;
-
 
61913
      getPrivateDealUser_result typedOther = (getPrivateDealUser_result)other;
-
 
61914
 
-
 
61915
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
61916
      if (lastComparison != 0) {
-
 
61917
        return lastComparison;
-
 
61918
      }
-
 
61919
      if (isSetSuccess()) {
-
 
61920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
61921
        if (lastComparison != 0) {
-
 
61922
          return lastComparison;
-
 
61923
        }
-
 
61924
      }
-
 
61925
      return 0;
-
 
61926
    }
-
 
61927
 
-
 
61928
    public _Fields fieldForId(int fieldId) {
-
 
61929
      return _Fields.findByThriftId(fieldId);
-
 
61930
    }
-
 
61931
 
-
 
61932
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61933
      org.apache.thrift.protocol.TField field;
-
 
61934
      iprot.readStructBegin();
-
 
61935
      while (true)
-
 
61936
      {
-
 
61937
        field = iprot.readFieldBegin();
-
 
61938
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61939
          break;
-
 
61940
        }
-
 
61941
        switch (field.id) {
-
 
61942
          case 0: // SUCCESS
-
 
61943
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
61944
              this.success = new PrivateDealUser();
-
 
61945
              this.success.read(iprot);
-
 
61946
            } else { 
-
 
61947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61948
            }
-
 
61949
            break;
-
 
61950
          default:
-
 
61951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61952
        }
-
 
61953
        iprot.readFieldEnd();
-
 
61954
      }
-
 
61955
      iprot.readStructEnd();
-
 
61956
      validate();
-
 
61957
    }
-
 
61958
 
-
 
61959
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61960
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61961
 
-
 
61962
      if (this.isSetSuccess()) {
-
 
61963
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
61964
        this.success.write(oprot);
-
 
61965
        oprot.writeFieldEnd();
-
 
61966
      }
-
 
61967
      oprot.writeFieldStop();
-
 
61968
      oprot.writeStructEnd();
-
 
61969
    }
-
 
61970
 
-
 
61971
    @Override
-
 
61972
    public String toString() {
-
 
61973
      StringBuilder sb = new StringBuilder("getPrivateDealUser_result(");
-
 
61974
      boolean first = true;
-
 
61975
 
-
 
61976
      sb.append("success:");
-
 
61977
      if (this.success == null) {
-
 
61978
        sb.append("null");
-
 
61979
      } else {
-
 
61980
        sb.append(this.success);
-
 
61981
      }
-
 
61982
      first = false;
-
 
61983
      sb.append(")");
-
 
61984
      return sb.toString();
-
 
61985
    }
-
 
61986
 
59908
    public void validate() throws org.apache.thrift.TException {
61987
    public void validate() throws org.apache.thrift.TException {
59909
      // check for required fields
61988
      // check for required fields
59910
    }
61989
    }
59911
 
61990
 
59912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61991
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {