Subversion Repositories SmartDukaan

Rev

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

Rev 9299 Rev 9791
Line 317... Line 317...
317
     * @param addressId
317
     * @param addressId
318
     */
318
     */
319
    public boolean isInsuranceDetailPresent(long addressId) throws org.apache.thrift.TException;
319
    public boolean isInsuranceDetailPresent(long addressId) throws org.apache.thrift.TException;
320
 
320
 
321
    /**
321
    /**
322
     * Returns whether product is added to cart from startDate to endDate
322
     * Returns list of item ids which added to cart from startDate to endDate
323
     * 
323
     * 
324
     * @param itemId
-
 
325
     * @param startDate
324
     * @param startDate
326
     * @param endDate
325
     * @param endDate
327
     */
326
     */
328
    public boolean isProductAddedToCart(long itemId, long startDate, long endDate) throws org.apache.thrift.TException;
327
    public List<Long> getProductsAddedToCart(long startDate, long endDate) throws org.apache.thrift.TException;
329
 
328
 
330
  }
329
  }
331
 
330
 
332
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
331
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
333
 
332
 
Line 471... Line 470...
471
 
470
 
472
    public void storeInsuranceSpecificDetails(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeInsuranceSpecificDetails_call> resultHandler) throws org.apache.thrift.TException;
471
    public void storeInsuranceSpecificDetails(long addressId, String dob, String guardianName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeInsuranceSpecificDetails_call> resultHandler) throws org.apache.thrift.TException;
473
 
472
 
474
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
473
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
475
 
474
 
476
    public void isProductAddedToCart(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isProductAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
475
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
477
 
476
 
478
  }
477
  }
479
 
478
 
480
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
479
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
481
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
480
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
Line 2318... Line 2317...
2318
        return result.success;
2317
        return result.success;
2319
      }
2318
      }
2320
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
2319
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
2321
    }
2320
    }
2322
 
2321
 
2323
    public boolean isProductAddedToCart(long itemId, long startDate, long endDate) throws org.apache.thrift.TException
2322
    public List<Long> getProductsAddedToCart(long startDate, long endDate) throws org.apache.thrift.TException
2324
    {
2323
    {
2325
      send_isProductAddedToCart(itemId, startDate, endDate);
2324
      send_getProductsAddedToCart(startDate, endDate);
2326
      return recv_isProductAddedToCart();
2325
      return recv_getProductsAddedToCart();
2327
    }
2326
    }
2328
 
2327
 
2329
    public void send_isProductAddedToCart(long itemId, long startDate, long endDate) throws org.apache.thrift.TException
2328
    public void send_getProductsAddedToCart(long startDate, long endDate) throws org.apache.thrift.TException
2330
    {
2329
    {
2331
      isProductAddedToCart_args args = new isProductAddedToCart_args();
2330
      getProductsAddedToCart_args args = new getProductsAddedToCart_args();
2332
      args.setItemId(itemId);
-
 
2333
      args.setStartDate(startDate);
2331
      args.setStartDate(startDate);
2334
      args.setEndDate(endDate);
2332
      args.setEndDate(endDate);
2335
      sendBase("isProductAddedToCart", args);
2333
      sendBase("getProductsAddedToCart", args);
2336
    }
2334
    }
2337
 
2335
 
2338
    public boolean recv_isProductAddedToCart() throws org.apache.thrift.TException
2336
    public List<Long> recv_getProductsAddedToCart() throws org.apache.thrift.TException
2339
    {
2337
    {
2340
      isProductAddedToCart_result result = new isProductAddedToCart_result();
2338
      getProductsAddedToCart_result result = new getProductsAddedToCart_result();
2341
      receiveBase(result, "isProductAddedToCart");
2339
      receiveBase(result, "getProductsAddedToCart");
2342
      if (result.isSetSuccess()) {
2340
      if (result.isSetSuccess()) {
2343
        return result.success;
2341
        return result.success;
2344
      }
2342
      }
2345
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
2343
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
2346
    }
2344
    }
2347
 
2345
 
2348
  }
2346
  }
2349
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2347
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2350
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2348
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
Line 4812... Line 4810...
4812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4813
        return (new Client(prot)).recv_isInsuranceDetailPresent();
4811
        return (new Client(prot)).recv_isInsuranceDetailPresent();
4814
      }
4812
      }
4815
    }
4813
    }
4816
 
4814
 
