Subversion Repositories SmartDukaan

Rev

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

Rev 18735 Rev 18764
Line 377... Line 377...
377
 
377
 
378
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
378
    public boolean isCreditorAssigned(long userId) throws org.apache.thrift.TException;
379
 
379
 
380
    public boolean isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException;
380
    public boolean isTaxInvoiceEnabledUser(long userId) throws org.apache.thrift.TException;
381
 
381
 
-
 
382
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
-
 
383
 
382
  }
384
  }
383
 
385
 
384
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
386
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
385
 
387
 
386
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
388
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 559... Line 561...
559
 
561
 
560
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
562
    public void isCreditorAssigned(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCreditorAssigned_call> resultHandler) throws org.apache.thrift.TException;
561
 
563
 
562
    public void isTaxInvoiceEnabledUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceEnabledUser_call> resultHandler) throws org.apache.thrift.TException;
564
    public void isTaxInvoiceEnabledUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isTaxInvoiceEnabledUser_call> resultHandler) throws org.apache.thrift.TException;
563
 
565
 
-
 
566
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
-
 
567
 
564
  }
568
  }
565
 
569
 
566
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
570
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
567
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
571
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
568
      public Factory() {}
572
      public Factory() {}
Line 2838... Line 2842...
2838
        return result.success;
2842
        return result.success;
2839
      }
2843
      }
2840
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
2844
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isTaxInvoiceEnabledUser failed: unknown result");
2841
    }
2845
    }
2842
 
2846
 
-
 
2847
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException
-
 
2848
    {
-
 
2849
      send_getCartByValue(cartIds);
-
 
2850
      return recv_getCartByValue();
-
 
2851
    }
-
 
2852
 
-
 
2853
    public void send_getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException
-
 
2854
    {
-
 
2855
      getCartByValue_args args = new getCartByValue_args();
-
 
2856
      args.setCartIds(cartIds);
-
 
2857
      sendBase("getCartByValue", args);
-
 
2858
    }
-
 
2859
 
-
 
2860
    public Map<Long,List<Line>> recv_getCartByValue() throws org.apache.thrift.TException
-
 
2861
    {
-
 
2862
      getCartByValue_result result = new getCartByValue_result();
-
 
2863
      receiveBase(result, "getCartByValue");
-
 
2864
      if (result.isSetSuccess()) {
-
 
2865
        return result.success;
-
 
2866
      }
-
 
2867
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");
-
 
2868
    }
-
 
2869
 
2843
  }
2870
  }
2844
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2871
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2845
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2872
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2846
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2873
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2847
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2874
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5925... Line 5952...
5925
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5952
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5926
        return (new Client(prot)).recv_isTaxInvoiceEnabledUser();
5953
        return (new Client(prot)).recv_isTaxInvoiceEnabledUser();
5927
      }
5954
      }
5928
    }
5955
    }
5929
 
5956
 
-
 
5957
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_call> resultHandler) throws org.apache.thrift.TException {
-
 
5958
      checkReady();
-
 
5959
      getCartByValue_call method_call = new getCartByValue_call(cartIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
5960
      this.___currentMethod = method_call;
-
 
5961
      ___manager.call(method_call);
-
 
5962
    }
-
 
5963
 
-
 
5964
    public static class getCartByValue_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5965
      private List<Long> cartIds;
-
 
5966
      public getCartByValue_call(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<getCartByValue_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 {
-
 
5967
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5968
        this.cartIds = cartIds;
-
 
5969
      }
-
 
5970
 
-
 
5971
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5972
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartByValue", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5973
        getCartByValue_args args = new getCartByValue_args();
-
 
5974
        args.setCartIds(cartIds);
-
 
5975
        args.write(prot);
-
 
5976
        prot.writeMessageEnd();
-
 
5977
      }
-
 
5978
 
-
 
5979
      public Map<Long,List<Line>> getResult() throws org.apache.thrift.TException {
-
 
5980
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5981
          throw new IllegalStateException("Method call not finished!");
-
 
5982
        }
-
 
5983
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5984
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5985
        return (new Client(prot)).recv_getCartByValue();
-
 
5986
      }
-
 
5987
    }
-
 
5988
 
5930
  }
5989
  }
5931
 
5990
 
5932
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5991
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5933
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5992
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5934
    public Processor(I iface) {
5993
    public Processor(I iface) {
Line 6027... Line 6086...
6027
      processMap.put("validateCartNew", new validateCartNew());
6086
      processMap.put("validateCartNew", new validateCartNew());
6028
      processMap.put("isAddressEditableForCounter", new isAddressEditableForCounter());
6087
      processMap.put("isAddressEditableForCounter", new isAddressEditableForCounter());
6029
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6088
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6030
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6089
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6031
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6090
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
-
 
6091
      processMap.put("getCartByValue", new getCartByValue());
6032
      return processMap;
6092
      return processMap;
6033
    }
6093
    }
6034
 
6094
 
6035
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6095
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6036
      public createAnonymousUser() {
6096
      public createAnonymousUser() {
Line 7724... Line 7784...
7724
        result.setSuccessIsSet(true);
7784
        result.setSuccessIsSet(true);
7725
        return result;
7785
        return result;
7726
      }
7786
      }
7727
    }
7787
    }
7728
 
7788
 
-
 
7789
    private static class getCartByValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartByValue_args> {
-
 
7790
      public getCartByValue() {
-
 
7791
        super("getCartByValue");
-
 
7792
      }
-
 
7793
 
-
 
7794
      protected getCartByValue_args getEmptyArgsInstance() {
-
 
7795
        return new getCartByValue_args();
-
 
7796
      }
-
 
7797
 
-
 
7798
      protected getCartByValue_result getResult(I iface, getCartByValue_args args) throws org.apache.thrift.TException {
-
 
7799
        getCartByValue_result result = new getCartByValue_result();
-
 
7800
        result.success = iface.getCartByValue(args.cartIds);
-
 
7801
        return result;
-
 
7802
      }
-
 
7803
    }
-
 
7804
 
7729
  }
7805
  }
7730
 
7806
 
7731
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7807
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7733
 
7809
 
Line 71154... Line 71230...
71154
      first = false;
71230
      first = false;
71155
      sb.append(")");
71231
      sb.append(")");
71156
      return sb.toString();
71232
      return sb.toString();
71157
    }
71233
    }
71158
 
71234
 
-
 
71235
    public void validate() throws org.apache.thrift.TException {
-
 
71236
      // check for required fields
-
 
71237
    }
-
 
71238
 
-
 
71239
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
71240
      try {
-
 
71241
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
71242
      } catch (org.apache.thrift.TException te) {
-
 
71243
        throw new java.io.IOException(te);
-
 
71244
      }
-
 
71245
    }
-
 
71246
 
-
 
71247
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
71248
      try {
-
 
71249
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
71250
      } catch (org.apache.thrift.TException te) {
-
 
71251
        throw new java.io.IOException(te);
-
 
71252
      }
-
 
71253
    }
-
 
71254
 
-
 
71255
  }
-
 
71256
 
-
 
71257
  public static class getCartByValue_args implements org.apache.thrift.TBase<getCartByValue_args, getCartByValue_args._Fields>, java.io.Serializable, Cloneable   {
-
 
71258
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartByValue_args");
-
 
71259
 
-
 
71260
    private static final org.apache.thrift.protocol.TField CART_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("cartIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
71261
 
-
 
71262
    private List<Long> cartIds; // required
-
 
71263
 
-
 
71264
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
71265
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
71266
      CART_IDS((short)1, "cartIds");
-
 
71267
 
-
 
71268
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
71269
 
-
 
71270
      static {
-
 
71271
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
71272
          byName.put(field.getFieldName(), field);
-
 
71273
        }
-
 
71274
      }
-
 
71275
 
-
 
71276
      /**
-
 
71277
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
71278
       */
-
 
71279
      public static _Fields findByThriftId(int fieldId) {
-
 
71280
        switch(fieldId) {
-
 
71281
          case 1: // CART_IDS
-
 
71282
            return CART_IDS;
-
 
71283
          default:
-
 
71284
            return null;
-
 
71285
        }
-
 
71286
      }
-
 
71287
 
-
 
71288
      /**
-
 
71289
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
71290
       * if it is not found.
-
 
71291
       */
-
 
71292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
71293
        _Fields fields = findByThriftId(fieldId);
-
 
71294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
71295
        return fields;
-
 
71296
      }
-
 
71297
 
-
 
71298
      /**
-
 
71299
       * Find the _Fields constant that matches name, or null if its not found.
-
 
71300
       */
-
 
71301
      public static _Fields findByName(String name) {
-
 
71302
        return byName.get(name);
-
 
71303
      }
-
 
71304
 
-
 
71305
      private final short _thriftId;
-
 
71306
      private final String _fieldName;
-
 
71307
 
-
 
71308
      _Fields(short thriftId, String fieldName) {
-
 
71309
        _thriftId = thriftId;
-
 
71310
        _fieldName = fieldName;
-
 
71311
      }
-
 
71312
 
-
 
71313
      public short getThriftFieldId() {
-
 
71314
        return _thriftId;
-
 
71315
      }
-
 
71316
 
-
 
71317
      public String getFieldName() {
-
 
71318
        return _fieldName;
-
 
71319
      }
-
 
71320
    }
-
 
71321
 
-
 
71322
    // isset id assignments
-
 
71323
 
-
 
71324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
71325
    static {
-
 
71326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
71327
      tmpMap.put(_Fields.CART_IDS, new org.apache.thrift.meta_data.FieldMetaData("cartIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
71328
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
71329
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
71330
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
71331
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartByValue_args.class, metaDataMap);
-
 
71332
    }
-
 
71333
 
-
 
71334
    public getCartByValue_args() {
-
 
71335
    }
-
 
71336
 
-
 
71337
    public getCartByValue_args(
-
 
71338
      List<Long> cartIds)
-
 
71339
    {
-
 
71340
      this();
-
 
71341
      this.cartIds = cartIds;
-
 
71342
    }
-
 
71343
 
-
 
71344
    /**
-
 
71345
     * Performs a deep copy on <i>other</i>.
-
 
71346
     */
-
 
71347
    public getCartByValue_args(getCartByValue_args other) {
-
 
71348
      if (other.isSetCartIds()) {
-
 
71349
        List<Long> __this__cartIds = new ArrayList<Long>();
-
 
71350
        for (Long other_element : other.cartIds) {
-
 
71351
          __this__cartIds.add(other_element);
-
 
71352
        }
-
 
71353
        this.cartIds = __this__cartIds;
-
 
71354
      }
-
 
71355
    }
-
 
71356
 
-
 
71357
    public getCartByValue_args deepCopy() {
-
 
71358
      return new getCartByValue_args(this);
-
 
71359
    }
-
 
71360
 
-
 
71361
    @Override
-
 
71362
    public void clear() {
-
 
71363
      this.cartIds = null;
-
 
71364
    }
-
 
71365
 
-
 
71366
    public int getCartIdsSize() {
-
 
71367
      return (this.cartIds == null) ? 0 : this.cartIds.size();
-
 
71368
    }
-
 
71369
 
-
 
71370
    public java.util.Iterator<Long> getCartIdsIterator() {
-
 
71371
      return (this.cartIds == null) ? null : this.cartIds.iterator();
-
 
71372
    }
-
 
71373
 
-
 
71374
    public void addToCartIds(long elem) {
-
 
71375
      if (this.cartIds == null) {
-
 
71376
        this.cartIds = new ArrayList<Long>();
-
 
71377
      }
-
 
71378
      this.cartIds.add(elem);
-
 
71379
    }
-
 
71380
 
-
 
71381
    public List<Long> getCartIds() {
-
 
71382
      return this.cartIds;
-
 
71383
    }
-
 
71384
 
-
 
71385
    public void setCartIds(List<Long> cartIds) {
-
 
71386
      this.cartIds = cartIds;
-
 
71387
    }
-
 
71388
 
-
 
71389
    public void unsetCartIds() {
-
 
71390
      this.cartIds = null;
-
 
71391
    }
-
 
71392
 
-
 
71393
    /** Returns true if field cartIds is set (has been assigned a value) and false otherwise */
-
 
71394
    public boolean isSetCartIds() {
-
 
71395
      return this.cartIds != null;
-
 
71396
    }
-
 
71397
 
-
 
71398
    public void setCartIdsIsSet(boolean value) {
-
 
71399
      if (!value) {
-
 
71400
        this.cartIds = null;
-
 
71401
      }
-
 
71402
    }
-
 
71403
 
-
 
71404
    public void setFieldValue(_Fields field, Object value) {
-
 
71405
      switch (field) {
-
 
71406
      case CART_IDS:
-
 
71407
        if (value == null) {
-
 
71408
          unsetCartIds();
-
 
71409
        } else {
-
 
71410
          setCartIds((List<Long>)value);
-
 
71411
        }
-
 
71412
        break;
-
 
71413
 
-
 
71414
      }
-
 
71415
    }
-
 
71416
 
-
 
71417
    public Object getFieldValue(_Fields field) {
-
 
71418
      switch (field) {
-
 
71419
      case CART_IDS:
-
 
71420
        return getCartIds();
-
 
71421
 
-
 
71422
      }
-
 
71423
      throw new IllegalStateException();
-
 
71424
    }
-
 
71425
 
-
 
71426
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
71427
    public boolean isSet(_Fields field) {
-
 
71428
      if (field == null) {
-
 
71429
        throw new IllegalArgumentException();
-
 
71430
      }
-
 
71431
 
-
 
71432
      switch (field) {
-
 
71433
      case CART_IDS:
-
 
71434
        return isSetCartIds();
-
 
71435
      }
-
 
71436
      throw new IllegalStateException();
-
 
71437
    }
-
 
71438
 
-
 
71439
    @Override
-
 
71440
    public boolean equals(Object that) {
-
 
71441
      if (that == null)
-
 
71442
        return false;
-
 
71443
      if (that instanceof getCartByValue_args)
-
 
71444
        return this.equals((getCartByValue_args)that);
-
 
71445
      return false;
-
 
71446
    }
-
 
71447
 
-
 
71448
    public boolean equals(getCartByValue_args that) {
-
 
71449
      if (that == null)
-
 
71450
        return false;
-
 
71451
 
-
 
71452
      boolean this_present_cartIds = true && this.isSetCartIds();
-
 
71453
      boolean that_present_cartIds = true && that.isSetCartIds();
-
 
71454
      if (this_present_cartIds || that_present_cartIds) {
-
 
71455
        if (!(this_present_cartIds && that_present_cartIds))
-
 
71456
          return false;
-
 
71457
        if (!this.cartIds.equals(that.cartIds))
-
 
71458
          return false;
-
 
71459
      }
-
 
71460
 
-
 
71461
      return true;
-
 
71462
    }
-
 
71463
 
-
 
71464
    @Override
-
 
71465
    public int hashCode() {
-
 
71466
      return 0;
-
 
71467
    }
-
 
71468
 
-
 
71469
    public int compareTo(getCartByValue_args other) {
-
 
71470
      if (!getClass().equals(other.getClass())) {
-
 
71471
        return getClass().getName().compareTo(other.getClass().getName());
-
 
71472
      }
-
 
71473
 
-
 
71474
      int lastComparison = 0;
-
 
71475
      getCartByValue_args typedOther = (getCartByValue_args)other;
-
 
71476
 
-
 
71477
      lastComparison = Boolean.valueOf(isSetCartIds()).compareTo(typedOther.isSetCartIds());
-
 
71478
      if (lastComparison != 0) {
-
 
71479
        return lastComparison;
-
 
71480
      }
-
 
71481
      if (isSetCartIds()) {
-
 
71482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartIds, typedOther.cartIds);
-
 
71483
        if (lastComparison != 0) {
-
 
71484
          return lastComparison;
-
 
71485
        }
-
 
71486
      }
-
 
71487
      return 0;
-
 
71488
    }
-
 
71489
 
-
 
71490
    public _Fields fieldForId(int fieldId) {
-
 
71491
      return _Fields.findByThriftId(fieldId);
-
 
71492
    }
-
 
71493
 
-
 
71494
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
71495
      org.apache.thrift.protocol.TField field;
-
 
71496
      iprot.readStructBegin();
-
 
71497
      while (true)
-
 
71498
      {
-
 
71499
        field = iprot.readFieldBegin();
-
 
71500
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
71501
          break;
-
 
71502
        }
-
 
71503
        switch (field.id) {
-
 
71504
          case 1: // CART_IDS
-
 
71505
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
71506
              {
-
 
71507
                org.apache.thrift.protocol.TList _list145 = iprot.readListBegin();
-
 
71508
                this.cartIds = new ArrayList<Long>(_list145.size);
-
 
71509
                for (int _i146 = 0; _i146 < _list145.size; ++_i146)
-
 
71510
                {
-
 
71511
                  long _elem147; // required
-
 
71512
                  _elem147 = iprot.readI64();
-
 
71513
                  this.cartIds.add(_elem147);
-
 
71514
                }
-
 
71515
                iprot.readListEnd();
-
 
71516
              }
-
 
71517
            } else { 
-
 
71518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71519
            }
-
 
71520
            break;
-
 
71521
          default:
-
 
71522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71523
        }
-
 
71524
        iprot.readFieldEnd();
-
 
71525
      }
-
 
71526
      iprot.readStructEnd();
-
 
71527
      validate();
-
 
71528
    }
-
 
71529
 
-
 
71530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
71531
      validate();
-
 
71532
 
-
 
71533
      oprot.writeStructBegin(STRUCT_DESC);
-
 
71534
      if (this.cartIds != null) {
-
 
71535
        oprot.writeFieldBegin(CART_IDS_FIELD_DESC);
-
 
71536
        {
-
 
71537
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.cartIds.size()));
-
 
71538
          for (long _iter148 : this.cartIds)
-
 
71539
          {
-
 
71540
            oprot.writeI64(_iter148);
-
 
71541
          }
-
 
71542
          oprot.writeListEnd();
-
 
71543
        }
-
 
71544
        oprot.writeFieldEnd();
-
 
71545
      }
-
 
71546
      oprot.writeFieldStop();
-
 
71547
      oprot.writeStructEnd();
-
 
71548
    }
-
 
71549
 
-
 
71550
    @Override
-
 
71551
    public String toString() {
-
 
71552
      StringBuilder sb = new StringBuilder("getCartByValue_args(");
-
 
71553
      boolean first = true;
-
 
71554
 
-
 
71555
      sb.append("cartIds:");
-
 
71556
      if (this.cartIds == null) {
-
 
71557
        sb.append("null");
-
 
71558
      } else {
-
 
71559
        sb.append(this.cartIds);
-
 
71560
      }
-
 
71561
      first = false;
-
 
71562
      sb.append(")");
-
 
71563
      return sb.toString();
-
 
71564
    }
-
 
71565
 
-
 
71566
    public void validate() throws org.apache.thrift.TException {
-
 
71567
      // check for required fields
-
 
71568
    }
-
 
71569
 
-
 
71570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
71571
      try {
-
 
71572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
71573
      } catch (org.apache.thrift.TException te) {
-
 
71574
        throw new java.io.IOException(te);
-
 
71575
      }
-
 
71576
    }
-
 
71577
 
-
 
71578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
71579
      try {
-
 
71580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
71581
      } catch (org.apache.thrift.TException te) {
-
 
71582
        throw new java.io.IOException(te);
-
 
71583
      }
-
 
71584
    }
-
 
71585
 
-
 
71586
  }
-
 
71587
 
-
 
71588
  public static class getCartByValue_result implements org.apache.thrift.TBase<getCartByValue_result, getCartByValue_result._Fields>, java.io.Serializable, Cloneable   {
-
 
71589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartByValue_result");
-
 
71590
 
-
 
71591
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
71592
 
-
 
71593
    private Map<Long,List<Line>> success; // required
-
 
71594
 
-
 
71595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
71596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
71597
      SUCCESS((short)0, "success");
-
 
71598
 
-
 
71599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
71600
 
-
 
71601
      static {
-
 
71602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
71603
          byName.put(field.getFieldName(), field);
-
 
71604
        }
-
 
71605
      }
-
 
71606
 
-
 
71607
      /**
-
 
71608
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
71609
       */
-
 
71610
      public static _Fields findByThriftId(int fieldId) {
-
 
71611
        switch(fieldId) {
-
 
71612
          case 0: // SUCCESS
-
 
71613
            return SUCCESS;
-
 
71614
          default:
-
 
71615
            return null;
-
 
71616
        }
-
 
71617
      }
-
 
71618
 
-
 
71619
      /**
-
 
71620
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
71621
       * if it is not found.
-
 
71622
       */
-
 
71623
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
71624
        _Fields fields = findByThriftId(fieldId);
-
 
71625
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
71626
        return fields;
-
 
71627
      }
-
 
71628
 
-
 
71629
      /**
-
 
71630
       * Find the _Fields constant that matches name, or null if its not found.
-
 
71631
       */
-
 
71632
      public static _Fields findByName(String name) {
-
 
71633
        return byName.get(name);
-
 
71634
      }
-
 
71635
 
-
 
71636
      private final short _thriftId;
-
 
71637
      private final String _fieldName;
-
 
71638
 
-
 
71639
      _Fields(short thriftId, String fieldName) {
-
 
71640
        _thriftId = thriftId;
-
 
71641
        _fieldName = fieldName;
-
 
71642
      }
-
 
71643
 
-
 
71644
      public short getThriftFieldId() {
-
 
71645
        return _thriftId;
-
 
71646
      }
-
 
71647
 
-
 
71648
      public String getFieldName() {
-
 
71649
        return _fieldName;
-
 
71650
      }
-
 
71651
    }
-
 
71652
 
-
 
71653
    // isset id assignments
-
 
71654
 
-
 
71655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
71656
    static {
-
 
71657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
71658
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
71659
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
71660
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
71661
              new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
71662
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Line.class)))));
-
 
71663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
71664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartByValue_result.class, metaDataMap);
-
 
71665
    }
-
 
71666
 
-
 
71667
    public getCartByValue_result() {
-
 
71668
    }
-
 
71669
 
-
 
71670
    public getCartByValue_result(
-
 
71671
      Map<Long,List<Line>> success)
-
 
71672
    {
-
 
71673
      this();
-
 
71674
      this.success = success;
-
 
71675
    }
-
 
71676
 
-
 
71677
    /**
-
 
71678
     * Performs a deep copy on <i>other</i>.
-
 
71679
     */
-
 
71680
    public getCartByValue_result(getCartByValue_result other) {
-
 
71681
      if (other.isSetSuccess()) {
-
 
71682
        Map<Long,List<Line>> __this__success = new HashMap<Long,List<Line>>();
-
 
71683
        for (Map.Entry<Long, List<Line>> other_element : other.success.entrySet()) {
-
 
71684
 
-
 
71685
          Long other_element_key = other_element.getKey();
-
 
71686
          List<Line> other_element_value = other_element.getValue();
-
 
71687
 
-
 
71688
          Long __this__success_copy_key = other_element_key;
-
 
71689
 
-
 
71690
          List<Line> __this__success_copy_value = new ArrayList<Line>();
-
 
71691
          for (Line other_element_value_element : other_element_value) {
-
 
71692
            __this__success_copy_value.add(new Line(other_element_value_element));
-
 
71693
          }
-
 
71694
 
-
 
71695
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
71696
        }
-
 
71697
        this.success = __this__success;
-
 
71698
      }
-
 
71699
    }
-
 
71700
 
-
 
71701
    public getCartByValue_result deepCopy() {
-
 
71702
      return new getCartByValue_result(this);
-
 
71703
    }
-
 
71704
 
-
 
71705
    @Override
-
 
71706
    public void clear() {
-
 
71707
      this.success = null;
-
 
71708
    }
-
 
71709
 
-
 
71710
    public int getSuccessSize() {
-
 
71711
      return (this.success == null) ? 0 : this.success.size();
-
 
71712
    }
-
 
71713
 
-
 
71714
    public void putToSuccess(long key, List<Line> val) {
-
 
71715
      if (this.success == null) {
-
 
71716
        this.success = new HashMap<Long,List<Line>>();
-
 
71717
      }
-
 
71718
      this.success.put(key, val);
-
 
71719
    }
-
 
71720
 
-
 
71721
    public Map<Long,List<Line>> getSuccess() {
-
 
71722
      return this.success;
-
 
71723
    }
-
 
71724
 
-
 
71725
    public void setSuccess(Map<Long,List<Line>> success) {
-
 
71726
      this.success = success;
-
 
71727
    }
-
 
71728
 
-
 
71729
    public void unsetSuccess() {
-
 
71730
      this.success = null;
-
 
71731
    }
-
 
71732
 
-
 
71733
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
71734
    public boolean isSetSuccess() {
-
 
71735
      return this.success != null;
-
 
71736
    }
-
 
71737
 
-
 
71738
    public void setSuccessIsSet(boolean value) {
-
 
71739
      if (!value) {
-
 
71740
        this.success = null;
-
 
71741
      }
-
 
71742
    }
-
 
71743
 
-
 
71744
    public void setFieldValue(_Fields field, Object value) {
-
 
71745
      switch (field) {
-
 
71746
      case SUCCESS:
-
 
71747
        if (value == null) {
-
 
71748
          unsetSuccess();
-
 
71749
        } else {
-
 
71750
          setSuccess((Map<Long,List<Line>>)value);
-
 
71751
        }
-
 
71752
        break;
-
 
71753
 
-
 
71754
      }
-
 
71755
    }
-
 
71756
 
-
 
71757
    public Object getFieldValue(_Fields field) {
-
 
71758
      switch (field) {
-
 
71759
      case SUCCESS:
-
 
71760
        return getSuccess();
-
 
71761
 
-
 
71762
      }
-
 
71763
      throw new IllegalStateException();
-
 
71764
    }
-
 
71765
 
-
 
71766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
71767
    public boolean isSet(_Fields field) {
-
 
71768
      if (field == null) {
-
 
71769
        throw new IllegalArgumentException();
-
 
71770
      }
-
 
71771
 
-
 
71772
      switch (field) {
-
 
71773
      case SUCCESS:
-
 
71774
        return isSetSuccess();
-
 
71775
      }
-
 
71776
      throw new IllegalStateException();
-
 
71777
    }
-
 
71778
 
-
 
71779
    @Override
-
 
71780
    public boolean equals(Object that) {
-
 
71781
      if (that == null)
-
 
71782
        return false;
-
 
71783
      if (that instanceof getCartByValue_result)
-
 
71784
        return this.equals((getCartByValue_result)that);
-
 
71785
      return false;
-
 
71786
    }
-
 
71787
 
-
 
71788
    public boolean equals(getCartByValue_result that) {
-
 
71789
      if (that == null)
-
 
71790
        return false;
-
 
71791
 
-
 
71792
      boolean this_present_success = true && this.isSetSuccess();
-
 
71793
      boolean that_present_success = true && that.isSetSuccess();
-
 
71794
      if (this_present_success || that_present_success) {
-
 
71795
        if (!(this_present_success && that_present_success))
-
 
71796
          return false;
-
 
71797
        if (!this.success.equals(that.success))
-
 
71798
          return false;
-
 
71799
      }
-
 
71800
 
-
 
71801
      return true;
-
 
71802
    }
-
 
71803
 
-
 
71804
    @Override
-
 
71805
    public int hashCode() {
-
 
71806
      return 0;
-
 
71807
    }
-
 
71808
 
-
 
71809
    public int compareTo(getCartByValue_result other) {
-
 
71810
      if (!getClass().equals(other.getClass())) {
-
 
71811
        return getClass().getName().compareTo(other.getClass().getName());
-
 
71812
      }
-
 
71813
 
-
 
71814
      int lastComparison = 0;
-
 
71815
      getCartByValue_result typedOther = (getCartByValue_result)other;
-
 
71816
 
-
 
71817
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
71818
      if (lastComparison != 0) {
-
 
71819
        return lastComparison;
-
 
71820
      }
-
 
71821
      if (isSetSuccess()) {
-
 
71822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
71823
        if (lastComparison != 0) {
-
 
71824
          return lastComparison;
-
 
71825
        }
-
 
71826
      }
-
 
71827
      return 0;
-
 
71828
    }
-
 
71829
 
-
 
71830
    public _Fields fieldForId(int fieldId) {
-
 
71831
      return _Fields.findByThriftId(fieldId);
-
 
71832
    }
-
 
71833
 
-
 
71834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
71835
      org.apache.thrift.protocol.TField field;
-
 
71836
      iprot.readStructBegin();
-
 
71837
      while (true)
-
 
71838
      {
-
 
71839
        field = iprot.readFieldBegin();
-
 
71840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
71841
          break;
-
 
71842
        }
-
 
71843
        switch (field.id) {
-
 
71844
          case 0: // SUCCESS
-
 
71845
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
71846
              {
-
 
71847
                org.apache.thrift.protocol.TMap _map149 = iprot.readMapBegin();
-
 
71848
                this.success = new HashMap<Long,List<Line>>(2*_map149.size);
-
 
71849
                for (int _i150 = 0; _i150 < _map149.size; ++_i150)
-
 
71850
                {
-
 
71851
                  long _key151; // required
-
 
71852
                  List<Line> _val152; // required
-
 
71853
                  _key151 = iprot.readI64();
-
 
71854
                  {
-
 
71855
                    org.apache.thrift.protocol.TList _list153 = iprot.readListBegin();
-
 
71856
                    _val152 = new ArrayList<Line>(_list153.size);
-
 
71857
                    for (int _i154 = 0; _i154 < _list153.size; ++_i154)
-
 
71858
                    {
-
 
71859
                      Line _elem155; // required
-
 
71860
                      _elem155 = new Line();
-
 
71861
                      _elem155.read(iprot);
-
 
71862
                      _val152.add(_elem155);
-
 
71863
                    }
-
 
71864
                    iprot.readListEnd();
-
 
71865
                  }
-
 
71866
                  this.success.put(_key151, _val152);
-
 
71867
                }
-
 
71868
                iprot.readMapEnd();
-
 
71869
              }
-
 
71870
            } else { 
-
 
71871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71872
            }
-
 
71873
            break;
-
 
71874
          default:
-
 
71875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
71876
        }
-
 
71877
        iprot.readFieldEnd();
-
 
71878
      }
-
 
71879
      iprot.readStructEnd();
-
 
71880
      validate();
-
 
71881
    }
-
 
71882
 
-
 
71883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
71884
      oprot.writeStructBegin(STRUCT_DESC);
-
 
71885
 
-
 
71886
      if (this.isSetSuccess()) {
-
 
71887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
71888
        {
-
 
71889
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
-
 
71890
          for (Map.Entry<Long, List<Line>> _iter156 : this.success.entrySet())
-
 
71891
          {
-
 
71892
            oprot.writeI64(_iter156.getKey());
-
 
71893
            {
-
 
71894
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter156.getValue().size()));
-
 
71895
              for (Line _iter157 : _iter156.getValue())
-
 
71896
              {
-
 
71897
                _iter157.write(oprot);
-
 
71898
              }
-
 
71899
              oprot.writeListEnd();
-
 
71900
            }
-
 
71901
          }
-
 
71902
          oprot.writeMapEnd();
-
 
71903
        }
-
 
71904
        oprot.writeFieldEnd();
-
 
71905
      }
-
 
71906
      oprot.writeFieldStop();
-
 
71907
      oprot.writeStructEnd();
-
 
71908
    }
-
 
71909
 
-
 
71910
    @Override
-
 
71911
    public String toString() {
-
 
71912
      StringBuilder sb = new StringBuilder("getCartByValue_result(");
-
 
71913
      boolean first = true;
-
 
71914
 
-
 
71915
      sb.append("success:");
-
 
71916
      if (this.success == null) {
-
 
71917
        sb.append("null");
-
 
71918
      } else {
-
 
71919
        sb.append(this.success);
-
 
71920
      }
-
 
71921
      first = false;
-
 
71922
      sb.append(")");
-
 
71923
      return sb.toString();
-
 
71924
    }
-
 
71925
 
71159
    public void validate() throws org.apache.thrift.TException {
71926
    public void validate() throws org.apache.thrift.TException {
71160
      // check for required fields
71927
      // check for required fields
71161
    }
71928
    }
71162
 
71929
 
71163
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
71930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {