Subversion Repositories SmartDukaan

Rev

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

Rev 5327 Rev 5335
Line 39... Line 39...
39
 
39
 
40
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException;
40
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException;
41
 
41
 
42
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException;
42
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException;
43
 
43
 
44
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException;
-
 
45
 
-
 
46
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException;
44
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException;
47
 
45
 
48
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException;
46
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException;
49
 
47
 
50
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException;
48
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException;
Line 115... Line 113...
115
 
113
 
116
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
114
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
117
 
115
 
118
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
116
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
119
 
117
 
120
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException;
-
 
121
 
-
 
122
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException;
118
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException;
123
 
119
 
124
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
120
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice) throws ShoppingCartException, org.apache.thrift.TException;
125
 
121
 
126
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
122
    public void removeCoupon(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
Line 291... Line 287...
291
 
287
 
292
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
288
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
293
 
289
 
294
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
290
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
295
 
291
 
296
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
297
 
-
 
298
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
292
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
299
 
293
 
300
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
294
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
301
 
295
 
302
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
296
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
Line 367... Line 361...
367
 
361
 
368
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
362
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
369
 
363
 
370
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
364
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
371
 
365
 
372
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
373
 
-
 
374
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
366
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressToCart_call> resultHandler) throws org.apache.thrift.TException;
375
 
367
 
376
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
368
    public void applyCouponToCart(long cartId, String couponCode, double totalPrice, double discountedPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.applyCouponToCart_call> resultHandler) throws org.apache.thrift.TException;
377
 
369
 
378
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
370
    public void removeCoupon(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.removeCoupon_call> resultHandler) throws org.apache.thrift.TException;
Line 617... Line 609...
617
        throw result.ucex;
609
        throw result.ucex;
618
      }
610
      }
619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
620
    }
612
    }
621
 
613
 
622
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException
-
 
623
    {
-
 
624
      send_deleteUser(userId);
-
 
625
      return recv_deleteUser();
-
 
626
    }
-
 
627
 
-
 
628
    public void send_deleteUser(long userId) throws org.apache.thrift.TException
-
 
629
    {
-
 
630
      deleteUser_args args = new deleteUser_args();
-
 
631
      args.setUserId(userId);
-
 
632
      sendBase("deleteUser", args);
-
 
633
    }
-
 
634
 
-
 
635
    public boolean recv_deleteUser() throws UserContextException, org.apache.thrift.TException
-
 
636
    {
-
 
637
      deleteUser_result result = new deleteUser_result();
-
 
638
      receiveBase(result, "deleteUser");
-
 
639
      if (result.isSetSuccess()) {
-
 
640
        return result.success;
-
 
641
      }
-
 
642
      if (result.ucex != null) {
-
 
643
        throw result.ucex;
-
 
644
      }
-
 
645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
-
 
646
    }
-
 
647
 
-
 
648
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
614
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
649
    {
615
    {
650
      send_authenticateUser(email, password);
616
      send_authenticateUser(email, password);
651
      return recv_authenticateUser();
617
      return recv_authenticateUser();
652
    }
618
    }
Line 1636... Line 1602...
1636
        throw result.scx;
1602
        throw result.scx;
1637
      }
1603
      }
1638
      return;
1604
      return;
1639
    }
1605
    }
1640
 
1606
 
1641
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException
-
 
1642
    {
-
 
1643
      send_changeItemStatus(cartId, itemId, status);
-
 
1644
      recv_changeItemStatus();
-
 
1645
    }
-
 
1646
 
-
 
1647
    public void send_changeItemStatus(long cartId, long itemId, LineStatus status) throws org.apache.thrift.TException
-
 
1648
    {
-
 
1649
      changeItemStatus_args args = new changeItemStatus_args();
-
 
1650
      args.setCartId(cartId);
-
 
1651
      args.setItemId(itemId);
-
 
1652
      args.setStatus(status);
-
 
1653
      sendBase("changeItemStatus", args);
-
 
1654
    }
-
 
1655
 
-
 
1656
    public void recv_changeItemStatus() throws ShoppingCartException, org.apache.thrift.TException
-
 
1657
    {
-
 
1658
      changeItemStatus_result result = new changeItemStatus_result();
-
 
1659
      receiveBase(result, "changeItemStatus");
-
 
1660
      if (result.scx != null) {
-
 
1661
        throw result.scx;
-
 
1662
      }
-
 
1663
      return;
-
 
1664
    }
-
 
1665
 
-
 
1666
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException
1607
    public void addAddressToCart(long cartId, long addressId) throws ShoppingCartException, org.apache.thrift.TException
1667
    {
1608
    {
1668
      send_addAddressToCart(cartId, addressId);
1609
      send_addAddressToCart(cartId, addressId);
1669
      recv_addAddressToCart();
1610
      recv_addAddressToCart();
1670
    }
1611
    }
Line 2434... Line 2375...
2434
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2375
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2435
        return (new Client(prot)).recv_updateUser();
2376
        return (new Client(prot)).recv_updateUser();
2436
      }
2377
      }
2437
    }
2378
    }
2438
 
2379
 
2439
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
2440
      checkReady();
-
 
2441
      deleteUser_call method_call = new deleteUser_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2442
      this.___currentMethod = method_call;
-
 
2443
      ___manager.call(method_call);
-
 
2444
    }
-
 
2445
 
-
 
2446
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2447
      private long userId;
-
 
2448
      public deleteUser_call(long userId, org.apache.thrift.async.AsyncMethodCallback<deleteUser_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 {
-
 
2449
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2450
        this.userId = userId;
-
 
2451
      }
-
 
2452
 
-
 
2453
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2454
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2455
        deleteUser_args args = new deleteUser_args();
-
 
2456
        args.setUserId(userId);
-
 
2457
        args.write(prot);
-
 
2458
        prot.writeMessageEnd();
-
 
2459
      }
-
 
2460
 
-
 
2461
      public boolean getResult() throws UserContextException, org.apache.thrift.TException {
-
 
2462
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2463
          throw new IllegalStateException("Method call not finished!");
-
 
2464
        }
-
 
2465
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2466
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2467
        return (new Client(prot)).recv_deleteUser();
-
 
2468
      }
-
 
2469
    }
-
 
2470
 
-
 
2471
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2380
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2472
      checkReady();
2381
      checkReady();
2473
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2382
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2474
      this.___currentMethod = method_call;
2383
      this.___currentMethod = method_call;
2475
      ___manager.call(method_call);
2384
      ___manager.call(method_call);
Line 3752... Line 3661...
3752
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3661
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3753
        (new Client(prot)).recv_deleteItemFromCart();
3662
        (new Client(prot)).recv_deleteItemFromCart();
3754
      }
3663
      }
3755
    }
3664
    }
3756
 
3665
 
3757
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
3758
      checkReady();
-
 
3759
      changeItemStatus_call method_call = new changeItemStatus_call(cartId, itemId, status, resultHandler, this, ___protocolFactory, ___transport);
-
 
3760
      this.___currentMethod = method_call;
-
 
3761
      ___manager.call(method_call);
-
 
3762
    }
-
 
3763
 
-
 
3764
    public static class changeItemStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3765
      private long cartId;
-
 
3766
      private long itemId;
-
 
3767
      private LineStatus status;
-
 
3768
      public changeItemStatus_call(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<changeItemStatus_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 {
-
 
3769
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3770
        this.cartId = cartId;
-
 
3771
        this.itemId = itemId;
-
 
3772
        this.status = status;
-
 
3773
      }
-
 
3774
 
-
 
3775
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3776
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItemStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3777
        changeItemStatus_args args = new changeItemStatus_args();
-
 
3778
        args.setCartId(cartId);
-
 
3779
        args.setItemId(itemId);
-
 
3780
        args.setStatus(status);
-
 
3781
        args.write(prot);
-
 
3782
        prot.writeMessageEnd();
-
 
3783
      }
-
 
3784
 
-
 
3785
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
3786
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3787
          throw new IllegalStateException("Method call not finished!");
-
 
3788
        }
-
 
3789
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3790
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3791
        (new Client(prot)).recv_changeItemStatus();
-
 
3792
      }
-
 
3793
    }