4817
    public void isProductAddedToCart(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<isProductAddedToCart_call> resultHandler) throws org.apache.thrift.TException {
4815
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException {
4818
      checkReady();
4816
      checkReady();
4819
      isProductAddedToCart_call method_call = new isProductAddedToCart_call(itemId, startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4817
      getProductsAddedToCart_call method_call = new getProductsAddedToCart_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
4820
      this.___currentMethod = method_call;
4818
      this.___currentMethod = method_call;
4821
      ___manager.call(method_call);
4819
      ___manager.call(method_call);
4822
    }
4820
    }
4823
 
4821
 
4824
    public static class isProductAddedToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4822
    public static class getProductsAddedToCart_call extends org.apache.thrift.async.TAsyncMethodCall {
4825
      private long itemId;
-
 
4826
      private long startDate;
4823
      private long startDate;
4827
      private long endDate;
4824
      private long endDate;
4828
      public isProductAddedToCart_call(long itemId, long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<isProductAddedToCart_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 {
4825
      public getProductsAddedToCart_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getProductsAddedToCart_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 {
4829
        super(client, protocolFactory, transport, resultHandler, false);
4826
        super(client, protocolFactory, transport, resultHandler, false);
4830
        this.itemId = itemId;
-
 
4831
        this.startDate = startDate;
4827
        this.startDate = startDate;
4832
        this.endDate = endDate;
4828
        this.endDate = endDate;
4833
      }
4829
      }
4834
 
4830
 
4835
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4831
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4836
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isProductAddedToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4832
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProductsAddedToCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
4837
        isProductAddedToCart_args args = new isProductAddedToCart_args();
4833
        getProductsAddedToCart_args args = new getProductsAddedToCart_args();
4838
        args.setItemId(itemId);
-
 
4839
        args.setStartDate(startDate);
4834
        args.setStartDate(startDate);
4840
        args.setEndDate(endDate);
4835
        args.setEndDate(endDate);
4841
        args.write(prot);
4836
        args.write(prot);
4842
        prot.writeMessageEnd();
4837
        prot.writeMessageEnd();
4843
      }
4838
      }
4844
 
4839
 
4845
      public boolean getResult() throws org.apache.thrift.TException {
4840
      public List<Long> getResult() throws org.apache.thrift.TException {
4846
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4841
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4847
          throw new IllegalStateException("Method call not finished!");
4842
          throw new IllegalStateException("Method call not finished!");
4848
        }
4843
        }
4849
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4844
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4850
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4845
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4851
        return (new Client(prot)).recv_isProductAddedToCart();
4846
        return (new Client(prot)).recv_getProductsAddedToCart();
4852
      }
4847
      }
4853
    }
4848
    }
4854
 
4849
 
4855
  }
4850
  }
4856
 
4851
 
Line 4934... Line 4929...
4934
      processMap.put("getUserEmails", new getUserEmails());
4929
      processMap.put("getUserEmails", new getUserEmails());
4935
      processMap.put("insureItem", new insureItem());
4930
      processMap.put("insureItem", new insureItem());
4936
      processMap.put("cancelInsurance", new cancelInsurance());
4931
      processMap.put("cancelInsurance", new cancelInsurance());
4937
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
4932
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
4938
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
4933
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
4939
      processMap.put("isProductAddedToCart", new isProductAddedToCart());
4934
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
4940
      return processMap;
4935
      return processMap;
4941
    }
4936
    }
4942
 
4937
 
4943
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4938
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4944
      public createAnonymousUser() {
4939
      public createAnonymousUser() {
Line 6328... Line 6323...
6328
        result.setSuccessIsSet(true);
6323
        result.setSuccessIsSet(true);
6329
        return result;
6324
        return result;
6330
      }
6325
      }
6331
    }
6326
    }
6332
 
6327
 
6333
    private static class isProductAddedToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isProductAddedToCart_args> {
6328
    private static class getProductsAddedToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProductsAddedToCart_args> {
6334
      public isProductAddedToCart() {
6329
      public getProductsAddedToCart() {
6335
        super("isProductAddedToCart");
6330
        super("getProductsAddedToCart");
6336
      }
6331
      }
6337
 
6332
 
6338
      protected isProductAddedToCart_args getEmptyArgsInstance() {
6333
      protected getProductsAddedToCart_args getEmptyArgsInstance() {
6339
        return new isProductAddedToCart_args();
6334
        return new getProductsAddedToCart_args();
6340
      }
6335
      }
6341
 
6336
 
6342
      protected isProductAddedToCart_result getResult(I iface, isProductAddedToCart_args args) throws org.apache.thrift.TException {
6337
      protected getProductsAddedToCart_result getResult(I iface, getProductsAddedToCart_args args) throws org.apache.thrift.TException {
6343
        isProductAddedToCart_result result = new isProductAddedToCart_result();
6338
        getProductsAddedToCart_result result = new getProductsAddedToCart_result();
6344
        result.success = iface.isProductAddedToCart(args.itemId, args.startDate, args.endDate);
6339
        result.success = iface.getProductsAddedToCart(args.startDate, args.endDate);
6345
        result.setSuccessIsSet(true);
-
 
6346
        return result;
6340
        return result;
6347
      }
6341
      }
6348
    }
6342
    }
