Subversion Repositories SmartDukaan

Rev

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

Rev 11526 Rev 11592
Line 325... Line 325...
325
     * @param startDate
325
     * @param startDate
326
     * @param endDate
326
     * @param endDate
327
     */
327
     */
328
    public List<Long> getProductsAddedToCart(long startDate, long endDate) throws org.apache.thrift.TException;
328
    public List<Long> getProductsAddedToCart(long startDate, long endDate) throws org.apache.thrift.TException;
329
 
329
 
-
 
330
    /**
-
 
331
     * This method is speciically used to avoid overloadaed calls to userClient
-
 
332
     * 
-
 
333
     * @param cartId
-
 
334
     * @param sourceId
-
 
335
     */
-
 
336
    public CartPlus validateCartPlus(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
-
 
337
 
330
  }
338
  }
331
 
339
 
332
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
340
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
333
 
341
 
334
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
342
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 473... Line 481...
473
 
481
 
474
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
482
    public void isInsuranceDetailPresent(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isInsuranceDetailPresent_call> resultHandler) throws org.apache.thrift.TException;
475
 
483
 
476
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
484
    public void getProductsAddedToCart(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductsAddedToCart_call> resultHandler) throws org.apache.thrift.TException;
477
 
485
 
-
 
486
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCartPlus_call> resultHandler) throws org.apache.thrift.TException;
-
 
487
 
478
  }
488
  }
479
 
489
 
480
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
490
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
481
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
491
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
482
      public Factory() {}
492
      public Factory() {}
Line 2343... Line 2353...
2343
        return result.success;
2353
        return result.success;
2344
      }
2354
      }
2345
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
2355
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
2346
    }
2356
    }
2347
 
2357
 
-
 
2358
    public CartPlus validateCartPlus(long cartId, long sourceId) throws ShoppingCartException, org.apache.thrift.TException
-
 
2359
    {
-
 
2360
      send_validateCartPlus(cartId, sourceId);
-
 
2361
      return recv_validateCartPlus();
-
 
2362
    }
-
 
2363
 
-
 
2364
    public void send_validateCartPlus(long cartId, long sourceId) throws org.apache.thrift.TException
-
 
2365
    {
-
 
2366
      validateCartPlus_args args = new validateCartPlus_args();
-
 
2367
      args.setCartId(cartId);
-
 
2368
      args.setSourceId(sourceId);
-
 
2369
      sendBase("validateCartPlus", args);
-
 
2370
    }
-
 
2371
 
-
 
2372
    public CartPlus recv_validateCartPlus() throws ShoppingCartException, org.apache.thrift.TException
-
 
2373
    {
-
 
2374
      validateCartPlus_result result = new validateCartPlus_result();
-
 
2375
      receiveBase(result, "validateCartPlus");
-
 
2376
      if (result.isSetSuccess()) {
-
 
2377
        return result.success;
-
 
2378
      }
-
 
2379
      if (result.scex != null) {
-
 
2380
        throw result.scex;
-
 
2381
      }
-
 
2382
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateCartPlus failed: unknown result");
-
 
2383
    }
-
 
2384
 
2348
  }
2385
  }
2349
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2386
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2350
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2387
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2351
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2388
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2352
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2389
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4850... Line 4887...
4850
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4887
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4851
        return (new Client(prot)).recv_getProductsAddedToCart();
4888
        return (new Client(prot)).recv_getProductsAddedToCart();
4852
      }
4889
      }
4853
    }
4890
    }
4854
 
4891
 
-
 
4892
    public void validateCartPlus(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<validateCartPlus_call> resultHandler) throws org.apache.thrift.TException {
-
 
4893
      checkReady();
-
 
4894
      validateCartPlus_call method_call = new validateCartPlus_call(cartId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4895
      this.___currentMethod = method_call;
-
 
4896
      ___manager.call(method_call);
-
 
4897
    }
-
 
4898
 
-
 
4899
    public static class validateCartPlus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4900
      private long cartId;
-
 
4901
      private long sourceId;
-
 
4902
      public validateCartPlus_call(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<validateCartPlus_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 {
-
 
4903
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4904
        this.cartId = cartId;
-
 
4905
        this.sourceId = sourceId;
-
 
4906
      }
-
 
4907
 
-
 
4908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateCartPlus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4910
        validateCartPlus_args args = new validateCartPlus_args();
-
 
4911
        args.setCartId(cartId);
-
 
4912
        args.setSourceId(sourceId);
-
 
4913
        args.write(prot);
-
 
4914
        prot.writeMessageEnd();
-
 
4915
      }
-
 
4916
 
-
 
4917
      public CartPlus getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
4918
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4919
          throw new IllegalStateException("Method call not finished!");
-
 
4920
        }
-
 
4921
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4922
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4923
        return (new Client(prot)).recv_validateCartPlus();
-
 
4924
      }
-
 
4925
    }
-
 
4926
 
4855
  }
4927
  }
4856
 
4928
 
4857
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4929
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4858
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4930
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4859
    public Processor(I iface) {
4931
    public Processor(I iface) {
Line 4935... Line 5007...
4935
      processMap.put("insureItem", new insureItem());
5007
      processMap.put("insureItem", new insureItem());
4936
      processMap.put("cancelInsurance", new cancelInsurance());
5008
      processMap.put("cancelInsurance", new cancelInsurance());
4937
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
5009
      processMap.put("storeInsuranceSpecificDetails", new storeInsuranceSpecificDetails());
4938
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
5010
      processMap.put("isInsuranceDetailPresent", new isInsuranceDetailPresent());
4939
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
5011
      processMap.put("getProductsAddedToCart", new getProductsAddedToCart());
-
 
5012
      processMap.put("validateCartPlus", new validateCartPlus());
4940
      return processMap;
5013
      return processMap;
4941
    }
5014
    }
4942
 
5015
 
4943
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5016
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
4944
      public createAnonymousUser() {
5017
      public createAnonymousUser() {
Line 6344... Line 6417...
6344
        result.success = iface.getProductsAddedToCart(args.startDate, args.endDate);
6417
        result.success = iface.getProductsAddedToCart(args.startDate, args.endDate);
6345
        return result;
6418
        return result;
6346
      }
6419
      }
6347
    }
6420
    }
6348
 
6421
 
-
 
6422
    private static class validateCartPlus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateCartPlus_args> {
-
 
6423
      public validateCartPlus() {
-
 
6424
        super("validateCartPlus");
-
 
6425
      }
-
 
6426
 
-
 
6427
      protected validateCartPlus_args getEmptyArgsInstance() {
-
 
6428
        return new validateCartPlus_args();
-
 
6429
      }
-
 
6430
 
-
 
6431
      protected validateCartPlus_result getResult(I iface, validateCartPlus_args args) throws org.apache.thrift.TException {
-
 
6432
        validateCartPlus_result result = new validateCartPlus_result();
-
 
6433
        try {
-
 
6434
          result.success = iface.validateCartPlus(args.cartId, args.sourceId);
-
 
6435
        } catch (ShoppingCartException scex) {
-
 
6436
          result.scex = scex;
-
 
6437
        }
-
 
6438
        return result;
-
 
6439
      }
-
 
6440
    }
-
 
6441
 
6349
  }
6442
  }
6350
 
6443
 
6351
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6444
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6353
 
6446
 
Line 18624... Line 18717...
18624
        }
18717
        }
18625
        switch (field.id) {
18718
        switch (field.id) {
18626
          case 0: // SUCCESS
18719
          case 0: // SUCCESS
18627
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18720
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18628
              {
18721
              {
18629
                org.apache.thrift.protocol.TList _list51 = iprot.readListBegin();
18722
                org.apache.thrift.protocol.TList _list55 = iprot.readListBegin();
18630
                this.success = new ArrayList<Address>(_list51.size);
18723
                this.success = new ArrayList<Address>(_list55.size);
18631
                for (int _i52 = 0; _i52 < _list51.size; ++_i52)
18724
                for (int _i56 = 0; _i56 < _list55.size; ++_i56)
18632
                {
18725
                {
18633
                  Address _elem53; // required
18726
                  Address _elem57; // required
18634
                  _elem53 = new Address();
18727
                  _elem57 = new Address();
18635
                  _elem53.read(iprot);
18728
                  _elem57.read(iprot);
18636
                  this.success.add(_elem53);
18729
                  this.success.add(_elem57);
18637
                }
18730
                }
18638
                iprot.readListEnd();
18731
                iprot.readListEnd();
18639
              }
18732
              }
18640
            } else { 
18733
            } else { 
18641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 18663... Line 18756...
18663
 
18756
 
18664
      if (this.isSetSuccess()) {
18757
      if (this.isSetSuccess()) {
18665
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18758
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18666
        {
18759
        {
18667
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18760
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18668
          for (Address _iter54 : this.success)
18761
          for (Address _iter58 : this.success)
18669
          {
18762
          {
18670
            _iter54.write(oprot);
18763
            _iter58.write(oprot);
18671
          }
18764
          }
18672
          oprot.writeListEnd();
18765
          oprot.writeListEnd();
18673
        }
18766
        }
18674
        oprot.writeFieldEnd();
18767
        oprot.writeFieldEnd();
18675
      } else if (this.isSetUcx()) {
18768
      } else if (this.isSetUcx()) {
Line 23320... Line 23413...
23320
        }
23413
        }
23321
        switch (field.id) {
23414
        switch (field.id) {
23322
          case 0: // SUCCESS
23415
          case 0: // SUCCESS
23323
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23416
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23324
              {
23417
              {
23325
                org.apache.thrift.protocol.TList _list55 = iprot.readListBegin();
23418
                org.apache.thrift.protocol.TList _list59 = iprot.readListBegin();
23326
                this.success = new ArrayList<UserCommunication>(_list55.size);
23419
                this.success = new ArrayList<UserCommunication>(_list59.size);
23327
                for (int _i56 = 0; _i56 < _list55.size; ++_i56)
23420
                for (int _i60 = 0; _i60 < _list59.size; ++_i60)
23328
                {
23421
                {
23329
                  UserCommunication _elem57; // required
23422
                  UserCommunication _elem61; // required
23330
                  _elem57 = new UserCommunication();
23423
                  _elem61 = new UserCommunication();
23331
                  _elem57.read(iprot);
23424
                  _elem61.read(iprot);
23332
                  this.success.add(_elem57);
23425
                  this.success.add(_elem61);
23333
                }
23426
                }
23334
                iprot.readListEnd();
23427
                iprot.readListEnd();
23335
              }
23428
              }
23336
            } else { 
23429
            } else { 
23337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23359... Line 23452...
23359
 
23452
 
23360
      if (this.isSetSuccess()) {
23453
      if (this.isSetSuccess()) {
23361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23454
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23362
        {
23455
        {
23363
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23456
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23364
          for (UserCommunication _iter58 : this.success)
23457
          for (UserCommunication _iter62 : this.success)
23365
          {
23458
          {
23366
            _iter58.write(oprot);
23459
            _iter62.write(oprot);
23367
          }
23460
          }
23368
          oprot.writeListEnd();
23461
          oprot.writeListEnd();
23369
        }
23462
        }
23370
        oprot.writeFieldEnd();
23463
        oprot.writeFieldEnd();
23371
      } else if (this.isSetUcx()) {
23464
      } else if (this.isSetUcx()) {
Line 23939... Line 24032...
23939
        }
24032
        }
23940
        switch (field.id) {
24033
        switch (field.id) {
23941
          case 0: // SUCCESS
24034
          case 0: // SUCCESS
23942
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24035
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23943
              {
24036
              {
23944
                org.apache.thrift.protocol.TList _list59 = iprot.readListBegin();
24037
                org.apache.thrift.protocol.TList _list63 = iprot.readListBegin();
23945
                this.success = new ArrayList<UserCommunication>(_list59.size);
24038
                this.success = new ArrayList<UserCommunication>(_list63.size);
23946
                for (int _i60 = 0; _i60 < _list59.size; ++_i60)
24039
                for (int _i64 = 0; _i64 < _list63.size; ++_i64)
23947
                {
24040
                {
23948
                  UserCommunication _elem61; // required
24041
                  UserCommunication _elem65; // required
23949
                  _elem61 = new UserCommunication();
24042
                  _elem65 = new UserCommunication();
23950
                  _elem61.read(iprot);
24043
                  _elem65.read(iprot);
23951
                  this.success.add(_elem61);
24044
                  this.success.add(_elem65);
23952
                }
24045
                }
23953
                iprot.readListEnd();
24046
                iprot.readListEnd();
23954
              }
24047
              }
23955
            } else { 
24048
            } else { 
23956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23978... Line 24071...
23978
 
24071
 
23979
      if (this.isSetSuccess()) {
24072
      if (this.isSetSuccess()) {
23980
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24073
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23981
        {
24074
        {
23982
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24075
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23983
          for (UserCommunication _iter62 : this.success)
24076
          for (UserCommunication _iter66 : this.success)
23984
          {
24077
          {
23985
            _iter62.write(oprot);
24078
            _iter66.write(oprot);
23986
          }
24079
          }
23987
          oprot.writeListEnd();
24080
          oprot.writeListEnd();
23988
        }
24081
        }
23989
        oprot.writeFieldEnd();
24082
        oprot.writeFieldEnd();
23990
      } else if (this.isSetUcx()) {
24083
      } else if (this.isSetUcx()) {
Line 25910... Line 26003...
25910
        }
26003
        }
25911
        switch (field.id) {
26004
        switch (field.id) {
25912
          case 0: // SUCCESS
26005
          case 0: // SUCCESS
25913
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26006
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25914
              {
26007
              {
25915
                org.apache.thrift.protocol.TList _list63 = iprot.readListBegin();
26008
                org.apache.thrift.protocol.TList _list67 = iprot.readListBegin();
25916
                this.success = new ArrayList<MasterAffiliate>(_list63.size);
26009
                this.success = new ArrayList<MasterAffiliate>(_list67.size);
25917
                for (int _i64 = 0; _i64 < _list63.size; ++_i64)
26010
                for (int _i68 = 0; _i68 < _list67.size; ++_i68)
25918
                {
26011
                {
25919
                  MasterAffiliate _elem65; // required
26012
                  MasterAffiliate _elem69; // required
25920
                  _elem65 = new MasterAffiliate();
26013
                  _elem69 = new MasterAffiliate();
25921
                  _elem65.read(iprot);
26014
                  _elem69.read(iprot);
25922
                  this.success.add(_elem65);
26015
                  this.success.add(_elem69);
25923
                }
26016
                }
25924
                iprot.readListEnd();
26017
                iprot.readListEnd();
25925
              }
26018
              }
25926
            } else { 
26019
            } else { 
25927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 25949... Line 26042...
25949
 
26042
 
25950
      if (this.isSetSuccess()) {
26043
      if (this.isSetSuccess()) {
25951
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25952
        {
26045
        {
25953
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25954
          for (MasterAffiliate _iter66 : this.success)
26047
          for (MasterAffiliate _iter70 : this.success)
25955
          {
26048
          {
25956
            _iter66.write(oprot);
26049
            _iter70.write(oprot);
25957
          }
26050
          }
25958
          oprot.writeListEnd();
26051
          oprot.writeListEnd();
25959
        }
26052
        }
25960
        oprot.writeFieldEnd();
26053
        oprot.writeFieldEnd();
25961
      } else if (this.isSetUtx()) {
26054
      } else if (this.isSetUtx()) {
Line 30938... Line 31031...
30938
        }
31031
        }
30939
        switch (field.id) {
31032
        switch (field.id) {
30940
          case 0: // SUCCESS
31033
          case 0: // SUCCESS
30941
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31034
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30942
              {
31035
              {
30943
                org.apache.thrift.protocol.TList _list67 = iprot.readListBegin();
31036
                org.apache.thrift.protocol.TList _list71 = iprot.readListBegin();
30944
                this.success = new ArrayList<Affiliate>(_list67.size);
31037
                this.success = new ArrayList<Affiliate>(_list71.size);
30945
                for (int _i68 = 0; _i68 < _list67.size; ++_i68)
31038
                for (int _i72 = 0; _i72 < _list71.size; ++_i72)
30946
                {
31039
                {
30947
                  Affiliate _elem69; // required
31040
                  Affiliate _elem73; // required
30948
                  _elem69 = new Affiliate();
31041
                  _elem73 = new Affiliate();
30949
                  _elem69.read(iprot);
31042
                  _elem73.read(iprot);
30950
                  this.success.add(_elem69);
31043
                  this.success.add(_elem73);
30951
                }
31044
                }
30952
                iprot.readListEnd();
31045
                iprot.readListEnd();
30953
              }
31046
              }
30954
            } else { 
31047
            } else { 
30955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 30977... Line 31070...
30977
 
31070
 
30978
      if (this.isSetSuccess()) {
31071
      if (this.isSetSuccess()) {
30979
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31072
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30980
        {
31073
        {
30981
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31074
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30982
          for (Affiliate _iter70 : this.success)
31075
          for (Affiliate _iter74 : this.success)
30983
          {
31076
          {
30984
            _iter70.write(oprot);
31077
            _iter74.write(oprot);
30985
          }
31078
          }
30986
          oprot.writeListEnd();
31079
          oprot.writeListEnd();
30987
        }
31080
        }
30988
        oprot.writeFieldEnd();
31081
        oprot.writeFieldEnd();
30989
      } else if (this.isSetUtx()) {
31082
      } else if (this.isSetUtx()) {
Line 33610... Line 33703...
33610
        }
33703
        }
33611
        switch (field.id) {
33704
        switch (field.id) {
33612
          case 0: // SUCCESS
33705
          case 0: // SUCCESS
33613
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33706
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33614
              {
33707
              {
33615
                org.apache.thrift.protocol.TList _list71 = iprot.readListBegin();
33708
                org.apache.thrift.protocol.TList _list75 = iprot.readListBegin();
33616
                this.success = new ArrayList<TrackLog>(_list71.size);
33709
                this.success = new ArrayList<TrackLog>(_list75.size);
33617
                for (int _i72 = 0; _i72 < _list71.size; ++_i72)
33710
                for (int _i76 = 0; _i76 < _list75.size; ++_i76)
33618
                {
33711
                {
33619
                  TrackLog _elem73; // required
33712
                  TrackLog _elem77; // required
33620
                  _elem73 = new TrackLog();
33713
                  _elem77 = new TrackLog();
33621
                  _elem73.read(iprot);
33714
                  _elem77.read(iprot);
33622
                  this.success.add(_elem73);
33715
                  this.success.add(_elem77);
33623
                }
33716
                }
33624
                iprot.readListEnd();
33717
                iprot.readListEnd();
33625
              }
33718
              }
33626
            } else { 
33719
            } else { 
33627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33649... Line 33742...
33649
 
33742
 
33650
      if (this.isSetSuccess()) {
33743
      if (this.isSetSuccess()) {
33651
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33744
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33652
        {
33745
        {
33653
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33746
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33654
          for (TrackLog _iter74 : this.success)
33747
          for (TrackLog _iter78 : this.success)
33655
          {
33748
          {
33656
            _iter74.write(oprot);
33749
            _iter78.write(oprot);
33657
          }
33750
          }
33658
          oprot.writeListEnd();
33751
          oprot.writeListEnd();
33659
        }
33752
        }
33660
        oprot.writeFieldEnd();
33753
        oprot.writeFieldEnd();
33661
      } else if (this.isSetUtx()) {
33754
      } else if (this.isSetUtx()) {
Line 34323... Line 34416...
34323
        }
34416
        }
34324
        switch (field.id) {
34417
        switch (field.id) {
34325
          case 0: // SUCCESS
34418
          case 0: // SUCCESS
34326
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34419
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34327
              {
34420
              {
34328
                org.apache.thrift.protocol.TList _list75 = iprot.readListBegin();
34421
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
34329
                this.success = new ArrayList<TrackLog>(_list75.size);
34422
                this.success = new ArrayList<TrackLog>(_list79.size);
34330
                for (int _i76 = 0; _i76 < _list75.size; ++_i76)
34423
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
34331
                {
34424
                {
34332
                  TrackLog _elem77; // required
34425
                  TrackLog _elem81; // required
34333
                  _elem77 = new TrackLog();
34426
                  _elem81 = new TrackLog();
34334
                  _elem77.read(iprot);
34427
                  _elem81.read(iprot);
34335
                  this.success.add(_elem77);
34428
                  this.success.add(_elem81);
34336
                }
34429
                }
34337
                iprot.readListEnd();
34430
                iprot.readListEnd();
34338
              }
34431
              }
34339
            } else { 
34432
            } else { 
34340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34362... Line 34455...
34362
 
34455
 
34363
      if (this.isSetSuccess()) {
34456
      if (this.isSetSuccess()) {
34364
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34365
        {
34458
        {
34366
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34459
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34367
          for (TrackLog _iter78 : this.success)
34460
          for (TrackLog _iter82 : this.success)
34368
          {
34461
          {
34369
            _iter78.write(oprot);
34462
            _iter82.write(oprot);
34370
          }
34463
          }
34371
          oprot.writeListEnd();
34464
          oprot.writeListEnd();
34372
        }
34465
        }
34373
        oprot.writeFieldEnd();
34466
        oprot.writeFieldEnd();
34374
      } else if (this.isSetUtx()) {
34467
      } else if (this.isSetUtx()) {
Line 35212... Line 35305...
35212
        }
35305
        }
35213
        switch (field.id) {
35306
        switch (field.id) {
35214
          case 0: // SUCCESS
35307
          case 0: // SUCCESS
35215
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35308
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35216
              {
35309
              {
35217
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
35310
                org.apache.thrift.protocol.TList _list83 = iprot.readListBegin();
35218
                this.success = new ArrayList<TrackLog>(_list79.size);
35311
                this.success = new ArrayList<TrackLog>(_list83.size);
35219
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
35312
                for (int _i84 = 0; _i84 < _list83.size; ++_i84)
35220
                {
35313
                {
35221
                  TrackLog _elem81; // required
35314
                  TrackLog _elem85; // required
35222
                  _elem81 = new TrackLog();
35315
                  _elem85 = new TrackLog();
35223
                  _elem81.read(iprot);
35316
                  _elem85.read(iprot);
35224
                  this.success.add(_elem81);
35317
                  this.success.add(_elem85);
35225
                }
35318
                }
35226
                iprot.readListEnd();
35319
                iprot.readListEnd();
35227
              }
35320
              }
35228
            } else { 
35321
            } else { 
35229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 35251... Line 35344...
35251
 
35344
 
35252
      if (this.isSetSuccess()) {
35345
      if (this.isSetSuccess()) {
35253
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35346
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35254
        {
35347
        {
35255
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35348
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35256
          for (TrackLog _iter82 : this.success)
35349
          for (TrackLog _iter86 : this.success)
35257
          {
35350
          {
35258
            _iter82.write(oprot);
35351
            _iter86.write(oprot);
35259
          }
35352
          }
35260
          oprot.writeListEnd();
35353
          oprot.writeListEnd();
35261
        }
35354
        }
35262
        oprot.writeFieldEnd();
35355
        oprot.writeFieldEnd();
35263
      } else if (this.isSetUtx()) {
35356
      } else if (this.isSetUtx()) {
Line 37460... Line 37553...
37460
        }
37553
        }
37461
        switch (field.id) {
37554
        switch (field.id) {
37462
          case 0: // SUCCESS
37555
          case 0: // SUCCESS
37463
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37556
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37464
              {
37557
              {
37465
                org.apache.thrift.protocol.TList _list83 = iprot.readListBegin();
37558
                org.apache.thrift.protocol.TList _list87 = iprot.readListBegin();
37466
                this.success = new ArrayList<Cart>(_list83.size);
37559
                this.success = new ArrayList<Cart>(_list87.size);
37467
                for (int _i84 = 0; _i84 < _list83.size; ++_i84)
37560
                for (int _i88 = 0; _i88 < _list87.size; ++_i88)
37468
                {
37561
                {
37469
                  Cart _elem85; // required
37562
                  Cart _elem89; // required
37470
                  _elem85 = new Cart();
37563
                  _elem89 = new Cart();
37471
                  _elem85.read(iprot);
37564
                  _elem89.read(iprot);
37472
                  this.success.add(_elem85);
37565
                  this.success.add(_elem89);
37473
                }
37566
                }
37474
                iprot.readListEnd();
37567
                iprot.readListEnd();
37475
              }
37568
              }
37476
            } else { 
37569
            } else { 
37477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 37499... Line 37592...
37499
 
37592
 
37500
      if (this.isSetSuccess()) {
37593
      if (this.isSetSuccess()) {
37501
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37594
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37502
        {
37595
        {
37503
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37596
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37504
          for (Cart _iter86 : this.success)
37597
          for (Cart _iter90 : this.success)
37505
          {
37598
          {
37506
            _iter86.write(oprot);
37599
            _iter90.write(oprot);
37507
          }
37600
          }
37508
          oprot.writeListEnd();
37601
          oprot.writeListEnd();
37509
        }
37602
        }
37510
        oprot.writeFieldEnd();
37603
        oprot.writeFieldEnd();
37511
      } else if (this.isSetScx()) {
37604
      } else if (this.isSetScx()) {
Line 42601... Line 42694...
42601
        }
42694
        }
42602
        switch (field.id) {
42695
        switch (field.id) {
42603
          case 1: // DISCOUNTS
42696
          case 1: // DISCOUNTS
42604
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42697
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42605
              {
42698
              {
42606
                org.apache.thrift.protocol.TList _list87 = iprot.readListBegin();
42699
                org.apache.thrift.protocol.TList _list91 = iprot.readListBegin();
42607
                this.discounts = new ArrayList<Discount>(_list87.size);
42700
                this.discounts = new ArrayList<Discount>(_list91.size);
42608
                for (int _i88 = 0; _i88 < _list87.size; ++_i88)
42701
                for (int _i92 = 0; _i92 < _list91.size; ++_i92)
42609
                {
42702
                {
42610
                  Discount _elem89; // required
42703
                  Discount _elem93; // required
42611
                  _elem89 = new Discount();
42704
                  _elem93 = new Discount();
42612
                  _elem89.read(iprot);
42705
                  _elem93.read(iprot);
42613
                  this.discounts.add(_elem89);
42706
                  this.discounts.add(_elem93);
42614
                }
42707
                }
42615
                iprot.readListEnd();
42708
                iprot.readListEnd();
42616
              }
42709
              }
42617
            } else { 
42710
            } else { 
42618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 42633... Line 42726...
42633
      oprot.writeStructBegin(STRUCT_DESC);
42726
      oprot.writeStructBegin(STRUCT_DESC);
42634
      if (this.discounts != null) {
42727
      if (this.discounts != null) {
42635
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
42728
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
42636
        {
42729
        {
42637
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
42730
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
42638
          for (Discount _iter90 : this.discounts)
42731
          for (Discount _iter94 : this.discounts)
42639
          {
42732
          {
42640
            _iter90.write(oprot);
42733
            _iter94.write(oprot);
42641
          }
42734
          }
42642
          oprot.writeListEnd();
42735
          oprot.writeListEnd();
42643
        }
42736
        }
42644
        oprot.writeFieldEnd();
42737
        oprot.writeFieldEnd();
42645
      }
42738
      }
Line 44936... Line 45029...
44936
        }
45029
        }
44937
        switch (field.id) {
45030
        switch (field.id) {
44938
          case 0: // SUCCESS
45031
          case 0: // SUCCESS
44939
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
45032
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44940
              {
45033
              {
44941
                org.apache.thrift.protocol.TList _list91 = iprot.readListBegin();
45034
                org.apache.thrift.protocol.TList _list95 = iprot.readListBegin();
44942
                this.success = new ArrayList<String>(_list91.size);
45035
                this.success = new ArrayList<String>(_list95.size);
44943
                for (int _i92 = 0; _i92 < _list91.size; ++_i92)
45036
                for (int _i96 = 0; _i96 < _list95.size; ++_i96)
44944
                {
45037
                {
44945
                  String _elem93; // required
45038
                  String _elem97; // required
44946
                  _elem93 = iprot.readString();
45039
                  _elem97 = iprot.readString();
44947
                  this.success.add(_elem93);
45040
                  this.success.add(_elem97);
44948
                }
45041
                }
44949
                iprot.readListEnd();
45042
                iprot.readListEnd();
44950
              }
45043
              }
44951
            } else { 
45044
            } else { 
44952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 44974... Line 45067...
44974
 
45067
 
44975
      if (this.isSetSuccess()) {
45068
      if (this.isSetSuccess()) {
44976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45069
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44977
        {
45070
        {
44978
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
45071
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
44979
          for (String _iter94 : this.success)
45072
          for (String _iter98 : this.success)
44980
          {
45073
          {
44981
            oprot.writeString(_iter94);
45074
            oprot.writeString(_iter98);
44982
          }
45075
          }
44983
          oprot.writeListEnd();
45076
          oprot.writeListEnd();
44984
        }
45077
        }
44985
        oprot.writeFieldEnd();
45078
        oprot.writeFieldEnd();
44986
      } else if (this.isSetScex()) {
45079
      } else if (this.isSetScex()) {
Line 46617... Line 46710...
46617
            }
46710
            }
46618
            break;
46711
            break;
46619
          case 2: // ITEMS
46712
          case 2: // ITEMS
46620
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
46713
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
46621
              {
46714
              {
46622
                org.apache.thrift.protocol.TMap _map95 = iprot.readMapBegin();
46715
                org.apache.thrift.protocol.TMap _map99 = iprot.readMapBegin();
46623
                this.items = new HashMap<Long,Double>(2*_map95.size);
46716
                this.items = new HashMap<Long,Double>(2*_map99.size);
46624
                for (int _i96 = 0; _i96 < _map95.size; ++_i96)
46717
                for (int _i100 = 0; _i100 < _map99.size; ++_i100)
46625
                {
46718
                {
46626
                  long _key97; // required
46719
                  long _key101; // required
46627
                  double _val98; // required
46720
                  double _val102; // required
46628
                  _key97 = iprot.readI64();
46721
                  _key101 = iprot.readI64();
46629
                  _val98 = iprot.readDouble();
46722
                  _val102 = iprot.readDouble();
46630
                  this.items.put(_key97, _val98);
46723
                  this.items.put(_key101, _val102);
46631
                }
46724
                }
46632
                iprot.readMapEnd();
46725
                iprot.readMapEnd();
46633
              }
46726
              }
46634
            } else { 
46727
            } else { 
46635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46728
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 46653... Line 46746...
46653
      oprot.writeFieldEnd();
46746
      oprot.writeFieldEnd();
46654
      if (this.items != null) {
46747
      if (this.items != null) {
46655
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
46748
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
46656
        {
46749
        {
46657
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
46750
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
46658
          for (Map.Entry<Long, Double> _iter99 : this.items.entrySet())
46751
          for (Map.Entry<Long, Double> _iter103 : this.items.entrySet())
46659
          {
46752
          {
46660
            oprot.writeI64(_iter99.getKey());
46753
            oprot.writeI64(_iter103.getKey());
46661
            oprot.writeDouble(_iter99.getValue());
46754
            oprot.writeDouble(_iter103.getValue());
46662
          }
46755
          }
46663
          oprot.writeMapEnd();
46756
          oprot.writeMapEnd();
46664
        }
46757
        }
46665
        oprot.writeFieldEnd();
46758
        oprot.writeFieldEnd();
46666
      }
46759
      }
Line 48413... Line 48506...
48413
        }
48506
        }
48414
        switch (field.id) {
48507
        switch (field.id) {
48415
          case 0: // SUCCESS
48508
          case 0: // SUCCESS
48416
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48509
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48417
              {
48510
              {
48418
                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
48511
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
48419
                this.success = new ArrayList<User>(_list100.size);
48512
                this.success = new ArrayList<User>(_list104.size);
48420
                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
48513
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
48421
                {
48514
                {
48422
                  User _elem102; // required
48515
                  User _elem106; // required
48423
                  _elem102 = new User();
48516
                  _elem106 = new User();
48424
                  _elem102.read(iprot);
48517
                  _elem106.read(iprot);
48425
                  this.success.add(_elem102);
48518
                  this.success.add(_elem106);
48426
                }
48519
                }
48427
                iprot.readListEnd();
48520
                iprot.readListEnd();
48428
              }
48521
              }
48429
            } else { 
48522
            } else { 
48430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 48444... Line 48537...
48444
 
48537
 
48445
      if (this.isSetSuccess()) {
48538
      if (this.isSetSuccess()) {
48446
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48539
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48447
        {
48540
        {
48448
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48541
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48449
          for (User _iter103 : this.success)
48542
          for (User _iter107 : this.success)
48450
          {
48543
          {
48451
            _iter103.write(oprot);
48544
            _iter107.write(oprot);
48452
          }
48545
          }
48453
          oprot.writeListEnd();
48546
          oprot.writeListEnd();
48454
        }
48547
        }
48455
        oprot.writeFieldEnd();
48548
        oprot.writeFieldEnd();
48456
      }
48549
      }
Line 49106... Line 49199...
49106
        }
49199
        }
49107
        switch (field.id) {
49200
        switch (field.id) {
49108
          case 0: // SUCCESS
49201
          case 0: // SUCCESS
49109
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49202
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49110
              {
49203
              {
49111
                org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();
49204
                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
49112
                this.success = new ArrayList<Long>(_list104.size);
49205
                this.success = new ArrayList<Long>(_list108.size);
49113
                for (int _i105 = 0; _i105 < _list104.size; ++_i105)
49206
                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
49114
                {
49207
                {
49115
                  long _elem106; // required
49208
                  long _elem110; // required
49116
                  _elem106 = iprot.readI64();
49209
                  _elem110 = iprot.readI64();
49117
                  this.success.add(_elem106);
49210
                  this.success.add(_elem110);
49118
                }
49211
                }
49119
                iprot.readListEnd();
49212
                iprot.readListEnd();
49120
              }
49213
              }
49121
            } else { 
49214
            } else { 
49122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49144... Line 49237...
49144
 
49237
 
49145
      if (this.isSetSuccess()) {
49238
      if (this.isSetSuccess()) {
49146
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49239
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49147
        {
49240
        {
49148
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
49241
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
49149
          for (long _iter107 : this.success)
49242
          for (long _iter111 : this.success)
49150
          {
49243
          {
49151
            oprot.writeI64(_iter107);
49244
            oprot.writeI64(_iter111);
49152
          }
49245
          }
49153
          oprot.writeListEnd();
49246
          oprot.writeListEnd();
49154
        }
49247
        }
49155
        oprot.writeFieldEnd();
49248
        oprot.writeFieldEnd();
49156
      } else if (this.isSetScx()) {
49249
      } else if (this.isSetScx()) {
Line 51245... Line 51338...
51245
        }
51338
        }
51246
        switch (field.id) {
51339
        switch (field.id) {
51247
          case 0: // SUCCESS
51340
          case 0: // SUCCESS
51248
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51341
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51249
              {
51342
              {
51250
                org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();
51343
                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
51251
                this.success = new ArrayList<Long>(_list108.size);
51344
                this.success = new ArrayList<Long>(_list112.size);
51252
                for (int _i109 = 0; _i109 < _list108.size; ++_i109)
51345
                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
51253
                {
51346
                {
51254
                  long _elem110; // required
51347
                  long _elem114; // required
51255
                  _elem110 = iprot.readI64();
51348
                  _elem114 = iprot.readI64();
51256
                  this.success.add(_elem110);
51349
                  this.success.add(_elem114);
51257
                }
51350
                }
51258
                iprot.readListEnd();
51351
                iprot.readListEnd();
51259
              }
51352
              }
51260
            } else { 
51353
            } else { 
51261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51283... Line 51376...
51283
 
51376
 
51284
      if (this.isSetSuccess()) {
51377
      if (this.isSetSuccess()) {
51285
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51378
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51286
        {
51379
        {
51287
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
51380
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
51288
          for (long _iter111 : this.success)
51381
          for (long _iter115 : this.success)
51289
          {
51382
          {
51290
            oprot.writeI64(_iter111);
51383
            oprot.writeI64(_iter115);
51291
          }
51384
          }
51292
          oprot.writeListEnd();
51385
          oprot.writeListEnd();
51293
        }
51386
        }
51294
        oprot.writeFieldEnd();
51387
        oprot.writeFieldEnd();
51295
      } else if (this.isSetScx()) {
51388
      } else if (this.isSetScx()) {
Line 54855... Line 54948...
54855
        }
54948
        }
54856
        switch (field.id) {
54949
        switch (field.id) {
54857
          case 0: // SUCCESS
54950
          case 0: // SUCCESS
54858
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54951
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54859
              {
54952
              {
54860
                org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();
54953
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
54861
                this.success = new ArrayList<String>(_list112.size);
54954
                this.success = new ArrayList<String>(_list116.size);
54862
                for (int _i113 = 0; _i113 < _list112.size; ++_i113)
54955
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
54863
                {
54956
                {
54864
                  String _elem114; // required
54957
                  String _elem118; // required
54865
                  _elem114 = iprot.readString();
54958
                  _elem118 = iprot.readString();
54866
                  this.success.add(_elem114);
54959
                  this.success.add(_elem118);
54867
                }
54960
                }
54868
                iprot.readListEnd();
54961
                iprot.readListEnd();
54869
              }
54962
              }
54870
            } else { 
54963
            } else { 
54871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 54885... Line 54978...
54885
 
54978
 
54886
      if (this.isSetSuccess()) {
54979
      if (this.isSetSuccess()) {
54887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54980
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54888
        {
54981
        {
54889
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
54982
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
54890
          for (String _iter115 : this.success)
54983
          for (String _iter119 : this.success)
54891
          {
54984
          {
54892
            oprot.writeString(_iter115);
54985
            oprot.writeString(_iter119);
54893
          }
54986
          }
54894
          oprot.writeListEnd();
54987
          oprot.writeListEnd();
54895
        }
54988
        }
54896
        oprot.writeFieldEnd();
54989
        oprot.writeFieldEnd();
54897
      }
54990
      }
Line 58329... Line 58422...
58329
        }
58422
        }
58330
        switch (field.id) {
58423
        switch (field.id) {
58331
          case 0: // SUCCESS
58424
          case 0: // SUCCESS
58332
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58425
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
58333
              {
58426
              {
58334
                org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();
58427
                org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();
58335
                this.success = new ArrayList<Long>(_list116.size);
58428
                this.success = new ArrayList<Long>(_list120.size);
58336
                for (int _i117 = 0; _i117 < _list116.size; ++_i117)
58429
                for (int _i121 = 0; _i121 < _list120.size; ++_i121)
58337
                {
58430
                {
58338
                  long _elem118; // required
58431
                  long _elem122; // required
58339
                  _elem118 = iprot.readI64();
58432
                  _elem122 = iprot.readI64();
58340
                  this.success.add(_elem118);
58433
                  this.success.add(_elem122);
58341
                }
58434
                }
58342
                iprot.readListEnd();
58435
                iprot.readListEnd();
58343
              }
58436
              }
58344
            } else { 
58437
            } else { 
58345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 58359... Line 58452...
58359
 
58452
 
58360
      if (this.isSetSuccess()) {
58453
      if (this.isSetSuccess()) {
58361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58454
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58362
        {
58455
        {
58363
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
58456
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
58364
          for (long _iter119 : this.success)
58457
          for (long _iter123 : this.success)
58365
          {
58458
          {
58366
            oprot.writeI64(_iter119);
58459
            oprot.writeI64(_iter123);
58367
          }
58460
          }
58368
          oprot.writeListEnd();
58461
          oprot.writeListEnd();
58369
        }
58462
        }
58370
        oprot.writeFieldEnd();
58463
        oprot.writeFieldEnd();
58371
      }
58464
      }
Line 58386... Line 58479...
58386
      }
58479
      }
58387
      first = false;
58480
      first = false;
58388
      sb.append(")");
58481
      sb.append(")");
58389
      return sb.toString();
58482
      return sb.toString();
58390
    }
58483
    }
-
 
58484
 
-
 
58485
    public void validate() throws org.apache.thrift.TException {
-
 
58486
      // check for required fields
-
 
58487
    }
-
 
58488
 
-
 
58489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58490
      try {
-
 
58491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58492
      } catch (org.apache.thrift.TException te) {
-
 
58493
        throw new java.io.IOException(te);
-
 
58494
      }
-
 
58495
    }
-
 
58496
 
-
 
58497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58498
      try {
-
 
58499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58500
      } catch (org.apache.thrift.TException te) {
-
 
58501
        throw new java.io.IOException(te);
-
 
58502
      }
-
 
58503
    }
-
 
58504
 
-
 
58505
  }
-
 
58506
 
-
 
58507
  public static class validateCartPlus_args implements org.apache.thrift.TBase<validateCartPlus_args, validateCartPlus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
58508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartPlus_args");
-
 
58509
 
-
 
58510
    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);
-
 
58511
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
58512
 
-
 
58513
    private long cartId; // required
-
 
58514
    private long sourceId; // required
-
 
58515
 
-
 
58516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58518
      CART_ID((short)1, "cartId"),
-
 
58519
      SOURCE_ID((short)2, "sourceId");
-
 
58520
 
-
 
58521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58522
 
-
 
58523
      static {
-
 
58524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58525
          byName.put(field.getFieldName(), field);
-
 
58526
        }
-
 
58527
      }
-
 
58528
 
-
 
58529
      /**
-
 
58530
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58531
       */
-
 
58532
      public static _Fields findByThriftId(int fieldId) {
-
 
58533
        switch(fieldId) {
-
 
58534
          case 1: // CART_ID
-
 
58535
            return CART_ID;
-
 
58536
          case 2: // SOURCE_ID
-
 
58537
            return SOURCE_ID;
-
 
58538
          default:
-
 
58539
            return null;
-
 
58540
        }
-
 
58541
      }
-
 
58542
 
-
 
58543
      /**
-
 
58544
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58545
       * if it is not found.
-
 
58546
       */
-
 
58547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58548
        _Fields fields = findByThriftId(fieldId);
-
 
58549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58550
        return fields;
-
 
58551
      }
-
 
58552
 
-
 
58553
      /**
-
 
58554
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58555
       */
-
 
58556
      public static _Fields findByName(String name) {
-
 
58557
        return byName.get(name);
-
 
58558
      }
-
 
58559
 
-
 
58560
      private final short _thriftId;
-
 
58561
      private final String _fieldName;
-
 
58562
 
-
 
58563
      _Fields(short thriftId, String fieldName) {
-
 
58564
        _thriftId = thriftId;
-
 
58565
        _fieldName = fieldName;
-
 
58566
      }
-
 
58567
 
-
 
58568
      public short getThriftFieldId() {
-
 
58569
        return _thriftId;
-
 
58570
      }
-
 
58571
 
-
 
58572
      public String getFieldName() {
-
 
58573
        return _fieldName;
-
 
58574
      }
-
 
58575
    }
-
 
58576
 
-
 
58577
    // isset id assignments
-
 
58578
    private static final int __CARTID_ISSET_ID = 0;
-
 
58579
    private static final int __SOURCEID_ISSET_ID = 1;
-
 
58580
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
58581
 
-
 
58582
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58583
    static {
-
 
58584
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58585
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58586
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58587
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
58589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartPlus_args.class, metaDataMap);
-
 
58591
    }
-
 
58592
 
-
 
58593
    public validateCartPlus_args() {
-
 
58594
    }
-
 
58595
 
-
 
58596
    public validateCartPlus_args(
-
 
58597
      long cartId,
-
 
58598
      long sourceId)
-
 
58599
    {
-
 
58600
      this();
-
 
58601
      this.cartId = cartId;
-
 
58602
      setCartIdIsSet(true);
-
 
58603
      this.sourceId = sourceId;
-
 
58604
      setSourceIdIsSet(true);
-
 
58605
    }
-
 
58606
 
-
 
58607
    /**
-
 
58608
     * Performs a deep copy on <i>other</i>.
-
 
58609
     */
-
 
58610
    public validateCartPlus_args(validateCartPlus_args other) {
-
 
58611
      __isset_bit_vector.clear();
-
 
58612
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
58613
      this.cartId = other.cartId;
-
 
58614
      this.sourceId = other.sourceId;
-
 
58615
    }
-
 
58616
 
-
 
58617
    public validateCartPlus_args deepCopy() {
-
 
58618
      return new validateCartPlus_args(this);
-
 
58619
    }
-
 
58620
 
-
 
58621
    @Override
-
 
58622
    public void clear() {
-
 
58623
      setCartIdIsSet(false);
-
 
58624
      this.cartId = 0;
-
 
58625
      setSourceIdIsSet(false);
-
 
58626
      this.sourceId = 0;
-
 
58627
    }
-
 
58628
 
-
 
58629
    public long getCartId() {
-
 
58630
      return this.cartId;
-
 
58631
    }
-
 
58632
 
-
 
58633
    public void setCartId(long cartId) {
-
 
58634
      this.cartId = cartId;
-
 
58635
      setCartIdIsSet(true);
-
 
58636
    }
-
 
58637
 
-
 
58638
    public void unsetCartId() {
-
 
58639
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
58640
    }
-
 
58641
 
-
 
58642
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
58643
    public boolean isSetCartId() {
-
 
58644
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
58645
    }
-
 
58646
 
-
 
58647
    public void setCartIdIsSet(boolean value) {
-
 
58648
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
58649
    }
-
 
58650
 
-
 
58651
    public long getSourceId() {
-
 
58652
      return this.sourceId;
-
 
58653
    }
-
 
58654
 
-
 
58655
    public void setSourceId(long sourceId) {
-
 
58656
      this.sourceId = sourceId;
-
 
58657
      setSourceIdIsSet(true);
-
 
58658
    }
-
 
58659
 
-
 
58660
    public void unsetSourceId() {
-
 
58661
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
-
 
58662
    }
-
 
58663
 
-
 
58664
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
-
 
58665
    public boolean isSetSourceId() {
-
 
58666
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
-
 
58667
    }
-
 
58668
 
-
 
58669
    public void setSourceIdIsSet(boolean value) {
-
 
58670
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
-
 
58671
    }
-
 
58672
 
-
 
58673
    public void setFieldValue(_Fields field, Object value) {
-
 
58674
      switch (field) {
-
 
58675
      case CART_ID:
-
 
58676
        if (value == null) {
-
 
58677
          unsetCartId();
-
 
58678
        } else {
-
 
58679
          setCartId((Long)value);
-
 
58680
        }
-
 
58681
        break;
-
 
58682
 
-
 
58683
      case SOURCE_ID:
-
 
58684
        if (value == null) {
-
 
58685
          unsetSourceId();
-
 
58686
        } else {
-
 
58687
          setSourceId((Long)value);
-
 
58688
        }
-
 
58689
        break;
-
 
58690
 
-
 
58691
      }
-
 
58692
    }
-
 
58693
 
-
 
58694
    public Object getFieldValue(_Fields field) {
-
 
58695
      switch (field) {
-
 
58696
      case CART_ID:
-
 
58697
        return Long.valueOf(getCartId());
-
 
58698
 
-
 
58699
      case SOURCE_ID:
-
 
58700
        return Long.valueOf(getSourceId());
-
 
58701
 
-
 
58702
      }
-
 
58703
      throw new IllegalStateException();
-
 
58704
    }
-
 
58705
 
-
 
58706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
58707
    public boolean isSet(_Fields field) {
-
 
58708
      if (field == null) {
-
 
58709
        throw new IllegalArgumentException();
-
 
58710
      }
-
 
58711
 
-
 
58712
      switch (field) {
-
 
58713
      case CART_ID:
-
 
58714
        return isSetCartId();
-
 
58715
      case SOURCE_ID:
-
 
58716
        return isSetSourceId();
-
 
58717
      }
-
 
58718
      throw new IllegalStateException();
-
 
58719
    }
-
 
58720
 
-
 
58721
    @Override
-
 
58722
    public boolean equals(Object that) {
-
 
58723
      if (that == null)
-
 
58724
        return false;
-
 
58725
      if (that instanceof validateCartPlus_args)
-
 
58726
        return this.equals((validateCartPlus_args)that);
-
 
58727
      return false;
-
 
58728
    }
-
 
58729
 
-
 
58730
    public boolean equals(validateCartPlus_args that) {
-
 
58731
      if (that == null)
-
 
58732
        return false;
-
 
58733
 
-
 
58734
      boolean this_present_cartId = true;
-
 
58735
      boolean that_present_cartId = true;
-
 
58736
      if (this_present_cartId || that_present_cartId) {
-
 
58737
        if (!(this_present_cartId && that_present_cartId))
-
 
58738
          return false;
-
 
58739
        if (this.cartId != that.cartId)
-
 
58740
          return false;
-
 
58741
      }
-
 
58742
 
-
 
58743
      boolean this_present_sourceId = true;
-
 
58744
      boolean that_present_sourceId = true;
-
 
58745
      if (this_present_sourceId || that_present_sourceId) {
-
 
58746
        if (!(this_present_sourceId && that_present_sourceId))
-
 
58747
          return false;
-
 
58748
        if (this.sourceId != that.sourceId)
-
 
58749
          return false;
-
 
58750
      }
-
 
58751
 
-
 
58752
      return true;
-
 
58753
    }
-
 
58754
 
-
 
58755
    @Override
-
 
58756
    public int hashCode() {
-
 
58757
      return 0;
-
 
58758
    }
-
 
58759
 
-
 
58760
    public int compareTo(validateCartPlus_args other) {
-
 
58761
      if (!getClass().equals(other.getClass())) {
-
 
58762
        return getClass().getName().compareTo(other.getClass().getName());
-
 
58763
      }
-
 
58764
 
-
 
58765
      int lastComparison = 0;
-
 
58766
      validateCartPlus_args typedOther = (validateCartPlus_args)other;
-
 
58767
 
-
 
58768
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
58769
      if (lastComparison != 0) {
-
 
58770
        return lastComparison;
-
 
58771
      }
-
 
58772
      if (isSetCartId()) {
-
 
58773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
58774
        if (lastComparison != 0) {
-
 
58775
          return lastComparison;
-
 
58776
        }
-
 
58777
      }
-
 
58778
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
-
 
58779
      if (lastComparison != 0) {
-
 
58780
        return lastComparison;
-
 
58781
      }
-
 
58782
      if (isSetSourceId()) {
-
 
58783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
-
 
58784
        if (lastComparison != 0) {
-
 
58785
          return lastComparison;
-
 
58786
        }
-
 
58787
      }
-
 
58788
      return 0;
-
 
58789
    }
-
 
58790
 
-
 
58791
    public _Fields fieldForId(int fieldId) {
-
 
58792
      return _Fields.findByThriftId(fieldId);
-
 
58793
    }
-
 
58794
 
-
 
58795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
58796
      org.apache.thrift.protocol.TField field;
-
 
58797
      iprot.readStructBegin();
-
 
58798
      while (true)
-
 
58799
      {
-
 
58800
        field = iprot.readFieldBegin();
-
 
58801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
58802
          break;
-
 
58803
        }
-
 
58804
        switch (field.id) {
-
 
58805
          case 1: // CART_ID
-
 
58806
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58807
              this.cartId = iprot.readI64();
-
 
58808
              setCartIdIsSet(true);
-
 
58809
            } else { 
-
 
58810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58811
            }
-
 
58812
            break;
-
 
58813
          case 2: // SOURCE_ID
-
 
58814
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
58815
              this.sourceId = iprot.readI64();
-
 
58816
              setSourceIdIsSet(true);
-
 
58817
            } else { 
-
 
58818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58819
            }
-
 
58820
            break;
-
 
58821
          default:
-
 
58822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
58823
        }
-
 
58824
        iprot.readFieldEnd();
-
 
58825
      }
-
 
58826
      iprot.readStructEnd();
-
 
58827
      validate();
-
 
58828
    }
-
 
58829
 
-
 
58830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
58831
      validate();
-
 
58832
 
-
 
58833
      oprot.writeStructBegin(STRUCT_DESC);
-
 
58834
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
58835
      oprot.writeI64(this.cartId);
-
 
58836
      oprot.writeFieldEnd();
-
 
58837
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
-
 
58838
      oprot.writeI64(this.sourceId);
-
 
58839
      oprot.writeFieldEnd();
-
 
58840
      oprot.writeFieldStop();
-
 
58841
      oprot.writeStructEnd();
-
 
58842
    }
-
 
58843
 
-
 
58844
    @Override
-
 
58845
    public String toString() {
-
 
58846
      StringBuilder sb = new StringBuilder("validateCartPlus_args(");
-
 
58847
      boolean first = true;
-
 
58848
 
-
 
58849
      sb.append("cartId:");
-
 
58850
      sb.append(this.cartId);
-
 
58851
      first = false;
-
 
58852
      if (!first) sb.append(", ");
-
 
58853
      sb.append("sourceId:");
-
 
58854
      sb.append(this.sourceId);
-
 
58855
      first = false;
-
 
58856
      sb.append(")");
-
 
58857
      return sb.toString();
-
 
58858
    }
-
 
58859
 
-
 
58860
    public void validate() throws org.apache.thrift.TException {
-
 
58861
      // check for required fields
-
 
58862
    }
-
 
58863
 
-
 
58864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
58865
      try {
-
 
58866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
58867
      } catch (org.apache.thrift.TException te) {
-
 
58868
        throw new java.io.IOException(te);
-
 
58869
      }
-
 
58870
    }
-
 
58871
 
-
 
58872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
58873
      try {
-
 
58874
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
58875
        __isset_bit_vector = new BitSet(1);
-
 
58876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
58877
      } catch (org.apache.thrift.TException te) {
-
 
58878
        throw new java.io.IOException(te);
-
 
58879
      }
-
 
58880
    }
-
 
58881
 
-
 
58882
  }
-
 
58883
 
-
 
58884
  public static class validateCartPlus_result implements org.apache.thrift.TBase<validateCartPlus_result, validateCartPlus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
58885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateCartPlus_result");
-
 
58886
 
-
 
58887
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
58888
    private static final org.apache.thrift.protocol.TField SCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("scex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
58889
 
-
 
58890
    private CartPlus success; // required
-
 
58891
    private ShoppingCartException scex; // required
-
 
58892
 
-
 
58893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
58894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
58895
      SUCCESS((short)0, "success"),
-
 
58896
      SCEX((short)1, "scex");
-
 
58897
 
-
 
58898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
58899
 
-
 
58900
      static {
-
 
58901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
58902
          byName.put(field.getFieldName(), field);
-
 
58903
        }
-
 
58904
      }
-
 
58905
 
-
 
58906
      /**
-
 
58907
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
58908
       */
-
 
58909
      public static _Fields findByThriftId(int fieldId) {
-
 
58910
        switch(fieldId) {
-
 
58911
          case 0: // SUCCESS
-
 
58912
            return SUCCESS;
-
 
58913
          case 1: // SCEX
-
 
58914
            return SCEX;
-
 
58915
          default:
-
 
58916
            return null;
-
 
58917
        }
-
 
58918
      }
-
 
58919
 
-
 
58920
      /**
-
 
58921
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
58922
       * if it is not found.
-
 
58923
       */
-
 
58924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
58925
        _Fields fields = findByThriftId(fieldId);
-
 
58926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
58927
        return fields;
-
 
58928
      }
-
 
58929
 
-
 
58930
      /**
-
 
58931
       * Find the _Fields constant that matches name, or null if its not found.
-
 
58932
       */
-
 
58933
      public static _Fields findByName(String name) {
-
 
58934
        return byName.get(name);
-
 
58935
      }
-
 
58936
 
-
 
58937
      private final short _thriftId;
-
 
58938
      private final String _fieldName;
-
 
58939
 
-
 
58940
      _Fields(short thriftId, String fieldName) {
-
 
58941
        _thriftId = thriftId;
-
 
58942
        _fieldName = fieldName;
-
 
58943
      }
-
 
58944
 
-
 
58945
      public short getThriftFieldId() {
-
 
58946
        return _thriftId;
-
 
58947
      }
-
 
58948
 
-
 
58949
      public String getFieldName() {
-
 
58950
        return _fieldName;
-
 
58951
      }
-
 
58952
    }
-
 
58953
 
-
 
58954
    // isset id assignments
-
 
58955
 
-
 
58956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
58957
    static {
-
 
58958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
58959
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58960
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CartPlus.class)));
-
 
58961
      tmpMap.put(_Fields.SCEX, new org.apache.thrift.meta_data.FieldMetaData("scex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
58962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
58963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
58964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateCartPlus_result.class, metaDataMap);
-
 
58965
    }
-
 
58966
 
-
 
58967
    public validateCartPlus_result() {
-
 
58968
    }
-
 
58969
 
-
 
58970
    public validateCartPlus_result(
-
 
58971
      CartPlus success,
-
 
58972
      ShoppingCartException scex)
-
 
58973
    {
-
 
58974
      this();
-
 
58975
      this.success = success;
-
 
58976
      this.scex = scex;
-
 
58977
    }
-
 
58978
 
-
 
58979
    /**
-
 
58980
     * Performs a deep copy on <i>other</i>.
-
 
58981
     */
-
 
58982
    public validateCartPlus_result(validateCartPlus_result other) {
-
 
58983
      if (other.isSetSuccess()) {
-
 
58984
        this.success = new CartPlus(other.success);
-
 
58985
      }
-
 
58986
      if (other.isSetScex()) {
-
 
58987
        this.scex = new ShoppingCartException(other.scex);
-
 
58988
      }
-
 
58989
    }
-
 
58990
 
-
 
58991
    public validateCartPlus_result deepCopy() {
-
 
58992
      return new validateCartPlus_result(this);
-
 
58993
    }
-
 
58994
 
-
 
58995
    @Override
-
 
58996
    public void clear() {
-
 
58997
      this.success = null;
-
 
58998
      this.scex = null;
-
 
58999
    }
-
 
59000
 
-
 
59001
    public CartPlus getSuccess() {
-
 
59002
      return this.success;
-
 
59003
    }
-
 
59004
 
-
 
59005
    public void setSuccess(CartPlus success) {
-
 
59006
      this.success = success;
-
 
59007
    }
-
 
59008
 
-
 
59009
    public void unsetSuccess() {
-
 
59010
      this.success = null;
-
 
59011
    }
-
 
59012
 
-
 
59013
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
59014
    public boolean isSetSuccess() {
-
 
59015
      return this.success != null;
-
 
59016
    }
-
 
59017
 
-
 
59018
    public void setSuccessIsSet(boolean value) {
-
 
59019
      if (!value) {
-
 
59020
        this.success = null;
-
 
59021
      }
-
 
59022
    }
-
 
59023
 
-
 
59024
    public ShoppingCartException getScex() {
-
 
59025
      return this.scex;
-
 
59026
    }
-
 
59027
 
-
 
59028
    public void setScex(ShoppingCartException scex) {
-
 
59029
      this.scex = scex;
-
 
59030
    }
-
 
59031
 
-
 
59032
    public void unsetScex() {
-
 
59033
      this.scex = null;
-
 
59034
    }
-
 
59035
 
-
 
59036
    /** Returns true if field scex is set (has been assigned a value) and false otherwise */
-
 
59037
    public boolean isSetScex() {
-
 
59038
      return this.scex != null;
-
 
59039
    }
-
 
59040
 
-
 
59041
    public void setScexIsSet(boolean value) {
-
 
59042
      if (!value) {
-
 
59043
        this.scex = null;
-
 
59044
      }
-
 
59045
    }
-
 
59046
 
-
 
59047
    public void setFieldValue(_Fields field, Object value) {
-
 
59048
      switch (field) {
-
 
59049
      case SUCCESS:
-
 
59050
        if (value == null) {
-
 
59051
          unsetSuccess();
-
 
59052
        } else {
-
 
59053
          setSuccess((CartPlus)value);
-
 
59054
        }
-
 
59055
        break;
-
 
59056
 
-
 
59057
      case SCEX:
-
 
59058
        if (value == null) {
-
 
59059
          unsetScex();
-
 
59060
        } else {
-
 
59061
          setScex((ShoppingCartException)value);
-
 
59062
        }
-
 
59063
        break;
-
 
59064
 
-
 
59065
      }
-
 
59066
    }
-
 
59067
 
-
 
59068
    public Object getFieldValue(_Fields field) {
-
 
59069
      switch (field) {
-
 
59070
      case SUCCESS:
-
 
59071
        return getSuccess();
-
 
59072
 
-
 
59073
      case SCEX:
-
 
59074
        return getScex();
-
 
59075
 
-
 
59076
      }
-
 
59077
      throw new IllegalStateException();
-
 
59078
    }
-
 
59079
 
-
 
59080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59081
    public boolean isSet(_Fields field) {
-
 
59082
      if (field == null) {
-
 
59083
        throw new IllegalArgumentException();
-
 
59084
      }
-
 
59085
 
-
 
59086
      switch (field) {
-
 
59087
      case SUCCESS:
-
 
59088
        return isSetSuccess();
-
 
59089
      case SCEX:
-
 
59090
        return isSetScex();
-
 
59091
      }
-
 
59092
      throw new IllegalStateException();
-
 
59093
    }
-
 
59094
 
-
 
59095
    @Override
-
 
59096
    public boolean equals(Object that) {
-
 
59097
      if (that == null)
-
 
59098
        return false;
-
 
59099
      if (that instanceof validateCartPlus_result)
-
 
59100
        return this.equals((validateCartPlus_result)that);
-
 
59101
      return false;
-
 
59102
    }
-
 
59103
 
-
 
59104
    public boolean equals(validateCartPlus_result that) {
-
 
59105
      if (that == null)
-
 
59106
        return false;
-
 
59107
 
-
 
59108
      boolean this_present_success = true && this.isSetSuccess();
-
 
59109
      boolean that_present_success = true && that.isSetSuccess();
-
 
59110
      if (this_present_success || that_present_success) {
-
 
59111
        if (!(this_present_success && that_present_success))
-
 
59112
          return false;
-
 
59113
        if (!this.success.equals(that.success))
-
 
59114
          return false;
-
 
59115
      }
-
 
59116
 
-
 
59117
      boolean this_present_scex = true && this.isSetScex();
-
 
59118
      boolean that_present_scex = true && that.isSetScex();
-
 
59119
      if (this_present_scex || that_present_scex) {
-
 
59120
        if (!(this_present_scex && that_present_scex))
-
 
59121
          return false;
-
 
59122
        if (!this.scex.equals(that.scex))
-
 
59123
          return false;
-
 
59124
      }
-
 
59125
 
-
 
59126
      return true;
-
 
59127
    }
-
 
59128
 
-
 
59129
    @Override
-
 
59130
    public int hashCode() {
-
 
59131
      return 0;
-
 
59132
    }
-
 
59133
 
-
 
59134
    public int compareTo(validateCartPlus_result other) {
-
 
59135
      if (!getClass().equals(other.getClass())) {
-
 
59136
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59137
      }
-
 
59138
 
-
 
59139
      int lastComparison = 0;
-
 
59140
      validateCartPlus_result typedOther = (validateCartPlus_result)other;
-
 
59141
 
-
 
59142
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
59143
      if (lastComparison != 0) {
-
 
59144
        return lastComparison;
-
 
59145
      }
-
 
59146
      if (isSetSuccess()) {
-
 
59147
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
59148
        if (lastComparison != 0) {
-
 
59149
          return lastComparison;
-
 
59150
        }
-
 
59151
      }
-
 
59152
      lastComparison = Boolean.valueOf(isSetScex()).compareTo(typedOther.isSetScex());
-
 
59153
      if (lastComparison != 0) {
-
 
59154
        return lastComparison;
-
 
59155
      }
-
 
59156
      if (isSetScex()) {
-
 
59157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scex, typedOther.scex);
-
 
59158
        if (lastComparison != 0) {
-
 
59159
          return lastComparison;
-
 
59160
        }
-
 
59161
      }
-
 
59162
      return 0;
-
 
59163
    }
-
 
59164
 
-
 
59165
    public _Fields fieldForId(int fieldId) {
-
 
59166
      return _Fields.findByThriftId(fieldId);
-
 
59167
    }
-
 
59168
 
-
 
59169
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59170
      org.apache.thrift.protocol.TField field;
-
 
59171
      iprot.readStructBegin();
-
 
59172
      while (true)
-
 
59173
      {
-
 
59174
        field = iprot.readFieldBegin();
-
 
59175
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59176
          break;
-
 
59177
        }
-
 
59178
        switch (field.id) {
-
 
59179
          case 0: // SUCCESS
-
 
59180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
59181
              this.success = new CartPlus();
-
 
59182
              this.success.read(iprot);
-
 
59183
            } else { 
-
 
59184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59185
            }
-
 
59186
            break;
-
 
59187
          case 1: // SCEX
-
 
59188
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
59189
              this.scex = new ShoppingCartException();
-
 
59190
              this.scex.read(iprot);
-
 
59191
            } else { 
-
 
59192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59193
            }
-
 
59194
            break;
-
 
59195
          default:
-
 
59196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59197
        }
-
 
59198
        iprot.readFieldEnd();
-
 
59199
      }
-
 
59200
      iprot.readStructEnd();
-
 
59201
      validate();
-
 
59202
    }
-
 
59203
 
-
 
59204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59205
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59206
 
-
 
59207
      if (this.isSetSuccess()) {
-
 
59208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
59209
        this.success.write(oprot);
-
 
59210
        oprot.writeFieldEnd();
-
 
59211
      } else if (this.isSetScex()) {
-
 
59212
        oprot.writeFieldBegin(SCEX_FIELD_DESC);
-
 
59213
        this.scex.write(oprot);
-
 
59214
        oprot.writeFieldEnd();
-
 
59215
      }
-
 
59216
      oprot.writeFieldStop();
-
 
59217
      oprot.writeStructEnd();
-
 
59218
    }
-
 
59219
 
-
 
59220
    @Override
-
 
59221
    public String toString() {
-
 
59222
      StringBuilder sb = new StringBuilder("validateCartPlus_result(");
-
 
59223
      boolean first = true;
-
 
59224
 
-
 
59225
      sb.append("success:");
-
 
59226
      if (this.success == null) {
-
 
59227
        sb.append("null");
-
 
59228
      } else {
-
 
59229
        sb.append(this.success);
-
 
59230
      }
-
 
59231
      first = false;
-
 
59232
      if (!first) sb.append(", ");
-
 
59233
      sb.append("scex:");
-
 
59234
      if (this.scex == null) {
-
 
59235
        sb.append("null");
-
 
59236
      } else {
-
 
59237
        sb.append(this.scex);
-
 
59238
      }
-
 
59239
      first = false;
-
 
59240
      sb.append(")");
-
 
59241
      return sb.toString();
-
 
59242
    }
58391
 
59243
 
58392
    public void validate() throws org.apache.thrift.TException {
59244
    public void validate() throws org.apache.thrift.TException {
58393
      // check for required fields
59245
      // check for required fields
58394
    }
59246
    }
58395
 
59247