Subversion Repositories SmartDukaan

Rev

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

Rev 3557 Rev 3563
Line 121... Line 121...
121
 
121
 
122
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
122
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
123
 
123
 
124
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
124
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
125
 
125
 
126
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException;
-
 
127
 
-
 
128
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException;
126
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException;
129
 
127
 
130
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException;
128
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException;
131
 
129
 
132
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
130
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
Line 369... Line 367...
369
 
367
 
370
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
368
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
371
 
369
 
372
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
370
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
373
 
371
 
374
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeQuantity_call> resultHandler) throws org.apache.thrift.TException;
-
 
375
 
-
 
376
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
372
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
377
 
373
 
378
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
374
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
379
 
375
 
380
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
376
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
Line 1715... Line 1711...
1715
        throw result.scx;
1711
        throw result.scx;
1716
      }
1712
      }
1717
      return;
1713
      return;
1718
    }
1714
    }
1719
 
1715
 
1720
    public void changeQuantity(long cartId, long itemId, long quantity) throws ShoppingCartException, org.apache.thrift.TException
-
 
1721
    {
-
 
1722
      send_changeQuantity(cartId, itemId, quantity);
-
 
1723
      recv_changeQuantity();
-
 
1724
    }
-
 
1725
 
-
 
1726
    public void send_changeQuantity(long cartId, long itemId, long quantity) throws org.apache.thrift.TException
-
 
1727
    {
-
 
1728
      changeQuantity_args args = new changeQuantity_args();
-
 
1729
      args.setCartId(cartId);
-
 
1730
      args.setItemId(itemId);
-
 
1731
      args.setQuantity(quantity);
-
 
1732
      sendBase("changeQuantity", args);
-
 
1733
    }
-
 
1734
 
-
 
1735
    public void recv_changeQuantity() throws ShoppingCartException, org.apache.thrift.TException
-
 
1736
    {
-
 
1737
      changeQuantity_result result = new changeQuantity_result();
-
 
1738
      receiveBase(result, "changeQuantity");
-
 
1739
      if (result.scx != null) {
-
 
1740
        throw result.scx;
-
 
1741
      }
-
 
1742
      return;
-
 
1743
    }
-
 
1744
 
-
 
1745
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException
1716
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException
1746
    {
1717
    {
1747
      send_changeItemStatus(cartId, itemId, status);
1718
      send_changeItemStatus(cartId, itemId, status);
1748
      recv_changeItemStatus();
1719
      recv_changeItemStatus();
1749
    }
1720
    }
Line 3930... Line 3901...
3930
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3901
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3931
        (new Client(prot)).recv_deleteItemFromCart();
3902
        (new Client(prot)).recv_deleteItemFromCart();
3932
      }
3903
      }
3933
    }
3904
    }
3934
 
3905
 
3935
    public void changeQuantity(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<changeQuantity_call> resultHandler) throws org.apache.thrift.TException {
-
 
3936
      checkReady();
-
 
3937
      changeQuantity_call method_call = new changeQuantity_call(cartId, itemId, quantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
3938
      this.___currentMethod = method_call;
-
 
3939
      ___manager.call(method_call);
-
 
3940
    }
-
 
3941
 
-
 
3942
    public static class changeQuantity_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3943
      private long cartId;
-
 
3944
      private long itemId;
-
 
3945
      private long quantity;
-
 
3946
      public changeQuantity_call(long cartId, long itemId, long quantity, org.apache.thrift.async.AsyncMethodCallback<changeQuantity_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 {
-
 
3947
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3948
        this.cartId = cartId;
-
 
3949
        this.itemId = itemId;
-
 
3950
        this.quantity = quantity;
-
 
3951
      }
-
 
3952
 
-
 
3953
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3954
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeQuantity", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3955
        changeQuantity_args args = new changeQuantity_args();
-
 
3956
        args.setCartId(cartId);
-
 
3957
        args.setItemId(itemId);
-
 
3958
        args.setQuantity(quantity);
-
 
3959
        args.write(prot);
-
 
3960
        prot.writeMessageEnd();
-
 
3961
      }
-
 
3962
 
-
 
3963
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
3964
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3965
          throw new IllegalStateException("Method call not finished!");
-
 
3966
        }
-
 
3967
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3969
        (new Client(prot)).recv_changeQuantity();
-
 
3970
      }
-
 
3971
    }
-
 
3972
 
-
 