6349
 
6343
 
6350
  }
6344
  }
Line 57620... Line 57614...
57620
      }
57614
      }
57621
    }
57615
    }
57622
 
57616
 
57623
  }
57617
  }
57624
 
57618
 
57625
  public static class isProductAddedToCart_args implements org.apache.thrift.TBase<isProductAddedToCart_args, isProductAddedToCart_args._Fields>, java.io.Serializable, Cloneable   {
57619
  public static class getProductsAddedToCart_args implements org.apache.thrift.TBase<getProductsAddedToCart_args, getProductsAddedToCart_args._Fields>, java.io.Serializable, Cloneable   {
57626
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isProductAddedToCart_args");
57620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductsAddedToCart_args");
57627
 
57621
 
57628
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
57629
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)2);
57622
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
57630
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)3);
57623
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
57631
 
57624
 
57632
    private long itemId; // required
-
 
57633
    private long startDate; // required
57625
    private long startDate; // required
57634
    private long endDate; // required
57626
    private long endDate; // required
57635
 
57627
 
57636
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57637
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57629
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57638
      ITEM_ID((short)1, "itemId"),
-
 
57639
      START_DATE((short)2, "startDate"),
57630
      START_DATE((short)1, "startDate"),
57640
      END_DATE((short)3, "endDate");
57631
      END_DATE((short)2, "endDate");
57641
 
57632
 
57642
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57633
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57643
 
57634
 
57644
      static {
57635
      static {
57645
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57636
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 57650... Line 57641...
57650
      /**
57641
      /**
57651
       * Find the _Fields constant that matches fieldId, or null if its not found.
57642
       * Find the _Fields constant that matches fieldId, or null if its not found.
57652
       */
57643
       */
57653
      public static _Fields findByThriftId(int fieldId) {
57644
      public static _Fields findByThriftId(int fieldId) {
57654
        switch(fieldId) {
57645
        switch(fieldId) {
57655
          case 1: // ITEM_ID
-
 
57656
            return ITEM_ID;
-
 
57657
          case 2: // START_DATE
57646
          case 1: // START_DATE
57658
            return START_DATE;
57647
            return START_DATE;
57659
          case 3: // END_DATE
57648
          case 2: // END_DATE
57660
            return END_DATE;
57649
            return END_DATE;
57661
          default:
57650
          default:
57662
            return null;
57651
            return null;
57663
        }
57652
        }
57664
      }
57653
      }
Line 57696... Line 57685...
57696
        return _fieldName;
57685
        return _fieldName;
57697
      }
57686
      }
57698
    }
57687
    }
57699
 
57688
 
57700
    // isset id assignments
57689
    // isset id assignments
57701
    private static final int __ITEMID_ISSET_ID = 0;
-
 
57702
    private static final int __STARTDATE_ISSET_ID = 1;
57690
    private static final int __STARTDATE_ISSET_ID = 0;
57703
    private static final int __ENDDATE_ISSET_ID = 2;
57691
    private static final int __ENDDATE_ISSET_ID = 1;
57704
    private BitSet __isset_bit_vector = new BitSet(3);
57692
    private BitSet __isset_bit_vector = new BitSet(2);
57705
 
57693
 
57706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57694
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57707
    static {
57695
    static {
57708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57696
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57709
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
57711
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57697
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57713
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57699
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57700
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
57715
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57716
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isProductAddedToCart_args.class, metaDataMap);
57702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductsAddedToCart_args.class, metaDataMap);
57717
    }
57703
    }
57718
 
57704
 
57719
    public isProductAddedToCart_args() {
57705
    public getProductsAddedToCart_args() {
57720
    }
57706
    }
57721
 
57707
 
57722
    public isProductAddedToCart_args(
57708
    public getProductsAddedToCart_args(
57723
      long itemId,
-
 
57724
      long startDate,
57709
      long startDate,
57725
      long endDate)
57710
      long endDate)
57726
    {
57711
    {
57727
      this();
57712
      this();
57728
      this.itemId = itemId;
-
 
57729
      setItemIdIsSet(true);
-
 
57730
      this.startDate = startDate;
57713
      this.startDate = startDate;
57731
      setStartDateIsSet(true);
57714
      setStartDateIsSet(true);
57732
      this.endDate = endDate;
57715
      this.endDate = endDate;
57733
      setEndDateIsSet(true);
57716
      setEndDateIsSet(true);
57734
    }
57717
    }