-
 
3794
 
-
 
3795
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<addAddressToCart_call> resultHandler) throws org.apache.thrift.TException {
3666
    public void addAddressToCart(long cartId, long addressId, org.apache.thrift.async.AsyncMethodCallback<addAddressToCart_call> resultHandler) throws org.apache.thrift.TException {
3796
      checkReady();
3667
      checkReady();
3797
      addAddressToCart_call method_call = new addAddressToCart_call(cartId, addressId, resultHandler, this, ___protocolFactory, ___transport);
3668
      addAddressToCart_call method_call = new addAddressToCart_call(cartId, addressId, resultHandler, this, ___protocolFactory, ___transport);
3798
      this.___currentMethod = method_call;
3669
      this.___currentMethod = method_call;
3799
      ___manager.call(method_call);
3670
      ___manager.call(method_call);
Line 4585... Line 4456...
4585
      processMap.put("getUserByCartId", new getUserByCartId());
4456
      processMap.put("getUserByCartId", new getUserByCartId());
4586
      processMap.put("getUserByEmail", new getUserByEmail());
4457
      processMap.put("getUserByEmail", new getUserByEmail());
4587
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4458
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4588
      processMap.put("createUser", new createUser());
4459
      processMap.put("createUser", new createUser());
4589
      processMap.put("updateUser", new updateUser());
4460
      processMap.put("updateUser", new updateUser());
4590
      processMap.put("deleteUser", new deleteUser());
-
 
4591
      processMap.put("authenticateUser", new authenticateUser());
4461
      processMap.put("authenticateUser", new authenticateUser());
4592
      processMap.put("userExists", new userExists());
4462
      processMap.put("userExists", new userExists());
4593
      processMap.put("addAddressForUser", new addAddressForUser());
4463
      processMap.put("addAddressForUser", new addAddressForUser());
4594
      processMap.put("removeAddressForUser", new removeAddressForUser());
4464
      processMap.put("removeAddressForUser", new removeAddressForUser());
4595
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
4465
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
Line 4623... Line 4493...
4623
      processMap.put("getCurrentCart", new getCurrentCart());
4493
      processMap.put("getCurrentCart", new getCurrentCart());
4624
      processMap.put("getCart", new getCart());
4494
      processMap.put("getCart", new getCart());
4625
      processMap.put("getCartsByTime", new getCartsByTime());
4495
      processMap.put("getCartsByTime", new getCartsByTime());
4626
      processMap.put("addItemToCart", new addItemToCart());
4496
      processMap.put("addItemToCart", new addItemToCart());
4627
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4497
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4628
      processMap.put("changeItemStatus", new changeItemStatus());
-
 
4629
      processMap.put("addAddressToCart", new addAddressToCart());
4498
      processMap.put("addAddressToCart", new addAddressToCart());
4630
      processMap.put("applyCouponToCart", new applyCouponToCart());
4499
      processMap.put("applyCouponToCart", new applyCouponToCart());
4631
      processMap.put("removeCoupon", new removeCoupon());
4500
      processMap.put("removeCoupon", new removeCoupon());
4632
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
4501
      processMap.put("deleteDiscountsFromCart", new deleteDiscountsFromCart());
4633
      processMap.put("saveDiscounts", new saveDiscounts());
4502
      processMap.put("saveDiscounts", new saveDiscounts());
Line 4789... Line 4658...
4789
        }
4658
        }
4790
        return result;
4659
        return result;
4791
      }
4660
      }
4792
    }
4661
    }
4793
 
4662
 
4794
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
-
 
4795
      public deleteUser() {
-
 
4796
        super("deleteUser");
-
 
4797
      }
-
 
4798
 
-
 
4799
      protected deleteUser_args getEmptyArgsInstance() {
-
 
4800
        return new deleteUser_args();
-
 
4801
      }
-
 
4802
 
-
 
4803
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
-
 
4804
        deleteUser_result result = new deleteUser_result();
-
 
4805
        try {
-
 
4806
          result.success = iface.deleteUser(args.userId);
-
 
4807
          result.setSuccessIsSet(true);
-
 
4808
        } catch (UserContextException ucex) {
-
 
4809
          result.ucex = ucex;
-
 
4810
        }
-
 
4811
        return result;
-
 
4812
      }
-
 
4813
    }
-
 
4814
 
-
 
4815
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
4663
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
4816
      public authenticateUser() {
4664
      public authenticateUser() {
4817
        super("authenticateUser");
4665
        super("authenticateUser");
4818
      }
4666
      }
4819
 
4667
 
Line 5562... Line 5410...
5562
        }
5410
        }
5563
        return result;
5411
        return result;
5564
      }
5412
      }
5565
    }
5413
    }
5566
 
5414
 
5567
    private static class changeItemStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItemStatus_args> {
-
 
5568
      public changeItemStatus() {
-
 
5569
        super("changeItemStatus");
-
 
5570
      }
-
 
5571
 
-
 
5572
      protected changeItemStatus_args getEmptyArgsInstance() {
-
 
5573
        return new changeItemStatus_args();
-
 
5574
      }
-
 
5575
 
-
 
5576
      protected changeItemStatus_result getResult(I iface, changeItemStatus_args args) throws org.apache.thrift.TException {
-
 
5577
        changeItemStatus_result result = new changeItemStatus_result();
-
 
5578
        try {
-
 
5579
          iface.changeItemStatus(args.cartId, args.itemId, args.status);
-
 
5580
        } catch (ShoppingCartException scx) {
-
 
5581
          result.scx = scx;
-
 
5582
        }
-
 
5583
        return result;
-
 
5584
      }
-
 
5585
    }
-
 
5586
 
-
 
5587
    private static class addAddressToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressToCart_args> {
5415
    private static class addAddressToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAddressToCart_args> {
5588
      public addAddressToCart() {
5416
      public addAddressToCart() {
5589
        super("addAddressToCart");
5417
        super("addAddressToCart");
5590
      }
5418
      }
5591
 
5419
 
Line 10728... Line 10556...
10728
      }
10556
      }
10729
    }
10557
    }
10730
 
10558
 
10731
  }
10559
  }
10732
 
10560
 
10733
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
-
 
10735
 
-
 
10736
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
10737
 
-
 
10738
    private long userId; // required
-
 
10739
 
-
 
10740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10741
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10742
      USER_ID((short)1, "userId");
-
 
10743
 
-
 
10744
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10745
 
-
 
10746
      static {
-
 
10747
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10748
          byName.put(field.getFieldName(), field);
-
 
10749
        }
-
 
10750
      }
-
 
10751
 
-
 
10752
      /**
-
 
10753
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10754
       */
-
 
10755
      public static _Fields findByThriftId(int fieldId) {
-
 
10756
        switch(fieldId) {
-
 
10757
          case 1: // USER_ID
-
 
10758
            return USER_ID;
-
 
10759
          default:
-
 
10760
            return null;
-
 
10761
        }
-
 
10762
      }
-
 
10763
 
-
 
10764
      /**
-
 
10765
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10766
       * if it is not found.
-
 
10767
       */
-
 
10768
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10769
        _Fields fields = findByThriftId(fieldId);
-
 
10770
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10771
        return fields;
-
 
10772
      }
-
 
10773
 
-
 
10774
      /**
-
 
10775
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10776
       */
-
 
10777
      public static _Fields findByName(String name) {
-
 
10778
        return byName.get(name);
-
 
10779
      }
-
 
10780
 
-
 
10781
      private final short _thriftId;
-
 
10782
      private final String _fieldName;
-
 
10783
 
-
 
10784
      _Fields(short thriftId, String fieldName) {
-
 
10785
        _thriftId = thriftId;
-
 
10786
        _fieldName = fieldName;
-
 
10787
      }
-
 
10788
 
-
 
10789
      public short getThriftFieldId() {
-
 
10790
        return _thriftId;
-
 
10791
      }
-
 
10792
 
-
 
10793
      public String getFieldName() {
-
 
10794
        return _fieldName;
-
 
10795
      }
-
 
10796
    }
-
 
10797
 
-
 
10798
    // isset id assignments
-
 
10799
    private static final int __USERID_ISSET_ID = 0;
-
 
10800
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10801
 
-
 