3973
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
3906
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
3974
      checkReady();
3907
      checkReady();
3975
      changeItemStatus_call method_call = new changeItemStatus_call(cartId, itemId, status, resultHandler, this, ___protocolFactory, ___transport);
3908
      changeItemStatus_call method_call = new changeItemStatus_call(cartId, itemId, status, resultHandler, this, ___protocolFactory, ___transport);
3976
      this.___currentMethod = method_call;
3909
      this.___currentMethod = method_call;
3977
      ___manager.call(method_call);
3910
      ___manager.call(method_call);
Line 4795... Line 4728...
4795
      processMap.put("getCartsByStatus", new getCartsByStatus());
4728
      processMap.put("getCartsByStatus", new getCartsByStatus());
4796
      processMap.put("getCartsByTime", new getCartsByTime());
4729
      processMap.put("getCartsByTime", new getCartsByTime());
4797
      processMap.put("changeCartStatus", new changeCartStatus());
4730
      processMap.put("changeCartStatus", new changeCartStatus());
4798
      processMap.put("addItemToCart", new addItemToCart());
4731
      processMap.put("addItemToCart", new addItemToCart());
4799
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4732
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4800
      processMap.put("changeQuantity", new changeQuantity());
-
 
4801
      processMap.put("changeItemStatus", new changeItemStatus());
4733
      processMap.put("changeItemStatus", new changeItemStatus());
4802
      processMap.put("addAddressToCart", new addAddressToCart());
4734
      processMap.put("addAddressToCart", new addAddressToCart());
4803
      processMap.put("applyCouponToCart", new applyCouponToCart());
4735
      processMap.put("applyCouponToCart", new applyCouponToCart());
4804
      processMap.put("removeCoupon", new removeCoupon());
4736
      processMap.put("removeCoupon", new removeCoupon());
4805
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
4737
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
Line 5794... Line 5726...
5794
        }
5726
        }
5795
        return result;
5727
        return result;
5796
      }
5728
      }
5797
    }
5729
    }
5798
 
5730
 
5799
    private static class changeQuantity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeQuantity_args> {
-
 
5800
      public changeQuantity() {
-
 
5801
        super("changeQuantity");
-
 
5802
      }
-
 
5803
 
-
 
5804
      protected changeQuantity_args getEmptyArgsInstance() {
-
 
5805
        return new changeQuantity_args();
-
 
5806
      }
-
 
5807
 
-
 
5808
      protected changeQuantity_result getResult(I iface, changeQuantity_args args) throws org.apache.thrift.TException {
-
 
5809
        changeQuantity_result result = new changeQuantity_result();
-
 
5810
        try {
-
 
5811
          iface.changeQuantity(args.cartId, args.itemId, args.quantity);
-
 
5812
        } catch (ShoppingCartException scx) {
-
 
5813
          result.scx = scx;
-
 
5814
        }
-
 
5815
        return result;
-
 
5816
      }
-
 
5817
    }
-
 
5818
 
-
 
5819
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
5731
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
5820
      public changeItemStatus() {
5732
      public changeItemStatus() {
5821
        super("changeItemStatus");
5733
        super("changeItemStatus");
5822
      }
5734
      }
5823
 
5735
 
Line 42027... Line 41939...
42027
      }
41939
      }
42028
    }
41940
    }
42029
 
41941
 
42030
  }
41942
  }
42031
 
41943
 
42032
  public static class changeQuantity_args implements org.apache.thrift.TBase<changeQuantity_args, changeQuantity_args._Fields>, java.io.Serializable, Cloneable   {
-
 
42033
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_args");
-
 
42034
 
-
 
42035
    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);
-
 
42036
    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)2);
-
 
42037
    private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
42038
 
-
 
42039
    private long cartId; // required
-
 
42040
    private long itemId; // required
-
 
42041
    private long quantity; // required
-
 
42042
 
-
 
42043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
42044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
42045
      CART_ID((short)1, "cartId"),
-
 
42046
      ITEM_ID((short)2, "itemId"),
-
 
42047
      QUANTITY((short)3, "quantity");
-
 
42048
 
-
 
42049
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
42050
 
-
 
42051
      static {
-
 
42052
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
42053
          byName.put(field.getFieldName(), field);
-
 
42054
        }
-
 
42055
      }
-
 
42056
 
-
 
42057
      /**
-
 
42058
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42059
       */
-
 