57735
 
57718
 
57736
    /**
57719
    /**
57737
     * Performs a deep copy on <i>other</i>.
57720
     * Performs a deep copy on <i>other</i>.
57738
     */
57721
     */
57739
    public isProductAddedToCart_args(isProductAddedToCart_args other) {
57722
    public getProductsAddedToCart_args(getProductsAddedToCart_args other) {
57740
      __isset_bit_vector.clear();
57723
      __isset_bit_vector.clear();
57741
      __isset_bit_vector.or(other.__isset_bit_vector);
57724
      __isset_bit_vector.or(other.__isset_bit_vector);
57742
      this.itemId = other.itemId;
-
 
57743
      this.startDate = other.startDate;
57725
      this.startDate = other.startDate;
57744
      this.endDate = other.endDate;
57726
      this.endDate = other.endDate;
57745
    }
57727
    }
57746
 
57728
 
57747
    public isProductAddedToCart_args deepCopy() {
57729
    public getProductsAddedToCart_args deepCopy() {
57748
      return new isProductAddedToCart_args(this);
57730
      return new getProductsAddedToCart_args(this);
57749
    }
57731
    }
57750
 
57732
 
57751
    @Override
57733
    @Override
57752
    public void clear() {
57734
    public void clear() {
57753
      setItemIdIsSet(false);
-
 
57754
      this.itemId = 0;
-
 
57755
      setStartDateIsSet(false);
57735
      setStartDateIsSet(false);
57756
      this.startDate = 0;
57736
      this.startDate = 0;
57757
      setEndDateIsSet(false);
57737
      setEndDateIsSet(false);
57758
      this.endDate = 0;
57738
      this.endDate = 0;
57759
    }
57739
    }
57760
 
57740
 
57761
    public long getItemId() {
-
 
57762
      return this.itemId;
-
 
57763
    }
-
 
57764
 
-
 
57765
    public void setItemId(long itemId) {
-
 
57766
      this.itemId = itemId;
-
 
57767
      setItemIdIsSet(true);
-
 
57768
    }
-
 
57769
 
-
 
57770
    public void unsetItemId() {
-
 
57771
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
57772
    }
-
 
57773
 
-
 
57774
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
57775
    public boolean isSetItemId() {
-
 
57776
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
57777
    }
-
 
57778
 
-
 
57779
    public void setItemIdIsSet(boolean value) {
-
 
57780
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
57781
    }
-
 
57782
 
-
 
57783
    public long getStartDate() {
57741
    public long getStartDate() {
57784
      return this.startDate;
57742
      return this.startDate;
57785
    }
57743
    }
57786
 
57744
 
57787
    public void setStartDate(long startDate) {
57745
    public void setStartDate(long startDate) {
Line 57824... Line 57782...
57824
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
57782
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
57825
    }
57783
    }
57826
 
57784
 
57827
    public void setFieldValue(_Fields field, Object value) {
57785
    public void setFieldValue(_Fields field, Object value) {
57828
      switch (field) {
57786
      switch (field) {
57829
      case ITEM_ID:
-
 
57830
        if (value == null) {
-
 
57831
          unsetItemId();
-
 
57832
        } else {
-
 
57833
          setItemId((Long)value);
-
 
57834
        }
-
 
57835
        break;
-
 
57836
 
-
 
57837
      case START_DATE:
57787
      case START_DATE:
57838
        if (value == null) {
57788
        if (value == null) {
57839
          unsetStartDate();
57789
          unsetStartDate();
57840
        } else {
57790
        } else {
57841
          setStartDate((Long)value);
57791
          setStartDate((Long)value);
Line 57853... Line 57803...
57853
      }
57803
      }
57854
    }
57804
    }
57855
 
57805
 
57856
    public Object getFieldValue(_Fields field) {
57806
    public Object getFieldValue(_Fields field) {
57857
      switch (field) {
57807
      switch (field) {
57858
      case ITEM_ID:
-
 
57859
        return Long.valueOf(getItemId());
-
 
57860
 
-
 
57861
      case START_DATE:
57808
      case START_DATE:
57862
        return Long.valueOf(getStartDate());
57809
        return Long.valueOf(getStartDate());
57863
 
57810
 
57864
      case END_DATE:
57811
      case END_DATE:
57865
        return Long.valueOf(getEndDate());
57812
        return Long.valueOf(getEndDate());
Line 57873... Line 57820...
57873
      if (field == null) {
57820
      if (field == null) {
57874
        throw new IllegalArgumentException();
57821
        throw new IllegalArgumentException();
57875
      }
57822
      }
57876
 
57823
 
57877
      switch (field) {
57824
      switch (field) {
57878
      case ITEM_ID:
-
 
57879
        return isSetItemId();
-
 
57880
      case START_DATE:
57825
      case START_DATE:
57881
        return isSetStartDate();
57826
        return isSetStartDate();
57882
      case END_DATE:
57827
      case END_DATE:
57883
        return isSetEndDate();
57828
        return isSetEndDate();
57884
      }
57829
      }
Line 57887... Line 57832...
57887
 
57832
 
57888
    @Override
57833
    @Override
57889
    public boolean equals(Object that) {
57834
    public boolean equals(Object that) {
57890
      if (that == null)
57835
      if (that == null)
57891
        return false;
57836
        return false;
57892
      if (that instanceof isProductAddedToCart_args)
57837
      if (that instanceof getProductsAddedToCart_args)
57893
        return this.equals((isProductAddedToCart_args)that);
57838
        return this.equals((getProductsAddedToCart_args)that);
57894
      return false;
57839
      return false;
57895
    }
57840
    }
57896
 
57841
 
57897
    public boolean equals(isProductAddedToCart_args that) {
57842
    public boolean equals(getProductsAddedToCart_args that) {
57898
      if (that == null)
57843
      if (that == null)
57899
        return false;
57844
        return false;
57900
 
57845
 
57901
      boolean this_present_itemId = true;
-
 
57902
      boolean that_present_itemId = true;
-
 
57903
      if (this_present_itemId || that_present_itemId) {
-
 
57904
        if (!(this_present_itemId && that_present_itemId))
-
 
57905
          return false;
-
 
57906
        if (this.itemId != that.itemId)
-
 
57907
          return false;
-
 
57908
      }
-
 
57909
 
-
 
57910
      boolean this_present_startDate = true;
57846
      boolean this_present_startDate = true;
57911
      boolean that_present_startDate = true;
57847
      boolean that_present_startDate = true;
57912
      if (this_present_startDate || that_present_startDate) {
57848
      if (this_present_startDate || that_present_startDate) {
57913
        if (!(this_present_startDate && that_present_startDate))
57849
        if (!(this_present_startDate && that_present_startDate))
57914
          return false;
57850
          return false;
Line 57931... Line 57867...
57931
    @Override
57867
    @Override
57932
    public int hashCode() {
57868
    public int hashCode() {
57933
      return 0;
57869
      return 0;
57934
    }
57870
    }
57935
 
57871
 
57936
    public int compareTo(isProductAddedToCart_args other) {
57872
    public int compareTo(getProductsAddedToCart_args other) {
57937
      if (!getClass().equals(other.getClass())) {
57873
      if (!getClass().equals(other.getClass())) {
57938
        return getClass().getName().compareTo(other.getClass().getName());
57874
        return getClass().getName().compareTo(other.getClass().getName());
57939
      }
57875
      }
57940
 
57876
 
57941
      int lastComparison = 0;
57877
      int lastComparison = 0;
57942
      isProductAddedToCart_args typedOther = (isProductAddedToCart_args)other;
57878
      getProductsAddedToCart_args typedOther = (getProductsAddedToCart_args)other;
57943
 
57879
 
57944
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
57945
      if (lastComparison != 0) {
-
 
57946
        return lastComparison;
-
 
57947
      }
-
 
57948
      if (isSetItemId()) {
-
 
57949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
57950
        if (lastComparison != 0) {
-
 
57951
          return lastComparison;
-
 
57952
        }
-
 
57953
      }
-
 
57954
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
57880
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
57955
      if (lastComparison != 0) {
57881
      if (lastComparison != 0) {
57956
        return lastComparison;
57882
        return lastComparison;
57957
      }
57883
      }
57958
      if (isSetStartDate()) {
57884
      if (isSetStartDate()) {
Line 57986... Line 57912...
57986
        field = iprot.readFieldBegin();
57912
        field = iprot.readFieldBegin();
57987
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57913
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57988
          break;
57914
          break;
57989
        }
57915
        }
57990
        switch (field.id) {
57916
        switch (field.id) {
57991
          case 1: // ITEM_ID
-
 
57992
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
57993
              this.itemId = iprot.readI64();
-
 
57994
              setItemIdIsSet(true);
-
 
57995
            } else { 
-
 
57996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57997
            }
-
 
57998
            break;
-
 
57999
          case 2: // START_DATE
57917
          case 1: // START_DATE
58000
            if (field.type == org.apache.thrift.protocol.TType.I64) {
57918
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58001
              this.startDate = iprot.readI64();
57919
              this.startDate = iprot.readI64();
58002
              setStartDateIsSet(true);
57920
              setStartDateIsSet(true);
58003
            } else { 
57921
            } else { 
58004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58005
            }
57923
            }
58006
            break;
57924
            break;
58007
          case 3: // END_DATE
57925
          case 2: // END_DATE
58008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
57926
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58009
              this.endDate = iprot.readI64();
57927
              this.endDate = iprot.readI64();
58010
              setEndDateIsSet(true);
57928
              setEndDateIsSet(true);
58011
            } else { 
57929
            } else { 
58012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58023... Line 57941...
58023
 
57941
 
58024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57942
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58025
      validate();
57943
      validate();
58026
 
57944
 
58027
      oprot.writeStructBegin(STRUCT_DESC);
57945
      oprot.writeStructBegin(STRUCT_DESC);
58028
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
58029
      oprot.writeI64(this.itemId);
-
 
58030
      oprot.writeFieldEnd();
-
 
58031
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
57946
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
58032
      oprot.writeI64(this.startDate);
57947
      oprot.writeI64(this.startDate);
58033
      oprot.writeFieldEnd();
57948
      oprot.writeFieldEnd();
58034
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
57949
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
58035
      oprot.writeI64(this.endDate);
57950
      oprot.writeI64(this.endDate);
Line 58038... Line 57953...
58038
      oprot.writeStructEnd();
57953
      oprot.writeStructEnd();
58039
    }
57954
    }
58040
 
57955
 
58041
    @Override
57956
    @Override
58042
    public String toString() {
57957
    public String toString() {
58043
      StringBuilder sb = new StringBuilder("isProductAddedToCart_args(");
57958
      StringBuilder sb = new StringBuilder("getProductsAddedToCart_args(");
58044
      boolean first = true;
57959
      boolean first = true;
58045
 
57960
 
58046
      sb.append("itemId:");
-
 
58047
      sb.append(this.itemId);
-
 
58048
      first = false;
-
 
58049
      if (!first) sb.append(", ");
-
 
58050
      sb.append("startDate:");
57961
      sb.append("startDate:");
58051
      sb.append(this.startDate);
57962
      sb.append(this.startDate);
58052
      first = false;
57963
      first = false;
58053
      if (!first) sb.append(", ");
57964
      if (!first) sb.append(", ");
58054
      sb.append("endDate:");
57965
      sb.append("endDate:");
Line 58080... Line 57991...
58080
      }
57991
      }
58081
    }
57992
    }
58082
 
57993
 
58083
  }
57994
  }
58084
 
57995
 
58085
  public static class isProductAddedToCart_result implements org.apache.thrift.TBase<isProductAddedToCart_result, isProductAddedToCart_result._Fields>, java.io.Serializable, Cloneable   {
57996
  public static class getProductsAddedToCart_result implements org.apache.thrift.TBase<getProductsAddedToCart_result, getProductsAddedToCart_result._Fields>, java.io.Serializable, Cloneable   {
58086
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isProductAddedToCart_result");
57997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProductsAddedToCart_result");
58087
 
57998
 
58088
    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);
57999
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
58089
 
58000
 
58090
    private boolean success; // required
58001
    private List<Long> success; // required
58091
 
58002
 
58092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58093
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58094
      SUCCESS((short)0, "success");
58005
      SUCCESS((short)0, "success");
58095
 
58006
 
Line 58146... Line 58057...
58146
        return _fieldName;
58057
        return _fieldName;
58147
      }
58058
      }
58148
    }
58059
    }
58149
 
58060
 
58150
    // isset id assignments
58061
    // isset id assignments
58151
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
58152
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
58153
 
58062
 
58154
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58155
    static {
58064
    static {
58156
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58157
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58066
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58067
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
58158
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
58068
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
58159
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58069
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58160
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isProductAddedToCart_result.class, metaDataMap);
58070
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProductsAddedToCart_result.class, metaDataMap);
58161
    }
58071
    }
58162
 
58072
 
58163
    public isProductAddedToCart_result() {
58073
    public getProductsAddedToCart_result() {
58164
    }
58074
    }
58165
 
58075
 
58166
    public isProductAddedToCart_result(
58076
    public getProductsAddedToCart_result(
58167
      boolean success)
58077
      List<Long> success)
58168
    {
58078
    {
58169
      this();
58079
      this();
58170
      this.success = success;
58080
      this.success = success;
58171
      setSuccessIsSet(true);
-
 
58172
    }
58081
    }
58173
 
58082
 
58174
    /**
58083
    /**
58175
     * Performs a deep copy on <i>other</i>.
58084
     * Performs a deep copy on <i>other</i>.
58176
     */
58085
     */
58177
    public isProductAddedToCart_result(isProductAddedToCart_result other) {
58086
    public getProductsAddedToCart_result(getProductsAddedToCart_result other) {
58178
      __isset_bit_vector.clear();
58087
      if (other.isSetSuccess()) {
-
 
58088
        List<Long> __this__success = new ArrayList<Long>();
-
 
58089
        for (Long other_element : other.success) {
58179
      __isset_bit_vector.or(other.__isset_bit_vector);
58090
          __this__success.add(other_element);
-
 
58091
        }
58180
      this.success = other.success;
58092
        this.success = __this__success;
-
 
58093
      }
58181
    }
58094
    }
58182
 
58095
 
58183
    public isProductAddedToCart_result deepCopy() {
58096
    public getProductsAddedToCart_result deepCopy() {
58184
      return new isProductAddedToCart_result(this);
58097
      return new getProductsAddedToCart_result(this);
58185
    }
58098
    }
58186
 
58099
 
58187
    @Override
58100
    @Override
58188
    public void clear() {
58101
    public void clear() {
58189
      setSuccessIsSet(false);
-
 
58190
      this.success = false;
58102
      this.success = null;
58191
    }
58103
    }
58192
 
58104
 
-
 
58105
    public int getSuccessSize() {
-
 
58106
      return (this.success == null) ? 0 : this.success.size();
-
 
58107
    }
-
 
58108
 
-
 
58109
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
58110
      return (this.success == null) ? null : this.success.iterator();
-
 
58111
    }
-
 
58112
 
-
 
58113
    public void addToSuccess(long elem) {
-
 
58114
      if (this.success == null) {
-
 
58115
        this.success = new ArrayList<Long>();
-
 
58116
      }
-
 
58117
      this.success.add(elem);
-
 
58118
    }
-
 
58119
 
58193
    public boolean isSuccess() {
58120
    public List<Long> getSuccess() {
58194
      return this.success;
58121
      return this.success;
58195
    }
58122
    }
58196
 
58123
 
58197
    public void setSuccess(boolean success) {
58124
    public void setSuccess(List<Long> success) {
58198
      this.success = success;
58125
      this.success = success;
58199
      setSuccessIsSet(true);
-
 
58200
    }
58126
    }
58201
 
58127
 
58202
    public void unsetSuccess() {
58128
    public void unsetSuccess() {
58203
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
58129
      this.success = null;
58204
    }
58130
    }
58205
 
58131
 
58206
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
58132
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
58207
    public boolean isSetSuccess() {
58133
    public boolean isSetSuccess() {
58208
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
58134
      return this.success != null;
58209
    }
58135
    }
58210
 
58136
 
58211
    public void setSuccessIsSet(boolean value) {
58137
    public void setSuccessIsSet(boolean value) {
-
 
58138
      if (!value) {
58212
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
58139
        this.success = null;
-
 
58140
      }
58213
    }
58141
    }
58214
 
58142
 
58215
    public void setFieldValue(_Fields field, Object value) {
58143
    public void setFieldValue(_Fields field, Object value) {
58216
      switch (field) {
58144
      switch (field) {
58217
      case SUCCESS:
58145
      case SUCCESS:
58218
        if (value == null) {
58146
        if (value == null) {
58219
          unsetSuccess();
58147
          unsetSuccess();
58220
        } else {
58148
        } else {
58221
          setSuccess((Boolean)value);
58149
          setSuccess((List<Long>)value);
58222
        }
58150
        }
58223
        break;
58151
        break;
58224
 
58152
 
58225
      }
58153
      }
58226
    }
58154
    }
58227
 
58155
 
58228
    public Object getFieldValue(_Fields field) {
58156
    public Object getFieldValue(_Fields field) {
58229
      switch (field) {
58157
      switch (field) {
58230
      case SUCCESS:
58158
      case SUCCESS:
58231
        return Boolean.valueOf(isSuccess());
58159
        return getSuccess();
58232
 
58160
 
58233
      }
58161
      }
58234
      throw new IllegalStateException();
58162
      throw new IllegalStateException();
58235
    }
58163
    }
58236
 
58164
 
Line 58249... Line 58177...
58249
 
58177
 
58250
    @Override
58178
    @Override
58251
    public boolean equals(Object that) {
58179
    public boolean equals(Object that) {
58252
      if (that == null)
58180
      if (that == null)
58253
        return false;
58181
        return false;
58254
      if (that instanceof isProductAddedToCart_result)
58182
      if (that instanceof getProductsAddedToCart_result)
58255
        return this.equals((isProductAddedToCart_result)that);
58183
        return this.equals((getProductsAddedToCart_result)that);
58256
      return false;
58184
      return false;
58257
    }
58185
    }
58258
 
58186
 
58259
    public boolean equals(isProductAddedToCart_result that) {
58187
    public boolean equals(getProductsAddedToCart_result that) {
58260
      if (that == null)
58188
      if (that == null)
58261
        return false;
58189
        return false;
58262
 
58190
 
58263
      boolean this_present_success = true;
58191
      boolean this_present_success = true && this.isSetSuccess();
58264
      boolean that_present_success = true;
58192
      boolean that_present_success = true && that.isSetSuccess();
58265
      if (this_present_success || that_present_success) {
58193
      if (this_present_success || that_present_success) {
58266
        if (!(this_present_success && that_present_success))
58194
        if (!(this_present_success && that_present_success))
58267
          return false;
58195
          return false;
58268
        if (this.success != that.success)
58196
        if (!this.success.equals(that.success))
58269
          return false;
58197
          return false;
58270
      }
58198
      }
58271
 
58199
 
58272
      return true;
58200
      return true;
58273
    }
58201
    }
Line 58275... Line 58203...
58275
    @Override
58203
    @Override
58276
    public int hashCode() {
58204
    public int hashCode() {
58277
      return 0;
58205
      return 0;
58278
    }
58206
    }
58279
 
58207
 
58280
    public int compareTo(isProductAddedToCart_result other) {
58208
    public int compareTo(getProductsAddedToCart_result other) {
58281
      if (!getClass().equals(other.getClass())) {
58209
      if (!getClass().equals(other.getClass())) {
58282
        return getClass().getName().compareTo(other.getClass().getName());
58210
        return getClass().getName().compareTo(other.getClass().getName());
58283
      }
58211
      }
58284
 
58212
 
58285
      int lastComparison = 0;
58213
      int lastComparison = 0;
58286
      isProductAddedToCart_result typedOther = (isProductAddedToCart_result)other;
58214
      getProductsAddedToCart_result typedOther = (getProductsAddedToCart_result)other;
58287
 
58215
 
58288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
58216
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
58289
      if (lastComparison != 0) {
58217
      if (lastComparison != 0) {
58290
        return lastComparison;
58218
        return lastComparison;
58291
      }
58219
      }
Line 58311... Line 58239...
58311
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58312
          break;
58240
          break;
58313
        }
58241
        }
58314
        switch (field.id) {
58242
        switch (field.id) {
58315
          case 0: // SUCCESS
58243
          case 0: // SUCCESS
58316
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
58244
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
58245
              {
-
 
58246
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
-
 
58247
                this.success = new ArrayList<Long>(_list116.size);
-
 
58248
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
-
 
58249
                {
-
 
58250
                  long _elem118; // required
58317
              this.success = iprot.readBool();
58251
                  _elem118 = iprot.readI64();
58318
              setSuccessIsSet(true);
58252
                  this.success.add(_elem118);
-
 
58253
                }
-
 
58254
                iprot.readListEnd();
-
 
58255
              }
58319
            } else { 
58256
            } else { 
58320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58321
            }
58258
            }
58322
            break;
58259
            break;
58323
          default:
58260
          default:
Line 58332... Line 58269...
58332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58333
      oprot.writeStructBegin(STRUCT_DESC);
58270
      oprot.writeStructBegin(STRUCT_DESC);
58334
 
58271
 
58335
      if (this.isSetSuccess()) {
58272
      if (this.isSetSuccess()) {
58336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58273
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
58274
        {
-
 
58275
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
58337
        oprot.writeBool(this.success);
58276
          for (long _iter119 : this.success)
-
 
58277
          {
-
 
58278
            oprot.writeI64(_iter119);
-
 
58279
          }
-
 
58280
          oprot.writeListEnd();
-
 
58281
        }
58338
        oprot.writeFieldEnd();
58282
        oprot.writeFieldEnd();
58339
      }
58283
      }
58340
      oprot.writeFieldStop();
58284
      oprot.writeFieldStop();
58341
      oprot.writeStructEnd();
58285
      oprot.writeStructEnd();
58342
    }
58286
    }
58343
 
58287
 
58344
    @Override
58288
    @Override
58345
    public String toString() {
58289
    public String toString() {
58346
      StringBuilder sb = new StringBuilder("isProductAddedToCart_result(");
58290
      StringBuilder sb = new StringBuilder("getProductsAddedToCart_result(");
58347
      boolean first = true;
58291
      boolean first = true;
58348
 
58292
 
58349
      sb.append("success:");
58293
      sb.append("success:");
-
 
58294
      if (this.success == null) {
-
 
58295
        sb.append("null");
-
 
58296
      } else {
58350
      sb.append(this.success);
58297
        sb.append(this.success);
-
 
58298
      }
58351
      first = false;
58299
      first = false;
58352
      sb.append(")");
58300
      sb.append(")");
58353
      return sb.toString();
58301
      return sb.toString();
58354
    }
58302
    }
58355
 
58303