Subversion Repositories SmartDukaan

Rev

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

Rev 19888 Rev 20873
Line 385... Line 385...
385
 
385
 
386
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
386
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
387
 
387
 
388
    public Map<Long,String> getCounterName(List<Long> userIds) throws org.apache.thrift.TException;
388
    public Map<Long,String> getCounterName(List<Long> userIds) throws org.apache.thrift.TException;
389
 
389
 
-
 
390
    public boolean setWalletAmountInCart(long cartId, double wallet_amount) throws org.apache.thrift.TException;
-
 
391
 
390
  }
392
  }
391
 
393
 
392
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
394
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
393
 
395
 
394
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
396
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 575... Line 577...
575
 
577
 
576
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
578
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
577
 
579
 
578
    public void getCounterName(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCounterName_call> resultHandler) throws org.apache.thrift.TException;
580
    public void getCounterName(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCounterName_call> resultHandler) throws org.apache.thrift.TException;
579
 
581
 
-
 
582
    public void setWalletAmountInCart(long cartId, double wallet_amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setWalletAmountInCart_call> resultHandler) throws org.apache.thrift.TException;
-
 
583
 
580
  }
584
  }
581
 
585
 
582
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
586
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
583
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
587
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
584
      public Factory() {}
588
      public Factory() {}
Line 2946... Line 2950...
2946
        return result.success;
2950
        return result.success;
2947
      }
2951
      }
2948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCounterName failed: unknown result");
2952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCounterName failed: unknown result");
2949
    }
2953
    }
2950
 
2954
 
-
 
2955
    public boolean setWalletAmountInCart(long cartId, double wallet_amount) throws org.apache.thrift.TException
-
 
2956
    {
-
 
2957
      send_setWalletAmountInCart(cartId, wallet_amount);
-
 
2958
      return recv_setWalletAmountInCart();
-
 
2959
    }
-
 
2960
 
-
 
2961
    public void send_setWalletAmountInCart(long cartId, double wallet_amount) throws org.apache.thrift.TException
-
 
2962
    {
-
 
2963
      setWalletAmountInCart_args args = new setWalletAmountInCart_args();
-
 
2964
      args.setCartId(cartId);
-
 
2965
      args.setWallet_amount(wallet_amount);
-
 
2966
      sendBase("setWalletAmountInCart", args);
-
 
2967
    }
-
 
2968
 
-
 
2969
    public boolean recv_setWalletAmountInCart() throws org.apache.thrift.TException
-
 
2970
    {
-
 
2971
      setWalletAmountInCart_result result = new setWalletAmountInCart_result();
-
 
2972
      receiveBase(result, "setWalletAmountInCart");
-
 
2973
      if (result.isSetSuccess()) {
-
 
2974
        return result.success;
-
 
2975
      }
-
 
2976
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setWalletAmountInCart failed: unknown result");
-
 
2977
    }
-
 
2978
 
2951
  }
2979
  }
2952
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2980
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2953
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2981
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2954
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2982
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2955
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2983
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 6161... Line 6189...
6161
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6189
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6162
        return (new Client(prot)).recv_getCounterName();
6190
        return (new Client(prot)).recv_getCounterName();
6163
      }
6191
      }
6164
    }
6192
    }
6165
 
6193
 
-
 
6194
    public void setWalletAmountInCart(long cartId, double wallet_amount, org.apache.thrift.async.AsyncMethodCallback<setWalletAmountInCart_call> resultHandler) throws org.apache.thrift.TException {
-
 
6195
      checkReady();
-
 
6196
      setWalletAmountInCart_call method_call = new setWalletAmountInCart_call(cartId, wallet_amount, resultHandler, this, ___protocolFactory, ___transport);
-
 
6197
      this.___currentMethod = method_call;
-
 
6198
      ___manager.call(method_call);
-
 
6199
    }
-
 
6200
 
-
 
6201
    public static class setWalletAmountInCart_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6202
      private long cartId;
-
 
6203
      private double wallet_amount;
-
 