10802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10803
    static {
-
 
10804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10805
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10807
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10808
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
-
 
10809
    }
-
 
10810
 
-
 
10811
    public deleteUser_args() {
-
 
10812
    }
-
 
10813
 
-
 
10814
    public deleteUser_args(
-
 
10815
      long userId)
-
 
10816
    {
-
 
10817
      this();
-
 
10818
      this.userId = userId;
-
 
10819
      setUserIdIsSet(true);
-
 
10820
    }
-
 
10821
 
-
 
10822
    /**
-
 
10823
     * Performs a deep copy on <i>other</i>.
-
 
10824
     */
-
 
10825
    public deleteUser_args(deleteUser_args other) {
-
 
10826
      __isset_bit_vector.clear();
-
 
10827
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10828
      this.userId = other.userId;
-
 
10829
    }
-
 
10830
 
-
 
10831
    public deleteUser_args deepCopy() {
-
 
10832
      return new deleteUser_args(this);
-
 
10833
    }
-
 
10834
 
-
 
10835
    @Override
-
 
10836
    public void clear() {
-
 
10837
      setUserIdIsSet(false);
-
 
10838
      this.userId = 0;
-
 
10839
    }
-
 
10840
 
-
 
10841
    public long getUserId() {
-
 
10842
      return this.userId;
-
 
10843
    }
-
 
10844
 
-
 
10845
    public void setUserId(long userId) {
-
 
10846
      this.userId = userId;
-
 
10847
      setUserIdIsSet(true);
-
 
10848
    }
-
 
10849
 
-
 
10850
    public void unsetUserId() {
-
 
10851
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
10852
    }
-
 
10853
 
-
 
10854
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
10855
    public boolean isSetUserId() {
-
 
10856
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
10857
    }
-
 
10858
 
-
 
10859
    public void setUserIdIsSet(boolean value) {
-
 
10860
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
10861
    }
-
 
10862
 
-
 
10863
    public void setFieldValue(_Fields field, Object value) {
-
 
10864
      switch (field) {
-
 
10865
      case USER_ID:
-
 
10866
        if (value == null) {
-
 
10867
          unsetUserId();
-
 
10868
        } else {
-
 
10869
          setUserId((Long)value);
-
 
10870
        }
-
 
10871
        break;
-
 
10872
 
-
 
10873
      }
-
 
10874
    }
-
 
10875
 
-
 
10876
    public Object getFieldValue(_Fields field) {
-
 
10877
      switch (field) {
-
 
10878
      case USER_ID:
-
 
10879
        return Long.valueOf(getUserId());
-
 
10880
 
-
 
10881
      }
-
 
10882
      throw new IllegalStateException();
-
 
10883
    }
-
 
10884
 
-
 
10885
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10886
    public boolean isSet(_Fields field) {
-
 
10887
      if (field == null) {
-
 
10888
        throw new IllegalArgumentException();
-
 
10889
      }
-
 
10890
 
-
 
10891
      switch (field) {
-
 
10892
      case USER_ID:
-
 
10893
        return isSetUserId();
-
 
10894
      }
-
 
10895
      throw new IllegalStateException();
-
 
10896
    }
-
 
10897
 
-
 
10898
    @Override
-
 
10899
    public boolean equals(Object that) {
-
 
10900
      if (that == null)
-
 
10901
        return false;
-
 
10902
      if (that instanceof deleteUser_args)
-
 
10903
        return this.equals((deleteUser_args)that);
-
 
10904
      return false;
-
 
10905
    }
-
 
10906
 
-
 
10907
    public boolean equals(deleteUser_args that) {
-
 
10908
      if (that == null)
-
 
10909
        return false;
-
 
10910
 
-
 
10911
      boolean this_present_userId = true;
-
 
10912
      boolean that_present_userId = true;
-
 
10913
      if (this_present_userId || that_present_userId) {
-
 
10914
        if (!(this_present_userId && that_present_userId))
-
 
10915
          return false;
-
 
10916
        if (this.userId != that.userId)
-
 
10917
          return false;
-
 
10918
      }
-
 
10919
 
-
 
10920
      return true;
-
 
10921
    }
-
 
10922
 
-
 
10923
    @Override
-
 
10924
    public int hashCode() {
-
 
10925
      return 0;
-
 
10926
    }
-
 
10927
 
-
 
10928
    public int compareTo(deleteUser_args other) {
-
 
10929
      if (!getClass().equals(other.getClass())) {
-
 
10930
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10931
      }
-
 
10932
 
-
 
10933
      int lastComparison = 0;
-
 
10934
      deleteUser_args typedOther = (deleteUser_args)other;
-
 
10935
 
-
 
10936
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
10937
      if (lastComparison != 0) {
-
 
10938
        return lastComparison;
-
 
10939
      }
-
 
10940
      if (isSetUserId()) {
-
 
10941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
10942
        if (lastComparison != 0) {
-
 
10943
          return lastComparison;
-
 
10944
        }
-
 
10945
      }
-
 
10946
      return 0;
-
 
10947
    }
-
 
10948
 
-
 
10949
    public _Fields fieldForId(int fieldId) {
-
 
10950
      return _Fields.findByThriftId(fieldId);
-
 
10951
    }
-
 
10952
 
-
 
10953
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10954
      org.apache.thrift.protocol.TField field;
-
 
10955
      iprot.readStructBegin();
-
 
10956
      while (true)
-
 
10957
      {
-
 
10958
        field = iprot.readFieldBegin();
-
 
10959
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10960
          break;
-
 
10961
        }
-
 
10962
        switch (field.id) {
-
 
10963
          case 1: // USER_ID
-
 
10964
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10965
              this.userId = iprot.readI64();
-
 
10966
              setUserIdIsSet(true);
-
 
10967
            } else { 
-
 
10968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10969
            }
-
 
10970
            break;
-
 
10971
          default:
-
 
10972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10973
        }
-
 
10974
        iprot.readFieldEnd();
-
 
10975
      }
-
 
10976
      iprot.readStructEnd();
-
 
10977
      validate();
-
 
10978
    }
-
 
10979
 
-
 
10980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10981
      validate();
-
 
10982
 
-
 
10983
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10984
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
10985
      oprot.writeI64(this.userId);
-
 
10986
      oprot.writeFieldEnd();
-
 
10987
      oprot.writeFieldStop();
-
 
10988
      oprot.writeStructEnd();
-
 
10989
    }
-
 
10990
 
-
 
10991
    @Override
-
 
10992
    public String toString() {
-
 
10993
      StringBuilder sb = new StringBuilder("deleteUser_args(");
-
 
10994
      boolean first = true;
-
 
10995
 
-
 
10996
      sb.append("userId:");
-
 
10997
      sb.append(this.userId);
-
 
10998
      first = false;
-
 
10999
      sb.append(")");
-
 
11000
      return sb.toString();
-
 
11001
    }
-
 
11002
 
-
 
11003
    public void validate() throws org.apache.thrift.TException {
-
 
11004
      // check for required fields
-
 
11005
    }
-
 
11006
 
-
 
11007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11008
      try {
-
 
11009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11010
      } catch (org.apache.thrift.TException te) {
-
 
11011
        throw new java.io.IOException(te);
-
 
11012
      }
-
 
11013
    }
-
 
11014
 
-
 
11015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11016
      try {
-
 
11017
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
11018
        __isset_bit_vector = new BitSet(1);
-
 
11019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11020
      } catch (org.apache.thrift.TException te) {
-
 
11021
        throw new java.io.IOException(te);
-
 
11022
      }
-
 
11023
    }
-
 
11024
 
-
 
11025
  }
-
 
11026
 
-
 
11027
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
11028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
-
 
11029
 
-
 
11030
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
11031
    private static final org.apache.thrift.protocol.TField UCEX_FIELD_DESC = new org.apache.thrift.protocol.TField("ucex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
11032
 
-
 
11033
    private boolean success; // required
-
 
11034
    private UserContextException ucex; // required
-
 
11035
 
-
 
11036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11037
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11038
      SUCCESS((short)0, "success"),
-
 
11039
      UCEX((short)1, "ucex");
-
 
11040
 
-
 
11041
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11042
 
-
 
11043
      static {
-
 
11044
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11045
          byName.put(field.getFieldName(), field);
-
 
11046
        }
-
 
11047
      }
-
 
11048
 
-
 
11049
      /**
-
 
11050
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11051
       */
-
 
11052
      public static _Fields findByThriftId(int fieldId) {
-
 
11053
        switch(fieldId) {
-
 
11054
          case 0: // SUCCESS
-
 
11055
            return SUCCESS;
-
 
11056
          case 1: // UCEX
-
 
11057
            return UCEX;
-
 
11058
          default:
-
 
11059
            return null;
-
 
11060
        }
-
 
11061
      }
-
 
11062
 
-
 
11063
      /**
-
 
11064
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11065
       * if it is not found.
-
 
11066
       */
-
 
11067
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11068
        _Fields fields = findByThriftId(fieldId);
-
 
11069
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11070
        return fields;
-
 
11071
      }
-
 
11072
 
-
 
11073
      /**
-
 
11074
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11075
       */
-
 
11076
      public static _Fields findByName(String name) {
-
 
11077
        return byName.get(name);
-
 
11078
      }
-
 
11079
 
-
 
11080
      private final short _thriftId;
-
 
11081
      private final String _fieldName;
-
 
11082
 
-
 
11083
      _Fields(short thriftId, String fieldName) {
-
 
11084
        _thriftId = thriftId;
-
 
11085
        _fieldName = fieldName;
-
 
11086
      }
-
 
11087
 
-
 
11088
      public short getThriftFieldId() {
-
 
11089
        return _thriftId;
-
 
11090
      }
-
 
11091
 
-
 
11092
      public String getFieldName() {
-
 
11093
        return _fieldName;
-
 
11094
      }
-
 
11095
    }
-
 
11096
 
-
 
11097
    // isset id assignments
-
 
11098
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
11099
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
11100
 
-
 
11101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11102
    static {
-
 
11103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11104
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
11106
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
11108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
-
 
11110
    }
-
 
11111
 
-
 
11112
    public deleteUser_result() {
-
 
11113
    }
-
 
11114
 
-
 
11115
    public deleteUser_result(
-
 
11116
      boolean success,
-
 
11117
      UserContextException ucex)
-
 
11118
    {
-
 
11119
      this();
-
 
11120
      this.success = success;
-
 
11121
      setSuccessIsSet(true);
-
 
11122
      this.ucex = ucex;
-
 
11123
    }
-
 
11124
 
-
 
11125
    /**
-
 
11126
     * Performs a deep copy on <i>other</i>.
-
 
11127
     */
-
 
11128
    public deleteUser_result(deleteUser_result other) {
-
 
11129
      __isset_bit_vector.clear();
-
 
11130
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
11131
      this.success = other.success;
-
 
11132
      if (other.isSetUcex()) {
-
 
11133
        this.ucex = new UserContextException(other.ucex);
-
 
11134
      }
-
 
11135
    }
-
 
11136
 
-
 
11137
    public deleteUser_result deepCopy() {
-
 
11138
      return new deleteUser_result(this);
-
 
11139
    }
-
 
11140
 
-
 
11141
    @Override
-
 
11142
    public void clear() {
-
 
11143
      setSuccessIsSet(false);
-
 
11144
      this.success = false;
-
 
11145
      this.ucex = null;
-
 
11146
    }
-
 
11147
 
-
 
11148
    public boolean isSuccess() {
-
 
11149
      return this.success;
-
 
11150
    }
-
 
11151
 
-
 
11152
    public void setSuccess(boolean success) {
-
 
11153
      this.success = success;
-
 
11154
      setSuccessIsSet(true);
-
 
11155
    }
-
 
11156
 
-
 
11157
    public void unsetSuccess() {
-
 
11158
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
11159
    }
-
 
11160
 
-
 
11161
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
11162
    public boolean isSetSuccess() {
-
 
11163
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
11164
    }
-
 
11165
 
-
 
11166
    public void setSuccessIsSet(boolean value) {
-
 
11167
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
11168
    }
-
 
11169
 
-
 
11170
    public UserContextException getUcex() {
-
 
11171
      return this.ucex;
-
 
11172
    }
-
 
11173
 
-
 
11174
    public void setUcex(UserContextException ucex) {
-
 
11175
      this.ucex = ucex;
-
 
11176
    }
-
 
11177
 
-
 
11178
    public void unsetUcex() {
-
 
11179
      this.ucex = null;
-
 
11180
    }
-
 
11181
 
-
 
11182
    /** Returns true if field ucex is set (has been assigned a value) and false otherwise */
-
 
11183
    public boolean isSetUcex() {
-
 
11184
      return this.ucex != null;
-
 
11185
    }
-
 
11186
 
-
 
11187
    public void setUcexIsSet(boolean value) {
-
 
11188
      if (!value) {
-
 
11189
        this.ucex = null;
-
 
11190
      }
-
 
11191
    }
-
 
11192
 
-
 
11193
    public void setFieldValue(_Fields field, Object value) {
-
 
11194
      switch (field) {
-
 
11195
      case SUCCESS:
-
 
11196
        if (value == null) {
-
 
11197
          unsetSuccess();
-
 
11198
        } else {
-
 
11199
          setSuccess((Boolean)value);
-
 
11200
        }
-
 
11201
        break;
-
 
11202
 
-
 
11203
      case UCEX:
-
 
11204
        if (value == null) {
-
 
11205
          unsetUcex();
-
 
11206
        } else {
-
 
11207
          setUcex((UserContextException)value);
-
 
11208
        }
-
 
11209
        break;
-
 
11210
 
-
 
11211
      }
-
 
11212
    }
-
 
11213
 
-
 
11214
    public Object getFieldValue(_Fields field) {
-
 
11215
      switch (field) {
-
 
11216
      case SUCCESS:
-
 
11217
        return Boolean.valueOf(isSuccess());
-
 
11218
 
-
 
11219
      case UCEX:
-
 
11220
        return getUcex();
-
 
11221
 
-
 
11222
      }
-
 
11223
      throw new IllegalStateException();
-
 
11224
    }
-
 
11225
 
-
 
11226
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11227
    public boolean isSet(_Fields field) {
-
 
11228
      if (field == null) {
-
 
11229
        throw new IllegalArgumentException();
-
 
11230
      }
-
 
11231
 
-
 
11232
      switch (field) {
-
 
11233
      case SUCCESS:
-
 
11234
        return isSetSuccess();
-
 
11235
      case UCEX:
-
 
11236
        return isSetUcex();
-
 
11237
      }
-
 
11238
      throw new IllegalStateException();
-
 
11239
    }
-
 
11240
 
-
 
11241
    @Override
-
 
11242
    public boolean equals(Object that) {
-
 
11243
      if (that == null)
-
 
11244
        return false;
-
 
11245
      if (that instanceof deleteUser_result)
-
 
11246
        return this.equals((deleteUser_result)that);
-
 
11247
      return false;
-
 
11248
    }
-
 
11249
 
-
 
11250
    public boolean equals(deleteUser_result that) {
-
 
11251
      if (that == null)
-
 
11252
        return false;
-
 
11253
 
-
 
11254
      boolean this_present_success = true;
-
 
11255
      boolean that_present_success = true;
-
 
11256
      if (this_present_success || that_present_success) {
-
 
11257
        if (!(this_present_success && that_present_success))
-
 
11258
          return false;
-
 
11259
        if (this.success != that.success)
-
 
11260
          return false;
-
 
11261
      }
-
 
11262
 
-
 
11263
      boolean this_present_ucex = true && this.isSetUcex();
-
 
11264
      boolean that_present_ucex = true && that.isSetUcex();
-
 
11265
      if (this_present_ucex || that_present_ucex) {
-
 
11266
        if (!(this_present_ucex && that_present_ucex))
-
 
11267
          return false;
-
 
11268
        if (!this.ucex.equals(that.ucex))
-
 
11269
          return false;
-
 
11270
      }
-
 
11271
 
-
 
11272
      return true;
-
 
11273
    }
-
 
11274
 
-
 
11275
    @Override
-
 
11276
    public int hashCode() {
-
 
11277
      return 0;
-
 
11278
    }
-
 
11279
 
-
 
11280
    public int compareTo(deleteUser_result other) {
-
 
11281
      if (!getClass().equals(other.getClass())) {
-
 
11282
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11283
      }
-
 
11284
 
-
 
11285
      int lastComparison = 0;
-
 
11286
      deleteUser_result typedOther = (deleteUser_result)other;
-
 
11287
 
-
 
11288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
11289
      if (lastComparison != 0) {
-
 
11290
        return lastComparison;
-
 
11291
      }
-
 
11292
      if (isSetSuccess()) {
-
 
11293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
11294
        if (lastComparison != 0) {
-
 
11295
          return lastComparison;
-
 
11296
        }
-
 
11297
      }
-
 
11298
      lastComparison = Boolean.valueOf(isSetUcex()).compareTo(typedOther.isSetUcex());
-
 
11299
      if (lastComparison != 0) {
-
 
11300
        return lastComparison;
-
 
11301
      }
-
 
11302
      if (isSetUcex()) {
-
 
11303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ucex, typedOther.ucex);
-
 
11304
        if (lastComparison != 0) {
-
 
11305
          return lastComparison;
-
 
11306
        }
-
 
11307
      }
-
 
11308
      return 0;
-
 
11309
    }
-
 
11310
 
-
 
11311
    public _Fields fieldForId(int fieldId) {
-
 
11312
      return _Fields.findByThriftId(fieldId);
-
 
11313
    }
-
 
11314
 
-
 
11315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11316
      org.apache.thrift.protocol.TField field;
-
 
11317
      iprot.readStructBegin();
-
 
11318
      while (true)
-
 
11319
      {
-
 
11320
        field = iprot.readFieldBegin();
-
 
11321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11322
          break;
-
 
11323
        }
-
 
11324
        switch (field.id) {
-
 
11325
          case 0: // SUCCESS
-
 
11326
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
11327
              this.success = iprot.readBool();
-
 
11328
              setSuccessIsSet(true);
-
 
11329
            } else { 
-
 
11330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11331
            }
-
 
11332
            break;
-
 
11333
          case 1: // UCEX
-
 
11334
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
11335
              this.ucex = new UserContextException();
-
 
11336
              this.ucex.read(iprot);
-
 
11337
            } else { 
-
 
11338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11339
            }
-
 
11340
            break;
-
 
11341
          default:
-
 
11342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11343
        }
-
 
11344
        iprot.readFieldEnd();
-
 
11345
      }
-
 
11346
      iprot.readStructEnd();
-
 
11347
      validate();
-
 
11348
    }
-
 
11349
 
-
 
11350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11351
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11352
 
-
 
11353
      if (this.isSetSuccess()) {
-
 
11354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11355
        oprot.writeBool(this.success);
-
 
11356
        oprot.writeFieldEnd();
-
 
11357
      } else if (this.isSetUcex()) {
-
 
11358
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
-
 
11359
        this.ucex.write(oprot);
-
 
11360
        oprot.writeFieldEnd();
-
 
11361
      }
-
 
11362
      oprot.writeFieldStop();
-
 
11363
      oprot.writeStructEnd();
-
 
11364
    }
-
 
11365
 
-
 
11366
    @Override
-
 
11367
    public String toString() {
-
 
11368
      StringBuilder sb = new StringBuilder("deleteUser_result(");
-
 
11369
      boolean first = true;
-
 
11370
 
-
 
11371
      sb.append("success:");
-
 
11372
      sb.append(this.success);
-
 
11373
      first = false;
-
 
11374
      if (!first) sb.append(", ");
-
 
11375
      sb.append("ucex:");
-
 
11376
      if (this.ucex == null) {
-
 
11377
        sb.append("null");
-
 
11378
      } else {
-
 
11379
        sb.append(this.ucex);
-
 
11380
      }
-
 
11381
      first = false;
-
 
11382
      sb.append(")");
-
 
11383
      return sb.toString();
-
 
11384
    }
-
 
11385
 
-
 
11386
    public void validate() throws org.apache.thrift.TException {
-
 
11387
      // check for required fields
-
 
11388
    }
-
 
11389
 
-
 
11390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11391
      try {
-
 
11392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11393
      } catch (org.apache.thrift.TException te) {
-
 
11394
        throw new java.io.IOException(te);
-
 
11395
      }
-
 
11396
    }
-
 
11397
 
-
 
11398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11399
      try {
-
 
11400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11401
      } catch (org.apache.thrift.TException te) {
-
 
11402
        throw new java.io.IOException(te);
-
 
11403
      }
-
 
11404
    }
-
 
11405
 
-
 
11406
  }
-
 
11407
 
-
 
11408
  public static class authenticateUser_args implements org.apache.thrift.TBase<authenticateUser_args, authenticateUser_args._Fields>, java.io.Serializable, Cloneable   {
10561
  public static class authenticateUser_args implements org.apache.thrift.TBase<authenticateUser_args, authenticateUser_args._Fields>, java.io.Serializable, Cloneable   {
11409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_args");
10562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateUser_args");
11410
 
10563
 
11411
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
10564
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)1);
11412
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
10565
    private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
Line 31500... Line 30653...
31500
      }
30653
      }
31501
    }
30654
    }
31502
 
30655
 
31503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31504
      try {
30657
      try {
31505
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
31506
        __isset_bit_vector = new BitSet(1);
-
 
31507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31508
      } catch (org.apache.thrift.TException te) {
30659
      } catch (org.apache.thrift.TException te) {
31509
        throw new java.io.IOException(te);
30660
        throw new java.io.IOException(te);
31510
      }
30661
      }
31511
    }
30662
    }
Line 39536... Line 38687...
39536
      boolean first = true;
38687
      boolean first = true;
39537
 
38688
 
39538
      sb.append("scx:");
38689
      sb.append("scx:");
39539
      if (this.scx == null) {
38690
      if (this.scx == null) {
39540
        sb.append("null");
38691
        sb.append("null");
39541
      } else {
-
 
39542
        sb.append(this.scx);
-
 
39543
      }
-
 
39544
      first = false;
-
 
39545
      sb.append(")");
-
 
39546
      return sb.toString();
-
 
39547
    }
-
 
39548
 
-
 
39549
    public void validate() throws org.apache.thrift.TException {
-
 
39550
      // check for required fields
-
 
39551
    }
-
 
39552
 
-
 
39553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
39554
      try {
-
 
39555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
39556
      } catch (org.apache.thrift.TException te) {
-
 
39557
        throw new java.io.IOException(te);
-
 
39558
      }
-
 
39559
    }
-
 
39560
 
-
 
39561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
39562
      try {
-
 
39563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
39564
      } catch (org.apache.thrift.TException te) {
-
 
39565
        throw new java.io.IOException(te);
-
 
39566
      }
-
 
39567
    }
-
 
39568
 
-
 
39569
  }
-
 
39570
 
-
 
39571
  public static class changeItemStatus_args implements org.apache.thrift.TBase<changeItemStatus_args, changeItemStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
39572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_args");
-
 
39573
 
-
 
39574
    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);
-
 
39575
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
39576
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)3);
-
 
39577
 
-
 
39578
    private long cartId; // required
-
 
39579
    private long itemId; // required
-
 
39580
    private LineStatus status; // required
-
 
39581
 
-
 
39582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39584
      CART_ID((short)1, "cartId"),
-
 
39585
      ITEM_ID((short)2, "itemId"),
-
 
39586
      /**
-
 
39587
       * 
-
 
39588
       * @see LineStatus
-
 
39589
       */
-
 
39590
      STATUS((short)3, "status");
-
 
39591
 
-
 
39592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39593
 
-
 
39594
      static {
-
 
39595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39596
          byName.put(field.getFieldName(), field);
-
 
39597
        }
-
 
39598
      }
-
 
39599
 
-
 
39600
      /**
-
 
39601
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39602
       */
-
 
39603
      public static _Fields findByThriftId(int fieldId) {
-
 
39604
        switch(fieldId) {
-
 
39605
          case 1: // CART_ID
-
 
39606
            return CART_ID;
-
 
39607
          case 2: // ITEM_ID
-
 
39608
            return ITEM_ID;
-
 
39609
          case 3: // STATUS
-
 
39610
            return STATUS;
-
 
39611
          default:
-
 
39612
            return null;
-
 
39613
        }
-
 
39614
      }
-
 
39615
 
-
 
39616
      /**
-
 
39617
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39618
       * if it is not found.
-
 
39619
       */
-
 
39620
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39621
        _Fields fields = findByThriftId(fieldId);
-
 
39622
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39623
        return fields;
-
 
39624
      }
-
 
39625
 
-
 
39626
      /**
-
 
39627
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39628
       */
-
 
39629
      public static _Fields findByName(String name) {
-
 
39630
        return byName.get(name);
-
 
39631
      }
-
 
39632
 
-
 
39633
      private final short _thriftId;
-
 
39634
      private final String _fieldName;
-
 
39635
 
-
 
39636
      _Fields(short thriftId, String fieldName) {
-
 
39637
        _thriftId = thriftId;
-
 
39638
        _fieldName = fieldName;
-
 
39639
      }
-
 
39640
 
-
 
39641
      public short getThriftFieldId() {
-
 
39642
        return _thriftId;
-
 
39643
      }
-
 
39644
 
-
 
39645
      public String getFieldName() {
-
 
39646
        return _fieldName;
-
 
39647
      }
-
 
39648
    }
-
 
39649
 
-
 
39650
    // isset id assignments
-
 
39651
    private static final int __CARTID_ISSET_ID = 0;
-
 
39652
    private static final int __ITEMID_ISSET_ID = 1;
-
 
39653
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
39654
 
-
 
39655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39656
    static {
-
 
39657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39658
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
39660
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
39662
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39663
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, LineStatus.class)));
-
 
39664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_args.class, metaDataMap);
-
 
39666
    }
-
 
39667
 
-
 
39668
    public changeItemStatus_args() {
-
 
39669
    }
-
 
39670
 
-
 
39671
    public changeItemStatus_args(
-
 
39672
      long cartId,
-
 
39673
      long itemId,
-
 
39674
      LineStatus status)
-
 
39675
    {
-
 
39676
      this();
-
 
39677
      this.cartId = cartId;
-
 
39678
      setCartIdIsSet(true);
-
 
39679
      this.itemId = itemId;
-
 
39680
      setItemIdIsSet(true);
-
 
39681
      this.status = status;
-
 
39682
    }
-
 
39683
 
-
 
39684
    /**
-
 
39685
     * Performs a deep copy on <i>other</i>.
-
 
39686
     */
-
 
39687
    public changeItemStatus_args(changeItemStatus_args other) {
-
 
39688
      __isset_bit_vector.clear();
-
 
39689
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
39690
      this.cartId = other.cartId;
-
 
39691
      this.itemId = other.itemId;
-
 
39692
      if (other.isSetStatus()) {
-
 
39693
        this.status = other.status;
-
 
39694
      }
-
 
39695
    }
-
 
39696
 
-
 
39697
    public changeItemStatus_args deepCopy() {
-
 
39698
      return new changeItemStatus_args(this);
-
 
39699
    }
-
 
39700
 
-
 
39701
    @Override
-
 
39702
    public void clear() {
-
 
39703
      setCartIdIsSet(false);
-
 
39704
      this.cartId = 0;
-
 
39705
      setItemIdIsSet(false);
-
 
39706
      this.itemId = 0;
-
 
39707
      this.status = null;
-
 
39708
    }
-
 
39709
 
-
 
39710
    public long getCartId() {
-
 
39711
      return this.cartId;
-
 
39712
    }
-
 
39713
 
-
 
39714
    public void setCartId(long cartId) {
-
 
39715
      this.cartId = cartId;
-
 
39716
      setCartIdIsSet(true);
-
 
39717
    }
-
 
39718
 
-
 
39719
    public void unsetCartId() {
-
 
39720
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
39721
    }
-
 
39722
 
-
 
39723
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
39724
    public boolean isSetCartId() {
-
 
39725
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
39726
    }
-
 
39727
 
-
 
39728
    public void setCartIdIsSet(boolean value) {
-
 
39729
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
39730
    }
-
 
39731
 
-
 
39732
    public long getItemId() {
-
 
39733
      return this.itemId;
-
 
39734
    }
-
 
39735
 
-
 
39736
    public void setItemId(long itemId) {
-
 
39737
      this.itemId = itemId;
-
 
39738
      setItemIdIsSet(true);
-
 
39739
    }
-
 
39740
 
-
 
39741
    public void unsetItemId() {
-
 
39742
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
39743
    }
-
 
39744
 
-
 
39745
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
39746
    public boolean isSetItemId() {
-
 
39747
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
39748
    }
-
 
39749
 
-
 
39750
    public void setItemIdIsSet(boolean value) {
-
 
39751
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
39752
    }
-
 
39753
 
-
 
39754
    /**
-
 
39755
     * 
-
 
39756
     * @see LineStatus
-
 
39757
     */
-
 
39758
    public LineStatus getStatus() {
-
 
39759
      return this.status;
-
 
39760
    }
-
 
39761
 
-
 
39762
    /**
-
 
39763
     * 
-
 
39764
     * @see LineStatus
-
 
39765
     */
-
 
39766
    public void setStatus(LineStatus status) {
-
 
39767
      this.status = status;
-
 
39768
    }
-
 
39769
 
-
 
39770
    public void unsetStatus() {
-
 
39771
      this.status = null;
-
 
39772
    }
-
 
39773
 
-
 
39774
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
39775
    public boolean isSetStatus() {
-
 
39776
      return this.status != null;
-
 
39777
    }
-
 
39778
 
-
 
39779
    public void setStatusIsSet(boolean value) {
-
 
39780
      if (!value) {
-
 
39781
        this.status = null;
-
 
39782
      }
-
 
39783
    }
-
 
39784
 
-
 
39785
    public void setFieldValue(_Fields field, Object value) {
-
 
39786
      switch (field) {
-
 
39787
      case CART_ID:
-
 
39788
        if (value == null) {
-
 
39789
          unsetCartId();
-
 
39790
        } else {
-
 
39791
          setCartId((Long)value);
-
 
39792
        }
-
 
39793
        break;
-
 
39794
 
-
 
39795
      case ITEM_ID:
-
 
39796
        if (value == null) {
-
 
39797
          unsetItemId();
-
 
39798
        } else {
-
 
39799
          setItemId((Long)value);
-
 
39800
        }
-
 
39801
        break;
-
 
39802
 
-
 
39803
      case STATUS:
-
 
39804
        if (value == null) {
-
 
39805
          unsetStatus();
-
 
39806
        } else {
-
 
39807
          setStatus((LineStatus)value);
-
 
39808
        }
-
 
39809
        break;
-
 
39810
 
-
 
39811
      }
-
 
39812
    }
-
 
39813
 
-
 
39814
    public Object getFieldValue(_Fields field) {
-
 
39815
      switch (field) {
-
 
39816
      case CART_ID:
-
 
39817
        return Long.valueOf(getCartId());
-
 
39818
 
-
 
39819
      case ITEM_ID:
-
 
39820
        return Long.valueOf(getItemId());
-
 
39821
 
-
 
39822
      case STATUS:
-
 
39823
        return getStatus();
-
 
39824
 
-
 
39825
      }
-
 
39826
      throw new IllegalStateException();
-
 
39827
    }
-
 
39828
 
-
 
39829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39830
    public boolean isSet(_Fields field) {
-
 
39831
      if (field == null) {
-
 
39832
        throw new IllegalArgumentException();
-
 
39833
      }
-
 
39834
 
-
 
39835
      switch (field) {
-
 
39836
      case CART_ID:
-
 
39837
        return isSetCartId();
-
 
39838
      case ITEM_ID:
-
 
39839
        return isSetItemId();
-
 
39840
      case STATUS:
-
 
39841
        return isSetStatus();
-
 
39842
      }
-
 
39843
      throw new IllegalStateException();
-
 
39844
    }
-
 
39845
 
-
 
39846
    @Override
-
 
39847
    public boolean equals(Object that) {
-
 
39848
      if (that == null)
-
 
39849
        return false;
-
 
39850
      if (that instanceof changeItemStatus_args)
-
 
39851
        return this.equals((changeItemStatus_args)that);
-
 
39852
      return false;
-
 
39853
    }
-
 
39854
 
-
 
39855
    public boolean equals(changeItemStatus_args that) {
-
 
39856
      if (that == null)
-
 
39857
        return false;
-
 
39858
 
-
 
39859
      boolean this_present_cartId = true;
-
 
39860
      boolean that_present_cartId = true;
-
 
39861
      if (this_present_cartId || that_present_cartId) {
-
 
39862
        if (!(this_present_cartId && that_present_cartId))
-
 
39863
          return false;
-
 
39864
        if (this.cartId != that.cartId)
-
 
39865
          return false;
-
 
39866
      }
-
 
39867
 
-
 
39868
      boolean this_present_itemId = true;
-
 
39869
      boolean that_present_itemId = true;
-
 
39870
      if (this_present_itemId || that_present_itemId) {
-
 
39871
        if (!(this_present_itemId && that_present_itemId))
-
 
39872
          return false;
-
 
39873
        if (this.itemId != that.itemId)
-
 
39874
          return false;
-
 
39875
      }
-
 
39876
 
-
 
39877
      boolean this_present_status = true && this.isSetStatus();
-
 
39878
      boolean that_present_status = true && that.isSetStatus();
-
 
39879
      if (this_present_status || that_present_status) {
-
 
39880
        if (!(this_present_status && that_present_status))
-
 
39881
          return false;
-
 
39882
        if (!this.status.equals(that.status))
-
 
39883
          return false;
-
 
39884
      }
-
 
39885
 
-
 
39886
      return true;
-
 
39887
    }
-
 
39888
 
-
 
39889
    @Override
-
 
39890
    public int hashCode() {
-
 
39891
      return 0;
-
 
39892
    }
-
 
39893
 
-
 
39894
    public int compareTo(changeItemStatus_args other) {
-
 
39895
      if (!getClass().equals(other.getClass())) {
-
 
39896
        return getClass().getName().compareTo(other.getClass().getName());
-
 
39897
      }
-
 
39898
 
-
 
39899
      int lastComparison = 0;
-
 
39900
      changeItemStatus_args typedOther = (changeItemStatus_args)other;
-
 
39901
 
-
 
39902
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
39903
      if (lastComparison != 0) {
-
 
39904
        return lastComparison;
-
 
39905
      }
-
 
39906
      if (isSetCartId()) {
-
 
39907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
39908
        if (lastComparison != 0) {
-
 
39909
          return lastComparison;
-
 
39910
        }
-
 
39911
      }
-
 
39912
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
39913
      if (lastComparison != 0) {
-
 
39914
        return lastComparison;
-
 
39915
      }
-
 
39916
      if (isSetItemId()) {
-
 
39917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
39918
        if (lastComparison != 0) {
-
 
39919
          return lastComparison;
-
 
39920
        }
-
 
39921
      }
-
 
39922
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
39923
      if (lastComparison != 0) {
-
 
39924
        return lastComparison;
-
 
39925
      }
-
 
39926
      if (isSetStatus()) {
-
 
39927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
39928
        if (lastComparison != 0) {
-
 
39929
          return lastComparison;
-
 
39930
        }
-
 
39931
      }
-
 
39932
      return 0;
-
 
39933
    }
-
 
39934
 
-
 
39935
    public _Fields fieldForId(int fieldId) {
-
 
39936
      return _Fields.findByThriftId(fieldId);
-
 
39937
    }
-
 
39938
 
-
 
39939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
39940
      org.apache.thrift.protocol.TField field;
-
 
39941
      iprot.readStructBegin();
-
 
39942
      while (true)
-
 
39943
      {
-
 
39944
        field = iprot.readFieldBegin();
-
 
39945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
39946
          break;
-
 
39947
        }
-
 
39948
        switch (field.id) {
-
 
39949
          case 1: // CART_ID
-
 
39950
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
39951
              this.cartId = iprot.readI64();
-
 
39952
              setCartIdIsSet(true);
-
 
39953
            } else { 
-
 
39954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39955
            }
-
 
39956
            break;
-
 
39957
          case 2: // ITEM_ID
-
 
39958
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
39959
              this.itemId = iprot.readI64();
-
 
39960
              setItemIdIsSet(true);
-
 
39961
            } else { 
-
 
39962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39963
            }
-
 
39964
            break;
-
 
39965
          case 3: // STATUS
-
 
39966
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
39967
              this.status = LineStatus.findByValue(iprot.readI32());
-
 
39968
            } else { 
-
 
39969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39970
            }
-
 
39971
            break;
-
 
39972
          default:
-
 
39973
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
39974
        }
-
 
39975
        iprot.readFieldEnd();
-
 
39976
      }
-
 
39977
      iprot.readStructEnd();
-
 
39978
      validate();
-
 
39979
    }
-
 
39980
 
-
 
39981
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
39982
      validate();
-
 
39983
 
-
 
39984
      oprot.writeStructBegin(STRUCT_DESC);
-
 
39985
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
39986
      oprot.writeI64(this.cartId);
-
 
39987
      oprot.writeFieldEnd();
-
 
39988
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
39989
      oprot.writeI64(this.itemId);
-
 
39990
      oprot.writeFieldEnd();
-
 
39991
      if (this.status != null) {
-
 
39992
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
39993
        oprot.writeI32(this.status.getValue());
-
 
39994
        oprot.writeFieldEnd();
-
 
39995
      }
-
 
39996
      oprot.writeFieldStop();
-
 
39997
      oprot.writeStructEnd();
-
 
39998
    }
-
 
39999
 
-
 
40000
    @Override
-
 
40001
    public String toString() {
-
 
40002
      StringBuilder sb = new StringBuilder("changeItemStatus_args(");
-
 
40003
      boolean first = true;
-
 
40004
 
-
 
40005
      sb.append("cartId:");
-
 
40006
      sb.append(this.cartId);
-
 
40007
      first = false;
-
 
40008
      if (!first) sb.append(", ");
-
 
40009
      sb.append("itemId:");
-
 
40010
      sb.append(this.itemId);
-
 
40011
      first = false;
-
 
40012
      if (!first) sb.append(", ");
-
 
40013
      sb.append("status:");
-
 
40014
      if (this.status == null) {
-
 
40015
        sb.append("null");
-
 
40016
      } else {
-
 
40017
        sb.append(this.status);
-
 
40018
      }
-
 
40019
      first = false;
-
 
40020
      sb.append(")");
-
 
40021
      return sb.toString();
-
 
40022
    }
-
 
40023
 
-
 
40024
    public void validate() throws org.apache.thrift.TException {
-
 
40025
      // check for required fields
-
 
40026
    }
-
 
40027
 
-
 
40028
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40029
      try {
-
 
40030
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40031
      } catch (org.apache.thrift.TException te) {
-
 
40032
        throw new java.io.IOException(te);
-
 
40033
      }
-
 
40034
    }
-
 
40035
 
-
 
40036
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40037
      try {
-
 
40038
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
40039
        __isset_bit_vector = new BitSet(1);
-
 
40040
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40041
      } catch (org.apache.thrift.TException te) {
-
 
40042
        throw new java.io.IOException(te);
-
 
40043
      }
-
 
40044
    }
-
 
40045
 
-
 
40046
  }
-
 
40047
 
-
 
40048
  public static class changeItemStatus_result implements org.apache.thrift.TBase<changeItemStatus_result, changeItemStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
40049
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItemStatus_result");
-
 
40050
 
-
 
40051
    private static final org.apache.thrift.protocol.TField SCX_FIELD_DESC = new org.apache.thrift.protocol.TField("scx", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
40052
 
-
 
40053
    private ShoppingCartException scx; // required
-
 
40054
 
-
 
40055
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40056
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40057
      SCX((short)1, "scx");
-
 
40058
 
-
 
40059
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40060
 
-
 
40061
      static {
-
 
40062
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40063
          byName.put(field.getFieldName(), field);
-
 
40064
        }
-
 
40065
      }
-
 
40066
 
-
 
40067
      /**
-
 
40068
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40069
       */
-
 
40070
      public static _Fields findByThriftId(int fieldId) {
-
 
40071
        switch(fieldId) {
-
 
40072
          case 1: // SCX
-
 
40073
            return SCX;
-
 
40074
          default:
-
 
40075
            return null;
-
 
40076
        }
-
 
40077
      }
-
 
40078
 
-
 
40079
      /**
-
 
40080
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40081
       * if it is not found.
-
 
40082
       */
-
 
40083
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40084
        _Fields fields = findByThriftId(fieldId);
-
 
40085
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40086
        return fields;
-
 
40087
      }
-
 
40088
 
-
 
40089
      /**
-
 
40090
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40091
       */
-
 
40092
      public static _Fields findByName(String name) {
-
 
40093
        return byName.get(name);
-
 
40094
      }
-
 
40095
 
-
 
40096
      private final short _thriftId;
-
 
40097
      private final String _fieldName;
-
 
40098
 
-
 
40099
      _Fields(short thriftId, String fieldName) {
-
 
40100
        _thriftId = thriftId;
-
 
40101
        _fieldName = fieldName;
-
 
40102
      }
-
 
40103
 
-
 
40104
      public short getThriftFieldId() {
-
 
40105
        return _thriftId;
-
 
40106
      }
-
 
40107
 
-
 
40108
      public String getFieldName() {
-
 
40109
        return _fieldName;
-
 
40110
      }
-
 
40111
    }
-
 
40112
 
-
 
40113
    // isset id assignments
-
 
40114
 
-
 
40115
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40116
    static {
-
 
40117
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40118
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
40120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItemStatus_result.class, metaDataMap);
-
 
40122
    }
-
 
40123
 
-
 
40124
    public changeItemStatus_result() {
-
 
40125
    }
-
 
40126
 
-
 
40127
    public changeItemStatus_result(
-
 
40128
      ShoppingCartException scx)
-
 
40129
    {
-
 
40130
      this();
-
 
40131
      this.scx = scx;
-
 
40132
    }
-
 
40133
 
-
 
40134
    /**
-
 
40135
     * Performs a deep copy on <i>other</i>.
-
 
40136
     */
-
 
40137
    public changeItemStatus_result(changeItemStatus_result other) {
-
 
40138
      if (other.isSetScx()) {
-
 
40139
        this.scx = new ShoppingCartException(other.scx);
-
 
40140
      }
-
 
40141
    }
-
 
40142
 
-
 
40143
    public changeItemStatus_result deepCopy() {
-
 
40144
      return new changeItemStatus_result(this);
-
 
40145
    }
-
 
40146
 
-
 
40147
    @Override
-
 
40148
    public void clear() {
-
 
40149
      this.scx = null;
-
 
40150
    }
-
 
40151
 
-
 
40152
    public ShoppingCartException getScx() {
-
 
40153
      return this.scx;
-
 
40154
    }
-
 
40155
 
-
 
40156
    public void setScx(ShoppingCartException scx) {
-
 
40157
      this.scx = scx;
-
 
40158
    }
-
 
40159
 
-
 
40160
    public void unsetScx() {
-
 
40161
      this.scx = null;
-
 
40162
    }
-
 
40163
 
-
 
40164
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
40165
    public boolean isSetScx() {
-
 
40166
      return this.scx != null;
-
 
40167
    }
-
 
40168
 
-
 
40169
    public void setScxIsSet(boolean value) {
-
 
40170
      if (!value) {
-
 
40171
        this.scx = null;
-
 
40172
      }
-
 
40173
    }
-
 
40174
 
-
 
40175
    public void setFieldValue(_Fields field, Object value) {
-
 
40176
      switch (field) {
-
 
40177
      case SCX:
-
 
40178
        if (value == null) {
-
 
40179
          unsetScx();
-
 
40180
        } else {
-
 
40181
          setScx((ShoppingCartException)value);
-
 
40182
        }
-
 
40183
        break;
-
 
40184
 
-
 
40185
      }
-
 
40186
    }
-
 
40187
 
-
 
40188
    public Object getFieldValue(_Fields field) {
-
 
40189
      switch (field) {
-
 
40190
      case SCX:
-
 
40191
        return getScx();
-
 
40192
 
-
 
40193
      }
-
 
40194
      throw new IllegalStateException();
-
 
40195
    }
-
 
40196
 
-
 
40197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40198
    public boolean isSet(_Fields field) {
-
 
40199
      if (field == null) {
-
 
40200
        throw new IllegalArgumentException();
-
 
40201
      }
-
 
40202
 
-
 
40203
      switch (field) {
-
 
40204
      case SCX:
-
 
40205
        return isSetScx();
-
 
40206
      }
-
 
40207
      throw new IllegalStateException();
-
 
40208
    }
-
 
40209
 
-
 
40210
    @Override
-
 
40211
    public boolean equals(Object that) {
-
 
40212
      if (that == null)
-
 
40213
        return false;
-
 
40214
      if (that instanceof changeItemStatus_result)
-
 
40215
        return this.equals((changeItemStatus_result)that);
-
 
40216
      return false;
-
 
40217
    }
-
 
40218
 
-
 
40219
    public boolean equals(changeItemStatus_result that) {
-
 
40220
      if (that == null)
-
 
40221
        return false;
-
 
40222
 
-
 
40223
      boolean this_present_scx = true && this.isSetScx();
-
 
40224
      boolean that_present_scx = true && that.isSetScx();
-
 
40225
      if (this_present_scx || that_present_scx) {
-
 
40226
        if (!(this_present_scx && that_present_scx))
-
 
40227
          return false;
-
 
40228
        if (!this.scx.equals(that.scx))
-
 
40229
          return false;
-
 
40230
      }
-
 
40231
 
-
 
40232
      return true;
-
 
40233
    }
-
 
40234
 
-
 
40235
    @Override
-
 
40236
    public int hashCode() {
-
 
40237
      return 0;
-
 
40238
    }
-
 
40239
 
-
 
40240
    public int compareTo(changeItemStatus_result other) {
-
 
40241
      if (!getClass().equals(other.getClass())) {
-
 
40242
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40243
      }
-
 
40244
 
-
 
40245
      int lastComparison = 0;
-
 
40246
      changeItemStatus_result typedOther = (changeItemStatus_result)other;
-
 
40247
 
-
 
40248
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
40249
      if (lastComparison != 0) {
-
 
40250
        return lastComparison;
-
 
40251
      }
-
 
40252
      if (isSetScx()) {
-
 
40253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
40254
        if (lastComparison != 0) {
-
 
40255
          return lastComparison;
-
 
40256
        }
-
 
40257
      }
-
 
40258
      return 0;
-
 
40259
    }
-
 
40260
 
-
 
40261
    public _Fields fieldForId(int fieldId) {
-
 
40262
      return _Fields.findByThriftId(fieldId);
-
 
40263
    }
-
 
40264
 
-
 
40265
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40266
      org.apache.thrift.protocol.TField field;
-
 
40267
      iprot.readStructBegin();
-
 
40268
      while (true)
-
 
40269
      {
-
 
40270
        field = iprot.readFieldBegin();
-
 
40271
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40272
          break;
-
 
40273
        }
-
 
40274
        switch (field.id) {
-
 
40275
          case 1: // SCX
-
 
40276
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
40277
              this.scx = new ShoppingCartException();
-
 
40278
              this.scx.read(iprot);
-
 
40279
            } else { 
-
 
40280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40281
            }
-
 
40282
            break;
-
 
40283
          default:
-
 
40284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40285
        }
-
 
40286
        iprot.readFieldEnd();
-
 
40287
      }
-
 
40288
      iprot.readStructEnd();
-
 
40289
      validate();
-
 
40290
    }
-
 
40291
 
-
 
40292
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40293
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40294
 
-
 
40295
      if (this.isSetScx()) {
-
 
40296
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
40297
        this.scx.write(oprot);
-
 
40298
        oprot.writeFieldEnd();
-
 
40299
      }
-
 
40300
      oprot.writeFieldStop();
-
 
40301
      oprot.writeStructEnd();
-
 
40302
    }
-
 
40303
 
-
 
40304
    @Override
-
 
40305
    public String toString() {
-
 
40306
      StringBuilder sb = new StringBuilder("changeItemStatus_result(");
-
 
40307
      boolean first = true;
-
 
40308
 
-
 
40309
      sb.append("scx:");
-
 
40310
      if (this.scx == null) {
-
 
40311
        sb.append("null");
-
 
40312
      } else {
38692
      } else {
40313
        sb.append(this.scx);
38693
        sb.append(this.scx);
40314
      }
38694
      }
40315
      first = false;
38695
      first = false;
40316
      sb.append(")");
38696
      sb.append(")");