42060
      public static _Fields findByThriftId(int fieldId) {
-
 
42061
        switch(fieldId) {
-
 
42062
          case 1: // CART_ID
-
 
42063
            return CART_ID;
-
 
42064
          case 2: // ITEM_ID
-
 
42065
            return ITEM_ID;
-
 
42066
          case 3: // QUANTITY
-
 
42067
            return QUANTITY;
-
 
42068
          default:
-
 
42069
            return null;
-
 
42070
        }
-
 
42071
      }
-
 
42072
 
-
 
42073
      /**
-
 
42074
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42075
       * if it is not found.
-
 
42076
       */
-
 
42077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42078
        _Fields fields = findByThriftId(fieldId);
-
 
42079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42080
        return fields;
-
 
42081
      }
-
 
42082
 
-
 
42083
      /**
-
 
42084
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42085
       */
-
 
42086
      public static _Fields findByName(String name) {
-
 
42087
        return byName.get(name);
-
 
42088
      }
-
 
42089
 
-
 
42090
      private final short _thriftId;
-
 
42091
      private final String _fieldName;
-
 
42092
 
-
 
42093
      _Fields(short thriftId, String fieldName) {
-
 
42094
        _thriftId = thriftId;
-
 
42095
        _fieldName = fieldName;
-
 
42096
      }
-
 
42097
 
-
 
42098
      public short getThriftFieldId() {
-
 
42099
        return _thriftId;
-
 
42100
      }
-
 
42101
 
-
 
42102
      public String getFieldName() {
-
 
42103
        return _fieldName;
-
 
42104
      }
-
 
42105
    }
-
 
42106
 
-
 
42107
    // isset id assignments
-
 
42108
    private static final int __CARTID_ISSET_ID = 0;
-
 
42109
    private static final int __ITEMID_ISSET_ID = 1;
-
 
42110
    private static final int __QUANTITY_ISSET_ID = 2;
-
 
42111
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
42112
 
-
 
42113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42114
    static {
-
 
42115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42116
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42118
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42120
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42121
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
42122
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42123
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_args.class, metaDataMap);
-
 
42124
    }
-
 
42125
 
-
 
42126
    public changeQuantity_args() {
-
 
42127
    }
-
 
42128
 
-
 
42129
    public changeQuantity_args(
-
 
42130
      long cartId,
-
 
42131
      long itemId,
-
 
42132
      long quantity)
-
 
42133
    {
-
 
42134
      this();
-
 
42135
      this.cartId = cartId;
-
 
42136
      setCartIdIsSet(true);
-
 
42137
      this.itemId = itemId;
-
 
42138
      setItemIdIsSet(true);
-
 
42139
      this.quantity = quantity;
-
 
42140
      setQuantityIsSet(true);
-
 
42141
    }
-
 
42142
 
-
 
42143
    /**
-
 
42144
     * Performs a deep copy on <i>other</i>.
-
 
42145
     */
-
 
42146
    public changeQuantity_args(changeQuantity_args other) {
-
 
42147
      __isset_bit_vector.clear();
-
 
42148
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
42149
      this.cartId = other.cartId;
-
 
42150
      this.itemId = other.itemId;
-
 
42151
      this.quantity = other.quantity;
-
 
42152
    }
-
 
42153
 
-
 
42154
    public changeQuantity_args deepCopy() {
-
 
42155
      return new changeQuantity_args(this);
-
 
42156
    }
-
 
42157
 
-
 
42158
    @Override
-
 
42159
    public void clear() {
-
 
42160
      setCartIdIsSet(false);
-
 
42161
      this.cartId = 0;
-
 
42162
      setItemIdIsSet(false);
-
 
42163
      this.itemId = 0;
-
 
42164
      setQuantityIsSet(false);
-
 
42165
      this.quantity = 0;
-
 
42166
    }
-
 
42167
 
-
 
42168
    public long getCartId() {
-
 
42169
      return this.cartId;
-
 
42170
    }
-
 
42171
 
-
 
42172
    public void setCartId(long cartId) {
-
 
42173
      this.cartId = cartId;
-
 
42174
      setCartIdIsSet(true);
-
 
42175
    }
-
 
42176
 
-
 
42177
    public void unsetCartId() {
-
 
42178
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
42179
    }
-
 
42180
 
-
 
42181
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
42182
    public boolean isSetCartId() {
-
 
42183
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
42184
    }
-
 
42185
 
-
 
42186
    public void setCartIdIsSet(boolean value) {
-
 
42187
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
42188
    }
-
 
42189
 
-
 
42190
    public long getItemId() {
-
 
42191
      return this.itemId;
-
 
42192
    }
-
 
42193
 
-
 
42194
    public void setItemId(long itemId) {
-
 
42195
      this.itemId = itemId;
-
 
42196
      setItemIdIsSet(true);
-
 
42197
    }
-
 
42198
 
-
 
42199
    public void unsetItemId() {
-
 
42200
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
42201
    }
-
 
42202
 
-
 
42203
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
42204
    public boolean isSetItemId() {
-
 
42205
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
42206
    }
-
 
42207
 
-
 
42208
    public void setItemIdIsSet(boolean value) {
-
 
42209
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
42210
    }
-
 
42211
 
-
 
42212
    public long getQuantity() {
-
 
42213
      return this.quantity;
-
 
42214
    }
-
 
42215
 
-
 
42216
    public void setQuantity(long quantity) {
-
 
42217
      this.quantity = quantity;
-
 
42218
      setQuantityIsSet(true);
-
 
42219
    }
-
 
42220
 
-
 
42221
    public void unsetQuantity() {
-
 
42222
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
-
 
42223
    }
-
 
42224
 
-
 
42225
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
-
 
42226
    public boolean isSetQuantity() {
-
 
42227
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
-
 
42228
    }
-
 
42229
 
-
 
42230
    public void setQuantityIsSet(boolean value) {
-
 
42231
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
-
 
42232
    }
-
 
42233
 
-
 
42234
    public void setFieldValue(_Fields field, Object value) {
-
 
42235
      switch (field) {
-
 
42236
      case CART_ID:
-
 
42237
        if (value == null) {
-
 
42238
          unsetCartId();
-
 
42239
        } else {
-
 
42240
          setCartId((Long)value);
-
 
42241
        }
-
 
42242
        break;
-
 
42243
 
-
 
42244
      case ITEM_ID:
-
 
42245
        if (value == null) {
-
 
42246
          unsetItemId();
-
 
42247
        } else {
-
 
42248
          setItemId((Long)value);
-
 
42249
        }
-
 
42250
        break;
-
 
42251
 
-
 
42252
      case QUANTITY:
-
 
42253
        if (value == null) {
-
 
42254
          unsetQuantity();
-
 
42255
        } else {
-
 
42256
          setQuantity((Long)value);
-
 
42257
        }
-
 
42258
        break;
-
 
42259
 
-
 
42260
      }
-
 
42261
    }
-
 
42262
 
-
 
42263
    public Object getFieldValue(_Fields field) {
-
 
42264
      switch (field) {
-
 
42265
      case CART_ID:
-
 
42266
        return Long.valueOf(getCartId());
-
 
42267
 
-
 
42268
      case ITEM_ID:
-
 
42269
        return Long.valueOf(getItemId());
-
 
42270
 
-
 
42271
      case QUANTITY:
-
 
42272
        return Long.valueOf(getQuantity());
-
 
42273
 
-
 
42274
      }
-
 
42275
      throw new IllegalStateException();
-
 
42276
    }
-
 
42277
 
-
 
42278
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42279
    public boolean isSet(_Fields field) {
-
 
42280
      if (field == null) {
-
 
42281
        throw new IllegalArgumentException();
-
 
42282
      }
-
 
42283
 
-
 
42284
      switch (field) {
-
 
42285
      case CART_ID:
-
 
42286
        return isSetCartId();
-
 
42287
      case ITEM_ID:
-
 
42288
        return isSetItemId();
-
 
42289
      case QUANTITY:
-
 
42290
        return isSetQuantity();
-
 
42291
      }
-
 
42292
      throw new IllegalStateException();
-
 
42293
    }
-
 
42294
 
-
 
42295
    @Override
-
 
42296
    public boolean equals(Object that) {
-
 
42297
      if (that == null)
-
 
42298
        return false;
-
 
42299
      if (that instanceof changeQuantity_args)
-
 
42300
        return this.equals((changeQuantity_args)that);
-
 
42301
      return false;
-
 
42302
    }
-
 
42303
 
-
 
42304
    public boolean equals(changeQuantity_args that) {
-
 
42305
      if (that == null)
-
 
42306
        return false;
-
 
42307
 
-
 
42308
      boolean this_present_cartId = true;
-
 
42309
      boolean that_present_cartId = true;
-
 
42310
      if (this_present_cartId || that_present_cartId) {
-
 
42311
        if (!(this_present_cartId && that_present_cartId))
-
 
42312
          return false;
-
 
42313
        if (this.cartId != that.cartId)
-
 
42314
          return false;
-
 
42315
      }
-
 
42316
 
-
 
42317
      boolean this_present_itemId = true;
-
 
42318
      boolean that_present_itemId = true;
-
 
42319
      if (this_present_itemId || that_present_itemId) {
-
 
42320
        if (!(this_present_itemId && that_present_itemId))
-
 
42321
          return false;
-
 
42322
        if (this.itemId != that.itemId)
-
 
42323
          return false;
-
 
42324
      }
-
 
42325
 
-
 
42326
      boolean this_present_quantity = true;
-
 
42327
      boolean that_present_quantity = true;
-
 
42328
      if (this_present_quantity || that_present_quantity) {
-
 
42329
        if (!(this_present_quantity && that_present_quantity))
-
 
42330
          return false;
-
 
42331
        if (this.quantity != that.quantity)
-
 
42332
          return false;
-
 
42333
      }
-
 
42334
 
-
 
42335
      return true;
-
 
42336
    }
-
 
42337
 
-
 
42338
    @Override
-
 
42339
    public int hashCode() {
-
 
42340
      return 0;
-
 
42341
    }
-
 
42342
 
-
 
42343
    public int compareTo(changeQuantity_args other) {
-
 
42344
      if (!getClass().equals(other.getClass())) {
-
 
42345
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42346
      }
-
 
42347
 
-
 
42348
      int lastComparison = 0;
-
 
42349
      changeQuantity_args typedOther = (changeQuantity_args)other;
-
 
42350
 
-
 
42351
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
42352
      if (lastComparison != 0) {
-
 
42353
        return lastComparison;
-
 
42354
      }
-
 
42355
      if (isSetCartId()) {
-
 
42356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
42357
        if (lastComparison != 0) {
-
 
42358
          return lastComparison;
-
 
42359
        }
-
 
42360
      }
-
 
42361
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
42362
      if (lastComparison != 0) {
-
 
42363
        return lastComparison;
-
 
42364
      }
-
 
42365
      if (isSetItemId()) {
-
 
42366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
42367
        if (lastComparison != 0) {
-
 
42368
          return lastComparison;
-
 
42369
        }
-
 
42370
      }
-
 
42371
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
-
 
42372
      if (lastComparison != 0) {
-
 
42373
        return lastComparison;
-
 
42374
      }
-
 
42375
      if (isSetQuantity()) {
-
 
42376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
-
 
42377
        if (lastComparison != 0) {
-
 
42378
          return lastComparison;
-
 
42379
        }
-
 
42380
      }
-
 
42381
      return 0;
-
 
42382
    }
-
 
42383
 
-
 
42384
    public _Fields fieldForId(int fieldId) {
-
 
42385
      return _Fields.findByThriftId(fieldId);
-
 
42386
    }
-
 
42387
 
-
 
42388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42389
      org.apache.thrift.protocol.TField field;
-
 
42390
      iprot.readStructBegin();
-
 
42391
      while (true)
-
 
42392
      {
-
 
42393
        field = iprot.readFieldBegin();
-
 
42394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42395
          break;
-
 
42396
        }
-
 
42397
        switch (field.id) {
-
 
42398
          case 1: // CART_ID
-
 
42399
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42400
              this.cartId = iprot.readI64();
-
 
42401
              setCartIdIsSet(true);
-
 
42402
            } else { 
-
 
42403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42404
            }
-
 
42405
            break;
-
 
42406
          case 2: // ITEM_ID
-
 
42407
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42408
              this.itemId = iprot.readI64();
-
 
42409
              setItemIdIsSet(true);
-
 
42410
            } else { 
-
 
42411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42412
            }
-
 
42413
            break;
-
 
42414
          case 3: // QUANTITY
-
 
42415
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
42416
              this.quantity = iprot.readI64();
-
 
42417
              setQuantityIsSet(true);
-
 
42418
            } else { 
-
 
42419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42420
            }
-
 
42421
            break;
-
 
42422
          default:
-
 
42423
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42424
        }
-
 
42425
        iprot.readFieldEnd();
-
 
42426
      }
-
 
42427
      iprot.readStructEnd();
-
 
42428
      validate();
-
 
42429
    }
-
 
42430
 
-
 
42431
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42432
      validate();
-
 
42433
 
-
 
42434
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42435
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
42436
      oprot.writeI64(this.cartId);
-
 
42437
      oprot.writeFieldEnd();
-
 
42438
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
42439
      oprot.writeI64(this.itemId);
-
 
42440
      oprot.writeFieldEnd();
-
 
42441
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
-
 
42442
      oprot.writeI64(this.quantity);
-
 
42443
      oprot.writeFieldEnd();
-
 
42444
      oprot.writeFieldStop();
-
 
42445
      oprot.writeStructEnd();
-
 
42446
    }
-
 
42447
 
-
 
42448
    @Override
-
 
42449
    public String toString() {
-
 
42450
      StringBuilder sb = new StringBuilder("changeQuantity_args(");
-
 
42451
      boolean first = true;
-
 
42452
 
-
 
42453
      sb.append("cartId:");
-
 
42454
      sb.append(this.cartId);
-
 
42455
      first = false;
-
 
42456
      if (!first) sb.append(", ");
-
 
42457
      sb.append("itemId:");
-
 
42458
      sb.append(this.itemId);
-
 
42459
      first = false;
-
 
42460
      if (!first) sb.append(", ");
-
 
42461
      sb.append("quantity:");
-
 
42462
      sb.append(this.quantity);
-
 
42463
      first = false;
-
 
42464
      sb.append(")");
-
 
42465
      return sb.toString();
-
 
42466
    }
-
 
42467
 
-
 
42468
    public void validate() throws org.apache.thrift.TException {
-
 
42469
      // check for required fields
-
 
42470
    }
-
 
42471
 
-
 
42472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
42473
      try {
-
 
42474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
42475
      } catch (org.apache.thrift.TException te) {
-
 
42476
        throw new java.io.IOException(te);
-
 
42477
      }
-
 
42478
    }
-
 
42479
 
-
 
42480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
42481
      try {
-
 
42482
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
42483
        __isset_bit_vector = new BitSet(1);
-
 
42484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
42485
      } catch (org.apache.thrift.TException te) {
-
 
42486
        throw new java.io.IOException(te);
-
 
42487
      }
-
 
42488
    }
-
 
42489
 
-
 
42490
  }
-
 
42491
 
-
 
42492
  public static class changeQuantity_result implements org.apache.thrift.TBase<changeQuantity_result, changeQuantity_result._Fields>, java.io.Serializable, Cloneable   {
-
 
42493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeQuantity_result");
-
 
42494
 
-
 
42495
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
42496
 
-
 
42497
    private ShoppingCartException scx; // required
-
 
42498
 
-
 
42499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
42500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
42501
      SCX((short)1, "scx");
-
 
42502
 
-
 
42503
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
42504
 
-
 
42505
      static {
-
 
42506
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
42507
          byName.put(field.getFieldName(), field);
-
 
42508
        }
-
 
42509
      }
-
 
42510
 
-
 
42511
      /**
-
 
42512
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
42513
       */
-
 
42514
      public static _Fields findByThriftId(int fieldId) {
-
 
42515
        switch(fieldId) {
-
 
42516
          case 1: // SCX
-
 
42517
            return SCX;
-
 
42518
          default:
-
 
42519
            return null;
-
 
42520
        }
-
 
42521
      }
-
 
42522
 
-
 
42523
      /**
-
 
42524
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
42525
       * if it is not found.
-
 
42526
       */
-
 
42527
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
42528
        _Fields fields = findByThriftId(fieldId);
-
 
42529
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
42530
        return fields;
-
 
42531
      }
-
 
42532
 
-
 
42533
      /**
-
 
42534
       * Find the _Fields constant that matches name, or null if its not found.
-
 
42535
       */
-
 
42536
      public static _Fields findByName(String name) {
-
 
42537
        return byName.get(name);
-
 
42538
      }
-
 
42539
 
-
 
42540
      private final short _thriftId;
-
 
42541
      private final String _fieldName;
-
 
42542
 
-
 
42543
      _Fields(short thriftId, String fieldName) {
-
 
42544
        _thriftId = thriftId;
-
 
42545
        _fieldName = fieldName;
-
 
42546
      }
-
 
42547
 
-
 
42548
      public short getThriftFieldId() {
-
 
42549
        return _thriftId;
-
 
42550
      }
-
 
42551
 
-
 
42552
      public String getFieldName() {
-
 
42553
        return _fieldName;
-
 
42554
      }
-
 
42555
    }
-
 
42556
 
-
 
42557
    // isset id assignments
-
 
42558
 
-
 
42559
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
42560
    static {
-
 
42561
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
42562
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
42563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
42564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
42565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeQuantity_result.class, metaDataMap);
-
 
42566
    }
-
 
42567
 
-
 
42568
    public changeQuantity_result() {
-
 
42569
    }
-
 
42570
 
-
 
42571
    public changeQuantity_result(
-
 
42572
      ShoppingCartException scx)
-
 
42573
    {
-
 
42574
      this();
-
 
42575
      this.scx = scx;
-
 
42576
    }
-
 
42577
 
-
 
42578
    /**
-
 
42579
     * Performs a deep copy on <i>other</i>.
-
 
42580
     */
-
 
42581
    public changeQuantity_result(changeQuantity_result other) {
-
 
42582
      if (other.isSetScx()) {
-
 
42583
        this.scx = new ShoppingCartException(other.scx);
-
 
42584
      }
-
 
42585
    }
-
 
42586
 
-
 
42587
    public changeQuantity_result deepCopy() {
-
 
42588
      return new changeQuantity_result(this);
-
 
42589
    }
-
 
42590
 
-
 
42591
    @Override
-
 
42592
    public void clear() {
-
 
42593
      this.scx = null;
-
 
42594
    }
-
 
42595
 
-
 
42596
    public ShoppingCartException getScx() {
-
 
42597
      return this.scx;
-
 
42598
    }
-
 
42599
 
-
 
42600
    public void setScx(ShoppingCartException scx) {
-
 
42601
      this.scx = scx;
-
 
42602
    }
-
 
42603
 
-
 
42604
    public void unsetScx() {
-
 
42605
      this.scx = null;
-
 
42606
    }
-
 
42607
 
-
 
42608
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
42609
    public boolean isSetScx() {
-
 
42610
      return this.scx != null;
-
 
42611
    }
-
 
42612
 
-
 
42613
    public void setScxIsSet(boolean value) {
-
 
42614
      if (!value) {
-
 
42615
        this.scx = null;
-
 
42616
      }
-
 
42617
    }
-
 
42618
 
-
 
42619
    public void setFieldValue(_Fields field, Object value) {
-
 
42620
      switch (field) {
-
 
42621
      case SCX:
-
 
42622
        if (value == null) {
-
 
42623
          unsetScx();
-
 
42624
        } else {
-
 
42625
          setScx((ShoppingCartException)value);
-
 
42626
        }
-
 
42627
        break;
-
 
42628
 
-
 
42629
      }
-
 
42630
    }
-
 
42631
 
-
 
42632
    public Object getFieldValue(_Fields field) {
-
 
42633
      switch (field) {
-
 
42634
      case SCX:
-
 
42635
        return getScx();
-
 
42636
 
-
 
42637
      }
-
 
42638
      throw new IllegalStateException();
-
 
42639
    }
-
 
42640
 
-
 
42641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
42642
    public boolean isSet(_Fields field) {
-
 
42643
      if (field == null) {
-
 
42644
        throw new IllegalArgumentException();
-
 
42645
      }
-
 
42646
 
-
 
42647
      switch (field) {
-
 
42648
      case SCX:
-
 
42649
        return isSetScx();
-
 
42650
      }
-
 
42651
      throw new IllegalStateException();
-
 
42652
    }
-
 
42653
 
-
 
42654
    @Override
-
 
42655
    public boolean equals(Object that) {
-
 
42656
      if (that == null)
-
 
42657
        return false;
-
 
42658
      if (that instanceof changeQuantity_result)
-
 
42659
        return this.equals((changeQuantity_result)that);
-
 
42660
      return false;
-
 
42661
    }
-
 
42662
 
-
 
42663
    public boolean equals(changeQuantity_result that) {
-
 
42664
      if (that == null)
-
 
42665
        return false;
-
 
42666
 
-
 
42667
      boolean this_present_scx = true && this.isSetScx();
-
 
42668
      boolean that_present_scx = true && that.isSetScx();
-
 
42669
      if (this_present_scx || that_present_scx) {
-
 
42670
        if (!(this_present_scx && that_present_scx))
-
 
42671
          return false;
-
 
42672
        if (!this.scx.equals(that.scx))
-
 
42673
          return false;
-
 
42674
      }
-
 
42675
 
-
 
42676
      return true;
-
 
42677
    }
-
 
42678
 
-
 
42679
    @Override
-
 
42680
    public int hashCode() {
-
 
42681
      return 0;
-
 
42682
    }
-
 
42683
 
-
 
42684
    public int compareTo(changeQuantity_result other) {
-
 
42685
      if (!getClass().equals(other.getClass())) {
-
 
42686
        return getClass().getName().compareTo(other.getClass().getName());
-
 
42687
      }
-
 
42688
 
-
 
42689
      int lastComparison = 0;
-
 
42690
      changeQuantity_result typedOther = (changeQuantity_result)other;
-
 
42691
 
-
 
42692
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
42693
      if (lastComparison != 0) {
-
 
42694
        return lastComparison;
-
 
42695
      }
-
 
42696
      if (isSetScx()) {
-
 
42697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
42698
        if (lastComparison != 0) {
-
 
42699
          return lastComparison;
-
 
42700
        }
-
 
42701
      }
-
 
42702
      return 0;
-
 
42703
    }
-
 
42704
 
-
 
42705
    public _Fields fieldForId(int fieldId) {
-
 
42706
      return _Fields.findByThriftId(fieldId);
-
 
42707
    }
-
 
42708
 
-
 
42709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
42710
      org.apache.thrift.protocol.TField field;
-
 
42711
      iprot.readStructBegin();
-
 
42712
      while (true)
-
 
42713
      {
-
 
42714
        field = iprot.readFieldBegin();
-
 
42715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
42716
          break;
-
 
42717
        }
-
 
42718
        switch (field.id) {
-
 
42719
          case 1: // SCX
-
 
42720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
42721
              this.scx = new ShoppingCartException();
-
 
42722
              this.scx.read(iprot);
-
 
42723
            } else { 
-
 
42724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42725
            }
-
 
42726
            break;
-
 
42727
          default:
-
 
42728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
42729
        }
-
 
42730
        iprot.readFieldEnd();
-
 
42731
      }
-
 
42732
      iprot.readStructEnd();
-
 
42733
      validate();
-
 
42734
    }
-
 
42735
 
-
 
42736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
42737
      oprot.writeStructBegin(STRUCT_DESC);
-
 
42738
 
-
 
42739
      if (this.isSetScx()) {
-
 
42740
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
42741
        this.scx.write(oprot);
-
 
42742
        oprot.writeFieldEnd();
-
 
42743
      }
-
 
42744
      oprot.writeFieldStop();
-
 
42745
      oprot.writeStructEnd();
-
 
42746
    }
-
 
42747
 
-
 
42748
    @Override
-
 
42749
    public String toString() {
-
 
42750
      StringBuilder sb = new StringBuilder("changeQuantity_result(");
-
 
42751
      boolean first = true;
-
 
42752
 
-
 
42753
      sb.append("scx:");
-
 
42754
      if (this.scx == null) {
-
 
42755
        sb.append("null");
-
 
42756
      } else {
-
 
42757
        sb.append(this.scx);
-
 
42758
      }
-
 
42759
      first = false;
-
 
42760
      sb.append(")");
-
 
42761
      return sb.toString();
-
 
42762
    }
-
 
42763
 
-
 
42764
    public void validate() throws org.apache.thrift.TException {
-
 
42765
      // check for required fields
-
 
42766
    }
-
 
42767
 
-
 
42768
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
42769
      try {
-
 
42770
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
42771
      } catch (org.apache.thrift.TException te) {
-
 
42772
        throw new java.io.IOException(te);
-
 
42773
      }
-
 
42774
    }
-
 
42775
 
-
 
42776
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
42777
      try {
-
 
42778
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
42779
      } catch (org.apache.thrift.TException te) {
-
 
42780
        throw new java.io.IOException(te);
-
 
42781
      }
-
 
42782
    }
-
 
42783
 
-
 
42784
  }
-
 
42785
 
-
 
42786
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
41944
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
42787
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
41945
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
42788
 
41946
 
42789
    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);
41947
    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);
42790
    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)2);
41948
    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)2);
Line 54466... Line 53624...
54466
      }
53624
      }
54467
    }
53625
    }
54468
 
53626
 
54469
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53627
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54470
      try {
53628
      try {
-
 
53629
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
53630
        __isset_bit_vector = new BitSet(1);
54471
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53631
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54472
      } catch (org.apache.thrift.TException te) {
53632
      } catch (org.apache.thrift.TException te) {
54473
        throw new java.io.IOException(te);
53633
        throw new java.io.IOException(te);
54474
      }
53634
      }
54475
    }
53635
    }