6204
      public setWalletAmountInCart_call(long cartId, double wallet_amount, org.apache.thrift.async.AsyncMethodCallback<setWalletAmountInCart_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 {
-
 
6205
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6206
        this.cartId = cartId;
-
 
6207
        this.wallet_amount = wallet_amount;
-
 
6208
      }
-
 
6209
 
-
 
6210
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6211
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setWalletAmountInCart", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6212
        setWalletAmountInCart_args args = new setWalletAmountInCart_args();
-
 
6213
        args.setCartId(cartId);
-
 
6214
        args.setWallet_amount(wallet_amount);
-
 
6215
        args.write(prot);
-
 
6216
        prot.writeMessageEnd();
-
 
6217
      }
-
 
6218
 
-
 
6219
      public boolean getResult() throws org.apache.thrift.TException {
-
 
6220
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6221
          throw new IllegalStateException("Method call not finished!");
-
 
6222
        }
-
 
6223
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6224
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6225
        return (new Client(prot)).recv_setWalletAmountInCart();
-
 
6226
      }
-
 
6227
    }
-
 
6228
 
6166
  }
6229
  }
6167
 
6230
 
6168
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6231
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6169
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6232
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6170
    public Processor(I iface) {
6233
    public Processor(I iface) {
Line 6267... Line 6330...
6267
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6330
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6268
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6331
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6269
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6332
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6270
      processMap.put("getCartByValue", new getCartByValue());
6333
      processMap.put("getCartByValue", new getCartByValue());
6271
      processMap.put("getCounterName", new getCounterName());
6334
      processMap.put("getCounterName", new getCounterName());
-
 
6335
      processMap.put("setWalletAmountInCart", new setWalletAmountInCart());
6272
      return processMap;
6336
      return processMap;
6273
    }
6337
    }
6274
 
6338
 
6275
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6339
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6276
      public createAnonymousUser() {
6340
      public createAnonymousUser() {
Line 8029... Line 8093...
8029
        result.success = iface.getCounterName(args.userIds);
8093
        result.success = iface.getCounterName(args.userIds);
8030
        return result;
8094
        return result;
8031
      }
8095
      }
8032
    }
8096
    }
8033
 
8097
 
-
 
8098
    private static class setWalletAmountInCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setWalletAmountInCart_args> {
-
 
8099
      public setWalletAmountInCart() {
-
 
8100
        super("setWalletAmountInCart");
-
 
8101
      }
-
 
8102
 
-
 
8103
      protected setWalletAmountInCart_args getEmptyArgsInstance() {
-
 
8104
        return new setWalletAmountInCart_args();
-
 
8105
      }
-
 
8106
 
-
 
8107
      protected setWalletAmountInCart_result getResult(I iface, setWalletAmountInCart_args args) throws org.apache.thrift.TException {
-
 
8108
        setWalletAmountInCart_result result = new setWalletAmountInCart_result();
-
 
8109
        result.success = iface.setWalletAmountInCart(args.cartId, args.wallet_amount);
-
 
8110
        result.setSuccessIsSet(true);
-
 
8111
        return result;
-
 
8112
      }
-
 
8113
    }
-
 
8114
 
8034
  }
8115
  }
8035
 
8116
 
8036
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
8117
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
8037
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
8118
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
8038
 
8119
 
Line 57161... Line 57242...
57161
      }
57242
      }
57162
    }
57243
    }
57163
 
57244
 
57164
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57245
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57165
      try {
57246
      try {
-
 
57247
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57248
        __isset_bit_vector = new BitSet(1);
57166
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57249
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57167
      } catch (org.apache.thrift.TException te) {
57250
      } catch (org.apache.thrift.TException te) {
57168
        throw new java.io.IOException(te);
57251
        throw new java.io.IOException(te);
57169
      }
57252
      }
57170
    }
57253
    }
Line 73994... Line 74077...
73994
      first = false;
74077
      first = false;
73995
      sb.append(")");
74078
      sb.append(")");
73996
      return sb.toString();
74079
      return sb.toString();
73997
    }
74080
    }
73998
 
74081
 
-
 
74082
    public void validate() throws org.apache.thrift.TException {
-
 
74083
      // check for required fields
-
 
74084
    }
-
 
74085
 
-
 
74086
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
74087
      try {
-
 
74088
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
74089
      } catch (org.apache.thrift.TException te) {
-
 
74090
        throw new java.io.IOException(te);
-
 
74091
      }
-
 
74092
    }
-
 
74093
 
-
 
74094
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
74095
      try {
-
 
74096
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
74097
      } catch (org.apache.thrift.TException te) {
-
 
74098
        throw new java.io.IOException(te);
-
 
74099
      }
-
 
74100
    }
-
 
74101
 
-
 
74102
  }
-
 
74103
 
-
 
74104
  public static class setWalletAmountInCart_args implements org.apache.thrift.TBase<setWalletAmountInCart_args, setWalletAmountInCart_args._Fields>, java.io.Serializable, Cloneable   {
-
 
74105
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setWalletAmountInCart_args");
-
 
74106
 
-
 
74107
    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);
-
 
74108
    private static final org.apache.thrift.protocol.TField WALLET_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("wallet_amount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
74109
 
-
 
74110
    private long cartId; // required
-
 
74111
    private double wallet_amount; // required
-
 
74112
 
-
 
74113
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
74114
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
74115
      CART_ID((short)1, "cartId"),
-
 
74116
      WALLET_AMOUNT((short)2, "wallet_amount");
-
 
74117
 
-
 
74118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
74119
 
-
 
74120
      static {
-
 
74121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
74122
          byName.put(field.getFieldName(), field);
-
 
74123
        }
-
 
74124
      }
-
 
74125
 
-
 
74126
      /**
-
 
74127
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
74128
       */
-
 
74129
      public static _Fields findByThriftId(int fieldId) {
-
 
74130
        switch(fieldId) {
-
 
74131
          case 1: // CART_ID
-
 
74132
            return CART_ID;
-
 
74133
          case 2: // WALLET_AMOUNT
-
 
74134
            return WALLET_AMOUNT;
-
 
74135
          default:
-
 
74136
            return null;
-
 
74137
        }
-
 
74138
      }
-
 
74139
 
-
 
74140
      /**
-
 
74141
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
74142
       * if it is not found.
-
 
74143
       */
-
 
74144
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
74145
        _Fields fields = findByThriftId(fieldId);
-
 
74146
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
74147
        return fields;
-
 
74148
      }
-
 
74149
 
-
 
74150
      /**
-
 
74151
       * Find the _Fields constant that matches name, or null if its not found.
-
 
74152
       */
-
 
74153
      public static _Fields findByName(String name) {
-
 
74154
        return byName.get(name);
-
 
74155
      }
-
 
74156
 
-
 
74157
      private final short _thriftId;
-
 
74158
      private final String _fieldName;
-
 
74159
 
-
 
74160
      _Fields(short thriftId, String fieldName) {
-
 
74161
        _thriftId = thriftId;
-
 
74162
        _fieldName = fieldName;
-
 
74163
      }
-
 
74164
 
-
 
74165
      public short getThriftFieldId() {
-
 
74166
        return _thriftId;
-
 
74167
      }
-
 
74168
 
-
 
74169
      public String getFieldName() {
-
 
74170
        return _fieldName;
-
 
74171
      }
-
 
74172
    }
-
 
74173
 
-
 
74174
    // isset id assignments
-
 
74175
    private static final int __CARTID_ISSET_ID = 0;
-
 
74176
    private static final int __WALLET_AMOUNT_ISSET_ID = 1;
-
 
74177
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
74178
 
-
 
74179
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
74180
    static {
-
 
74181
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
74182
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74183
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
74184
      tmpMap.put(_Fields.WALLET_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("wallet_amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74185
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
74186
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
74187
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setWalletAmountInCart_args.class, metaDataMap);
-
 
74188
    }
-
 
74189
 
-
 
74190
    public setWalletAmountInCart_args() {
-
 
74191
    }
-
 
74192
 
-
 
74193
    public setWalletAmountInCart_args(
-
 
74194
      long cartId,
-
 
74195
      double wallet_amount)
-
 
74196
    {
-
 
74197
      this();
-
 
74198
      this.cartId = cartId;
-
 
74199
      setCartIdIsSet(true);
-
 
74200
      this.wallet_amount = wallet_amount;
-
 
74201
      setWallet_amountIsSet(true);
-
 
74202
    }
-
 
74203
 
-
 
74204
    /**
-
 
74205
     * Performs a deep copy on <i>other</i>.
-
 
74206
     */
-
 
74207
    public setWalletAmountInCart_args(setWalletAmountInCart_args other) {
-
 
74208
      __isset_bit_vector.clear();
-
 
74209
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
74210
      this.cartId = other.cartId;
-
 
74211
      this.wallet_amount = other.wallet_amount;
-
 
74212
    }
-
 
74213
 
-
 
74214
    public setWalletAmountInCart_args deepCopy() {
-
 
74215
      return new setWalletAmountInCart_args(this);
-
 
74216
    }
-
 
74217
 
-
 
74218
    @Override
-
 
74219
    public void clear() {
-
 
74220
      setCartIdIsSet(false);
-
 
74221
      this.cartId = 0;
-
 
74222
      setWallet_amountIsSet(false);
-
 
74223
      this.wallet_amount = 0.0;
-
 
74224
    }
-
 
74225
 
-
 
74226
    public long getCartId() {
-
 
74227
      return this.cartId;
-
 
74228
    }
-
 
74229
 
-
 
74230
    public void setCartId(long cartId) {
-
 
74231
      this.cartId = cartId;
-
 
74232
      setCartIdIsSet(true);
-
 
74233
    }
-
 
74234
 
-
 
74235
    public void unsetCartId() {
-
 
74236
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
74237
    }
-
 
74238
 
-
 
74239
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
74240
    public boolean isSetCartId() {
-
 
74241
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
74242
    }
-
 
74243
 
-
 
74244
    public void setCartIdIsSet(boolean value) {
-
 
74245
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
74246
    }
-
 
74247
 
-
 
74248
    public double getWallet_amount() {
-
 
74249
      return this.wallet_amount;
-
 
74250
    }
-
 
74251
 
-
 
74252
    public void setWallet_amount(double wallet_amount) {
-
 
74253
      this.wallet_amount = wallet_amount;
-
 
74254
      setWallet_amountIsSet(true);
-
 
74255
    }
-
 
74256
 
-
 
74257
    public void unsetWallet_amount() {
-
 
74258
      __isset_bit_vector.clear(__WALLET_AMOUNT_ISSET_ID);
-
 
74259
    }
-
 
74260
 
-
 
74261
    /** Returns true if field wallet_amount is set (has been assigned a value) and false otherwise */
-
 
74262
    public boolean isSetWallet_amount() {
-
 
74263
      return __isset_bit_vector.get(__WALLET_AMOUNT_ISSET_ID);
-
 
74264
    }
-
 
74265
 
-
 
74266
    public void setWallet_amountIsSet(boolean value) {
-
 
74267
      __isset_bit_vector.set(__WALLET_AMOUNT_ISSET_ID, value);
-
 
74268
    }
-
 
74269
 
-
 
74270
    public void setFieldValue(_Fields field, Object value) {
-
 
74271
      switch (field) {
-
 
74272
      case CART_ID:
-
 
74273
        if (value == null) {
-
 
74274
          unsetCartId();
-
 
74275
        } else {
-
 
74276
          setCartId((Long)value);
-
 
74277
        }
-
 
74278
        break;
-
 
74279
 
-
 
74280
      case WALLET_AMOUNT:
-
 
74281
        if (value == null) {
-
 
74282
          unsetWallet_amount();
-
 
74283
        } else {
-
 
74284
          setWallet_amount((Double)value);
-
 
74285
        }
-
 
74286
        break;
-
 
74287
 
-
 
74288
      }
-
 
74289
    }
-
 
74290
 
-
 
74291
    public Object getFieldValue(_Fields field) {
-
 
74292
      switch (field) {
-
 
74293
      case CART_ID:
-
 
74294
        return Long.valueOf(getCartId());
-
 
74295
 
-
 
74296
      case WALLET_AMOUNT:
-
 
74297
        return Double.valueOf(getWallet_amount());
-
 
74298
 
-
 
74299
      }
-
 
74300
      throw new IllegalStateException();
-
 
74301
    }
-
 
74302
 
-
 
74303
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
74304
    public boolean isSet(_Fields field) {
-
 
74305
      if (field == null) {
-
 
74306
        throw new IllegalArgumentException();
-
 
74307
      }
-
 
74308
 
-
 
74309
      switch (field) {
-
 
74310
      case CART_ID:
-
 
74311
        return isSetCartId();
-
 
74312
      case WALLET_AMOUNT:
-
 
74313
        return isSetWallet_amount();
-
 
74314
      }
-
 
74315
      throw new IllegalStateException();
-
 
74316
    }
-
 
74317
 
-
 
74318
    @Override
-
 
74319
    public boolean equals(Object that) {
-
 
74320
      if (that == null)
-
 
74321
        return false;
-
 
74322
      if (that instanceof setWalletAmountInCart_args)
-
 
74323
        return this.equals((setWalletAmountInCart_args)that);
-
 
74324
      return false;
-
 
74325
    }
-
 
74326
 
-
 
74327
    public boolean equals(setWalletAmountInCart_args that) {
-
 
74328
      if (that == null)
-
 
74329
        return false;
-
 
74330
 
-
 
74331
      boolean this_present_cartId = true;
-
 
74332
      boolean that_present_cartId = true;
-
 
74333
      if (this_present_cartId || that_present_cartId) {
-
 
74334
        if (!(this_present_cartId && that_present_cartId))
-
 
74335
          return false;
-
 
74336
        if (this.cartId != that.cartId)
-
 
74337
          return false;
-
 
74338
      }
-
 
74339
 
-
 
74340
      boolean this_present_wallet_amount = true;
-
 
74341
      boolean that_present_wallet_amount = true;
-
 
74342
      if (this_present_wallet_amount || that_present_wallet_amount) {
-
 
74343
        if (!(this_present_wallet_amount && that_present_wallet_amount))
-
 
74344
          return false;
-
 
74345
        if (this.wallet_amount != that.wallet_amount)
-
 
74346
          return false;
-
 
74347
      }
-
 
74348
 
-
 
74349
      return true;
-
 
74350
    }
-
 
74351
 
-
 
74352
    @Override
-
 
74353
    public int hashCode() {
-
 
74354
      return 0;
-
 
74355
    }
-
 
74356
 
-
 
74357
    public int compareTo(setWalletAmountInCart_args other) {
-
 
74358
      if (!getClass().equals(other.getClass())) {
-
 
74359
        return getClass().getName().compareTo(other.getClass().getName());
-
 
74360
      }
-
 
74361
 
-
 
74362
      int lastComparison = 0;
-
 
74363
      setWalletAmountInCart_args typedOther = (setWalletAmountInCart_args)other;
-
 
74364
 
-
 
74365
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
74366
      if (lastComparison != 0) {
-
 
74367
        return lastComparison;
-
 
74368
      }
-
 
74369
      if (isSetCartId()) {
-
 
74370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
74371
        if (lastComparison != 0) {
-
 
74372
          return lastComparison;
-
 
74373
        }
-
 
74374
      }
-
 
74375
      lastComparison = Boolean.valueOf(isSetWallet_amount()).compareTo(typedOther.isSetWallet_amount());
-
 
74376
      if (lastComparison != 0) {
-
 
74377
        return lastComparison;
-
 
74378
      }
-
 
74379
      if (isSetWallet_amount()) {
-
 
74380
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wallet_amount, typedOther.wallet_amount);
-
 
74381
        if (lastComparison != 0) {
-
 
74382
          return lastComparison;
-
 
74383
        }
-
 
74384
      }
-
 
74385
      return 0;
-
 
74386
    }
-
 
74387
 
-
 
74388
    public _Fields fieldForId(int fieldId) {
-
 
74389
      return _Fields.findByThriftId(fieldId);
-
 
74390
    }
-
 
74391
 
-
 
74392
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
74393
      org.apache.thrift.protocol.TField field;
-
 
74394
      iprot.readStructBegin();
-
 
74395
      while (true)
-
 
74396
      {
-
 
74397
        field = iprot.readFieldBegin();
-
 
74398
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
74399
          break;
-
 
74400
        }
-
 
74401
        switch (field.id) {
-
 
74402
          case 1: // CART_ID
-
 
74403
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
74404
              this.cartId = iprot.readI64();
-
 
74405
              setCartIdIsSet(true);
-
 
74406
            } else { 
-
 
74407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
74408
            }
-
 
74409
            break;
-
 
74410
          case 2: // WALLET_AMOUNT
-
 
74411
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
74412
              this.wallet_amount = iprot.readDouble();
-
 
74413
              setWallet_amountIsSet(true);
-
 
74414
            } else { 
-
 
74415
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
74416
            }
-
 
74417
            break;
-
 
74418
          default:
-
 
74419
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
74420
        }
-
 
74421
        iprot.readFieldEnd();
-
 
74422
      }
-
 
74423
      iprot.readStructEnd();
-
 
74424
      validate();
-
 
74425
    }
-
 
74426
 
-
 
74427
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
74428
      validate();
-
 
74429
 
-
 
74430
      oprot.writeStructBegin(STRUCT_DESC);
-
 
74431
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
74432
      oprot.writeI64(this.cartId);
-
 
74433
      oprot.writeFieldEnd();
-
 
74434
      oprot.writeFieldBegin(WALLET_AMOUNT_FIELD_DESC);
-
 
74435
      oprot.writeDouble(this.wallet_amount);
-
 
74436
      oprot.writeFieldEnd();
-
 
74437
      oprot.writeFieldStop();
-
 
74438
      oprot.writeStructEnd();
-
 
74439
    }
-
 
74440
 
-
 
74441
    @Override
-
 
74442
    public String toString() {
-
 
74443
      StringBuilder sb = new StringBuilder("setWalletAmountInCart_args(");
-
 
74444
      boolean first = true;
-
 
74445
 
-
 
74446
      sb.append("cartId:");
-
 
74447
      sb.append(this.cartId);
-
 
74448
      first = false;
-
 
74449
      if (!first) sb.append(", ");
-
 
74450
      sb.append("wallet_amount:");
-
 
74451
      sb.append(this.wallet_amount);
-
 
74452
      first = false;
-
 
74453
      sb.append(")");
-
 
74454
      return sb.toString();
-
 
74455
    }
-
 
74456
 
-
 
74457
    public void validate() throws org.apache.thrift.TException {
-
 
74458
      // check for required fields
-
 
74459
    }
-
 
74460
 
-
 
74461
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
74462
      try {
-
 
74463
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
74464
      } catch (org.apache.thrift.TException te) {
-
 
74465
        throw new java.io.IOException(te);
-
 
74466
      }
-
 
74467
    }
-
 
74468
 
-
 
74469
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
74470
      try {
-
 
74471
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
74472
        __isset_bit_vector = new BitSet(1);
-
 
74473
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
74474
      } catch (org.apache.thrift.TException te) {
-
 
74475
        throw new java.io.IOException(te);
-
 
74476
      }
-
 
74477
    }
-
 
74478
 
-
 
74479
  }
-
 
74480
 
-
 
74481
  public static class setWalletAmountInCart_result implements org.apache.thrift.TBase<setWalletAmountInCart_result, setWalletAmountInCart_result._Fields>, java.io.Serializable, Cloneable   {
-
 
74482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setWalletAmountInCart_result");
-
 
74483
 
-
 
74484
    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);
-
 
74485
 
-
 
74486
    private boolean success; // required
-
 
74487
 
-
 
74488
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
74489
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
74490
      SUCCESS((short)0, "success");
-
 
74491
 
-
 
74492
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
74493
 
-
 
74494
      static {
-
 
74495
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
74496
          byName.put(field.getFieldName(), field);
-
 
74497
        }
-
 
74498
      }
-
 
74499
 
-
 
74500
      /**
-
 
74501
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
74502
       */
-
 
74503
      public static _Fields findByThriftId(int fieldId) {
-
 
74504
        switch(fieldId) {
-
 
74505
          case 0: // SUCCESS
-
 
74506
            return SUCCESS;
-
 
74507
          default:
-
 
74508
            return null;
-
 
74509
        }
-
 
74510
      }
-
 
74511
 
-
 
74512
      /**
-
 
74513
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
74514
       * if it is not found.
-
 
74515
       */
-
 
74516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
74517
        _Fields fields = findByThriftId(fieldId);
-
 
74518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
74519
        return fields;
-
 
74520
      }
-
 
74521
 
-
 
74522
      /**
-
 
74523
       * Find the _Fields constant that matches name, or null if its not found.
-
 
74524
       */
-
 
74525
      public static _Fields findByName(String name) {
-
 
74526
        return byName.get(name);
-
 
74527
      }
-
 
74528
 
-
 
74529
      private final short _thriftId;
-
 
74530
      private final String _fieldName;
-
 
74531
 
-
 
74532
      _Fields(short thriftId, String fieldName) {
-
 
74533
        _thriftId = thriftId;
-
 
74534
        _fieldName = fieldName;
-
 
74535
      }
-
 
74536
 
-
 
74537
      public short getThriftFieldId() {
-
 
74538
        return _thriftId;
-
 
74539
      }
-
 
74540
 
-
 
74541
      public String getFieldName() {
-
 
74542
        return _fieldName;
-
 
74543
      }
-
 
74544
    }
-
 
74545
 
-
 
74546
    // isset id assignments
-
 
74547
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
74548
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
74549
 
-
 
74550
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
74551
    static {
-
 
74552
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
74553
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74554
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
74555
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
74556
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setWalletAmountInCart_result.class, metaDataMap);
-
 
74557
    }
-
 
74558
 
-
 
74559
    public setWalletAmountInCart_result() {
-
 
74560
    }
-
 
74561
 
-
 
74562
    public setWalletAmountInCart_result(
-
 
74563
      boolean success)
-
 
74564
    {
-
 
74565
      this();
-
 
74566
      this.success = success;
-
 
74567
      setSuccessIsSet(true);
-
 
74568
    }
-
 
74569
 
-
 
74570
    /**
-
 
74571
     * Performs a deep copy on <i>other</i>.
-
 
74572
     */
-
 
74573
    public setWalletAmountInCart_result(setWalletAmountInCart_result other) {
-
 
74574
      __isset_bit_vector.clear();
-
 
74575
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
74576
      this.success = other.success;
-
 
74577
    }
-
 
74578
 
-
 
74579
    public setWalletAmountInCart_result deepCopy() {
-
 
74580
      return new setWalletAmountInCart_result(this);
-
 
74581
    }
-
 
74582
 
-
 
74583
    @Override
-
 
74584
    public void clear() {
-
 
74585
      setSuccessIsSet(false);
-
 
74586
      this.success = false;
-
 
74587
    }
-
 
74588
 
-
 
74589
    public boolean isSuccess() {
-
 
74590
      return this.success;
-
 
74591
    }
-
 
74592
 
-
 
74593
    public void setSuccess(boolean success) {
-
 
74594
      this.success = success;
-
 
74595
      setSuccessIsSet(true);
-
 
74596
    }
-
 
74597
 
-
 
74598
    public void unsetSuccess() {
-
 
74599
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
74600
    }
-
 
74601
 
-
 
74602
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
74603
    public boolean isSetSuccess() {
-
 
74604
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
74605
    }
-
 
74606
 
-
 
74607
    public void setSuccessIsSet(boolean value) {
-
 
74608
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
74609
    }
-
 
74610
 
-
 
74611
    public void setFieldValue(_Fields field, Object value) {
-
 
74612
      switch (field) {
-
 
74613
      case SUCCESS:
-
 
74614
        if (value == null) {
-
 
74615
          unsetSuccess();
-
 
74616
        } else {
-
 
74617
          setSuccess((Boolean)value);
-
 
74618
        }
-
 
74619
        break;
-
 
74620
 
-
 
74621
      }
-
 
74622
    }
-
 
74623
 
-
 
74624
    public Object getFieldValue(_Fields field) {
-
 
74625
      switch (field) {
-
 
74626
      case SUCCESS:
-
 
74627
        return Boolean.valueOf(isSuccess());
-
 
74628
 
-
 
74629
      }
-
 
74630
      throw new IllegalStateException();
-
 
74631
    }
-
 
74632
 
-
 
74633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
74634
    public boolean isSet(_Fields field) {
-
 
74635
      if (field == null) {
-
 
74636
        throw new IllegalArgumentException();
-
 
74637
      }
-
 
74638
 
-
 
74639
      switch (field) {
-
 
74640
      case SUCCESS:
-
 
74641
        return isSetSuccess();
-
 
74642
      }
-
 
74643
      throw new IllegalStateException();
-
 
74644
    }
-
 
74645
 
-
 
74646
    @Override
-
 
74647
    public boolean equals(Object that) {
-
 
74648
      if (that == null)
-
 
74649
        return false;
-
 
74650
      if (that instanceof setWalletAmountInCart_result)
-
 
74651
        return this.equals((setWalletAmountInCart_result)that);
-
 
74652
      return false;
-
 
74653
    }
-
 
74654
 
-
 
74655
    public boolean equals(setWalletAmountInCart_result that) {
-
 
74656
      if (that == null)
-
 
74657
        return false;
-
 
74658
 
-
 
74659
      boolean this_present_success = true;
-
 
74660
      boolean that_present_success = true;
-
 
74661
      if (this_present_success || that_present_success) {
-
 
74662
        if (!(this_present_success && that_present_success))
-
 
74663
          return false;
-
 
74664
        if (this.success != that.success)
-
 
74665
          return false;
-
 
74666
      }
-
 
74667
 
-
 
74668
      return true;
-
 
74669
    }
-
 
74670
 
-
 
74671
    @Override
-
 
74672
    public int hashCode() {
-
 
74673
      return 0;
-
 
74674
    }
-
 
74675
 
-
 
74676
    public int compareTo(setWalletAmountInCart_result other) {
-
 
74677
      if (!getClass().equals(other.getClass())) {
-
 
74678
        return getClass().getName().compareTo(other.getClass().getName());
-
 
74679
      }
-
 
74680
 
-
 
74681
      int lastComparison = 0;
-
 
74682
      setWalletAmountInCart_result typedOther = (setWalletAmountInCart_result)other;
-
 
74683
 
-
 
74684
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
74685
      if (lastComparison != 0) {
-
 
74686
        return lastComparison;
-
 
74687
      }
-
 
74688
      if (isSetSuccess()) {
-
 
74689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
74690
        if (lastComparison != 0) {
-
 
74691
          return lastComparison;
-
 
74692
        }
-
 
74693
      }
-
 
74694
      return 0;
-
 
74695
    }
-
 
74696
 
-
 
74697
    public _Fields fieldForId(int fieldId) {
-
 
74698
      return _Fields.findByThriftId(fieldId);
-
 
74699
    }
-
 
74700
 
-
 
74701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
74702
      org.apache.thrift.protocol.TField field;
-
 
74703
      iprot.readStructBegin();
-
 
74704
      while (true)
-
 
74705
      {
-
 
74706
        field = iprot.readFieldBegin();
-
 
74707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
74708
          break;
-
 
74709
        }
-
 
74710
        switch (field.id) {
-
 
74711
          case 0: // SUCCESS
-
 
74712
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
74713
              this.success = iprot.readBool();
-
 
74714
              setSuccessIsSet(true);
-
 
74715
            } else { 
-
 
74716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
74717
            }
-
 
74718
            break;
-
 
74719
          default:
-
 
74720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
74721
        }
-
 
74722
        iprot.readFieldEnd();
-
 
74723
      }
-
 
74724
      iprot.readStructEnd();
-
 
74725
      validate();
-
 
74726
    }
-
 
74727
 
-
 
74728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
74729
      oprot.writeStructBegin(STRUCT_DESC);
-
 
74730
 
-
 
74731
      if (this.isSetSuccess()) {
-
 
74732
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
74733
        oprot.writeBool(this.success);
-
 
74734
        oprot.writeFieldEnd();
-
 
74735
      }
-
 
74736
      oprot.writeFieldStop();
-
 
74737
      oprot.writeStructEnd();
-
 
74738
    }
-
 
74739
 
-
 
74740
    @Override
-
 
74741
    public String toString() {
-
 
74742
      StringBuilder sb = new StringBuilder("setWalletAmountInCart_result(");
-
 
74743
      boolean first = true;
-
 
74744
 
-
 
74745
      sb.append("success:");
-
 
74746
      sb.append(this.success);
-
 
74747
      first = false;
-
 
74748
      sb.append(")");
-
 
74749
      return sb.toString();
-
 
74750
    }
-
 
74751
 
73999
    public void validate() throws org.apache.thrift.TException {
74752
    public void validate() throws org.apache.thrift.TException {
74000
      // check for required fields
74753
      // check for required fields
74001
    }
74754
    }
74002
 
74755
 
74003
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
74756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {