Subversion Repositories SmartDukaan

Rev

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

Rev 15251 Rev 17782
Line 365... Line 365...
365
 
365
 
366
    public String getActiveAccessTokenForUser(long userId, String source) throws org.apache.thrift.TException;
366
    public String getActiveAccessTokenForUser(long userId, String source) throws org.apache.thrift.TException;
367
 
367
 
368
    public boolean validateAccessToken(String accessToken) throws org.apache.thrift.TException;
368
    public boolean validateAccessToken(String accessToken) throws org.apache.thrift.TException;
369
 
369
 
-
 
370
    public boolean addItemsToCart(long cartId, List<ItemQuantity> itemQty, String couponCode) throws org.apache.thrift.TException;
-
 
371
 
-
 
372
    public String validateCartNew(long cartId, String pinCode, long sourceId) throws org.apache.thrift.TException;
-
 
373
 
370
  }
374
  }
371
 
375
 
372
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
376
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
373
 
377
 
374
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
378
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 535... Line 539...
535
 
539
 
536
    public void getActiveAccessTokenForUser(long userId, String source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveAccessTokenForUser_call> resultHandler) throws org.apache.thrift.TException;
540
    public void getActiveAccessTokenForUser(long userId, String source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveAccessTokenForUser_call> resultHandler) throws org.apache.thrift.TException;
537
 
541
 
538
    public void validateAccessToken(String accessToken, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateAccessToken_call> resultHandler) throws org.apache.thrift.TException;
542
    public void validateAccessToken(String accessToken, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateAccessToken_call> resultHandler) throws org.apache.thrift.TException;
539
 
543
 
-
 
544
    public void addItemsToCart(long cartId, List<ItemQuantity> itemQty, String couponCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemsToCart_call> resultHandler) throws org.apache.thrift.TException;
-
 
545
 
-
 
546
    public void validateCartNew(long cartId, String pinCode, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartNew_call> resultHandler) throws org.apache.thrift.TException;
-
 
547
 
540
  }
548
  }
541
 
549
 
542
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
550
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
543
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
551
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
544
      public Factory() {}
552
      public Factory() {}
Line 2672... Line 2680...
2672
        return result.success;
2680
        return result.success;
2673
      }
2681
      }
2674
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateAccessToken failed: unknown result");
2682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateAccessToken failed: unknown result");
2675
    }
2683
    }
2676
 
2684
 
-
 
2685
    public boolean addItemsToCart(long cartId, List<ItemQuantity> itemQty, String couponCode) throws org.apache.thrift.TException
-
 
2686
    {
-
 
2687
      send_addItemsToCart(cartId, itemQty, couponCode);
-
 
2688
      return recv_addItemsToCart();
-
 
2689
    }
-
 
2690
 
-
 
2691
    public void send_addItemsToCart(long cartId, List<ItemQuantity> itemQty, String couponCode) throws org.apache.thrift.TException
-
 
2692
    {
-
 
2693
      addItemsToCart_args args = new addItemsToCart_args();
-
 
2694
      args.setCartId(cartId);
-
 
2695
      args.setItemQty(itemQty);
-
 
2696
      args.setCouponCode(couponCode);
-
 
2697
      sendBase("addItemsToCart", args);
-
 
2698
    }
-
 
2699
 
-
 
2700
    public boolean recv_addItemsToCart() throws org.apache.thrift.TException
-
 
2701
    {
-
 
2702
      addItemsToCart_result result = new addItemsToCart_result();
-
 
2703
      receiveBase(result, "addItemsToCart");
-
 
2704
      if (result.isSetSuccess()) {
-
 
2705
        return result.success;
-
 
2706
      }
-
 
2707
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItemsToCart failed: unknown result");
-
 
2708
    }
-
 
2709
 
-
 
2710
    public String validateCartNew(long cartId, String pinCode, long sourceId) throws org.apache.thrift.TException
-
 
2711
    {
-
 
2712
      send_validateCartNew(cartId, pinCode, sourceId);
-
 
2713
      return recv_validateCartNew();
-
 
2714
    }
-
 
2715
 
-
 
2716
    public void send_validateCartNew(long cartId, String pinCode, long sourceId) throws org.apache.thrift.TException
-
 
2717
    {
-
 
2718
      validateCartNew_args args = new validateCartNew_args();
-
 
2719
      args.setCartId(cartId);
-
 
2720
      args.setPinCode(pinCode);
-
 
2721
      args.setSourceId(sourceId);
-
 
2722
      sendBase("validateCartNew", args);
-
 
2723
    }
-
 
2724
 
-
 
2725
    public String recv_validateCartNew() throws org.apache.thrift.TException
-
 
2726
    {
-
 
2727
      validateCartNew_result result = new validateCartNew_result();
-
 
2728
      receiveBase(result, "validateCartNew");
-
 
2729
      if (result.isSetSuccess()) {
-
 
2730
        return result.success;
-
 
2731
      }
-
 
2732
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCartNew failed: unknown result");
-
 
2733
    }
-
 
2734
 
2677
  }
2735
  }
2678
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2736
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2679
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2737
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2680
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2738
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2681
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2739
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5555... Line 5613...
5555
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5613
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5556
        return (new Client(prot)).recv_validateAccessToken();
5614
        return (new Client(prot)).recv_validateAccessToken();
5557
      }
5615
      }
5558
    }
5616
    }
5559
 
5617
 
-
 
5618
    public void addItemsToCart(long cartId, List<ItemQuantity> itemQty, String couponCode, org.apache.thrift.async.AsyncMethodCallback<addItemsToCart_call> resultHandler) throws org.apache.thrift.TException {
-
 
5619
      checkReady();
-
 
5620
      addItemsToCart_call method_call = new addItemsToCart_call(cartId, itemQty, couponCode, resultHandler, this, ___protocolFactory, ___transport);
-
 
5621
      this.___currentMethod = method_call;
-
 
5622
      ___manager.call(method_call);
-
 
5623
    }
-
 
5624
 
-
 
5625
    public static class addItemsToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5626
      private long cartId;
-
 
5627
      private List<ItemQuantity> itemQty;
-
 
5628
      private String couponCode;
-
 
5629
      public addItemsToCart_call(long cartId, List<ItemQuantity> itemQty, String couponCode, org.apache.thrift.async.AsyncMethodCallback<addItemsToCart_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 {
-
 
5630
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5631
        this.cartId = cartId;
-
 
5632
        this.itemQty = itemQty;
-
 
5633
        this.couponCode = couponCode;
-
 
5634
      }
-
 
5635
 
-
 
5636
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5637
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItemsToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5638
        addItemsToCart_args args = new addItemsToCart_args();
-
 
5639
        args.setCartId(cartId);
-
 
5640
        args.setItemQty(itemQty);
-
 
5641
        args.setCouponCode(couponCode);
-
 
5642
        args.write(prot);
-
 
5643
        prot.writeMessageEnd();
-
 
5644
      }
-
 
5645
 
-
 
5646
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5647
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5648
          throw new IllegalStateException("Method call not finished!");
-
 
5649
        }
-
 
5650
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5651
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5652
        return (new Client(prot)).recv_addItemsToCart();
-
 
5653
      }
-
 
5654
    }
-
 
5655
 
-
 
5656
    public void validateCartNew(long cartId, String pinCode, long sourceId, org.apache.thrift.async.AsyncMethodCallback<validateCartNew_call> resultHandler) throws org.apache.thrift.TException {
-
 
5657
      checkReady();
-
 
5658
      validateCartNew_call method_call = new validateCartNew_call(cartId, pinCode, sourceId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5659
      this.___currentMethod = method_call;
-
 
5660
      ___manager.call(method_call);
-
 
5661
    }
-
 
5662
 
-
 
5663
    public static class validateCartNew_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5664
      private long cartId;
-
 
5665
      private String pinCode;
-
 
5666
      private long sourceId;
-
 
5667
      public validateCartNew_call(long cartId, String pinCode, long sourceId, org.apache.thrift.async.AsyncMethodCallback<validateCartNew_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 {
-
 
5668
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5669
        this.cartId = cartId;
-
 
5670
        this.pinCode = pinCode;
-
 
5671
        this.sourceId = sourceId;
-
 
5672
      }
-
 
5673
 
-
 
5674
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5675
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCartNew", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5676
        validateCartNew_args args = new validateCartNew_args();
-
 
5677
        args.setCartId(cartId);
-
 
5678
        args.setPinCode(pinCode);
-
 
5679
        args.setSourceId(sourceId);
-
 
5680
        args.write(prot);
-
 
5681
        prot.writeMessageEnd();
-
 
5682
      }
-
 
5683
 
-
 
5684
      public String getResult() throws org.apache.thrift.TException {
-
 
5685
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5686
          throw new IllegalStateException("Method call not finished!");
-
 
5687
        }
-
 
5688
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5689
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5690
        return (new Client(prot)).recv_validateCartNew();
-
 
5691
      }
-
 
5692
    }
-
 
5693
 
5560
  }
5694
  }
5561
 
5695
 
5562
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5696
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5563
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5697
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5564
    public Processor(I iface) {
5698
    public Processor(I iface) {
Line 5651... Line 5785...
5651
      processMap.put("registerCounter", new registerCounter());
5785
      processMap.put("registerCounter", new registerCounter());
5652
      processMap.put("searchCounter", new searchCounter());
5786
      processMap.put("searchCounter", new searchCounter());
5653
      processMap.put("getAllUsersByCounter", new getAllUsersByCounter());
5787
      processMap.put("getAllUsersByCounter", new getAllUsersByCounter());
5654
      processMap.put("getActiveAccessTokenForUser", new getActiveAccessTokenForUser());
5788
      processMap.put("getActiveAccessTokenForUser", new getActiveAccessTokenForUser());
5655
      processMap.put("validateAccessToken", new validateAccessToken());
5789
      processMap.put("validateAccessToken", new validateAccessToken());
-
 
5790
      processMap.put("addItemsToCart", new addItemsToCart());
-
 
5791
      processMap.put("validateCartNew", new validateCartNew());
5656
      return processMap;
5792
      return processMap;
5657
    }
5793
    }
5658
 
5794
 
5659
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5795
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5660
      public createAnonymousUser() {
5796
      public createAnonymousUser() {
Line 7248... Line 7384...
7248
        result.setSuccessIsSet(true);
7384
        result.setSuccessIsSet(true);
7249
        return result;
7385
        return result;
7250
      }
7386
      }
7251
    }
7387
    }
7252
 
7388
 
-
 
7389
    private static class addItemsToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemsToCart_args> {
-
 
7390
      public addItemsToCart() {
-
 
7391
        super("addItemsToCart");
-
 
7392
      }
-
 
7393
 
-
 
7394
      protected addItemsToCart_args getEmptyArgsInstance() {
-
 
7395
        return new addItemsToCart_args();
-
 
7396
      }
-
 
7397
 
-
 
7398
      protected addItemsToCart_result getResult(I iface, addItemsToCart_args args) throws org.apache.thrift.TException {
-
 
7399
        addItemsToCart_result result = new addItemsToCart_result();
-
 
7400
        result.success = iface.addItemsToCart(args.cartId, args.itemQty, args.couponCode);
-
 
7401
        result.setSuccessIsSet(true);
-
 
7402
        return result;
-
 
7403
      }
-
 
7404
    }
-
 
7405
 
-
 
7406
    private static class validateCartNew<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateCartNew_args> {
-
 
7407
      public validateCartNew() {
-
 
7408
        super("validateCartNew");
-
 
7409
      }
-
 
7410
 
-
 
7411
      protected validateCartNew_args getEmptyArgsInstance() {
-
 
7412
        return new validateCartNew_args();
-
 
7413
      }
-
 
7414
 
-
 
7415
      protected validateCartNew_result getResult(I iface, validateCartNew_args args) throws org.apache.thrift.TException {
-
 
7416
        validateCartNew_result result = new validateCartNew_result();
-
 
7417
        result.success = iface.validateCartNew(args.cartId, args.pinCode, args.sourceId);
-
 
7418
        return result;
-
 
7419
      }
-
 
7420
    }
-
 
7421
 
7253
  }
7422
  }
7254
 
7423
 
7255
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7424
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7257
 
7426
 
Line 66770... Line 66939...
66770
      first = false;
66939
      first = false;
66771
      sb.append(")");
66940
      sb.append(")");
66772
      return sb.toString();
66941
      return sb.toString();
66773
    }
66942
    }
66774
 
66943
 
-
 
66944
    public void validate() throws org.apache.thrift.TException {
-
 
66945
      // check for required fields
-
 
66946
    }
-
 
66947
 
-
 
66948
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
66949
      try {
-
 
66950
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
66951
      } catch (org.apache.thrift.TException te) {
-
 
66952
        throw new java.io.IOException(te);
-
 
66953
      }
-
 
66954
    }
-
 
66955
 
-
 
66956
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
66957
      try {
-
 
66958
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
66959
        __isset_bit_vector = new BitSet(1);
-
 
66960
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
66961
      } catch (org.apache.thrift.TException te) {
-
 
66962
        throw new java.io.IOException(te);
-
 
66963
      }
-
 
66964
    }
-
 
66965
 
-
 
66966
  }
-
 
66967
 
-
 
66968
  public static class addItemsToCart_args implements org.apache.thrift.TBase<addItemsToCart_args, addItemsToCart_args._Fields>, java.io.Serializable, Cloneable   {
-
 
66969
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemsToCart_args");
-
 
66970
 
-
 
66971
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
66972
    private static final org.apache.thrift.protocol.TField ITEM_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("itemQty", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
66973
    private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("couponCode", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
66974
 
-
 
66975
    private long cartId; // required
-
 
66976
    private List<ItemQuantity> itemQty; // required
-
 
66977
    private String couponCode; // required
-
 
66978
 
-
 
66979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
66980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
66981
      CART_ID((short)1, "cartId"),
-
 
66982
      ITEM_QTY((short)2, "itemQty"),
-
 
66983
      COUPON_CODE((short)3, "couponCode");
-
 
66984
 
-
 
66985
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
66986
 
-
 
66987
      static {
-
 
66988
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
66989
          byName.put(field.getFieldName(), field);
-
 
66990
        }
-
 
66991
      }
-
 
66992
 
-
 
66993
      /**
-
 
66994
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
66995
       */
-
 
66996
      public static _Fields findByThriftId(int fieldId) {
-
 
66997
        switch(fieldId) {
-
 
66998
          case 1: // CART_ID
-
 
66999
            return CART_ID;
-
 
67000
          case 2: // ITEM_QTY
-
 
67001
            return ITEM_QTY;
-
 
67002
          case 3: // COUPON_CODE
-
 
67003
            return COUPON_CODE;
-
 
67004
          default:
-
 
67005
            return null;
-
 
67006
        }
-
 
67007
      }
-
 
67008
 
-
 
67009
      /**
-
 
67010
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
67011
       * if it is not found.
-
 
67012
       */
-
 
67013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
67014
        _Fields fields = findByThriftId(fieldId);
-
 
67015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
67016
        return fields;
-
 
67017
      }
-
 
67018
 
-
 
67019
      /**
-
 
67020
       * Find the _Fields constant that matches name, or null if its not found.
-
 
67021
       */
-
 
67022
      public static _Fields findByName(String name) {
-
 
67023
        return byName.get(name);
-
 
67024
      }
-
 
67025
 
-
 
67026
      private final short _thriftId;
-
 
67027
      private final String _fieldName;
-
 
67028
 
-
 
67029
      _Fields(short thriftId, String fieldName) {
-
 
67030
        _thriftId = thriftId;
-
 
67031
        _fieldName = fieldName;
-
 
67032
      }
-
 
67033
 
-
 
67034
      public short getThriftFieldId() {
-
 
67035
        return _thriftId;
-
 
67036
      }
-
 
67037
 
-
 
67038
      public String getFieldName() {
-
 
67039
        return _fieldName;
-
 
67040
      }
-
 
67041
    }
-
 
67042
 
-
 
67043
    // isset id assignments
-
 
67044
    private static final int __CARTID_ISSET_ID = 0;
-
 
67045
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
67046
 
-
 
67047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
67048
    static {
-
 
67049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
67050
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
67052
      tmpMap.put(_Fields.ITEM_QTY, new org.apache.thrift.meta_data.FieldMetaData("itemQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67053
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
67054
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemQuantity.class))));
-
 
67055
      tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("couponCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
67057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
67058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemsToCart_args.class, metaDataMap);
-
 
67059
    }
-
 
67060
 
-
 
67061
    public addItemsToCart_args() {
-
 
67062
    }
-
 
67063
 
-
 
67064
    public addItemsToCart_args(
-
 
67065
      long cartId,
-
 
67066
      List<ItemQuantity> itemQty,
-
 
67067
      String couponCode)
-
 
67068
    {
-
 
67069
      this();
-
 
67070
      this.cartId = cartId;
-
 
67071
      setCartIdIsSet(true);
-
 
67072
      this.itemQty = itemQty;
-
 
67073
      this.couponCode = couponCode;
-
 
67074
    }
-
 
67075
 
-
 
67076
    /**
-
 
67077
     * Performs a deep copy on <i>other</i>.
-
 
67078
     */
-
 
67079
    public addItemsToCart_args(addItemsToCart_args other) {
-
 
67080
      __isset_bit_vector.clear();
-
 
67081
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
67082
      this.cartId = other.cartId;
-
 
67083
      if (other.isSetItemQty()) {
-
 
67084
        List<ItemQuantity> __this__itemQty = new ArrayList<ItemQuantity>();
-
 
67085
        for (ItemQuantity other_element : other.itemQty) {
-
 
67086
          __this__itemQty.add(new ItemQuantity(other_element));
-
 
67087
        }
-
 
67088
        this.itemQty = __this__itemQty;
-
 
67089
      }
-
 
67090
      if (other.isSetCouponCode()) {
-
 
67091
        this.couponCode = other.couponCode;
-
 
67092
      }
-
 
67093
    }
-
 
67094
 
-
 
67095
    public addItemsToCart_args deepCopy() {
-
 
67096
      return new addItemsToCart_args(this);
-
 
67097
    }
-
 
67098
 
-
 
67099
    @Override
-
 
67100
    public void clear() {
-
 
67101
      setCartIdIsSet(false);
-
 
67102
      this.cartId = 0;
-
 
67103
      this.itemQty = null;
-
 
67104
      this.couponCode = null;
-
 
67105
    }
-
 
67106
 
-
 
67107
    public long getCartId() {
-
 
67108
      return this.cartId;
-
 
67109
    }
-
 
67110
 
-
 
67111
    public void setCartId(long cartId) {
-
 
67112
      this.cartId = cartId;
-
 
67113
      setCartIdIsSet(true);
-
 
67114
    }
-
 
67115
 
-
 
67116
    public void unsetCartId() {
-
 
67117
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
67118
    }
-
 
67119
 
-
 
67120
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
67121
    public boolean isSetCartId() {
-
 
67122
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
67123
    }
-
 
67124
 
-
 
67125
    public void setCartIdIsSet(boolean value) {
-
 
67126
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
67127
    }
-
 
67128
 
-
 
67129
    public int getItemQtySize() {
-
 
67130
      return (this.itemQty == null) ? 0 : this.itemQty.size();
-
 
67131
    }
-
 
67132
 
-
 
67133
    public java.util.Iterator<ItemQuantity> getItemQtyIterator() {
-
 
67134
      return (this.itemQty == null) ? null : this.itemQty.iterator();
-
 
67135
    }
-
 
67136
 
-
 
67137
    public void addToItemQty(ItemQuantity elem) {
-
 
67138
      if (this.itemQty == null) {
-
 
67139
        this.itemQty = new ArrayList<ItemQuantity>();
-
 
67140
      }
-
 
67141
      this.itemQty.add(elem);
-
 
67142
    }
-
 
67143
 
-
 
67144
    public List<ItemQuantity> getItemQty() {
-
 
67145
      return this.itemQty;
-
 
67146
    }
-
 
67147
 
-
 
67148
    public void setItemQty(List<ItemQuantity> itemQty) {
-
 
67149
      this.itemQty = itemQty;
-
 
67150
    }
-
 
67151
 
-
 
67152
    public void unsetItemQty() {
-
 
67153
      this.itemQty = null;
-
 
67154
    }
-
 
67155
 
-
 
67156
    /** Returns true if field itemQty is set (has been assigned a value) and false otherwise */
-
 
67157
    public boolean isSetItemQty() {
-
 
67158
      return this.itemQty != null;
-
 
67159
    }
-
 
67160
 
-
 
67161
    public void setItemQtyIsSet(boolean value) {
-
 
67162
      if (!value) {
-
 
67163
        this.itemQty = null;
-
 
67164
      }
-
 
67165
    }
-
 
67166
 
-
 
67167
    public String getCouponCode() {
-
 
67168
      return this.couponCode;
-
 
67169
    }
-
 
67170
 
-
 
67171
    public void setCouponCode(String couponCode) {
-
 
67172
      this.couponCode = couponCode;
-
 
67173
    }
-
 
67174
 
-
 
67175
    public void unsetCouponCode() {
-
 
67176
      this.couponCode = null;
-
 
67177
    }
-
 
67178
 
-
 
67179
    /** Returns true if field couponCode is set (has been assigned a value) and false otherwise */
-
 
67180
    public boolean isSetCouponCode() {
-
 
67181
      return this.couponCode != null;
-
 
67182
    }
-
 
67183
 
-
 
67184
    public void setCouponCodeIsSet(boolean value) {
-
 
67185
      if (!value) {
-
 
67186
        this.couponCode = null;
-
 
67187
      }
-
 
67188
    }
-
 
67189
 
-
 
67190
    public void setFieldValue(_Fields field, Object value) {
-
 
67191
      switch (field) {
-
 
67192
      case CART_ID:
-
 
67193
        if (value == null) {
-
 
67194
          unsetCartId();
-
 
67195
        } else {
-
 
67196
          setCartId((Long)value);
-
 
67197
        }
-
 
67198
        break;
-
 
67199
 
-
 
67200
      case ITEM_QTY:
-
 
67201
        if (value == null) {
-
 
67202
          unsetItemQty();
-
 
67203
        } else {
-
 
67204
          setItemQty((List<ItemQuantity>)value);
-
 
67205
        }
-
 
67206
        break;
-
 
67207
 
-
 
67208
      case COUPON_CODE:
-
 
67209
        if (value == null) {
-
 
67210
          unsetCouponCode();
-
 
67211
        } else {
-
 
67212
          setCouponCode((String)value);
-
 
67213
        }
-
 
67214
        break;
-
 
67215
 
-
 
67216
      }
-
 
67217
    }
-
 
67218
 
-
 
67219
    public Object getFieldValue(_Fields field) {
-
 
67220
      switch (field) {
-
 
67221
      case CART_ID:
-
 
67222
        return Long.valueOf(getCartId());
-
 
67223
 
-
 
67224
      case ITEM_QTY:
-
 
67225
        return getItemQty();
-
 
67226
 
-
 
67227
      case COUPON_CODE:
-
 
67228
        return getCouponCode();
-
 
67229
 
-
 
67230
      }
-
 
67231
      throw new IllegalStateException();
-
 
67232
    }
-
 
67233
 
-
 
67234
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
67235
    public boolean isSet(_Fields field) {
-
 
67236
      if (field == null) {
-
 
67237
        throw new IllegalArgumentException();
-
 
67238
      }
-
 
67239
 
-
 
67240
      switch (field) {
-
 
67241
      case CART_ID:
-
 
67242
        return isSetCartId();
-
 
67243
      case ITEM_QTY:
-
 
67244
        return isSetItemQty();
-
 
67245
      case COUPON_CODE:
-
 
67246
        return isSetCouponCode();
-
 
67247
      }
-
 
67248
      throw new IllegalStateException();
-
 
67249
    }
-
 
67250
 
-
 
67251
    @Override
-
 
67252
    public boolean equals(Object that) {
-
 
67253
      if (that == null)
-
 
67254
        return false;
-
 
67255
      if (that instanceof addItemsToCart_args)
-
 
67256
        return this.equals((addItemsToCart_args)that);
-
 
67257
      return false;
-
 
67258
    }
-
 
67259
 
-
 
67260
    public boolean equals(addItemsToCart_args that) {
-
 
67261
      if (that == null)
-
 
67262
        return false;
-
 
67263
 
-
 
67264
      boolean this_present_cartId = true;
-
 
67265
      boolean that_present_cartId = true;
-
 
67266
      if (this_present_cartId || that_present_cartId) {
-
 
67267
        if (!(this_present_cartId && that_present_cartId))
-
 
67268
          return false;
-
 
67269
        if (this.cartId != that.cartId)
-
 
67270
          return false;
-
 
67271
      }
-
 
67272
 
-
 
67273
      boolean this_present_itemQty = true && this.isSetItemQty();
-
 
67274
      boolean that_present_itemQty = true && that.isSetItemQty();
-
 
67275
      if (this_present_itemQty || that_present_itemQty) {
-
 
67276
        if (!(this_present_itemQty && that_present_itemQty))
-
 
67277
          return false;
-
 
67278
        if (!this.itemQty.equals(that.itemQty))
-
 
67279
          return false;
-
 
67280
      }
-
 
67281
 
-
 
67282
      boolean this_present_couponCode = true && this.isSetCouponCode();
-
 
67283
      boolean that_present_couponCode = true && that.isSetCouponCode();
-
 
67284
      if (this_present_couponCode || that_present_couponCode) {
-
 
67285
        if (!(this_present_couponCode && that_present_couponCode))
-
 
67286
          return false;
-
 
67287
        if (!this.couponCode.equals(that.couponCode))
-
 
67288
          return false;
-
 
67289
      }
-
 
67290
 
-
 
67291
      return true;
-
 
67292
    }
-
 
67293
 
-
 
67294
    @Override
-
 
67295
    public int hashCode() {
-
 
67296
      return 0;
-
 
67297
    }
-
 
67298
 
-
 
67299
    public int compareTo(addItemsToCart_args other) {
-
 
67300
      if (!getClass().equals(other.getClass())) {
-
 
67301
        return getClass().getName().compareTo(other.getClass().getName());
-
 
67302
      }
-
 
67303
 
-
 
67304
      int lastComparison = 0;
-
 
67305
      addItemsToCart_args typedOther = (addItemsToCart_args)other;
-
 
67306
 
-
 
67307
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
67308
      if (lastComparison != 0) {
-
 
67309
        return lastComparison;
-
 
67310
      }
-
 
67311
      if (isSetCartId()) {
-
 
67312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
67313
        if (lastComparison != 0) {
-
 
67314
          return lastComparison;
-
 
67315
        }
-
 
67316
      }
-
 
67317
      lastComparison = Boolean.valueOf(isSetItemQty()).compareTo(typedOther.isSetItemQty());
-
 
67318
      if (lastComparison != 0) {
-
 
67319
        return lastComparison;
-
 
67320
      }
-
 
67321
      if (isSetItemQty()) {
-
 
67322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemQty, typedOther.itemQty);
-
 
67323
        if (lastComparison != 0) {
-
 
67324
          return lastComparison;
-
 
67325
        }
-
 
67326
      }
-
 
67327
      lastComparison = Boolean.valueOf(isSetCouponCode()).compareTo(typedOther.isSetCouponCode());
-
 
67328
      if (lastComparison != 0) {
-
 
67329
        return lastComparison;
-
 
67330
      }
-
 
67331
      if (isSetCouponCode()) {
-
 
67332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.couponCode, typedOther.couponCode);
-
 
67333
        if (lastComparison != 0) {
-
 
67334
          return lastComparison;
-
 
67335
        }
-
 
67336
      }
-
 
67337
      return 0;
-
 
67338
    }
-
 
67339
 
-
 
67340
    public _Fields fieldForId(int fieldId) {
-
 
67341
      return _Fields.findByThriftId(fieldId);
-
 
67342
    }
-
 
67343
 
-
 
67344
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
67345
      org.apache.thrift.protocol.TField field;
-
 
67346
      iprot.readStructBegin();
-
 
67347
      while (true)
-
 
67348
      {
-
 
67349
        field = iprot.readFieldBegin();
-
 
67350
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
67351
          break;
-
 
67352
        }
-
 
67353
        switch (field.id) {
-
 
67354
          case 1: // CART_ID
-
 
67355
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
67356
              this.cartId = iprot.readI64();
-
 
67357
              setCartIdIsSet(true);
-
 
67358
            } else { 
-
 
67359
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67360
            }
-
 
67361
            break;
-
 
67362
          case 2: // ITEM_QTY
-
 
67363
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
67364
              {
-
 
67365
                org.apache.thrift.protocol.TList _list141 = iprot.readListBegin();
-
 
67366
                this.itemQty = new ArrayList<ItemQuantity>(_list141.size);
-
 
67367
                for (int _i142 = 0; _i142 < _list141.size; ++_i142)
-
 
67368
                {
-
 
67369
                  ItemQuantity _elem143; // required
-
 
67370
                  _elem143 = new ItemQuantity();
-
 
67371
                  _elem143.read(iprot);
-
 
67372
                  this.itemQty.add(_elem143);
-
 
67373
                }
-
 
67374
                iprot.readListEnd();
-
 
67375
              }
-
 
67376
            } else { 
-
 
67377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67378
            }
-
 
67379
            break;
-
 
67380
          case 3: // COUPON_CODE
-
 
67381
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
67382
              this.couponCode = iprot.readString();
-
 
67383
            } else { 
-
 
67384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67385
            }
-
 
67386
            break;
-
 
67387
          default:
-
 
67388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67389
        }
-
 
67390
        iprot.readFieldEnd();
-
 
67391
      }
-
 
67392
      iprot.readStructEnd();
-
 
67393
      validate();
-
 
67394
    }
-
 
67395
 
-
 
67396
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
67397
      validate();
-
 
67398
 
-
 
67399
      oprot.writeStructBegin(STRUCT_DESC);
-
 
67400
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
67401
      oprot.writeI64(this.cartId);
-
 
67402
      oprot.writeFieldEnd();
-
 
67403
      if (this.itemQty != null) {
-
 
67404
        oprot.writeFieldBegin(ITEM_QTY_FIELD_DESC);
-
 
67405
        {
-
 
67406
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemQty.size()));
-
 
67407
          for (ItemQuantity _iter144 : this.itemQty)
-
 
67408
          {
-
 
67409
            _iter144.write(oprot);
-
 
67410
          }
-
 
67411
          oprot.writeListEnd();
-
 
67412
        }
-
 
67413
        oprot.writeFieldEnd();
-
 
67414
      }
-
 
67415
      if (this.couponCode != null) {
-
 
67416
        oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
-
 
67417
        oprot.writeString(this.couponCode);
-
 
67418
        oprot.writeFieldEnd();
-
 
67419
      }
-
 
67420
      oprot.writeFieldStop();
-
 
67421
      oprot.writeStructEnd();
-
 
67422
    }
-
 
67423
 
-
 
67424
    @Override
-
 
67425
    public String toString() {
-
 
67426
      StringBuilder sb = new StringBuilder("addItemsToCart_args(");
-
 
67427
      boolean first = true;
-
 
67428
 
-
 
67429
      sb.append("cartId:");
-
 
67430
      sb.append(this.cartId);
-
 
67431
      first = false;
-
 
67432
      if (!first) sb.append(", ");
-
 
67433
      sb.append("itemQty:");
-
 
67434
      if (this.itemQty == null) {
-
 
67435
        sb.append("null");
-
 
67436
      } else {
-
 
67437
        sb.append(this.itemQty);
-
 
67438
      }
-
 
67439
      first = false;
-
 
67440
      if (!first) sb.append(", ");
-
 
67441
      sb.append("couponCode:");
-
 
67442
      if (this.couponCode == null) {
-
 
67443
        sb.append("null");
-
 
67444
      } else {
-
 
67445
        sb.append(this.couponCode);
-
 
67446
      }
-
 
67447
      first = false;
-
 
67448
      sb.append(")");
-
 
67449
      return sb.toString();
-
 
67450
    }
-
 
67451
 
-
 
67452
    public void validate() throws org.apache.thrift.TException {
-
 
67453
      // check for required fields
-
 
67454
    }
-
 
67455
 
-
 
67456
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
67457
      try {
-
 
67458
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
67459
      } catch (org.apache.thrift.TException te) {
-
 
67460
        throw new java.io.IOException(te);
-
 
67461
      }
-
 
67462
    }
-
 
67463
 
-
 
67464
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
67465
      try {
-
 
67466
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
67467
        __isset_bit_vector = new BitSet(1);
-
 
67468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
67469
      } catch (org.apache.thrift.TException te) {
-
 
67470
        throw new java.io.IOException(te);
-
 
67471
      }
-
 
67472
    }
-
 
67473
 
-
 
67474
  }
-
 
67475
 
-
 
67476
  public static class addItemsToCart_result implements org.apache.thrift.TBase<addItemsToCart_result, addItemsToCart_result._Fields>, java.io.Serializable, Cloneable   {
-
 
67477
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemsToCart_result");
-
 
67478
 
-
 
67479
    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);
-
 
67480
 
-
 
67481
    private boolean success; // required
-
 
67482
 
-
 
67483
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
67484
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
67485
      SUCCESS((short)0, "success");
-
 
67486
 
-
 
67487
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
67488
 
-
 
67489
      static {
-
 
67490
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
67491
          byName.put(field.getFieldName(), field);
-
 
67492
        }
-
 
67493
      }
-
 
67494
 
-
 
67495
      /**
-
 
67496
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
67497
       */
-
 
67498
      public static _Fields findByThriftId(int fieldId) {
-
 
67499
        switch(fieldId) {
-
 
67500
          case 0: // SUCCESS
-
 
67501
            return SUCCESS;
-
 
67502
          default:
-
 
67503
            return null;
-
 
67504
        }
-
 
67505
      }
-
 
67506
 
-
 
67507
      /**
-
 
67508
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
67509
       * if it is not found.
-
 
67510
       */
-
 
67511
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
67512
        _Fields fields = findByThriftId(fieldId);
-
 
67513
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
67514
        return fields;
-
 
67515
      }
-
 
67516
 
-
 
67517
      /**
-
 
67518
       * Find the _Fields constant that matches name, or null if its not found.
-
 
67519
       */
-
 
67520
      public static _Fields findByName(String name) {
-
 
67521
        return byName.get(name);
-
 
67522
      }
-
 
67523
 
-
 
67524
      private final short _thriftId;
-
 
67525
      private final String _fieldName;
-
 
67526
 
-
 
67527
      _Fields(short thriftId, String fieldName) {
-
 
67528
        _thriftId = thriftId;
-
 
67529
        _fieldName = fieldName;
-
 
67530
      }
-
 
67531
 
-
 
67532
      public short getThriftFieldId() {
-
 
67533
        return _thriftId;
-
 
67534
      }
-
 
67535
 
-
 
67536
      public String getFieldName() {
-
 
67537
        return _fieldName;
-
 
67538
      }
-
 
67539
    }
-
 
67540
 
-
 
67541
    // isset id assignments
-
 
67542
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
67543
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
67544
 
-
 
67545
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
67546
    static {
-
 
67547
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
67548
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
67550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
67551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemsToCart_result.class, metaDataMap);
-
 
67552
    }
-
 
67553
 
-
 
67554
    public addItemsToCart_result() {
-
 
67555
    }
-
 
67556
 
-
 
67557
    public addItemsToCart_result(
-
 
67558
      boolean success)
-
 
67559
    {
-
 
67560
      this();
-
 
67561
      this.success = success;
-
 
67562
      setSuccessIsSet(true);
-
 
67563
    }
-
 
67564
 
-
 
67565
    /**
-
 
67566
     * Performs a deep copy on <i>other</i>.
-
 
67567
     */
-
 
67568
    public addItemsToCart_result(addItemsToCart_result other) {
-
 
67569
      __isset_bit_vector.clear();
-
 
67570
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
67571
      this.success = other.success;
-
 
67572
    }
-
 
67573
 
-
 
67574
    public addItemsToCart_result deepCopy() {
-
 
67575
      return new addItemsToCart_result(this);
-
 
67576
    }
-
 
67577
 
-
 
67578
    @Override
-
 
67579
    public void clear() {
-
 
67580
      setSuccessIsSet(false);
-
 
67581
      this.success = false;
-
 
67582
    }
-
 
67583
 
-
 
67584
    public boolean isSuccess() {
-
 
67585
      return this.success;
-
 
67586
    }
-
 
67587
 
-
 
67588
    public void setSuccess(boolean success) {
-
 
67589
      this.success = success;
-
 
67590
      setSuccessIsSet(true);
-
 
67591
    }
-
 
67592
 
-
 
67593
    public void unsetSuccess() {
-
 
67594
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
67595
    }
-
 
67596
 
-
 
67597
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
67598
    public boolean isSetSuccess() {
-
 
67599
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
67600
    }
-
 
67601
 
-
 
67602
    public void setSuccessIsSet(boolean value) {
-
 
67603
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
67604
    }
-
 
67605
 
-
 
67606
    public void setFieldValue(_Fields field, Object value) {
-
 
67607
      switch (field) {
-
 
67608
      case SUCCESS:
-
 
67609
        if (value == null) {
-
 
67610
          unsetSuccess();
-
 
67611
        } else {
-
 
67612
          setSuccess((Boolean)value);
-
 
67613
        }
-
 
67614
        break;
-
 
67615
 
-
 
67616
      }
-
 
67617
    }
-
 
67618
 
-
 
67619
    public Object getFieldValue(_Fields field) {
-
 
67620
      switch (field) {
-
 
67621
      case SUCCESS:
-
 
67622
        return Boolean.valueOf(isSuccess());
-
 
67623
 
-
 
67624
      }
-
 
67625
      throw new IllegalStateException();
-
 
67626
    }
-
 
67627
 
-
 
67628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
67629
    public boolean isSet(_Fields field) {
-
 
67630
      if (field == null) {
-
 
67631
        throw new IllegalArgumentException();
-
 
67632
      }
-
 
67633
 
-
 
67634
      switch (field) {
-
 
67635
      case SUCCESS:
-
 
67636
        return isSetSuccess();
-
 
67637
      }
-
 
67638
      throw new IllegalStateException();
-
 
67639
    }
-
 
67640
 
-
 
67641
    @Override
-
 
67642
    public boolean equals(Object that) {
-
 
67643
      if (that == null)
-
 
67644
        return false;
-
 
67645
      if (that instanceof addItemsToCart_result)
-
 
67646
        return this.equals((addItemsToCart_result)that);
-
 
67647
      return false;
-
 
67648
    }
-
 
67649
 
-
 
67650
    public boolean equals(addItemsToCart_result that) {
-
 
67651
      if (that == null)
-
 
67652
        return false;
-
 
67653
 
-
 
67654
      boolean this_present_success = true;
-
 
67655
      boolean that_present_success = true;
-
 
67656
      if (this_present_success || that_present_success) {
-
 
67657
        if (!(this_present_success && that_present_success))
-
 
67658
          return false;
-
 
67659
        if (this.success != that.success)
-
 
67660
          return false;
-
 
67661
      }
-
 
67662
 
-
 
67663
      return true;
-
 
67664
    }
-
 
67665
 
-
 
67666
    @Override
-
 
67667
    public int hashCode() {
-
 
67668
      return 0;
-
 
67669
    }
-
 
67670
 
-
 
67671
    public int compareTo(addItemsToCart_result other) {
-
 
67672
      if (!getClass().equals(other.getClass())) {
-
 
67673
        return getClass().getName().compareTo(other.getClass().getName());
-
 
67674
      }
-
 
67675
 
-
 
67676
      int lastComparison = 0;
-
 
67677
      addItemsToCart_result typedOther = (addItemsToCart_result)other;
-
 
67678
 
-
 
67679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
67680
      if (lastComparison != 0) {
-
 
67681
        return lastComparison;
-
 
67682
      }
-
 
67683
      if (isSetSuccess()) {
-
 
67684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
67685
        if (lastComparison != 0) {
-
 
67686
          return lastComparison;
-
 
67687
        }
-
 
67688
      }
-
 
67689
      return 0;
-
 
67690
    }
-
 
67691
 
-
 
67692
    public _Fields fieldForId(int fieldId) {
-
 
67693
      return _Fields.findByThriftId(fieldId);
-
 
67694
    }
-
 
67695
 
-
 
67696
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
67697
      org.apache.thrift.protocol.TField field;
-
 
67698
      iprot.readStructBegin();
-
 
67699
      while (true)
-
 
67700
      {
-
 
67701
        field = iprot.readFieldBegin();
-
 
67702
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
67703
          break;
-
 
67704
        }
-
 
67705
        switch (field.id) {
-
 
67706
          case 0: // SUCCESS
-
 
67707
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
67708
              this.success = iprot.readBool();
-
 
67709
              setSuccessIsSet(true);
-
 
67710
            } else { 
-
 
67711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67712
            }
-
 
67713
            break;
-
 
67714
          default:
-
 
67715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67716
        }
-
 
67717
        iprot.readFieldEnd();
-
 
67718
      }
-
 
67719
      iprot.readStructEnd();
-
 
67720
      validate();
-
 
67721
    }
-
 
67722
 
-
 
67723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
67724
      oprot.writeStructBegin(STRUCT_DESC);
-
 
67725
 
-
 
67726
      if (this.isSetSuccess()) {
-
 
67727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
67728
        oprot.writeBool(this.success);
-
 
67729
        oprot.writeFieldEnd();
-
 
67730
      }
-
 
67731
      oprot.writeFieldStop();
-
 
67732
      oprot.writeStructEnd();
-
 
67733
    }
-
 
67734
 
-
 
67735
    @Override
-
 
67736
    public String toString() {
-
 
67737
      StringBuilder sb = new StringBuilder("addItemsToCart_result(");
-
 
67738
      boolean first = true;
-
 
67739
 
-
 
67740
      sb.append("success:");
-
 
67741
      sb.append(this.success);
-
 
67742
      first = false;
-
 
67743
      sb.append(")");
-
 
67744
      return sb.toString();
-
 
67745
    }
-
 
67746
 
-
 
67747
    public void validate() throws org.apache.thrift.TException {
-
 
67748
      // check for required fields
-
 
67749
    }
-
 
67750
 
-
 
67751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
67752
      try {
-
 
67753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
67754
      } catch (org.apache.thrift.TException te) {
-
 
67755
        throw new java.io.IOException(te);
-
 
67756
      }
-
 
67757
    }
-
 
67758
 
-
 
67759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
67760
      try {
-
 
67761
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
67762
      } catch (org.apache.thrift.TException te) {
-
 
67763
        throw new java.io.IOException(te);
-
 
67764
      }
-
 
67765
    }
-
 
67766
 
-
 
67767
  }
-
 
67768
 
-
 
67769
  public static class validateCartNew_args implements org.apache.thrift.TBase<validateCartNew_args, validateCartNew_args._Fields>, java.io.Serializable, Cloneable   {
-
 
67770
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartNew_args");
-
 
67771
 
-
 
67772
    private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
67773
    private static final org.apache.thrift.protocol.TField PIN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pinCode", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
67774
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
67775
 
-
 
67776
    private long cartId; // required
-
 
67777
    private String pinCode; // required
-
 
67778
    private long sourceId; // required
-
 
67779
 
-
 
67780
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
67781
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
67782
      CART_ID((short)1, "cartId"),
-
 
67783
      PIN_CODE((short)2, "pinCode"),
-
 
67784
      SOURCE_ID((short)3, "sourceId");
-
 
67785
 
-
 
67786
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
67787
 
-
 
67788
      static {
-
 
67789
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
67790
          byName.put(field.getFieldName(), field);
-
 
67791
        }
-
 
67792
      }
-
 
67793
 
-
 
67794
      /**
-
 
67795
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
67796
       */
-
 
67797
      public static _Fields findByThriftId(int fieldId) {
-
 
67798
        switch(fieldId) {
-
 
67799
          case 1: // CART_ID
-
 
67800
            return CART_ID;
-
 
67801
          case 2: // PIN_CODE
-
 
67802
            return PIN_CODE;
-
 
67803
          case 3: // SOURCE_ID
-
 
67804
            return SOURCE_ID;
-
 
67805
          default:
-
 
67806
            return null;
-
 
67807
        }
-
 
67808
      }
-
 
67809
 
-
 
67810
      /**
-
 
67811
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
67812
       * if it is not found.
-
 
67813
       */
-
 
67814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
67815
        _Fields fields = findByThriftId(fieldId);
-
 
67816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
67817
        return fields;
-
 
67818
      }
-
 
67819
 
-
 
67820
      /**
-
 
67821
       * Find the _Fields constant that matches name, or null if its not found.
-
 
67822
       */
-
 
67823
      public static _Fields findByName(String name) {
-
 
67824
        return byName.get(name);
-
 
67825
      }
-
 
67826
 
-
 
67827
      private final short _thriftId;
-
 
67828
      private final String _fieldName;
-
 
67829
 
-
 
67830
      _Fields(short thriftId, String fieldName) {
-
 
67831
        _thriftId = thriftId;
-
 
67832
        _fieldName = fieldName;
-
 
67833
      }
-
 
67834
 
-
 
67835
      public short getThriftFieldId() {
-
 
67836
        return _thriftId;
-
 
67837
      }
-
 
67838
 
-
 
67839
      public String getFieldName() {
-
 
67840
        return _fieldName;
-
 
67841
      }
-
 
67842
    }
-
 
67843
 
-
 
67844
    // isset id assignments
-
 
67845
    private static final int __CARTID_ISSET_ID = 0;
-
 
67846
    private static final int __SOURCEID_ISSET_ID = 1;
-
 
67847
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
67848
 
-
 
67849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
67850
    static {
-
 
67851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
67852
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
67854
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
67856
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
67857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
67858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
67859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartNew_args.class, metaDataMap);
-
 
67860
    }
-
 
67861
 
-
 
67862
    public validateCartNew_args() {
-
 
67863
    }
-
 
67864
 
-
 
67865
    public validateCartNew_args(
-
 
67866
      long cartId,
-
 
67867
      String pinCode,
-
 
67868
      long sourceId)
-
 
67869
    {
-
 
67870
      this();
-
 
67871
      this.cartId = cartId;
-
 
67872
      setCartIdIsSet(true);
-
 
67873
      this.pinCode = pinCode;
-
 
67874
      this.sourceId = sourceId;
-
 
67875
      setSourceIdIsSet(true);
-
 
67876
    }
-
 
67877
 
-
 
67878
    /**
-
 
67879
     * Performs a deep copy on <i>other</i>.
-
 
67880
     */
-
 
67881
    public validateCartNew_args(validateCartNew_args other) {
-
 
67882
      __isset_bit_vector.clear();
-
 
67883
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
67884
      this.cartId = other.cartId;
-
 
67885
      if (other.isSetPinCode()) {
-
 
67886
        this.pinCode = other.pinCode;
-
 
67887
      }
-
 
67888
      this.sourceId = other.sourceId;
-
 
67889
    }
-
 
67890
 
-
 
67891
    public validateCartNew_args deepCopy() {
-
 
67892
      return new validateCartNew_args(this);
-
 
67893
    }
-
 
67894
 
-
 
67895
    @Override
-
 
67896
    public void clear() {
-
 
67897
      setCartIdIsSet(false);
-
 
67898
      this.cartId = 0;
-
 
67899
      this.pinCode = null;
-
 
67900
      setSourceIdIsSet(false);
-
 
67901
      this.sourceId = 0;
-
 
67902
    }
-
 
67903
 
-
 
67904
    public long getCartId() {
-
 
67905
      return this.cartId;
-
 
67906
    }
-
 
67907
 
-
 
67908
    public void setCartId(long cartId) {
-
 
67909
      this.cartId = cartId;
-
 
67910
      setCartIdIsSet(true);
-
 
67911
    }
-
 
67912
 
-
 
67913
    public void unsetCartId() {
-
 
67914
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
67915
    }
-
 
67916
 
-
 
67917
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
67918
    public boolean isSetCartId() {
-
 
67919
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
67920
    }
-
 
67921
 
-
 
67922
    public void setCartIdIsSet(boolean value) {
-
 
67923
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
67924
    }
-
 
67925
 
-
 
67926
    public String getPinCode() {
-
 
67927
      return this.pinCode;
-
 
67928
    }
-
 
67929
 
-
 
67930
    public void setPinCode(String pinCode) {
-
 
67931
      this.pinCode = pinCode;
-
 
67932
    }
-
 
67933
 
-
 
67934
    public void unsetPinCode() {
-
 
67935
      this.pinCode = null;
-
 
67936
    }
-
 
67937
 
-
 
67938
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
-
 
67939
    public boolean isSetPinCode() {
-
 
67940
      return this.pinCode != null;
-
 
67941
    }
-
 
67942
 
-
 
67943
    public void setPinCodeIsSet(boolean value) {
-
 
67944
      if (!value) {
-
 
67945
        this.pinCode = null;
-
 
67946
      }
-
 
67947
    }
-
 
67948
 
-
 
67949
    public long getSourceId() {
-
 
67950
      return this.sourceId;
-
 
67951
    }
-
 
67952
 
-
 
67953
    public void setSourceId(long sourceId) {
-
 
67954
      this.sourceId = sourceId;
-
 
67955
      setSourceIdIsSet(true);
-
 
67956
    }
-
 
67957
 
-
 
67958
    public void unsetSourceId() {
-
 
67959
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
67960
    }
-
 
67961
 
-
 
67962
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
67963
    public boolean isSetSourceId() {
-
 
67964
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
67965
    }
-
 
67966
 
-
 
67967
    public void setSourceIdIsSet(boolean value) {
-
 
67968
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
67969
    }
-
 
67970
 
-
 
67971
    public void setFieldValue(_Fields field, Object value) {
-
 
67972
      switch (field) {
-
 
67973
      case CART_ID:
-
 
67974
        if (value == null) {
-
 
67975
          unsetCartId();
-
 
67976
        } else {
-
 
67977
          setCartId((Long)value);
-
 
67978
        }
-
 
67979
        break;
-
 
67980
 
-
 
67981
      case PIN_CODE:
-
 
67982
        if (value == null) {
-
 
67983
          unsetPinCode();
-
 
67984
        } else {
-
 
67985
          setPinCode((String)value);
-
 
67986
        }
-
 
67987
        break;
-
 
67988
 
-
 
67989
      case SOURCE_ID:
-
 
67990
        if (value == null) {
-
 
67991
          unsetSourceId();
-
 
67992
        } else {
-
 
67993
          setSourceId((Long)value);
-
 
67994
        }
-
 
67995
        break;
-
 
67996
 
-
 
67997
      }
-
 
67998
    }
-
 
67999
 
-
 
68000
    public Object getFieldValue(_Fields field) {
-
 
68001
      switch (field) {
-
 
68002
      case CART_ID:
-
 
68003
        return Long.valueOf(getCartId());
-
 
68004
 
-
 
68005
      case PIN_CODE:
-
 
68006
        return getPinCode();
-
 
68007
 
-
 
68008
      case SOURCE_ID:
-
 
68009
        return Long.valueOf(getSourceId());
-
 
68010
 
-
 
68011
      }
-
 
68012
      throw new IllegalStateException();
-
 
68013
    }
-
 
68014
 
-
 
68015
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
68016
    public boolean isSet(_Fields field) {
-
 
68017
      if (field == null) {
-
 
68018
        throw new IllegalArgumentException();
-
 
68019
      }
-
 
68020
 
-
 
68021
      switch (field) {
-
 
68022
      case CART_ID:
-
 
68023
        return isSetCartId();
-
 
68024
      case PIN_CODE:
-
 
68025
        return isSetPinCode();
-
 
68026
      case SOURCE_ID:
-
 
68027
        return isSetSourceId();
-
 
68028
      }
-
 
68029
      throw new IllegalStateException();
-
 
68030
    }
-
 
68031
 
-
 
68032
    @Override
-
 
68033
    public boolean equals(Object that) {
-
 
68034
      if (that == null)
-
 
68035
        return false;
-
 
68036
      if (that instanceof validateCartNew_args)
-
 
68037
        return this.equals((validateCartNew_args)that);
-
 
68038
      return false;
-
 
68039
    }
-
 
68040
 
-
 
68041
    public boolean equals(validateCartNew_args that) {
-
 
68042
      if (that == null)
-
 
68043
        return false;
-
 
68044
 
-
 
68045
      boolean this_present_cartId = true;
-
 
68046
      boolean that_present_cartId = true;
-
 
68047
      if (this_present_cartId || that_present_cartId) {
-
 
68048
        if (!(this_present_cartId && that_present_cartId))
-
 
68049
          return false;
-
 
68050
        if (this.cartId != that.cartId)
-
 
68051
          return false;
-
 
68052
      }
-
 
68053
 
-
 
68054
      boolean this_present_pinCode = true && this.isSetPinCode();
-
 
68055
      boolean that_present_pinCode = true && that.isSetPinCode();
-
 
68056
      if (this_present_pinCode || that_present_pinCode) {
-
 
68057
        if (!(this_present_pinCode && that_present_pinCode))
-
 
68058
          return false;
-
 
68059
        if (!this.pinCode.equals(that.pinCode))
-
 
68060
          return false;
-
 
68061
      }
-
 
68062
 
-
 
68063
      boolean this_present_sourceId = true;
-
 
68064
      boolean that_present_sourceId = true;
-
 
68065
      if (this_present_sourceId || that_present_sourceId) {
-
 
68066
        if (!(this_present_sourceId && that_present_sourceId))
-
 
68067
          return false;
-
 
68068
        if (this.sourceId != that.sourceId)
-
 
68069
          return false;
-
 
68070
      }
-
 
68071
 
-
 
68072
      return true;
-
 
68073
    }
-
 
68074
 
-
 
68075
    @Override
-
 
68076
    public int hashCode() {
-
 
68077
      return 0;
-
 
68078
    }
-
 
68079
 
-
 
68080
    public int compareTo(validateCartNew_args other) {
-
 
68081
      if (!getClass().equals(other.getClass())) {
-
 
68082
        return getClass().getName().compareTo(other.getClass().getName());
-
 
68083
      }
-
 
68084
 
-
 
68085
      int lastComparison = 0;
-
 
68086
      validateCartNew_args typedOther = (validateCartNew_args)other;
-
 
68087
 
-
 
68088
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
68089
      if (lastComparison != 0) {
-
 
68090
        return lastComparison;
-
 
68091
      }
-
 
68092
      if (isSetCartId()) {
-
 
68093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
68094
        if (lastComparison != 0) {
-
 
68095
          return lastComparison;
-
 
68096
        }
-
 
68097
      }
-
 
68098
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
-
 
68099
      if (lastComparison != 0) {
-
 
68100
        return lastComparison;
-
 
68101
      }
-
 
68102
      if (isSetPinCode()) {
-
 
68103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
-
 
68104
        if (lastComparison != 0) {
-
 
68105
          return lastComparison;
-
 
68106
        }
-
 
68107
      }
-
 
68108
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
68109
      if (lastComparison != 0) {
-
 
68110
        return lastComparison;
-
 
68111
      }
-
 
68112
      if (isSetSourceId()) {
-
 
68113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
68114
        if (lastComparison != 0) {
-
 
68115
          return lastComparison;
-
 
68116
        }
-
 
68117
      }
-
 
68118
      return 0;
-
 
68119
    }
-
 
68120
 
-
 
68121
    public _Fields fieldForId(int fieldId) {
-
 
68122
      return _Fields.findByThriftId(fieldId);
-
 
68123
    }
-
 
68124
 
-
 
68125
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
68126
      org.apache.thrift.protocol.TField field;
-
 
68127
      iprot.readStructBegin();
-
 
68128
      while (true)
-
 
68129
      {
-
 
68130
        field = iprot.readFieldBegin();
-
 
68131
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
68132
          break;
-
 
68133
        }
-
 
68134
        switch (field.id) {
-
 
68135
          case 1: // CART_ID
-
 
68136
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
68137
              this.cartId = iprot.readI64();
-
 
68138
              setCartIdIsSet(true);
-
 
68139
            } else { 
-
 
68140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68141
            }
-
 
68142
            break;
-
 
68143
          case 2: // PIN_CODE
-
 
68144
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
68145
              this.pinCode = iprot.readString();
-
 
68146
            } else { 
-
 
68147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68148
            }
-
 
68149
            break;
-
 
68150
          case 3: // SOURCE_ID
-
 
68151
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
68152
              this.sourceId = iprot.readI64();
-
 
68153
              setSourceIdIsSet(true);
-
 
68154
            } else { 
-
 
68155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68156
            }
-
 
68157
            break;
-
 
68158
          default:
-
 
68159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68160
        }
-
 
68161
        iprot.readFieldEnd();
-
 
68162
      }
-
 
68163
      iprot.readStructEnd();
-
 
68164
      validate();
-
 
68165
    }
-
 
68166
 
-
 
68167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
68168
      validate();
-
 
68169
 
-
 
68170
      oprot.writeStructBegin(STRUCT_DESC);
-
 
68171
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
68172
      oprot.writeI64(this.cartId);
-
 
68173
      oprot.writeFieldEnd();
-
 
68174
      if (this.pinCode != null) {
-
 
68175
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
-
 
68176
        oprot.writeString(this.pinCode);
-
 
68177
        oprot.writeFieldEnd();
-
 
68178
      }
-
 
68179
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
68180
      oprot.writeI64(this.sourceId);
-
 
68181
      oprot.writeFieldEnd();
-
 
68182
      oprot.writeFieldStop();
-
 
68183
      oprot.writeStructEnd();
-
 
68184
    }
-
 
68185
 
-
 
68186
    @Override
-
 
68187
    public String toString() {
-
 
68188
      StringBuilder sb = new StringBuilder("validateCartNew_args(");
-
 
68189
      boolean first = true;
-
 
68190
 
-
 
68191
      sb.append("cartId:");
-
 
68192
      sb.append(this.cartId);
-
 
68193
      first = false;
-
 
68194
      if (!first) sb.append(", ");
-
 
68195
      sb.append("pinCode:");
-
 
68196
      if (this.pinCode == null) {
-
 
68197
        sb.append("null");
-
 
68198
      } else {
-
 
68199
        sb.append(this.pinCode);
-
 
68200
      }
-
 
68201
      first = false;
-
 
68202
      if (!first) sb.append(", ");
-
 
68203
      sb.append("sourceId:");
-
 
68204
      sb.append(this.sourceId);
-
 
68205
      first = false;
-
 
68206
      sb.append(")");
-
 
68207
      return sb.toString();
-
 
68208
    }
-
 
68209
 
-
 
68210
    public void validate() throws org.apache.thrift.TException {
-
 
68211
      // check for required fields
-
 
68212
    }
-
 
68213
 
-
 
68214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
68215
      try {
-
 
68216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
68217
      } catch (org.apache.thrift.TException te) {
-
 
68218
        throw new java.io.IOException(te);
-
 
68219
      }
-
 
68220
    }
-
 
68221
 
-
 
68222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
68223
      try {
-
 
68224
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
68225
        __isset_bit_vector = new BitSet(1);
-
 
68226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
68227
      } catch (org.apache.thrift.TException te) {
-
 
68228
        throw new java.io.IOException(te);
-
 
68229
      }
-
 
68230
    }
-
 
68231
 
-
 
68232
  }
-
 
68233
 
-
 
68234
  public static class validateCartNew_result implements org.apache.thrift.TBase<validateCartNew_result, validateCartNew_result._Fields>, java.io.Serializable, Cloneable   {
-
 
68235
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartNew_result");
-
 
68236
 
-
 
68237
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
68238
 
-
 
68239
    private String success; // required
-
 
68240
 
-
 
68241
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
68242
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
68243
      SUCCESS((short)0, "success");
-
 
68244
 
-
 
68245
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
68246
 
-
 
68247
      static {
-
 
68248
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
68249
          byName.put(field.getFieldName(), field);
-
 
68250
        }
-
 
68251
      }
-
 
68252
 
-
 
68253
      /**
-
 
68254
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
68255
       */
-
 
68256
      public static _Fields findByThriftId(int fieldId) {
-
 
68257
        switch(fieldId) {
-
 
68258
          case 0: // SUCCESS
-
 
68259
            return SUCCESS;
-
 
68260
          default:
-
 
68261
            return null;
-
 
68262
        }
-
 
68263
      }
-
 
68264
 
-
 
68265
      /**
-
 
68266
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
68267
       * if it is not found.
-
 
68268
       */
-
 
68269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
68270
        _Fields fields = findByThriftId(fieldId);
-
 
68271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
68272
        return fields;
-
 
68273
      }
-
 
68274
 
-
 
68275
      /**
-
 
68276
       * Find the _Fields constant that matches name, or null if its not found.
-
 
68277
       */
-
 
68278
      public static _Fields findByName(String name) {
-
 
68279
        return byName.get(name);
-
 
68280
      }
-
 
68281
 
-
 
68282
      private final short _thriftId;
-
 
68283
      private final String _fieldName;
-
 
68284
 
-
 
68285
      _Fields(short thriftId, String fieldName) {
-
 
68286
        _thriftId = thriftId;
-
 
68287
        _fieldName = fieldName;
-
 
68288
      }
-
 
68289
 
-
 
68290
      public short getThriftFieldId() {
-
 
68291
        return _thriftId;
-
 
68292
      }
-
 
68293
 
-
 
68294
      public String getFieldName() {
-
 
68295
        return _fieldName;
-
 
68296
      }
-
 
68297
    }
-
 
68298
 
-
 
68299
    // isset id assignments
-
 
68300
 
-
 
68301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
68302
    static {
-
 
68303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
68304
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
68305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
68306
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
68307
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartNew_result.class, metaDataMap);
-
 
68308
    }
-
 
68309
 
-
 
68310
    public validateCartNew_result() {
-
 
68311
    }
-
 
68312
 
-
 
68313
    public validateCartNew_result(
-
 
68314
      String success)
-
 
68315
    {
-
 
68316
      this();
-
 
68317
      this.success = success;
-
 
68318
    }
-
 
68319
 
-
 
68320
    /**
-
 
68321
     * Performs a deep copy on <i>other</i>.
-
 
68322
     */
-
 
68323
    public validateCartNew_result(validateCartNew_result other) {
-
 
68324
      if (other.isSetSuccess()) {
-
 
68325
        this.success = other.success;
-
 
68326
      }
-
 
68327
    }
-
 
68328
 
-
 
68329
    public validateCartNew_result deepCopy() {
-
 
68330
      return new validateCartNew_result(this);
-
 
68331
    }
-
 
68332
 
-
 
68333
    @Override
-
 
68334
    public void clear() {
-
 
68335
      this.success = null;
-
 
68336
    }
-
 
68337
 
-
 
68338
    public String getSuccess() {
-
 
68339
      return this.success;
-
 
68340
    }
-
 
68341
 
-
 
68342
    public void setSuccess(String success) {
-
 
68343
      this.success = success;
-
 
68344
    }
-
 
68345
 
-
 
68346
    public void unsetSuccess() {
-
 
68347
      this.success = null;
-
 
68348
    }
-
 
68349
 
-
 
68350
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
68351
    public boolean isSetSuccess() {
-
 
68352
      return this.success != null;
-
 
68353
    }
-
 
68354
 
-
 
68355
    public void setSuccessIsSet(boolean value) {
-
 
68356
      if (!value) {
-
 
68357
        this.success = null;
-
 
68358
      }
-
 
68359
    }
-
 
68360
 
-
 
68361
    public void setFieldValue(_Fields field, Object value) {
-
 
68362
      switch (field) {
-
 
68363
      case SUCCESS:
-
 
68364
        if (value == null) {
-
 
68365
          unsetSuccess();
-
 
68366
        } else {
-
 
68367
          setSuccess((String)value);
-
 
68368
        }
-
 
68369
        break;
-
 
68370
 
-
 
68371
      }
-
 
68372
    }
-
 
68373
 
-
 
68374
    public Object getFieldValue(_Fields field) {
-
 
68375
      switch (field) {
-
 
68376
      case SUCCESS:
-
 
68377
        return getSuccess();
-
 
68378
 
-
 
68379
      }
-
 
68380
      throw new IllegalStateException();
-
 
68381
    }
-
 
68382
 
-
 
68383
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
68384
    public boolean isSet(_Fields field) {
-
 
68385
      if (field == null) {
-
 
68386
        throw new IllegalArgumentException();
-
 
68387
      }
-
 
68388
 
-
 
68389
      switch (field) {
-
 
68390
      case SUCCESS:
-
 
68391
        return isSetSuccess();
-
 
68392
      }
-
 
68393
      throw new IllegalStateException();
-
 
68394
    }
-
 
68395
 
-
 
68396
    @Override
-
 
68397
    public boolean equals(Object that) {
-
 
68398
      if (that == null)
-
 
68399
        return false;
-
 
68400
      if (that instanceof validateCartNew_result)
-
 
68401
        return this.equals((validateCartNew_result)that);
-
 
68402
      return false;
-
 
68403
    }
-
 
68404
 
-
 
68405
    public boolean equals(validateCartNew_result that) {
-
 
68406
      if (that == null)
-
 
68407
        return false;
-
 
68408
 
-
 
68409
      boolean this_present_success = true && this.isSetSuccess();
-
 
68410
      boolean that_present_success = true && that.isSetSuccess();
-
 
68411
      if (this_present_success || that_present_success) {
-
 
68412
        if (!(this_present_success && that_present_success))
-
 
68413
          return false;
-
 
68414
        if (!this.success.equals(that.success))
-
 
68415
          return false;
-
 
68416
      }
-
 
68417
 
-
 
68418
      return true;
-
 
68419
    }
-
 
68420
 
-
 
68421
    @Override
-
 
68422
    public int hashCode() {
-
 
68423
      return 0;
-
 
68424
    }
-
 
68425
 
-
 
68426
    public int compareTo(validateCartNew_result other) {
-
 
68427
      if (!getClass().equals(other.getClass())) {
-
 
68428
        return getClass().getName().compareTo(other.getClass().getName());
-
 
68429
      }
-
 
68430
 
-
 
68431
      int lastComparison = 0;
-
 
68432
      validateCartNew_result typedOther = (validateCartNew_result)other;
-
 
68433
 
-
 
68434
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
68435
      if (lastComparison != 0) {
-
 
68436
        return lastComparison;
-
 
68437
      }
-
 
68438
      if (isSetSuccess()) {
-
 
68439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
68440
        if (lastComparison != 0) {
-
 
68441
          return lastComparison;
-
 
68442
        }
-
 
68443
      }
-
 
68444
      return 0;
-
 
68445
    }
-
 
68446
 
-
 
68447
    public _Fields fieldForId(int fieldId) {
-
 
68448
      return _Fields.findByThriftId(fieldId);
-
 
68449
    }
-
 
68450
 
-
 
68451
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
68452
      org.apache.thrift.protocol.TField field;
-
 
68453
      iprot.readStructBegin();
-
 
68454
      while (true)
-
 
68455
      {
-
 
68456
        field = iprot.readFieldBegin();
-
 
68457
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
68458
          break;
-
 
68459
        }
-
 
68460
        switch (field.id) {
-
 
68461
          case 0: // SUCCESS
-
 
68462
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
68463
              this.success = iprot.readString();
-
 
68464
            } else { 
-
 
68465
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68466
            }
-
 
68467
            break;
-
 
68468
          default:
-
 
68469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68470
        }
-
 
68471
        iprot.readFieldEnd();
-
 
68472
      }
-
 
68473
      iprot.readStructEnd();
-
 
68474
      validate();
-
 
68475
    }
-
 
68476
 
-
 
68477
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
68478
      oprot.writeStructBegin(STRUCT_DESC);
-
 
68479
 
-
 
68480
      if (this.isSetSuccess()) {
-
 
68481
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
68482
        oprot.writeString(this.success);
-
 
68483
        oprot.writeFieldEnd();
-
 
68484
      }
-
 
68485
      oprot.writeFieldStop();
-
 
68486
      oprot.writeStructEnd();
-
 
68487
    }
-
 
68488
 
-
 
68489
    @Override
-
 
68490
    public String toString() {
-
 
68491
      StringBuilder sb = new StringBuilder("validateCartNew_result(");
-
 
68492
      boolean first = true;
-
 
68493
 
-
 
68494
      sb.append("success:");
-
 
68495
      if (this.success == null) {
-
 
68496
        sb.append("null");
-
 
68497
      } else {
-
 
68498
        sb.append(this.success);
-
 
68499
      }
-
 
68500
      first = false;
-
 
68501
      sb.append(")");
-
 
68502
      return sb.toString();
-
 
68503
    }
-
 
68504
 
66775
    public void validate() throws org.apache.thrift.TException {
68505
    public void validate() throws org.apache.thrift.TException {
66776
      // check for required fields
68506
      // check for required fields
66777
    }
68507
    }
66778
 
68508
 
66779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
68509
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {