Subversion Repositories SmartDukaan

Rev

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

Rev 4668 Rev 5327
Line 29... Line 29...
29
 
29
 
30
    public User createAnonymousUser(String jsessionId) throws UserContextException, org.apache.thrift.TException;
30
    public User createAnonymousUser(String jsessionId) throws UserContextException, org.apache.thrift.TException;
31
 
31
 
32
    public User getUserById(long userId) throws UserContextException, org.apache.thrift.TException;
32
    public User getUserById(long userId) throws UserContextException, org.apache.thrift.TException;
33
 
33
 
-
 
34
    public User getUserByCartId(long cartId) throws UserContextException, org.apache.thrift.TException;
-
 
35
 
34
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException;
36
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException;
35
 
37
 
36
    public User getUserByMobileNumber(long mobileNumber) throws UserContextException, org.apache.thrift.TException;
38
    public User getUserByMobileNumber(long mobileNumber) throws UserContextException, org.apache.thrift.TException;
37
 
39
 
38
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException;
40
    public User createUser(User user) throws UserContextException, org.apache.thrift.TException;
39
 
41
 
40
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException;
42
    public User updateUser(User user) throws UserContextException, org.apache.thrift.TException;
41
 
43
 
42
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException;
44
    public boolean deleteUser(long userId) throws UserContextException, org.apache.thrift.TException;
43
 
45
 
44
    public UserState getUserState(long userId) throws UserContextException, org.apache.thrift.TException;
-
 
45
 
-
 
46
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException;
46
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException;
47
 
47
 
48
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException;
48
    public boolean userExists(String email) throws UserContextException, org.apache.thrift.TException;
49
 
49
 
50
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException;
50
    public long addAddressForUser(long userId, Address address, boolean setDefault) throws UserContextException, org.apache.thrift.TException;
Line 109... Line 109...
109
 
109
 
110
    public Cart getCurrentCart(long userId) throws ShoppingCartException, org.apache.thrift.TException;
110
    public Cart getCurrentCart(long userId) throws ShoppingCartException, org.apache.thrift.TException;
111
 
111
 
112
    public Cart getCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
112
    public Cart getCart(long cartId) throws ShoppingCartException, org.apache.thrift.TException;
113
 
113
 
114
    public List<Cart> getCartsForUser(long userId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
-
 
115
 
-
 
116
    public List<Cart> getCartsByStatus(CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
-
 
117
 
-
 
118
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
114
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
119
 
115
 
120
    public void changeCartStatus(long cartId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException;
-
 
121
 
-
 
122
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
116
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException;
123
 
117
 
124
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
118
    public void deleteItemFromCart(long cartId, long itemId) throws ShoppingCartException, org.apache.thrift.TException;
125
 
119
 
126
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException;
120
    public void changeItemStatus(long cartId, long itemId, LineStatus status) throws ShoppingCartException, org.apache.thrift.TException;
Line 151... Line 145...
151
     * @param cartId
145
     * @param cartId
152
     * @param sessionSource
146
     * @param sessionSource
153
     * @param sessionStartTime
147
     * @param sessionStartTime
154
     * @param firstSource
148
     * @param firstSource
155
     * @param firstSourceTime
149
     * @param firstSourceTime
-
 
150
     * @param userId
156
     */
151
     */
157
    public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime) throws ShoppingCartException, org.apache.thrift.TException;
152
    public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId) throws ShoppingCartException, org.apache.thrift.TException;
158
 
153
 
159
    /**
154
    /**
160
     * Validates that:
155
     * Validates that:
161
     * 1. The checkout timestamp is greater than the updatedOn timestamp.
156
     * 1. The checkout timestamp is greater than the updatedOn timestamp.
162
     * 2. All of the lines in the cart are active items.
157
     * 2. All of the lines in the cart are active items.
Line 286... Line 281...
286
 
281
 
287
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
282
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
288
 
283
 
289
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserById_call> resultHandler) throws org.apache.thrift.TException;
284
    public void getUserById(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserById_call> resultHandler) throws org.apache.thrift.TException;
290
 
285
 
-
 
286
    public void getUserByCartId(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByCartId_call> resultHandler) throws org.apache.thrift.TException;
-
 
287
 
291
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByEmail_call> resultHandler) throws org.apache.thrift.TException;
288
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByEmail_call> resultHandler) throws org.apache.thrift.TException;
292
 
289
 
293
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
290
    public void getUserByMobileNumber(long mobileNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserByMobileNumber_call> resultHandler) throws org.apache.thrift.TException;
294
 
291
 
295
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
292
    public void createUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
296
 
293
 
297
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
294
    public void updateUser(User user, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUser_call> resultHandler) throws org.apache.thrift.TException;
298
 
295
 
299
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
296
    public void deleteUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
300
 
297
 
301
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserState_call> resultHandler) throws org.apache.thrift.TException;
-
 
302
 
-
 
303
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
298
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateUser_call> resultHandler) throws org.apache.thrift.TException;
304
 
299
 
305
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
300
    public void userExists(String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.userExists_call> resultHandler) throws org.apache.thrift.TException;
306
 
301
 
307
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
302
    public void addAddressForUser(long userId, Address address, boolean setDefault, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAddressForUser_call> resultHandler) throws org.apache.thrift.TException;
Line 366... Line 361...
366
 
361
 
367
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentCart_call> resultHandler) throws org.apache.thrift.TException;
362
    public void getCurrentCart(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentCart_call> resultHandler) throws org.apache.thrift.TException;
368
 
363
 
369
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCart_call> resultHandler) throws org.apache.thrift.TException;
364
    public void getCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCart_call> resultHandler) throws org.apache.thrift.TException;
370
 
365
 
371
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsForUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
372
 
-
 
373
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
374
 
-
 
375
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByTime_call> resultHandler) throws org.apache.thrift.TException;
366
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartsByTime_call> resultHandler) throws org.apache.thrift.TException;
376
 
367
 
377
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeCartStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
378
 
-
 
379
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
368
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemToCart_call> resultHandler) throws org.apache.thrift.TException;
380
 
369
 
381
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
370
    public void deleteItemFromCart(long cartId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromCart_call> resultHandler) throws org.apache.thrift.TException;
382
 
371
 
383
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
372
    public void changeItemStatus(long cartId, long itemId, LineStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItemStatus_call> resultHandler) throws org.apache.thrift.TException;
Line 390... Line 379...
390
 
379
 
391
    public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
380
    public void deleteDiscountsFromCart(long cartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteDiscountsFromCart_call> resultHandler) throws org.apache.thrift.TException;
392
 
381
 
393
    public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
382
    public void saveDiscounts(List<Discount> discounts, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveDiscounts_call> resultHandler) throws org.apache.thrift.TException;
394
 
383
 
395
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
384
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrders_call> resultHandler) throws org.apache.thrift.TException;
396
 
385
 
397
    public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
386
    public void validateCart(long cartId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateCart_call> resultHandler) throws org.apache.thrift.TException;
398
 
387
 
399
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
388
    public void mergeCart(long fromCartId, long toCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.mergeCart_call> resultHandler) throws org.apache.thrift.TException;
400
 
389
 
Line 498... Line 487...
498
        throw result.ucex;
487
        throw result.ucex;
499
      }
488
      }
500
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
489
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
501
    }
490
    }
502
 
491
 
-
 
492
    public User getUserByCartId(long cartId) throws UserContextException, org.apache.thrift.TException
-
 
493
    {
-
 
494
      send_getUserByCartId(cartId);
-
 
495
      return recv_getUserByCartId();
-
 
496
    }
-
 
497
 
-
 
498
    public void send_getUserByCartId(long cartId) throws org.apache.thrift.TException
-
 
499
    {
-
 
500
      getUserByCartId_args args = new getUserByCartId_args();
-
 
501
      args.setCartId(cartId);
-
 
502
      sendBase("getUserByCartId", args);
-
 
503
    }
-
 
504
 
-
 
505
    public User recv_getUserByCartId() throws UserContextException, org.apache.thrift.TException
-
 
506
    {
-
 
507
      getUserByCartId_result result = new getUserByCartId_result();
-
 
508
      receiveBase(result, "getUserByCartId");
-
 
509
      if (result.isSetSuccess()) {
-
 
510
        return result.success;
-
 
511
      }
-
 
512
      if (result.ucex != null) {
-
 
513
        throw result.ucex;
-
 
514
      }
-
 
515
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
-
 
516
    }
-
 
517
 
503
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException
518
    public User getUserByEmail(String email) throws UserContextException, org.apache.thrift.TException
504
    {
519
    {
505
      send_getUserByEmail(email);
520
      send_getUserByEmail(email);
506
      return recv_getUserByEmail();
521
      return recv_getUserByEmail();
507
    }
522
    }
Line 628... Line 643...
628
        throw result.ucex;
643
        throw result.ucex;
629
      }
644
      }
630
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
631
    }
646
    }
632
 
647
 
633
    public UserState getUserState(long userId) throws UserContextException, org.apache.thrift.TException
-
 
634
    {
-
 
635
      send_getUserState(userId);
-
 
636
      return recv_getUserState();
-
 
637
    }
-
 
638
 
-
 
639
    public void send_getUserState(long userId) throws org.apache.thrift.TException
-
 
640
    {
-
 
641
      getUserState_args args = new getUserState_args();
-
 
642
      args.setUserId(userId);
-
 
643
      sendBase("getUserState", args);
-
 
644
    }
-
 
645
 
-
 
646
    public UserState recv_getUserState() throws UserContextException, org.apache.thrift.TException
-
 
647
    {
-
 
648
      getUserState_result result = new getUserState_result();
-
 
649
      receiveBase(result, "getUserState");
-
 
650
      if (result.isSetSuccess()) {
-
 
651
        return result.success;
-
 
652
      }
-
 
653
      if (result.ucex != null) {
-
 
654
        throw result.ucex;
-
 
655
      }
-
 
656
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
-
 
657
    }
-
 
658
 
-
 
659
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
648
    public User authenticateUser(String email, String password) throws AuthenticationException, org.apache.thrift.TException
660
    {
649
    {
661
      send_authenticateUser(email, password);
650
      send_authenticateUser(email, password);
662
      return recv_authenticateUser();
651
      return recv_authenticateUser();
663
    }
652
    }
Line 1566... Line 1555...
1566
        throw result.scx;
1555
        throw result.scx;
1567
      }
1556
      }
1568
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
1557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
1569
    }
1558
    }
1570
 
1559
 
1571
    public List<Cart> getCartsForUser(long userId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
-
 
1572
    {
-
 
1573
      send_getCartsForUser(userId, status);
-
 
1574
      return recv_getCartsForUser();
-
 
1575
    }
-
 
1576
 
-
 
1577
    public void send_getCartsForUser(long userId, CartStatus status) throws org.apache.thrift.TException
-
 
1578
    {
-
 
1579
      getCartsForUser_args args = new getCartsForUser_args();
-
 
1580
      args.setUserId(userId);
-
 
1581
      args.setStatus(status);
-
 
1582
      sendBase("getCartsForUser", args);
-
 
1583
    }
-
 
1584
 
-
 
1585
    public List<Cart> recv_getCartsForUser() throws ShoppingCartException, org.apache.thrift.TException
-
 
1586
    {
-
 
1587
      getCartsForUser_result result = new getCartsForUser_result();
-
 
1588
      receiveBase(result, "getCartsForUser");
-
 
1589
      if (result.isSetSuccess()) {
-
 
1590
        return result.success;
-
 
1591
      }
-
 
1592
      if (result.scx != null) {
-
 
1593
        throw result.scx;
-
 
1594
      }
-
 
1595
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
-
 
1596
    }
-
 
1597
 
-
 
1598
    public List<Cart> getCartsByStatus(CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
-
 
1599
    {
-
 
1600
      send_getCartsByStatus(status);
-
 
1601
      return recv_getCartsByStatus();
-
 
1602
    }
-
 
1603
 
-
 
1604
    public void send_getCartsByStatus(CartStatus status) throws org.apache.thrift.TException
-
 
1605
    {
-
 
1606
      getCartsByStatus_args args = new getCartsByStatus_args();
-
 
1607
      args.setStatus(status);
-
 
1608
      sendBase("getCartsByStatus", args);
-
 
1609
    }
-
 
1610
 
-
 
1611
    public List<Cart> recv_getCartsByStatus() throws ShoppingCartException, org.apache.thrift.TException
-
 
1612
    {
-
 
1613
      getCartsByStatus_result result = new getCartsByStatus_result();
-
 
1614
      receiveBase(result, "getCartsByStatus");
-
 
1615
      if (result.isSetSuccess()) {
-
 
1616
        return result.success;
-
 
1617
      }
-
 
1618
      if (result.scx != null) {
-
 
1619
        throw result.scx;
-
 
1620
      }
-
 
1621
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
-
 
1622
    }
-
 
1623
 
-
 
1624
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
1560
    public List<Cart> getCartsByTime(long from_time, long to_time, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
1625
    {
1561
    {
1626
      send_getCartsByTime(from_time, to_time, status);
1562
      send_getCartsByTime(from_time, to_time, status);
1627
      return recv_getCartsByTime();
1563
      return recv_getCartsByTime();
1628
    }
1564
    }
Line 1647... Line 1583...
1647
        throw result.scx;
1583
        throw result.scx;
1648
      }
1584
      }
1649
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
1585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
1650
    }
1586
    }
1651
 
1587
 
1652
    public void changeCartStatus(long cartId, CartStatus status) throws ShoppingCartException, org.apache.thrift.TException
-
 
1653
    {
-
 
1654
      send_changeCartStatus(cartId, status);
-
 
1655
      recv_changeCartStatus();
-
 
1656
    }
-
 
1657
 
-
 
1658
    public void send_changeCartStatus(long cartId, CartStatus status) throws org.apache.thrift.TException
-
 
1659
    {
-
 
1660
      changeCartStatus_args args = new changeCartStatus_args();
-
 
1661
      args.setCartId(cartId);
-
 
1662
      args.setStatus(status);
-
 
1663
      sendBase("changeCartStatus", args);
-
 
1664
    }
-
 
1665
 
-
 
1666
    public void recv_changeCartStatus() throws ShoppingCartException, org.apache.thrift.TException
-
 
1667
    {
-
 
1668
      changeCartStatus_result result = new changeCartStatus_result();
-
 
1669
      receiveBase(result, "changeCartStatus");
-
 
1670
      if (result.scx != null) {
-
 
1671
        throw result.scx;
-
 
1672
      }
-
 
1673
      return;
-
 
1674
    }
-
 
1675
 
-
 
1676
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException
1588
    public String addItemToCart(long cartId, long itemId, long quantity, long sourceId) throws ShoppingCartException, org.apache.thrift.TException
1677
    {
1589
    {
1678
      send_addItemToCart(cartId, itemId, quantity, sourceId);
1590
      send_addItemToCart(cartId, itemId, quantity, sourceId);
1679
      return recv_addItemToCart();
1591
      return recv_addItemToCart();
1680
    }
1592
    }
Line 1868... Line 1780...
1868
        throw result.scx;
1780
        throw result.scx;
1869
      }
1781
      }
1870
      return;
1782
      return;
1871
    }
1783
    }
1872
 
1784
 
1873
    public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime) throws ShoppingCartException, org.apache.thrift.TException
1785
    public long createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId) throws ShoppingCartException, org.apache.thrift.TException
1874
    {
1786
    {
1875
      send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime);
1787
      send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId);
1876
      return recv_createOrders();
1788
      return recv_createOrders();
1877
    }
1789
    }
1878
 
1790
 
1879
    public void send_createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime) throws org.apache.thrift.TException
1791
    public void send_createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId) throws org.apache.thrift.TException
1880
    {
1792
    {
1881
      createOrders_args args = new createOrders_args();
1793
      createOrders_args args = new createOrders_args();
1882
      args.setCartId(cartId);
1794
      args.setCartId(cartId);
1883
      args.setSessionSource(sessionSource);
1795
      args.setSessionSource(sessionSource);
1884
      args.setSessionStartTime(sessionStartTime);
1796
      args.setSessionStartTime(sessionStartTime);
1885
      args.setFirstSource(firstSource);
1797
      args.setFirstSource(firstSource);
1886
      args.setFirstSourceTime(firstSourceTime);
1798
      args.setFirstSourceTime(firstSourceTime);
-
 
1799
      args.setUserId(userId);
1887
      sendBase("createOrders", args);
1800
      sendBase("createOrders", args);
1888
    }
1801
    }
1889
 
1802
 
1890
    public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
1803
    public long recv_createOrders() throws ShoppingCartException, org.apache.thrift.TException
1891
    {
1804
    {
Line 2361... Line 2274...
2361
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2274
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2362
        return (new Client(prot)).recv_getUserById();
2275
        return (new Client(prot)).recv_getUserById();
2363
      }
2276
      }
2364
    }
2277
    }
2365
 
2278
 
-
 
2279
    public void getUserByCartId(long cartId, org.apache.thrift.async.AsyncMethodCallback<getUserByCartId_call> resultHandler) throws org.apache.thrift.TException {
-
 
2280
      checkReady();
-
 
2281
      getUserByCartId_call method_call = new getUserByCartId_call(cartId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2282
      this.___currentMethod = method_call;
-
 
2283
      ___manager.call(method_call);
-
 
2284
    }
-
 
2285
 
-
 
2286
    public static class getUserByCartId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2287
      private long cartId;
-
 
2288
      public getUserByCartId_call(long cartId, org.apache.thrift.async.AsyncMethodCallback<getUserByCartId_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 {
-
 
2289
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2290
        this.cartId = cartId;
-
 
2291
      }
-
 
2292
 
-
 
2293
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2294
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserByCartId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2295
        getUserByCartId_args args = new getUserByCartId_args();
-
 
2296
        args.setCartId(cartId);
-
 
2297
        args.write(prot);
-
 
2298
        prot.writeMessageEnd();
-
 
2299
      }
-
 
2300
 
-
 
2301
      public User getResult() throws UserContextException, org.apache.thrift.TException {
-
 
2302
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2303
          throw new IllegalStateException("Method call not finished!");
-
 
2304
        }
-
 
2305
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2306
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2307
        return (new Client(prot)).recv_getUserByCartId();
-
 
2308
      }
-
 
2309
    }
-
 
2310
 
2366
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<getUserByEmail_call> resultHandler) throws org.apache.thrift.TException {
2311
    public void getUserByEmail(String email, org.apache.thrift.async.AsyncMethodCallback<getUserByEmail_call> resultHandler) throws org.apache.thrift.TException {
2367
      checkReady();
2312
      checkReady();
2368
      getUserByEmail_call method_call = new getUserByEmail_call(email, resultHandler, this, ___protocolFactory, ___transport);
2313
      getUserByEmail_call method_call = new getUserByEmail_call(email, resultHandler, this, ___protocolFactory, ___transport);
2369
      this.___currentMethod = method_call;
2314
      this.___currentMethod = method_call;
2370
      ___manager.call(method_call);
2315
      ___manager.call(method_call);
Line 2521... Line 2466...
2521
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2466
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2522
        return (new Client(prot)).recv_deleteUser();
2467
        return (new Client(prot)).recv_deleteUser();
2523
      }
2468
      }
2524
    }
2469
    }
2525
 
2470
 
2526
    public void getUserState(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserState_call> resultHandler) throws org.apache.thrift.TException {
-
 
2527
      checkReady();
-
 
2528
      getUserState_call method_call = new getUserState_call(userId, resultHandler, this, ___protocolFactory, ___transport);
-
 
2529
      this.___currentMethod = method_call;
-
 
2530
      ___manager.call(method_call);
-
 
2531
    }
-
 
2532
 
-
 
2533
    public static class getUserState_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2534
      private long userId;
-
 
2535
      public getUserState_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserState_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 {
-
 
2536
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2537
        this.userId = userId;
-
 
2538
      }
-
 
2539
 
-
 
2540
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2541
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserState", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2542
        getUserState_args args = new getUserState_args();
-
 
2543
        args.setUserId(userId);
-
 
2544
        args.write(prot);
-
 
2545
        prot.writeMessageEnd();
-
 
2546
      }
-
 
2547
 
-
 
2548
      public UserState getResult() throws UserContextException, org.apache.thrift.TException {
-
 
2549
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2550
          throw new IllegalStateException("Method call not finished!");
-
 
2551
        }
-
 
2552
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2553
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2554
        return (new Client(prot)).recv_getUserState();
-
 
2555
      }
-
 
2556
    }
-
 
2557
 
-
 
2558
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2471
    public void authenticateUser(String email, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateUser_call> resultHandler) throws org.apache.thrift.TException {
2559
      checkReady();
2472
      checkReady();
2560
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2473
      authenticateUser_call method_call = new authenticateUser_call(email, password, resultHandler, this, ___protocolFactory, ___transport);
2561
      this.___currentMethod = method_call;
2474
      this.___currentMethod = method_call;
2562
      ___manager.call(method_call);
2475
      ___manager.call(method_call);
Line 3725... Line 3638...
3725
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3638
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3726
        return (new Client(prot)).recv_getCart();
3639
        return (new Client(prot)).recv_getCart();
3727
      }
3640
      }
3728
    }
3641
    }
3729
 
3642
 
3730
    public void getCartsForUser(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsForUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
3731
      checkReady();
-
 
3732
      getCartsForUser_call method_call = new getCartsForUser_call(userId, status, resultHandler, this, ___protocolFactory, ___transport);
-
 
3733
      this.___currentMethod = method_call;
-
 
3734
      ___manager.call(method_call);
-
 
3735
    }
-
 
3736
 
-
 
3737
    public static class getCartsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3738
      private long userId;
-
 
3739
      private CartStatus status;
-
 
3740
      public getCartsForUser_call(long userId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsForUser_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 {
-
 
3741
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3742
        this.userId = userId;
-
 
3743
        this.status = status;
-
 
3744
      }
-
 
3745
 
-
 
3746
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3747
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3748
        getCartsForUser_args args = new getCartsForUser_args();
-
 
3749
        args.setUserId(userId);
-
 
3750
        args.setStatus(status);
-
 
3751
        args.write(prot);
-
 
3752
        prot.writeMessageEnd();
-
 
3753
      }
-
 
3754
 
-
 
3755
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
3756
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3757
          throw new IllegalStateException("Method call not finished!");
-
 
3758
        }
-
 
3759
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3760
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3761
        return (new Client(prot)).recv_getCartsForUser();
-
 
3762
      }
-
 
3763
    }
-
 
3764
 
-
 
3765
    public void getCartsByStatus(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
3766
      checkReady();
-
 
3767
      getCartsByStatus_call method_call = new getCartsByStatus_call(status, resultHandler, this, ___protocolFactory, ___transport);
-
 
3768
      this.___currentMethod = method_call;
-
 
3769
      ___manager.call(method_call);
-
 
3770
    }
-
 
3771
 
-
 
3772
    public static class getCartsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3773
      private CartStatus status;
-
 
3774
      public getCartsByStatus_call(CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByStatus_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 {
-
 
3775
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3776
        this.status = status;
-
 
3777
      }
-
 
3778
 
-
 
3779
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3780
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCartsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3781
        getCartsByStatus_args args = new getCartsByStatus_args();
-
 
3782
        args.setStatus(status);
-
 
3783
        args.write(prot);
-
 
3784
        prot.writeMessageEnd();
-
 
3785
      }
-
 
3786
 
-
 
3787
      public List<Cart> getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
3788
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3789
          throw new IllegalStateException("Method call not finished!");
-
 
3790
        }
-
 
3791
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3792
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3793
        return (new Client(prot)).recv_getCartsByStatus();
-
 
3794
      }
-
 
3795
    }
-
 
3796
 
-
 
3797
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByTime_call> resultHandler) throws org.apache.thrift.TException {
3643
    public void getCartsByTime(long from_time, long to_time, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<getCartsByTime_call> resultHandler) throws org.apache.thrift.TException {
3798
      checkReady();
3644
      checkReady();
3799
      getCartsByTime_call method_call = new getCartsByTime_call(from_time, to_time, status, resultHandler, this, ___protocolFactory, ___transport);
3645
      getCartsByTime_call method_call = new getCartsByTime_call(from_time, to_time, status, resultHandler, this, ___protocolFactory, ___transport);
3800
      this.___currentMethod = method_call;
3646
      this.___currentMethod = method_call;
3801
      ___manager.call(method_call);
3647
      ___manager.call(method_call);
Line 3830... Line 3676...
3830
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3676
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3831
        return (new Client(prot)).recv_getCartsByTime();
3677
        return (new Client(prot)).recv_getCartsByTime();
3832
      }
3678
      }
3833
    }
3679
    }
3834
 
3680
 
3835
    public void changeCartStatus(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<changeCartStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
3836
      checkReady();
-
 
3837
      changeCartStatus_call method_call = new changeCartStatus_call(cartId, status, resultHandler, this, ___protocolFactory, ___transport);
-
 
3838
      this.___currentMethod = method_call;
-
 
3839
      ___manager.call(method_call);
-
 
3840
    }
-
 
3841
 
-
 
3842
    public static class changeCartStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3843
      private long cartId;
-
 
3844
      private CartStatus status;
-
 
3845
      public changeCartStatus_call(long cartId, CartStatus status, org.apache.thrift.async.AsyncMethodCallback<changeCartStatus_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 {
-
 
3846
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3847
        this.cartId = cartId;
-
 
3848
        this.status = status;
-
 
3849
      }
-
 
3850
 
-
 
3851
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3852
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeCartStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3853
        changeCartStatus_args args = new changeCartStatus_args();
-
 
3854
        args.setCartId(cartId);
-
 
3855
        args.setStatus(status);
-
 
3856
        args.write(prot);
-
 
3857
        prot.writeMessageEnd();
-
 
3858
      }
-
 
3859
 
-
 
3860
      public void getResult() throws ShoppingCartException, org.apache.thrift.TException {
-
 
3861
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3862
          throw new IllegalStateException("Method call not finished!");
-
 
3863
        }
-
 
3864
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3865
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3866
        (new Client(prot)).recv_changeCartStatus();
-
 
3867
      }
-
 
3868
    }
-
 
3869
 
-
 
3870
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<addItemToCart_call> resultHandler) throws org.apache.thrift.TException {
3681
    public void addItemToCart(long cartId, long itemId, long quantity, long sourceId, org.apache.thrift.async.AsyncMethodCallback<addItemToCart_call> resultHandler) throws org.apache.thrift.TException {
3871
      checkReady();
3682
      checkReady();
3872
      addItemToCart_call method_call = new addItemToCart_call(cartId, itemId, quantity, sourceId, resultHandler, this, ___protocolFactory, ___transport);
3683
      addItemToCart_call method_call = new addItemToCart_call(cartId, itemId, quantity, sourceId, resultHandler, this, ___protocolFactory, ___transport);
3873
      this.___currentMethod = method_call;
3684
      this.___currentMethod = method_call;
3874
      ___manager.call(method_call);
3685
      ___manager.call(method_call);
Line 4151... Line 3962...
4151
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3962
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4152
        (new Client(prot)).recv_saveDiscounts();
3963
        (new Client(prot)).recv_saveDiscounts();
4153
      }
3964
      }
4154
    }
3965
    }
4155
 
3966
 
4156
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
3967
    public void createOrders(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, org.apache.thrift.async.AsyncMethodCallback<createOrders_call> resultHandler) throws org.apache.thrift.TException {
4157
      checkReady();
3968
      checkReady();
4158
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, resultHandler, this, ___protocolFactory, ___transport);
3969
      createOrders_call method_call = new createOrders_call(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, resultHandler, this, ___protocolFactory, ___transport);
4159
      this.___currentMethod = method_call;
3970
      this.___currentMethod = method_call;
4160
      ___manager.call(method_call);
3971
      ___manager.call(method_call);
4161
    }
3972
    }
4162
 
3973
 
4163
    public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3974
    public static class createOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4164
      private long cartId;
3975
      private long cartId;
4165
      private String sessionSource;
3976
      private String sessionSource;
4166
      private long sessionStartTime;
3977
      private long sessionStartTime;
4167
      private String firstSource;
3978
      private String firstSource;
4168
      private long firstSourceTime;
3979
      private long firstSourceTime;
-
 
3980
      private long userId;
4169
      public createOrders_call(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, org.apache.thrift.async.AsyncMethodCallback<createOrders_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 {
3981
      public createOrders_call(long cartId, String sessionSource, long sessionStartTime, String firstSource, long firstSourceTime, long userId, org.apache.thrift.async.AsyncMethodCallback<createOrders_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 {
4170
        super(client, protocolFactory, transport, resultHandler, false);
3982
        super(client, protocolFactory, transport, resultHandler, false);
4171
        this.cartId = cartId;
3983
        this.cartId = cartId;
4172
        this.sessionSource = sessionSource;
3984
        this.sessionSource = sessionSource;
4173
        this.sessionStartTime = sessionStartTime;
3985
        this.sessionStartTime = sessionStartTime;
4174
        this.firstSource = firstSource;
3986
        this.firstSource = firstSource;
4175
        this.firstSourceTime = firstSourceTime;
3987
        this.firstSourceTime = firstSourceTime;
-
 
3988
        this.userId = userId;
4176
      }
3989
      }
4177
 
3990
 
4178
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3991
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4179
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3992
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4180
        createOrders_args args = new createOrders_args();
3993
        createOrders_args args = new createOrders_args();
4181
        args.setCartId(cartId);
3994
        args.setCartId(cartId);
4182
        args.setSessionSource(sessionSource);
3995
        args.setSessionSource(sessionSource);
4183
        args.setSessionStartTime(sessionStartTime);
3996
        args.setSessionStartTime(sessionStartTime);
4184
        args.setFirstSource(firstSource);
3997
        args.setFirstSource(firstSource);
4185
        args.setFirstSourceTime(firstSourceTime);
3998
        args.setFirstSourceTime(firstSourceTime);
-
 
3999
        args.setUserId(userId);
4186
        args.write(prot);
4000
        args.write(prot);
4187
        prot.writeMessageEnd();
4001
        prot.writeMessageEnd();
4188
      }
4002
      }
4189
 
4003
 
4190
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
4004
      public long getResult() throws ShoppingCartException, org.apache.thrift.TException {
Line 4766... Line 4580...
4766
    }
4580
    }
4767
 
4581
 
4768
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4582
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4769
      processMap.put("createAnonymousUser", new createAnonymousUser());
4583
      processMap.put("createAnonymousUser", new createAnonymousUser());
4770
      processMap.put("getUserById", new getUserById());
4584
      processMap.put("getUserById", new getUserById());
-
 
4585
      processMap.put("getUserByCartId", new getUserByCartId());
4771
      processMap.put("getUserByEmail", new getUserByEmail());
4586
      processMap.put("getUserByEmail", new getUserByEmail());
4772
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4587
      processMap.put("getUserByMobileNumber", new getUserByMobileNumber());
4773
      processMap.put("createUser", new createUser());
4588
      processMap.put("createUser", new createUser());
4774
      processMap.put("updateUser", new updateUser());
4589
      processMap.put("updateUser", new updateUser());
4775
      processMap.put("deleteUser", new deleteUser());
4590
      processMap.put("deleteUser", new deleteUser());
4776
      processMap.put("getUserState", new getUserState());
-
 
4777
      processMap.put("authenticateUser", new authenticateUser());
4591
      processMap.put("authenticateUser", new authenticateUser());
4778
      processMap.put("userExists", new userExists());
4592
      processMap.put("userExists", new userExists());
4779
      processMap.put("addAddressForUser", new addAddressForUser());
4593
      processMap.put("addAddressForUser", new addAddressForUser());
4780
      processMap.put("removeAddressForUser", new removeAddressForUser());
4594
      processMap.put("removeAddressForUser", new removeAddressForUser());
4781
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
4595
      processMap.put("setUserAsLoggedIn", new setUserAsLoggedIn());
Line 4806... Line 4620...
4806
      processMap.put("getTrackLogsByUser", new getTrackLogsByUser());
4620
      processMap.put("getTrackLogsByUser", new getTrackLogsByUser());
4807
      processMap.put("getTrackLogs", new getTrackLogs());
4621
      processMap.put("getTrackLogs", new getTrackLogs());
4808
      processMap.put("createCart", new createCart());
4622
      processMap.put("createCart", new createCart());
4809
      processMap.put("getCurrentCart", new getCurrentCart());
4623
      processMap.put("getCurrentCart", new getCurrentCart());
4810
      processMap.put("getCart", new getCart());
4624
      processMap.put("getCart", new getCart());
4811
      processMap.put("getCartsForUser", new getCartsForUser());
-
 
4812
      processMap.put("getCartsByStatus", new getCartsByStatus());
-
 
4813
      processMap.put("getCartsByTime", new getCartsByTime());
4625
      processMap.put("getCartsByTime", new getCartsByTime());
4814
      processMap.put("changeCartStatus", new changeCartStatus());
-
 
4815
      processMap.put("addItemToCart", new addItemToCart());
4626
      processMap.put("addItemToCart", new addItemToCart());
4816
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4627
      processMap.put("deleteItemFromCart", new deleteItemFromCart());
4817
      processMap.put("changeItemStatus", new changeItemStatus());
4628
      processMap.put("changeItemStatus", new changeItemStatus());
4818
      processMap.put("addAddressToCart", new addAddressToCart());
4629
      processMap.put("addAddressToCart", new addAddressToCart());
4819
      processMap.put("applyCouponToCart", new applyCouponToCart());
4630
      processMap.put("applyCouponToCart", new applyCouponToCart());
Line 4878... Line 4689...
4878
        }
4689
        }
4879
        return result;
4690
        return result;
4880
      }
4691
      }
4881
    }
4692
    }
4882
 
4693
 
-
 
4694
    private static class getUserByCartId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByCartId_args> {
-
 
4695
      public getUserByCartId() {
-
 
4696
        super("getUserByCartId");
-
 
4697
      }
-
 
4698
 
-
 
4699
      protected getUserByCartId_args getEmptyArgsInstance() {
-
 
4700
        return new getUserByCartId_args();
-
 
4701
      }
-
 
4702
 
-
 
4703
      protected getUserByCartId_result getResult(I iface, getUserByCartId_args args) throws org.apache.thrift.TException {
-
 
4704
        getUserByCartId_result result = new getUserByCartId_result();
-
 
4705
        try {
-
 
4706
          result.success = iface.getUserByCartId(args.cartId);
-
 
4707
        } catch (UserContextException ucex) {
-
 
4708
          result.ucex = ucex;
-
 
4709
        }
-
 
4710
        return result;
-
 
4711
      }
-
 
4712
    }
-
 
4713
 
4883
    private static class getUserByEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByEmail_args> {
4714
    private static class getUserByEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserByEmail_args> {
4884
      public getUserByEmail() {
4715
      public getUserByEmail() {
4885
        super("getUserByEmail");
4716
        super("getUserByEmail");
4886
      }
4717
      }
4887
 
4718
 
Line 4979... Line 4810...
4979
        }
4810
        }
4980
        return result;
4811
        return result;
4981
      }
4812
      }
4982
    }
4813
    }
4983
 
4814
 
4984
    private static class getUserState<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserState_args> {
-
 
4985
      public getUserState() {
-
 
4986
        super("getUserState");
-
 
4987
      }
-
 
4988
 
-
 
4989
      protected getUserState_args getEmptyArgsInstance() {
-
 
4990
        return new getUserState_args();
-
 
4991
      }
-
 
4992
 
-
 
4993
      protected getUserState_result getResult(I iface, getUserState_args args) throws org.apache.thrift.TException {
-
 
4994
        getUserState_result result = new getUserState_result();
-
 
4995
        try {
-
 
4996
          result.success = iface.getUserState(args.userId);
-
 
4997
        } catch (UserContextException ucex) {
-
 
4998
          result.ucex = ucex;
-
 
4999
        }
-
 
5000
        return result;
-
 
5001
      }
-
 
5002
    }
-
 
5003
 
-
 
5004
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
4815
    private static class authenticateUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateUser_args> {
5005
      public authenticateUser() {
4816
      public authenticateUser() {
5006
        super("authenticateUser");
4817
        super("authenticateUser");
5007
      }
4818
      }
5008
 
4819
 
Line 5691... Line 5502...
5691
        }
5502
        }
5692
        return result;
5503
        return result;
5693
      }
5504
      }
5694
    }
5505
    }
5695
 
5506
 
5696
    private static class getCartsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsForUser_args> {
-
 
5697
      public getCartsForUser() {
-
 
5698
        super("getCartsForUser");
-
 
5699
      }
-
 
5700
 
-
 
5701
      protected getCartsForUser_args getEmptyArgsInstance() {
-
 
5702
        return new getCartsForUser_args();
-
 
5703
      }
-
 
5704
 
-
 
5705
      protected getCartsForUser_result getResult(I iface, getCartsForUser_args args) throws org.apache.thrift.TException {
-
 
5706
        getCartsForUser_result result = new getCartsForUser_result();
-
 
5707
        try {
-
 
5708
          result.success = iface.getCartsForUser(args.userId, args.status);
-
 
5709
        } catch (ShoppingCartException scx) {
-
 
5710
          result.scx = scx;
-
 
5711
        }
-
 
5712
        return result;
-
 
5713
      }
-
 
5714
    }
-
 
5715
 
-
 
5716
    private static class getCartsByStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByStatus_args> {
-
 
5717
      public getCartsByStatus() {
-
 
5718
        super("getCartsByStatus");
-
 
5719
      }
-
 
5720
 
-
 
5721
      protected getCartsByStatus_args getEmptyArgsInstance() {
-
 
5722
        return new getCartsByStatus_args();
-
 
5723
      }
-
 
5724
 
-
 
5725
      protected getCartsByStatus_result getResult(I iface, getCartsByStatus_args args) throws org.apache.thrift.TException {
-
 
5726
        getCartsByStatus_result result = new getCartsByStatus_result();
-
 
5727
        try {
-
 
5728
          result.success = iface.getCartsByStatus(args.status);
-
 
5729
        } catch (ShoppingCartException scx) {
-
 
5730
          result.scx = scx;
-
 
5731
        }
-
 
5732
        return result;
-
 
5733
      }
-
 
5734
    }
-
 
5735
 
-
 
5736
    private static class getCartsByTime<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByTime_args> {
5507
    private static class getCartsByTime<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCartsByTime_args> {
5737
      public getCartsByTime() {
5508
      public getCartsByTime() {
5738
        super("getCartsByTime");
5509
        super("getCartsByTime");
5739
      }
5510
      }
5740
 
5511
 
Line 5751... Line 5522...
5751
        }
5522
        }
5752
        return result;
5523
        return result;
5753
      }
5524
      }
5754
    }
5525
    }
5755
 
5526
 
5756
    private static class changeCartStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeCartStatus_args> {
-
 
5757
      public changeCartStatus() {
-
 
5758
        super("changeCartStatus");
-
 
5759
      }
-
 
5760
 
-
 
5761
      protected changeCartStatus_args getEmptyArgsInstance() {
-
 
5762
        return new changeCartStatus_args();
-
 
5763
      }
-
 
5764
 
-
 
5765
      protected changeCartStatus_result getResult(I iface, changeCartStatus_args args) throws org.apache.thrift.TException {
-
 
5766
        changeCartStatus_result result = new changeCartStatus_result();
-
 
5767
        try {
-
 
5768
          iface.changeCartStatus(args.cartId, args.status);
-
 
5769
        } catch (ShoppingCartException scx) {
-
 
5770
          result.scx = scx;
-
 
5771
        }
-
 
5772
        return result;
-
 
5773
      }
-
 
5774
    }
-
 
5775
 
-
 
5776
    private static class addItemToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemToCart_args> {
5527
    private static class addItemToCart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemToCart_args> {
5777
      public addItemToCart() {
5528
      public addItemToCart() {
5778
        super("addItemToCart");
5529
        super("addItemToCart");
5779
      }
5530
      }
5780
 
5531
 
Line 5943... Line 5694...
5943
      }
5694
      }
5944
 
5695
 
5945
      protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
5696
      protected createOrders_result getResult(I iface, createOrders_args args) throws org.apache.thrift.TException {
5946
        createOrders_result result = new createOrders_result();
5697
        createOrders_result result = new createOrders_result();
5947
        try {
5698
        try {
5948
          result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime);
5699
          result.success = iface.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId);
5949
          result.setSuccessIsSet(true);
5700
          result.setSuccessIsSet(true);
5950
        } catch (ShoppingCartException scx) {
5701
        } catch (ShoppingCartException scx) {
5951
          result.scx = scx;
5702
          result.scx = scx;
5952
        }
5703
        }
5953
        return result;
5704
        return result;
Line 7595... Line 7346...
7595
      }
7346
      }
7596
    }
7347
    }
7597
 
7348
 
7598
  }
7349
  }
7599
 
7350
 
7600
  public static class getUserByEmail_args implements org.apache.thrift.TBase<getUserByEmail_args, getUserByEmail_args._Fields>, java.io.Serializable, Cloneable   {
7351
  public static class getUserByCartId_args implements org.apache.thrift.TBase<getUserByCartId_args, getUserByCartId_args._Fields>, java.io.Serializable, Cloneable   {
7601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_args");
7352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByCartId_args");
7602
 
7353
 
7603
    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);
7354
    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);
7604
 
7355
 
7605
    private String email; // required
7356
    private long cartId; // required
7606
 
7357
 
7607
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7608
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7609
      EMAIL((short)1, "email");
7360
      CART_ID((short)1, "cartId");
7610
 
7361
 
7611
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7612
 
7363
 
7613
      static {
7364
      static {
7614
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 7619... Line 7370...
7619
      /**
7370
      /**
7620
       * Find the _Fields constant that matches fieldId, or null if its not found.
7371
       * Find the _Fields constant that matches fieldId, or null if its not found.
7621
       */
7372
       */
7622
      public static _Fields findByThriftId(int fieldId) {
7373
      public static _Fields findByThriftId(int fieldId) {
7623
        switch(fieldId) {
7374
        switch(fieldId) {
7624
          case 1: // EMAIL
7375
          case 1: // CART_ID
7625
            return EMAIL;
7376
            return CART_ID;
7626
          default:
7377
          default:
7627
            return null;
7378
            return null;
7628
        }
7379
        }
7629
      }
7380
      }
7630
 
7381
 
Line 7661... Line 7412...
7661
        return _fieldName;
7412
        return _fieldName;
7662
      }
7413
      }
7663
    }
7414
    }
7664
 
7415
 
7665
    // isset id assignments
7416
    // isset id assignments
-
 
7417
    private static final int __CARTID_ISSET_ID = 0;
-
 
7418
    private BitSet __isset_bit_vector = new BitSet(1);
7666
 
7419
 
7667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7668
    static {
7421
    static {
7669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7670
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7423
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_args.class, metaDataMap);
7426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByCartId_args.class, metaDataMap);
7674
    }
7427
    }
7675
 
7428
 
7676
    public getUserByEmail_args() {
7429
    public getUserByCartId_args() {
7677
    }
7430
    }
7678
 
7431
 
7679
    public getUserByEmail_args(
7432
    public getUserByCartId_args(
7680
      String email)
7433
      long cartId)
7681
    {
7434
    {
7682
      this();
7435
      this();
7683
      this.email = email;
7436
      this.cartId = cartId;
-
 
7437
      setCartIdIsSet(true);
7684
    }
7438
    }
7685
 
7439
 
7686
    /**
7440
    /**
7687
     * Performs a deep copy on <i>other</i>.
7441
     * Performs a deep copy on <i>other</i>.
7688
     */
7442
     */
7689
    public getUserByEmail_args(getUserByEmail_args other) {
7443
    public getUserByCartId_args(getUserByCartId_args other) {
7690
      if (other.isSetEmail()) {
7444
      __isset_bit_vector.clear();
-
 
7445
      __isset_bit_vector.or(other.__isset_bit_vector);
7691
        this.email = other.email;
7446
      this.cartId = other.cartId;
7692
      }
-
 
7693
    }
7447
    }
7694
 
7448
 
7695
    public getUserByEmail_args deepCopy() {
7449
    public getUserByCartId_args deepCopy() {
7696
      return new getUserByEmail_args(this);
7450
      return new getUserByCartId_args(this);
7697
    }
7451
    }
7698
 
7452
 
7699
    @Override
7453
    @Override
7700
    public void clear() {
7454
    public void clear() {
-
 
7455
      setCartIdIsSet(false);
7701
      this.email = null;
7456
      this.cartId = 0;
7702
    }
7457
    }
7703
 
7458
 
7704
    public String getEmail() {
7459
    public long getCartId() {
7705
      return this.email;
7460
      return this.cartId;
7706
    }
7461
    }
7707
 
7462
 
7708
    public void setEmail(String email) {
7463
    public void setCartId(long cartId) {
7709
      this.email = email;
7464
      this.cartId = cartId;
-
 
7465
      setCartIdIsSet(true);
7710
    }
7466
    }
7711
 
7467
 
7712
    public void unsetEmail() {
7468
    public void unsetCartId() {
7713
      this.email = null;
7469
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
7714
    }
7470
    }
7715
 
7471
 
7716
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
7472
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
7717
    public boolean isSetEmail() {
7473
    public boolean isSetCartId() {
7718
      return this.email != null;
7474
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
7719
    }
7475
    }
7720
 
7476
 
7721
    public void setEmailIsSet(boolean value) {
7477
    public void setCartIdIsSet(boolean value) {
7722
      if (!value) {
-
 
7723
        this.email = null;
7478
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
7724
      }
-
 
7725
    }
7479
    }
7726
 
7480
 
7727
    public void setFieldValue(_Fields field, Object value) {
7481
    public void setFieldValue(_Fields field, Object value) {
7728
      switch (field) {
7482
      switch (field) {
7729
      case EMAIL:
7483
      case CART_ID:
7730
        if (value == null) {
7484
        if (value == null) {
7731
          unsetEmail();
7485
          unsetCartId();
7732
        } else {
7486
        } else {
7733
          setEmail((String)value);
7487
          setCartId((Long)value);
7734
        }
7488
        }
7735
        break;
7489
        break;
7736
 
7490
 
7737
      }
7491
      }
7738
    }
7492
    }
7739
 
7493
 
7740
    public Object getFieldValue(_Fields field) {
7494
    public Object getFieldValue(_Fields field) {
7741
      switch (field) {
7495
      switch (field) {
7742
      case EMAIL:
7496
      case CART_ID:
7743
        return getEmail();
7497
        return Long.valueOf(getCartId());
7744
 
7498
 
7745
      }
7499
      }
7746
      throw new IllegalStateException();
7500
      throw new IllegalStateException();
7747
    }
7501
    }
7748
 
7502
 
Line 7751... Line 7505...
7751
      if (field == null) {
7505
      if (field == null) {
7752
        throw new IllegalArgumentException();
7506
        throw new IllegalArgumentException();
7753
      }
7507
      }
7754
 
7508
 
7755
      switch (field) {
7509
      switch (field) {
7756
      case EMAIL:
7510
      case CART_ID:
7757
        return isSetEmail();
7511
        return isSetCartId();
7758
      }
7512
      }
7759
      throw new IllegalStateException();
7513
      throw new IllegalStateException();
7760
    }
7514
    }
7761
 
7515
 
7762
    @Override
7516
    @Override
7763
    public boolean equals(Object that) {
7517
    public boolean equals(Object that) {
7764
      if (that == null)
7518
      if (that == null)
7765
        return false;
7519
        return false;
7766
      if (that instanceof getUserByEmail_args)
7520
      if (that instanceof getUserByCartId_args)
7767
        return this.equals((getUserByEmail_args)that);
7521
        return this.equals((getUserByCartId_args)that);
7768
      return false;
7522
      return false;
7769
    }
7523
    }
7770
 
7524
 
7771
    public boolean equals(getUserByEmail_args that) {
7525
    public boolean equals(getUserByCartId_args that) {
7772
      if (that == null)
7526
      if (that == null)
7773
        return false;
7527
        return false;
7774
 
7528
 
7775
      boolean this_present_email = true && this.isSetEmail();
7529
      boolean this_present_cartId = true;
7776
      boolean that_present_email = true && that.isSetEmail();
7530
      boolean that_present_cartId = true;
7777
      if (this_present_email || that_present_email) {
7531
      if (this_present_cartId || that_present_cartId) {
7778
        if (!(this_present_email && that_present_email))
7532
        if (!(this_present_cartId && that_present_cartId))
7779
          return false;
7533
          return false;
7780
        if (!this.email.equals(that.email))
7534
        if (this.cartId != that.cartId)
7781
          return false;
7535
          return false;
7782
      }
7536
      }
7783
 
7537
 
7784
      return true;
7538
      return true;
7785
    }
7539
    }
Line 7787... Line 7541...
7787
    @Override
7541
    @Override
7788
    public int hashCode() {
7542
    public int hashCode() {
7789
      return 0;
7543
      return 0;
7790
    }
7544
    }
7791
 
7545
 
7792
    public int compareTo(getUserByEmail_args other) {
7546
    public int compareTo(getUserByCartId_args other) {
7793
      if (!getClass().equals(other.getClass())) {
7547
      if (!getClass().equals(other.getClass())) {
7794
        return getClass().getName().compareTo(other.getClass().getName());
7548
        return getClass().getName().compareTo(other.getClass().getName());
7795
      }
7549
      }
7796
 
7550
 
7797
      int lastComparison = 0;
7551
      int lastComparison = 0;
7798
      getUserByEmail_args typedOther = (getUserByEmail_args)other;
7552
      getUserByCartId_args typedOther = (getUserByCartId_args)other;
7799
 
7553
 
7800
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
7554
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
7801
      if (lastComparison != 0) {
7555
      if (lastComparison != 0) {
7802
        return lastComparison;
7556
        return lastComparison;
7803
      }
7557
      }
7804
      if (isSetEmail()) {
7558
      if (isSetCartId()) {
7805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
7559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
7806
        if (lastComparison != 0) {
7560
        if (lastComparison != 0) {
7807
          return lastComparison;
7561
          return lastComparison;
7808
        }
7562
        }
7809
      }
7563
      }
7810
      return 0;
7564
      return 0;
Line 7822... Line 7576...
7822
        field = iprot.readFieldBegin();
7576
        field = iprot.readFieldBegin();
7823
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7824
          break;
7578
          break;
7825
        }
7579
        }
7826
        switch (field.id) {
7580
        switch (field.id) {
7827
          case 1: // EMAIL
7581
          case 1: // CART_ID
7828
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7582
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7829
              this.email = iprot.readString();
7583
              this.cartId = iprot.readI64();
-
 
7584
              setCartIdIsSet(true);
7830
            } else { 
7585
            } else { 
7831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7832
            }
7587
            }
7833
            break;
7588
            break;
7834
          default:
7589
          default:
Line 7842... Line 7597...
7842
 
7597
 
7843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7844
      validate();
7599
      validate();
7845
 
7600
 
7846
      oprot.writeStructBegin(STRUCT_DESC);
7601
      oprot.writeStructBegin(STRUCT_DESC);
7847
      if (this.email != null) {
-
 
7848
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
7602
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
7849
        oprot.writeString(this.email);
7603
      oprot.writeI64(this.cartId);
7850
        oprot.writeFieldEnd();
7604
      oprot.writeFieldEnd();
7851
      }
-
 
7852
      oprot.writeFieldStop();
7605
      oprot.writeFieldStop();
7853
      oprot.writeStructEnd();
7606
      oprot.writeStructEnd();
7854
    }
7607
    }
7855
 
7608
 
7856
    @Override
7609
    @Override
7857
    public String toString() {
7610
    public String toString() {
7858
      StringBuilder sb = new StringBuilder("getUserByEmail_args(");
7611
      StringBuilder sb = new StringBuilder("getUserByCartId_args(");
7859
      boolean first = true;
7612
      boolean first = true;
7860
 
7613
 
7861
      sb.append("email:");
7614
      sb.append("cartId:");
7862
      if (this.email == null) {
-
 
7863
        sb.append("null");
-
 
7864
      } else {
-
 
7865
        sb.append(this.email);
7615
      sb.append(this.cartId);
7866
      }
-
 
7867
      first = false;
7616
      first = false;
7868
      sb.append(")");
7617
      sb.append(")");
7869
      return sb.toString();
7618
      return sb.toString();
7870
    }
7619
    }
7871
 
7620
 
Line 7881... Line 7630...
7881
      }
7630
      }
7882
    }
7631
    }
7883
 
7632
 
7884
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7885
      try {
7634
      try {
-
 
7635
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7636
        __isset_bit_vector = new BitSet(1);
7886
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7887
      } catch (org.apache.thrift.TException te) {
7638
      } catch (org.apache.thrift.TException te) {
7888
        throw new java.io.IOException(te);
7639
        throw new java.io.IOException(te);
7889
      }
7640
      }
7890
    }
7641
    }
7891
 
7642
 
7892
  }
7643
  }
7893
 
7644
 
7894
  public static class getUserByEmail_result implements org.apache.thrift.TBase<getUserByEmail_result, getUserByEmail_result._Fields>, java.io.Serializable, Cloneable   {
7645
  public static class getUserByCartId_result implements org.apache.thrift.TBase<getUserByCartId_result, getUserByCartId_result._Fields>, java.io.Serializable, Cloneable   {
7895
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_result");
7646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByCartId_result");
7896
 
7647
 
7897
    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);
7648
    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);
7898
    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);
7649
    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);
7899
 
7650
 
7900
    private User success; // required
7651
    private User success; // required
Line 7969... Line 7720...
7969
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7720
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7970
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7721
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
7971
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7722
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7724
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_result.class, metaDataMap);
7725
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByCartId_result.class, metaDataMap);
7975
    }
7726
    }
7976
 
7727
 
7977
    public getUserByEmail_result() {
7728
    public getUserByCartId_result() {
7978
    }
7729
    }
7979
 
7730
 
7980
    public getUserByEmail_result(
7731
    public getUserByCartId_result(
7981
      User success,
7732
      User success,
7982
      UserContextException ucex)
7733
      UserContextException ucex)
7983
    {
7734
    {
7984
      this();
7735
      this();
7985
      this.success = success;
7736
      this.success = success;
Line 7987... Line 7738...
7987
    }
7738
    }
7988
 
7739
 
7989
    /**
7740
    /**
7990
     * Performs a deep copy on <i>other</i>.
7741
     * Performs a deep copy on <i>other</i>.
7991
     */
7742
     */
7992
    public getUserByEmail_result(getUserByEmail_result other) {
7743
    public getUserByCartId_result(getUserByCartId_result other) {
7993
      if (other.isSetSuccess()) {
7744
      if (other.isSetSuccess()) {
7994
        this.success = new User(other.success);
7745
        this.success = new User(other.success);
7995
      }
7746
      }
7996
      if (other.isSetUcex()) {
7747
      if (other.isSetUcex()) {
7997
        this.ucex = new UserContextException(other.ucex);
7748
        this.ucex = new UserContextException(other.ucex);
7998
      }
7749
      }
7999
    }
7750
    }
8000
 
7751
 
8001
    public getUserByEmail_result deepCopy() {
7752
    public getUserByCartId_result deepCopy() {
8002
      return new getUserByEmail_result(this);
7753
      return new getUserByCartId_result(this);
8003
    }
7754
    }
8004
 
7755
 
8005
    @Override
7756
    @Override
8006
    public void clear() {
7757
    public void clear() {
8007
      this.success = null;
7758
      this.success = null;
Line 8104... Line 7855...
8104
 
7855
 
8105
    @Override
7856
    @Override
8106
    public boolean equals(Object that) {
7857
    public boolean equals(Object that) {
8107
      if (that == null)
7858
      if (that == null)
8108
        return false;
7859
        return false;
8109
      if (that instanceof getUserByEmail_result)
7860
      if (that instanceof getUserByCartId_result)
8110
        return this.equals((getUserByEmail_result)that);
7861
        return this.equals((getUserByCartId_result)that);
8111
      return false;
7862
      return false;
8112
    }
7863
    }
8113
 
7864
 
8114
    public boolean equals(getUserByEmail_result that) {
7865
    public boolean equals(getUserByCartId_result that) {
8115
      if (that == null)
7866
      if (that == null)
8116
        return false;
7867
        return false;
8117
 
7868
 
8118
      boolean this_present_success = true && this.isSetSuccess();
7869
      boolean this_present_success = true && this.isSetSuccess();
8119
      boolean that_present_success = true && that.isSetSuccess();
7870
      boolean that_present_success = true && that.isSetSuccess();
Line 8139... Line 7890...
8139
    @Override
7890
    @Override
8140
    public int hashCode() {
7891
    public int hashCode() {
8141
      return 0;
7892
      return 0;
8142
    }
7893
    }
8143
 
7894
 
8144
    public int compareTo(getUserByEmail_result other) {
7895
    public int compareTo(getUserByCartId_result other) {
8145
      if (!getClass().equals(other.getClass())) {
7896
      if (!getClass().equals(other.getClass())) {
8146
        return getClass().getName().compareTo(other.getClass().getName());
7897
        return getClass().getName().compareTo(other.getClass().getName());
8147
      }
7898
      }
8148
 
7899
 
8149
      int lastComparison = 0;
7900
      int lastComparison = 0;
8150
      getUserByEmail_result typedOther = (getUserByEmail_result)other;
7901
      getUserByCartId_result typedOther = (getUserByCartId_result)other;
8151
 
7902
 
8152
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7903
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8153
      if (lastComparison != 0) {
7904
      if (lastComparison != 0) {
8154
        return lastComparison;
7905
        return lastComparison;
8155
      }
7906
      }
Line 8227... Line 7978...
8227
      oprot.writeStructEnd();
7978
      oprot.writeStructEnd();
8228
    }
7979
    }
8229
 
7980
 
8230
    @Override
7981
    @Override
8231
    public String toString() {
7982
    public String toString() {
8232
      StringBuilder sb = new StringBuilder("getUserByEmail_result(");
7983
      StringBuilder sb = new StringBuilder("getUserByCartId_result(");
8233
      boolean first = true;
7984
      boolean first = true;
8234
 
7985
 
8235
      sb.append("success:");
7986
      sb.append("success:");
8236
      if (this.success == null) {
7987
      if (this.success == null) {
8237
        sb.append("null");
7988
        sb.append("null");
Line 8271... Line 8022...
8271
      }
8022
      }
8272
    }
8023
    }
8273
 
8024
 
8274
  }
8025
  }
8275
 
8026
 
8276
  public static class getUserByMobileNumber_args implements org.apache.thrift.TBase<getUserByMobileNumber_args, getUserByMobileNumber_args._Fields>, java.io.Serializable, Cloneable   {
8027
  public static class getUserByEmail_args implements org.apache.thrift.TBase<getUserByEmail_args, getUserByEmail_args._Fields>, java.io.Serializable, Cloneable   {
8277
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_args");
8028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_args");
8278
 
8029
 
8279
    private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.I64, (short)1);
8030
    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);
8280
 
8031
 
8281
    private long mobileNumber; // required
8032
    private String email; // required
8282
 
8033
 
8283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8284
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8285
      MOBILE_NUMBER((short)1, "mobileNumber");
8036
      EMAIL((short)1, "email");
8286
 
8037
 
8287
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8288
 
8039
 
8289
      static {
8040
      static {
8290
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 8295... Line 8046...
8295
      /**
8046
      /**
8296
       * Find the _Fields constant that matches fieldId, or null if its not found.
8047
       * Find the _Fields constant that matches fieldId, or null if its not found.
8297
       */
8048
       */
8298
      public static _Fields findByThriftId(int fieldId) {
8049
      public static _Fields findByThriftId(int fieldId) {
8299
        switch(fieldId) {
8050
        switch(fieldId) {
8300
          case 1: // MOBILE_NUMBER
8051
          case 1: // EMAIL
8301
            return MOBILE_NUMBER;
8052
            return EMAIL;
8302
          default:
8053
          default:
8303
            return null;
8054
            return null;
8304
        }
8055
        }
8305
      }
8056
      }
8306
 
8057
 
Line 8337... Line 8088...
8337
        return _fieldName;
8088
        return _fieldName;
8338
      }
8089
      }
8339
    }
8090
    }
8340
 
8091
 
8341
    // isset id assignments
8092
    // isset id assignments
8342
    private static final int __MOBILENUMBER_ISSET_ID = 0;
-
 
8343
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8344
 
8093
 
8345
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8346
    static {
8095
    static {
8347
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8348
      tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8097
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8350
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8351
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_args.class, metaDataMap);
8100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_args.class, metaDataMap);
8352
    }
8101
    }
8353
 
8102
 
8354
    public getUserByMobileNumber_args() {
8103
    public getUserByEmail_args() {
8355
    }
8104
    }
8356
 
8105
 
8357
    public getUserByMobileNumber_args(
8106
    public getUserByEmail_args(
8358
      long mobileNumber)
8107
      String email)
8359
    {
8108
    {
8360
      this();
8109
      this();
8361
      this.mobileNumber = mobileNumber;
8110
      this.email = email;
8362
      setMobileNumberIsSet(true);
-
 
8363
    }
8111
    }
8364
 
8112
 
8365
    /**
8113
    /**
8366
     * Performs a deep copy on <i>other</i>.
8114
     * Performs a deep copy on <i>other</i>.
8367
     */
8115
     */
8368
    public getUserByMobileNumber_args(getUserByMobileNumber_args other) {
8116
    public getUserByEmail_args(getUserByEmail_args other) {
8369
      __isset_bit_vector.clear();
8117
      if (other.isSetEmail()) {
8370
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8371
      this.mobileNumber = other.mobileNumber;
8118
        this.email = other.email;
-
 
8119
      }
8372
    }
8120
    }
8373
 
8121
 
8374
    public getUserByMobileNumber_args deepCopy() {
8122
    public getUserByEmail_args deepCopy() {
8375
      return new getUserByMobileNumber_args(this);
8123
      return new getUserByEmail_args(this);
8376
    }
8124
    }
8377
 
8125
 
8378
    @Override
8126
    @Override
8379
    public void clear() {
8127
    public void clear() {
8380
      setMobileNumberIsSet(false);
-
 
8381
      this.mobileNumber = 0;
8128
      this.email = null;
8382
    }
8129
    }
8383
 
8130
 
8384
    public long getMobileNumber() {
8131
    public String getEmail() {
8385
      return this.mobileNumber;
8132
      return this.email;
8386
    }
8133
    }
8387
 
8134
 
8388
    public void setMobileNumber(long mobileNumber) {
8135
    public void setEmail(String email) {
8389
      this.mobileNumber = mobileNumber;
8136
      this.email = email;
8390
      setMobileNumberIsSet(true);
-
 
8391
    }
8137
    }
8392
 
8138
 
8393
    public void unsetMobileNumber() {
8139
    public void unsetEmail() {
8394
      __isset_bit_vector.clear(__MOBILENUMBER_ISSET_ID);
8140
      this.email = null;
8395
    }
8141
    }
8396
 
8142
 
8397
    /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
8143
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
8398
    public boolean isSetMobileNumber() {
8144
    public boolean isSetEmail() {
8399
      return __isset_bit_vector.get(__MOBILENUMBER_ISSET_ID);
8145
      return this.email != null;
8400
    }
8146
    }
8401
 
8147
 
8402
    public void setMobileNumberIsSet(boolean value) {
8148
    public void setEmailIsSet(boolean value) {
-
 
8149
      if (!value) {
8403
      __isset_bit_vector.set(__MOBILENUMBER_ISSET_ID, value);
8150
        this.email = null;
-
 
8151
      }
8404
    }
8152
    }
8405
 
8153
 
8406
    public void setFieldValue(_Fields field, Object value) {
8154
    public void setFieldValue(_Fields field, Object value) {
8407
      switch (field) {
8155
      switch (field) {
8408
      case MOBILE_NUMBER:
8156
      case EMAIL:
8409
        if (value == null) {
8157
        if (value == null) {
8410
          unsetMobileNumber();
8158
          unsetEmail();
8411
        } else {
8159
        } else {
8412
          setMobileNumber((Long)value);
8160
          setEmail((String)value);
8413
        }
8161
        }
8414
        break;
8162
        break;
8415
 
8163
 
8416
      }
8164
      }
8417
    }
8165
    }
8418
 
8166
 
8419
    public Object getFieldValue(_Fields field) {
8167
    public Object getFieldValue(_Fields field) {
8420
      switch (field) {
8168
      switch (field) {
8421
      case MOBILE_NUMBER:
8169
      case EMAIL:
8422
        return Long.valueOf(getMobileNumber());
8170
        return getEmail();
8423
 
8171
 
8424
      }
8172
      }
8425
      throw new IllegalStateException();
8173
      throw new IllegalStateException();
8426
    }
8174
    }
8427
 
8175
 
Line 8430... Line 8178...
8430
      if (field == null) {
8178
      if (field == null) {
8431
        throw new IllegalArgumentException();
8179
        throw new IllegalArgumentException();
8432
      }
8180
      }
8433
 
8181
 
8434
      switch (field) {
8182
      switch (field) {
8435
      case MOBILE_NUMBER:
8183
      case EMAIL:
8436
        return isSetMobileNumber();
8184
        return isSetEmail();
8437
      }
8185
      }
8438
      throw new IllegalStateException();
8186
      throw new IllegalStateException();
8439
    }
8187
    }
8440
 
8188
 
8441
    @Override
8189
    @Override
8442
    public boolean equals(Object that) {
8190
    public boolean equals(Object that) {
8443
      if (that == null)
8191
      if (that == null)
8444
        return false;
8192
        return false;
8445
      if (that instanceof getUserByMobileNumber_args)
8193
      if (that instanceof getUserByEmail_args)
8446
        return this.equals((getUserByMobileNumber_args)that);
8194
        return this.equals((getUserByEmail_args)that);
8447
      return false;
8195
      return false;
8448
    }
8196
    }
8449
 
8197
 
8450
    public boolean equals(getUserByMobileNumber_args that) {
8198
    public boolean equals(getUserByEmail_args that) {
8451
      if (that == null)
8199
      if (that == null)
8452
        return false;
8200
        return false;
8453
 
8201
 
8454
      boolean this_present_mobileNumber = true;
8202
      boolean this_present_email = true && this.isSetEmail();
8455
      boolean that_present_mobileNumber = true;
8203
      boolean that_present_email = true && that.isSetEmail();
8456
      if (this_present_mobileNumber || that_present_mobileNumber) {
8204
      if (this_present_email || that_present_email) {
8457
        if (!(this_present_mobileNumber && that_present_mobileNumber))
8205
        if (!(this_present_email && that_present_email))
8458
          return false;
8206
          return false;
8459
        if (this.mobileNumber != that.mobileNumber)
8207
        if (!this.email.equals(that.email))
8460
          return false;
8208
          return false;
8461
      }
8209
      }
8462
 
8210
 
8463
      return true;
8211
      return true;
8464
    }
8212
    }
Line 8466... Line 8214...
8466
    @Override
8214
    @Override
8467
    public int hashCode() {
8215
    public int hashCode() {
8468
      return 0;
8216
      return 0;
8469
    }
8217
    }
8470
 
8218
 
8471
    public int compareTo(getUserByMobileNumber_args other) {
8219
    public int compareTo(getUserByEmail_args other) {
8472
      if (!getClass().equals(other.getClass())) {
8220
      if (!getClass().equals(other.getClass())) {
8473
        return getClass().getName().compareTo(other.getClass().getName());
8221
        return getClass().getName().compareTo(other.getClass().getName());
8474
      }
8222
      }
8475
 
8223
 
8476
      int lastComparison = 0;
8224
      int lastComparison = 0;
8477
      getUserByMobileNumber_args typedOther = (getUserByMobileNumber_args)other;
8225
      getUserByEmail_args typedOther = (getUserByEmail_args)other;
8478
 
8226
 
8479
      lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
8227
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
8480
      if (lastComparison != 0) {
8228
      if (lastComparison != 0) {
8481
        return lastComparison;
8229
        return lastComparison;
8482
      }
8230
      }
8483
      if (isSetMobileNumber()) {
8231
      if (isSetEmail()) {
8484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
8232
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
8485
        if (lastComparison != 0) {
8233
        if (lastComparison != 0) {
8486
          return lastComparison;
8234
          return lastComparison;
8487
        }
8235
        }
8488
      }
8236
      }
8489
      return 0;
8237
      return 0;
Line 8501... Line 8249...
8501
        field = iprot.readFieldBegin();
8249
        field = iprot.readFieldBegin();
8502
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8503
          break;
8251
          break;
8504
        }
8252
        }
8505
        switch (field.id) {
8253
        switch (field.id) {
8506
          case 1: // MOBILE_NUMBER
8254
          case 1: // EMAIL
8507
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8255
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8508
              this.mobileNumber = iprot.readI64();
8256
              this.email = iprot.readString();
8509
              setMobileNumberIsSet(true);
-
 
8510
            } else { 
8257
            } else { 
8511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8512
            }
8259
            }
8513
            break;
8260
            break;
8514
          default:
8261
          default:
Line 8522... Line 8269...
8522
 
8269
 
8523
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8524
      validate();
8271
      validate();
8525
 
8272
 
8526
      oprot.writeStructBegin(STRUCT_DESC);
8273
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8274
      if (this.email != null) {
8527
      oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
8275
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
8528
      oprot.writeI64(this.mobileNumber);
8276
        oprot.writeString(this.email);
8529
      oprot.writeFieldEnd();
8277
        oprot.writeFieldEnd();
-
 
8278
      }
8530
      oprot.writeFieldStop();
8279
      oprot.writeFieldStop();
8531
      oprot.writeStructEnd();
8280
      oprot.writeStructEnd();
8532
    }
8281
    }
8533
 
8282
 
8534
    @Override
8283
    @Override
8535
    public String toString() {
8284
    public String toString() {
8536
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_args(");
8285
      StringBuilder sb = new StringBuilder("getUserByEmail_args(");
8537
      boolean first = true;
8286
      boolean first = true;
8538
 
8287
 
8539
      sb.append("mobileNumber:");
8288
      sb.append("email:");
-
 
8289
      if (this.email == null) {
-
 
8290
        sb.append("null");
-
 
8291
      } else {
8540
      sb.append(this.mobileNumber);
8292
        sb.append(this.email);
-
 
8293
      }
8541
      first = false;
8294
      first = false;
8542
      sb.append(")");
8295
      sb.append(")");
8543
      return sb.toString();
8296
      return sb.toString();
8544
    }
8297
    }
8545
 
8298
 
Line 8555... Line 8308...
8555
      }
8308
      }
8556
    }
8309
    }
8557
 
8310
 
8558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8559
      try {
8312
      try {
8560
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8561
        __isset_bit_vector = new BitSet(1);
-
 
8562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8313
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8563
      } catch (org.apache.thrift.TException te) {
8314
      } catch (org.apache.thrift.TException te) {
8564
        throw new java.io.IOException(te);
8315
        throw new java.io.IOException(te);
8565
      }
8316
      }
8566
    }
8317
    }
8567
 
8318
 
8568
  }
8319
  }
8569
 
8320
 
8570
  public static class getUserByMobileNumber_result implements org.apache.thrift.TBase<getUserByMobileNumber_result, getUserByMobileNumber_result._Fields>, java.io.Serializable, Cloneable   {
8321
  public static class getUserByEmail_result implements org.apache.thrift.TBase<getUserByEmail_result, getUserByEmail_result._Fields>, java.io.Serializable, Cloneable   {
8571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_result");
8322
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByEmail_result");
8572
 
8323
 
8573
    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);
8324
    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);
8574
    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);
8325
    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);
8575
 
8326
 
8576
    private User success; // required
8327
    private User success; // required
Line 8645... Line 8396...
8645
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8396
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8646
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8397
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8647
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8398
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8399
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8400
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_result.class, metaDataMap);
8401
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByEmail_result.class, metaDataMap);
8651
    }
8402
    }
8652
 
8403
 
8653
    public getUserByMobileNumber_result() {
8404
    public getUserByEmail_result() {
8654
    }
8405
    }
8655
 
8406
 
8656
    public getUserByMobileNumber_result(
8407
    public getUserByEmail_result(
8657
      User success,
8408
      User success,
8658
      UserContextException ucex)
8409
      UserContextException ucex)
8659
    {
8410
    {
8660
      this();
8411
      this();
8661
      this.success = success;
8412
      this.success = success;
Line 8663... Line 8414...
8663
    }
8414
    }
8664
 
8415
 
8665
    /**
8416
    /**
8666
     * Performs a deep copy on <i>other</i>.
8417
     * Performs a deep copy on <i>other</i>.
8667
     */
8418
     */
8668
    public getUserByMobileNumber_result(getUserByMobileNumber_result other) {
8419
    public getUserByEmail_result(getUserByEmail_result other) {
8669
      if (other.isSetSuccess()) {
8420
      if (other.isSetSuccess()) {
8670
        this.success = new User(other.success);
8421
        this.success = new User(other.success);
8671
      }
8422
      }
8672
      if (other.isSetUcex()) {
8423
      if (other.isSetUcex()) {
8673
        this.ucex = new UserContextException(other.ucex);
8424
        this.ucex = new UserContextException(other.ucex);
8674
      }
8425
      }
8675
    }
8426
    }
8676
 
8427
 
8677
    public getUserByMobileNumber_result deepCopy() {
8428
    public getUserByEmail_result deepCopy() {
8678
      return new getUserByMobileNumber_result(this);
8429
      return new getUserByEmail_result(this);
8679
    }
8430
    }
8680
 
8431
 
8681
    @Override
8432
    @Override
8682
    public void clear() {
8433
    public void clear() {
8683
      this.success = null;
8434
      this.success = null;
Line 8780... Line 8531...
8780
 
8531
 
8781
    @Override
8532
    @Override
8782
    public boolean equals(Object that) {
8533
    public boolean equals(Object that) {
8783
      if (that == null)
8534
      if (that == null)
8784
        return false;
8535
        return false;
8785
      if (that instanceof getUserByMobileNumber_result)
8536
      if (that instanceof getUserByEmail_result)
8786
        return this.equals((getUserByMobileNumber_result)that);
8537
        return this.equals((getUserByEmail_result)that);
8787
      return false;
8538
      return false;
8788
    }
8539
    }
8789
 
8540
 
8790
    public boolean equals(getUserByMobileNumber_result that) {
8541
    public boolean equals(getUserByEmail_result that) {
8791
      if (that == null)
8542
      if (that == null)
8792
        return false;
8543
        return false;
8793
 
8544
 
8794
      boolean this_present_success = true && this.isSetSuccess();
8545
      boolean this_present_success = true && this.isSetSuccess();
8795
      boolean that_present_success = true && that.isSetSuccess();
8546
      boolean that_present_success = true && that.isSetSuccess();
Line 8815... Line 8566...
8815
    @Override
8566
    @Override
8816
    public int hashCode() {
8567
    public int hashCode() {
8817
      return 0;
8568
      return 0;
8818
    }
8569
    }
8819
 
8570
 
8820
    public int compareTo(getUserByMobileNumber_result other) {
8571
    public int compareTo(getUserByEmail_result other) {
8821
      if (!getClass().equals(other.getClass())) {
8572
      if (!getClass().equals(other.getClass())) {
8822
        return getClass().getName().compareTo(other.getClass().getName());
8573
        return getClass().getName().compareTo(other.getClass().getName());
8823
      }
8574
      }
8824
 
8575
 
8825
      int lastComparison = 0;
8576
      int lastComparison = 0;
8826
      getUserByMobileNumber_result typedOther = (getUserByMobileNumber_result)other;
8577
      getUserByEmail_result typedOther = (getUserByEmail_result)other;
8827
 
8578
 
8828
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8579
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8829
      if (lastComparison != 0) {
8580
      if (lastComparison != 0) {
8830
        return lastComparison;
8581
        return lastComparison;
8831
      }
8582
      }
Line 8903... Line 8654...
8903
      oprot.writeStructEnd();
8654
      oprot.writeStructEnd();
8904
    }
8655
    }
8905
 
8656
 
8906
    @Override
8657
    @Override
8907
    public String toString() {
8658
    public String toString() {
8908
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_result(");
8659
      StringBuilder sb = new StringBuilder("getUserByEmail_result(");
8909
      boolean first = true;
8660
      boolean first = true;
8910
 
8661
 
8911
      sb.append("success:");
8662
      sb.append("success:");
8912
      if (this.success == null) {
8663
      if (this.success == null) {
8913
        sb.append("null");
8664
        sb.append("null");
Line 8947... Line 8698...
8947
      }
8698
      }
8948
    }
8699
    }
8949
 
8700
 
8950
  }
8701
  }
8951
 
8702
 
8952
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
8703
  public static class getUserByMobileNumber_args implements org.apache.thrift.TBase<getUserByMobileNumber_args, getUserByMobileNumber_args._Fields>, java.io.Serializable, Cloneable   {
8953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
8704
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_args");
8954
 
8705
 
8955
    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8706
    private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.I64, (short)1);
8956
 
8707
 
8957
    private User user; // required
8708
    private long mobileNumber; // required
8958
 
8709
 
8959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8960
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8961
      USER((short)1, "user");
8712
      MOBILE_NUMBER((short)1, "mobileNumber");
8962
 
8713
 
8963
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8964
 
8715
 
8965
      static {
8716
      static {
8966
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 8971... Line 8722...
8971
      /**
8722
      /**
8972
       * Find the _Fields constant that matches fieldId, or null if its not found.
8723
       * Find the _Fields constant that matches fieldId, or null if its not found.
8973
       */
8724
       */
8974
      public static _Fields findByThriftId(int fieldId) {
8725
      public static _Fields findByThriftId(int fieldId) {
8975
        switch(fieldId) {
8726
        switch(fieldId) {
8976
          case 1: // USER
8727
          case 1: // MOBILE_NUMBER
8977
            return USER;
8728
            return MOBILE_NUMBER;
8978
          default:
8729
          default:
8979
            return null;
8730
            return null;
8980
        }
8731
        }
8981
      }
8732
      }
8982
 
8733
 
Line 9013... Line 8764...
9013
        return _fieldName;
8764
        return _fieldName;
9014
      }
8765
      }
9015
    }
8766
    }
9016
 
8767
 
9017
    // isset id assignments
8768
    // isset id assignments
-
 
8769
    private static final int __MOBILENUMBER_ISSET_ID = 0;
-
 
8770
    private BitSet __isset_bit_vector = new BitSet(1);
9018
 
8771
 
9019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9020
    static {
8773
    static {
9021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9022
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8775
      tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9023
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
8776
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9024
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8777
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9025
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
8778
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_args.class, metaDataMap);
9026
    }
8779
    }
9027
 
8780
 
9028
    public createUser_args() {
8781
    public getUserByMobileNumber_args() {
9029
    }
8782
    }
9030
 
8783
 
9031
    public createUser_args(
8784
    public getUserByMobileNumber_args(
9032
      User user)
8785
      long mobileNumber)
9033
    {
8786
    {
9034
      this();
8787
      this();
9035
      this.user = user;
8788
      this.mobileNumber = mobileNumber;
-
 
8789
      setMobileNumberIsSet(true);
9036
    }
8790
    }
9037
 
8791
 
9038
    /**
8792
    /**
9039
     * Performs a deep copy on <i>other</i>.
8793
     * Performs a deep copy on <i>other</i>.
9040
     */
8794
     */
9041
    public createUser_args(createUser_args other) {
8795
    public getUserByMobileNumber_args(getUserByMobileNumber_args other) {
9042
      if (other.isSetUser()) {
8796
      __isset_bit_vector.clear();
9043
        this.user = new User(other.user);
8797
      __isset_bit_vector.or(other.__isset_bit_vector);
9044
      }
8798
      this.mobileNumber = other.mobileNumber;
9045
    }
8799
    }
9046
 
8800
 
9047
    public createUser_args deepCopy() {
8801
    public getUserByMobileNumber_args deepCopy() {
9048
      return new createUser_args(this);
8802
      return new getUserByMobileNumber_args(this);
9049
    }
8803
    }
9050
 
8804
 
9051
    @Override
8805
    @Override
9052
    public void clear() {
8806
    public void clear() {
-
 
8807
      setMobileNumberIsSet(false);
9053
      this.user = null;
8808
      this.mobileNumber = 0;
9054
    }
8809
    }
9055
 
8810
 
9056
    public User getUser() {
8811
    public long getMobileNumber() {
9057
      return this.user;
8812
      return this.mobileNumber;
9058
    }
8813
    }
9059
 
8814
 
9060
    public void setUser(User user) {
8815
    public void setMobileNumber(long mobileNumber) {
9061
      this.user = user;
8816
      this.mobileNumber = mobileNumber;
-
 
8817
      setMobileNumberIsSet(true);
9062
    }
8818
    }
9063
 
8819
 
9064
    public void unsetUser() {
8820
    public void unsetMobileNumber() {
9065
      this.user = null;
8821
      __isset_bit_vector.clear(__MOBILENUMBER_ISSET_ID);
9066
    }
8822
    }
9067
 
8823
 
9068
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
8824
    /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
9069
    public boolean isSetUser() {
8825
    public boolean isSetMobileNumber() {
9070
      return this.user != null;
8826
      return __isset_bit_vector.get(__MOBILENUMBER_ISSET_ID);
9071
    }
8827
    }
9072
 
8828
 
9073
    public void setUserIsSet(boolean value) {
8829
    public void setMobileNumberIsSet(boolean value) {
9074
      if (!value) {
-
 
9075
        this.user = null;
8830
      __isset_bit_vector.set(__MOBILENUMBER_ISSET_ID, value);
9076
      }
-
 
9077
    }
8831
    }
9078
 
8832
 
9079
    public void setFieldValue(_Fields field, Object value) {
8833
    public void setFieldValue(_Fields field, Object value) {
9080
      switch (field) {
8834
      switch (field) {
9081
      case USER:
8835
      case MOBILE_NUMBER:
9082
        if (value == null) {
8836
        if (value == null) {
9083
          unsetUser();
8837
          unsetMobileNumber();
9084
        } else {
8838
        } else {
9085
          setUser((User)value);
8839
          setMobileNumber((Long)value);
9086
        }
8840
        }
9087
        break;
8841
        break;
9088
 
8842
 
9089
      }
8843
      }
9090
    }
8844
    }
9091
 
8845
 
9092
    public Object getFieldValue(_Fields field) {
8846
    public Object getFieldValue(_Fields field) {
9093
      switch (field) {
8847
      switch (field) {
9094
      case USER:
8848
      case MOBILE_NUMBER:
9095
        return getUser();
8849
        return Long.valueOf(getMobileNumber());
9096
 
8850
 
9097
      }
8851
      }
9098
      throw new IllegalStateException();
8852
      throw new IllegalStateException();
9099
    }
8853
    }
9100
 
8854
 
Line 9103... Line 8857...
9103
      if (field == null) {
8857
      if (field == null) {
9104
        throw new IllegalArgumentException();
8858
        throw new IllegalArgumentException();
9105
      }
8859
      }
9106
 
8860
 
9107
      switch (field) {
8861
      switch (field) {
9108
      case USER:
8862
      case MOBILE_NUMBER:
9109
        return isSetUser();
8863
        return isSetMobileNumber();
9110
      }
8864
      }
9111
      throw new IllegalStateException();
8865
      throw new IllegalStateException();
9112
    }
8866
    }
9113
 
8867
 
9114
    @Override
8868
    @Override
9115
    public boolean equals(Object that) {
8869
    public boolean equals(Object that) {
9116
      if (that == null)
8870
      if (that == null)
9117
        return false;
8871
        return false;
9118
      if (that instanceof createUser_args)
8872
      if (that instanceof getUserByMobileNumber_args)
9119
        return this.equals((createUser_args)that);
8873
        return this.equals((getUserByMobileNumber_args)that);
9120
      return false;
8874
      return false;
9121
    }
8875
    }
9122
 
8876
 
9123
    public boolean equals(createUser_args that) {
8877
    public boolean equals(getUserByMobileNumber_args that) {
9124
      if (that == null)
8878
      if (that == null)
9125
        return false;
8879
        return false;
9126
 
8880
 
9127
      boolean this_present_user = true && this.isSetUser();
8881
      boolean this_present_mobileNumber = true;
9128
      boolean that_present_user = true && that.isSetUser();
8882
      boolean that_present_mobileNumber = true;
9129
      if (this_present_user || that_present_user) {
8883
      if (this_present_mobileNumber || that_present_mobileNumber) {
9130
        if (!(this_present_user && that_present_user))
8884
        if (!(this_present_mobileNumber && that_present_mobileNumber))
9131
          return false;
8885
          return false;
9132
        if (!this.user.equals(that.user))
8886
        if (this.mobileNumber != that.mobileNumber)
9133
          return false;
8887
          return false;
9134
      }
8888
      }
9135
 
8889
 
9136
      return true;
8890
      return true;
9137
    }
8891
    }
Line 9139... Line 8893...
9139
    @Override
8893
    @Override
9140
    public int hashCode() {
8894
    public int hashCode() {
9141
      return 0;
8895
      return 0;
9142
    }
8896
    }
9143
 
8897
 
9144
    public int compareTo(createUser_args other) {
8898
    public int compareTo(getUserByMobileNumber_args other) {
9145
      if (!getClass().equals(other.getClass())) {
8899
      if (!getClass().equals(other.getClass())) {
9146
        return getClass().getName().compareTo(other.getClass().getName());
8900
        return getClass().getName().compareTo(other.getClass().getName());
9147
      }
8901
      }
9148
 
8902
 
9149
      int lastComparison = 0;
8903
      int lastComparison = 0;
9150
      createUser_args typedOther = (createUser_args)other;
8904
      getUserByMobileNumber_args typedOther = (getUserByMobileNumber_args)other;
9151
 
8905
 
9152
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
8906
      lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
9153
      if (lastComparison != 0) {
8907
      if (lastComparison != 0) {
9154
        return lastComparison;
8908
        return lastComparison;
9155
      }
8909
      }
9156
      if (isSetUser()) {
8910
      if (isSetMobileNumber()) {
9157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
8911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
9158
        if (lastComparison != 0) {
8912
        if (lastComparison != 0) {
9159
          return lastComparison;
8913
          return lastComparison;
9160
        }
8914
        }
9161
      }
8915
      }
9162
      return 0;
8916
      return 0;
Line 9174... Line 8928...
9174
        field = iprot.readFieldBegin();
8928
        field = iprot.readFieldBegin();
9175
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8929
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9176
          break;
8930
          break;
9177
        }
8931
        }
9178
        switch (field.id) {
8932
        switch (field.id) {
9179
          case 1: // USER
8933
          case 1: // MOBILE_NUMBER
9180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8934
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9181
              this.user = new User();
8935
              this.mobileNumber = iprot.readI64();
9182
              this.user.read(iprot);
8936
              setMobileNumberIsSet(true);
9183
            } else { 
8937
            } else { 
9184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9185
            }
8939
            }
9186
            break;
8940
            break;
9187
          default:
8941
          default:
Line 9195... Line 8949...
9195
 
8949
 
9196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9197
      validate();
8951
      validate();
9198
 
8952
 
9199
      oprot.writeStructBegin(STRUCT_DESC);
8953
      oprot.writeStructBegin(STRUCT_DESC);
9200
      if (this.user != null) {
-
 
9201
        oprot.writeFieldBegin(USER_FIELD_DESC);
8954
      oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
9202
        this.user.write(oprot);
8955
      oprot.writeI64(this.mobileNumber);
9203
        oprot.writeFieldEnd();
8956
      oprot.writeFieldEnd();
9204
      }
-
 
9205
      oprot.writeFieldStop();
8957
      oprot.writeFieldStop();
9206
      oprot.writeStructEnd();
8958
      oprot.writeStructEnd();
9207
    }
8959
    }
9208
 
8960
 
9209
    @Override
8961
    @Override
9210
    public String toString() {
8962
    public String toString() {
9211
      StringBuilder sb = new StringBuilder("createUser_args(");
8963
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_args(");
9212
      boolean first = true;
8964
      boolean first = true;
9213
 
8965
 
9214
      sb.append("user:");
8966
      sb.append("mobileNumber:");
9215
      if (this.user == null) {
-
 
9216
        sb.append("null");
-
 
9217
      } else {
-
 
9218
        sb.append(this.user);
8967
      sb.append(this.mobileNumber);
9219
      }
-
 
9220
      first = false;
8968
      first = false;
9221
      sb.append(")");
8969
      sb.append(")");
9222
      return sb.toString();
8970
      return sb.toString();
9223
    }
8971
    }
9224
 
8972
 
Line 9234... Line 8982...
9234
      }
8982
      }
9235
    }
8983
    }
9236
 
8984
 
9237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9238
      try {
8986
      try {
-
 
8987
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8988
        __isset_bit_vector = new BitSet(1);
9239
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9240
      } catch (org.apache.thrift.TException te) {
8990
      } catch (org.apache.thrift.TException te) {
9241
        throw new java.io.IOException(te);
8991
        throw new java.io.IOException(te);
9242
      }
8992
      }
9243
    }
8993
    }
9244
 
8994
 
9245
  }
8995
  }
9246
 
8996
 
9247
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
8997
  public static class getUserByMobileNumber_result implements org.apache.thrift.TBase<getUserByMobileNumber_result, getUserByMobileNumber_result._Fields>, java.io.Serializable, Cloneable   {
9248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
8998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserByMobileNumber_result");
9249
 
8999
 
9250
    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);
9000
    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);
9251
    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);
9001
    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);
9252
 
9002
 
9253
    private User success; // required
9003
    private User success; // required
Line 9322... Line 9072...
9322
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9072
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9323
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9073
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9324
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9074
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9326
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9076
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9327
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
9077
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserByMobileNumber_result.class, metaDataMap);
9328
    }
9078
    }
9329
 
9079
 
9330
    public createUser_result() {
9080
    public getUserByMobileNumber_result() {
9331
    }
9081
    }
9332
 
9082
 
9333
    public createUser_result(
9083
    public getUserByMobileNumber_result(
9334
      User success,
9084
      User success,
9335
      UserContextException ucex)
9085
      UserContextException ucex)
9336
    {
9086
    {
9337
      this();
9087
      this();
9338
      this.success = success;
9088
      this.success = success;
Line 9340... Line 9090...
9340
    }
9090
    }
9341
 
9091
 
9342
    /**
9092
    /**
9343
     * Performs a deep copy on <i>other</i>.
9093
     * Performs a deep copy on <i>other</i>.
9344
     */
9094
     */
9345
    public createUser_result(createUser_result other) {
9095
    public getUserByMobileNumber_result(getUserByMobileNumber_result other) {
9346
      if (other.isSetSuccess()) {
9096
      if (other.isSetSuccess()) {
9347
        this.success = new User(other.success);
9097
        this.success = new User(other.success);
9348
      }
9098
      }
9349
      if (other.isSetUcex()) {
9099
      if (other.isSetUcex()) {
9350
        this.ucex = new UserContextException(other.ucex);
9100
        this.ucex = new UserContextException(other.ucex);
9351
      }
9101
      }
9352
    }
9102
    }
9353
 
9103
 
9354
    public createUser_result deepCopy() {
9104
    public getUserByMobileNumber_result deepCopy() {
9355
      return new createUser_result(this);
9105
      return new getUserByMobileNumber_result(this);
9356
    }
9106
    }
9357
 
9107
 
9358
    @Override
9108
    @Override
9359
    public void clear() {
9109
    public void clear() {
9360
      this.success = null;
9110
      this.success = null;
Line 9457... Line 9207...
9457
 
9207
 
9458
    @Override
9208
    @Override
9459
    public boolean equals(Object that) {
9209
    public boolean equals(Object that) {
9460
      if (that == null)
9210
      if (that == null)
9461
        return false;
9211
        return false;
9462
      if (that instanceof createUser_result)
9212
      if (that instanceof getUserByMobileNumber_result)
9463
        return this.equals((createUser_result)that);
9213
        return this.equals((getUserByMobileNumber_result)that);
9464
      return false;
9214
      return false;
9465
    }
9215
    }
9466
 
9216
 
9467
    public boolean equals(createUser_result that) {
9217
    public boolean equals(getUserByMobileNumber_result that) {
9468
      if (that == null)
9218
      if (that == null)
9469
        return false;
9219
        return false;
9470
 
9220
 
9471
      boolean this_present_success = true && this.isSetSuccess();
9221
      boolean this_present_success = true && this.isSetSuccess();
9472
      boolean that_present_success = true && that.isSetSuccess();
9222
      boolean that_present_success = true && that.isSetSuccess();
Line 9492... Line 9242...
9492
    @Override
9242
    @Override
9493
    public int hashCode() {
9243
    public int hashCode() {
9494
      return 0;
9244
      return 0;
9495
    }
9245
    }
9496
 
9246
 
9497
    public int compareTo(createUser_result other) {
9247
    public int compareTo(getUserByMobileNumber_result other) {
9498
      if (!getClass().equals(other.getClass())) {
9248
      if (!getClass().equals(other.getClass())) {
9499
        return getClass().getName().compareTo(other.getClass().getName());
9249
        return getClass().getName().compareTo(other.getClass().getName());
9500
      }
9250
      }
9501
 
9251
 
9502
      int lastComparison = 0;
9252
      int lastComparison = 0;
9503
      createUser_result typedOther = (createUser_result)other;
9253
      getUserByMobileNumber_result typedOther = (getUserByMobileNumber_result)other;
9504
 
9254
 
9505
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9255
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9506
      if (lastComparison != 0) {
9256
      if (lastComparison != 0) {
9507
        return lastComparison;
9257
        return lastComparison;
9508
      }
9258
      }
Line 9580... Line 9330...
9580
      oprot.writeStructEnd();
9330
      oprot.writeStructEnd();
9581
    }
9331
    }
9582
 
9332
 
9583
    @Override
9333
    @Override
9584
    public String toString() {
9334
    public String toString() {
9585
      StringBuilder sb = new StringBuilder("createUser_result(");
9335
      StringBuilder sb = new StringBuilder("getUserByMobileNumber_result(");
9586
      boolean first = true;
9336
      boolean first = true;
9587
 
9337
 
9588
      sb.append("success:");
9338
      sb.append("success:");
9589
      if (this.success == null) {
9339
      if (this.success == null) {
9590
        sb.append("null");
9340
        sb.append("null");
Line 9624... Line 9374...
9624
      }
9374
      }
9625
    }
9375
    }
9626
 
9376
 
9627
  }
9377
  }
9628
 
9378
 
9629
  public static class updateUser_args implements org.apache.thrift.TBase<updateUser_args, updateUser_args._Fields>, java.io.Serializable, Cloneable   {
9379
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
9630
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_args");
9380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
9631
 
9381
 
9632
    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9382
    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9633
 
9383
 
9634
    private User user; // required
9384
    private User user; // required
9635
 
9385
 
Line 9697... Line 9447...
9697
    static {
9447
    static {
9698
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9699
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9449
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9700
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9450
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_args.class, metaDataMap);
9452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
9703
    }
9453
    }
9704
 
9454
 
9705
    public updateUser_args() {
9455
    public createUser_args() {
9706
    }
9456
    }
9707
 
9457
 
9708
    public updateUser_args(
9458
    public createUser_args(
9709
      User user)
9459
      User user)
9710
    {
9460
    {
9711
      this();
9461
      this();
9712
      this.user = user;
9462
      this.user = user;
9713
    }
9463
    }
9714
 
9464
 
9715
    /**
9465
    /**
9716
     * Performs a deep copy on <i>other</i>.
9466
     * Performs a deep copy on <i>other</i>.
9717
     */
9467
     */
9718
    public updateUser_args(updateUser_args other) {
9468
    public createUser_args(createUser_args other) {
9719
      if (other.isSetUser()) {
9469
      if (other.isSetUser()) {
9720
        this.user = new User(other.user);
9470
        this.user = new User(other.user);
9721
      }
9471
      }
9722
    }
9472
    }
9723
 
9473
 
9724
    public updateUser_args deepCopy() {
9474
    public createUser_args deepCopy() {
9725
      return new updateUser_args(this);
9475
      return new createUser_args(this);
9726
    }
9476
    }
9727
 
9477
 
9728
    @Override
9478
    @Override
9729
    public void clear() {
9479
    public void clear() {
9730
      this.user = null;
9480
      this.user = null;
Line 9790... Line 9540...
9790
 
9540
 
9791
    @Override
9541
    @Override
9792
    public boolean equals(Object that) {
9542
    public boolean equals(Object that) {
9793
      if (that == null)
9543
      if (that == null)
9794
        return false;
9544
        return false;
9795
      if (that instanceof updateUser_args)
9545
      if (that instanceof createUser_args)
9796
        return this.equals((updateUser_args)that);
9546
        return this.equals((createUser_args)that);
9797
      return false;
9547
      return false;
9798
    }
9548
    }
9799
 
9549
 
9800
    public boolean equals(updateUser_args that) {
9550
    public boolean equals(createUser_args that) {
9801
      if (that == null)
9551
      if (that == null)
9802
        return false;
9552
        return false;
9803
 
9553
 
9804
      boolean this_present_user = true && this.isSetUser();
9554
      boolean this_present_user = true && this.isSetUser();
9805
      boolean that_present_user = true && that.isSetUser();
9555
      boolean that_present_user = true && that.isSetUser();
Line 9816... Line 9566...
9816
    @Override
9566
    @Override
9817
    public int hashCode() {
9567
    public int hashCode() {
9818
      return 0;
9568
      return 0;
9819
    }
9569
    }
9820
 
9570
 
9821
    public int compareTo(updateUser_args other) {
9571
    public int compareTo(createUser_args other) {
9822
      if (!getClass().equals(other.getClass())) {
9572
      if (!getClass().equals(other.getClass())) {
9823
        return getClass().getName().compareTo(other.getClass().getName());
9573
        return getClass().getName().compareTo(other.getClass().getName());
9824
      }
9574
      }
9825
 
9575
 
9826
      int lastComparison = 0;
9576
      int lastComparison = 0;
9827
      updateUser_args typedOther = (updateUser_args)other;
9577
      createUser_args typedOther = (createUser_args)other;
9828
 
9578
 
9829
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
9579
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
9830
      if (lastComparison != 0) {
9580
      if (lastComparison != 0) {
9831
        return lastComparison;
9581
        return lastComparison;
9832
      }
9582
      }
Line 9883... Line 9633...
9883
      oprot.writeStructEnd();
9633
      oprot.writeStructEnd();
9884
    }
9634
    }
9885
 
9635
 
9886
    @Override
9636
    @Override
9887
    public String toString() {
9637
    public String toString() {
9888
      StringBuilder sb = new StringBuilder("updateUser_args(");
9638
      StringBuilder sb = new StringBuilder("createUser_args(");
9889
      boolean first = true;
9639
      boolean first = true;
9890
 
9640
 
9891
      sb.append("user:");
9641
      sb.append("user:");
9892
      if (this.user == null) {
9642
      if (this.user == null) {
9893
        sb.append("null");
9643
        sb.append("null");
Line 9919... Line 9669...
9919
      }
9669
      }
9920
    }
9670
    }
9921
 
9671
 
9922
  }
9672
  }
9923
 
9673
 
9924
  public static class updateUser_result implements org.apache.thrift.TBase<updateUser_result, updateUser_result._Fields>, java.io.Serializable, Cloneable   {
9674
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
9925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_result");
9675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
9926
 
9676
 
9927
    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);
9677
    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);
9928
    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);
9678
    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);
9929
 
9679
 
9930
    private User success; // required
9680
    private User success; // required
Line 9999... Line 9749...
9999
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9749
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10000
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
9750
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
10001
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9751
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9752
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9753
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_result.class, metaDataMap);
9754
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
10005
    }
9755
    }
10006
 
9756
 
10007
    public updateUser_result() {
9757
    public createUser_result() {
10008
    }
9758
    }
10009
 
9759
 
10010
    public updateUser_result(
9760
    public createUser_result(
10011
      User success,
9761
      User success,
10012
      UserContextException ucex)
9762
      UserContextException ucex)
10013
    {
9763
    {
10014
      this();
9764
      this();
10015
      this.success = success;
9765
      this.success = success;
Line 10017... Line 9767...
10017
    }
9767
    }
10018
 
9768
 
10019
    /**
9769
    /**
10020
     * Performs a deep copy on <i>other</i>.
9770
     * Performs a deep copy on <i>other</i>.
10021
     */
9771
     */
10022
    public updateUser_result(updateUser_result other) {
9772
    public createUser_result(createUser_result other) {
10023
      if (other.isSetSuccess()) {
9773
      if (other.isSetSuccess()) {
10024
        this.success = new User(other.success);
9774
        this.success = new User(other.success);
10025
      }
9775
      }
10026
      if (other.isSetUcex()) {
9776
      if (other.isSetUcex()) {
10027
        this.ucex = new UserContextException(other.ucex);
9777
        this.ucex = new UserContextException(other.ucex);
10028
      }
9778
      }
10029
    }
9779
    }
10030
 
9780
 
10031
    public updateUser_result deepCopy() {
9781
    public createUser_result deepCopy() {
10032
      return new updateUser_result(this);
9782
      return new createUser_result(this);
10033
    }
9783
    }
10034
 
9784
 
10035
    @Override
9785
    @Override
10036
    public void clear() {
9786
    public void clear() {
10037
      this.success = null;
9787
      this.success = null;
Line 10134... Line 9884...
10134
 
9884
 
10135
    @Override
9885
    @Override
10136
    public boolean equals(Object that) {
9886
    public boolean equals(Object that) {
10137
      if (that == null)
9887
      if (that == null)
10138
        return false;
9888
        return false;
10139
      if (that instanceof updateUser_result)
9889
      if (that instanceof createUser_result)
10140
        return this.equals((updateUser_result)that);
9890
        return this.equals((createUser_result)that);
10141
      return false;
9891
      return false;
10142
    }
9892
    }
10143
 
9893
 
10144
    public boolean equals(updateUser_result that) {
9894
    public boolean equals(createUser_result that) {
10145
      if (that == null)
9895
      if (that == null)
10146
        return false;
9896
        return false;
10147
 
9897
 
10148
      boolean this_present_success = true && this.isSetSuccess();
9898
      boolean this_present_success = true && this.isSetSuccess();
10149
      boolean that_present_success = true && that.isSetSuccess();
9899
      boolean that_present_success = true && that.isSetSuccess();
Line 10169... Line 9919...
10169
    @Override
9919
    @Override
10170
    public int hashCode() {
9920
    public int hashCode() {
10171
      return 0;
9921
      return 0;
10172
    }
9922
    }
10173
 
9923
 
10174
    public int compareTo(updateUser_result other) {
9924
    public int compareTo(createUser_result other) {
10175
      if (!getClass().equals(other.getClass())) {
9925
      if (!getClass().equals(other.getClass())) {
10176
        return getClass().getName().compareTo(other.getClass().getName());
9926
        return getClass().getName().compareTo(other.getClass().getName());
10177
      }
9927
      }
10178
 
9928
 
10179
      int lastComparison = 0;
9929
      int lastComparison = 0;
10180
      updateUser_result typedOther = (updateUser_result)other;
9930
      createUser_result typedOther = (createUser_result)other;
10181
 
9931
 
10182
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9932
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10183
      if (lastComparison != 0) {
9933
      if (lastComparison != 0) {
10184
        return lastComparison;
9934
        return lastComparison;
10185
      }
9935
      }
Line 10257... Line 10007...
10257
      oprot.writeStructEnd();
10007
      oprot.writeStructEnd();
10258
    }
10008
    }
10259
 
10009
 
10260
    @Override
10010
    @Override
10261
    public String toString() {
10011
    public String toString() {
10262
      StringBuilder sb = new StringBuilder("updateUser_result(");
10012
      StringBuilder sb = new StringBuilder("createUser_result(");
10263
      boolean first = true;
10013
      boolean first = true;
10264
 
10014
 
10265
      sb.append("success:");
10015
      sb.append("success:");
10266
      if (this.success == null) {
10016
      if (this.success == null) {
10267
        sb.append("null");
10017
        sb.append("null");
Line 10301... Line 10051...
10301
      }
10051
      }
10302
    }
10052
    }
10303
 
10053
 
10304
  }
10054
  }
10305
 
10055
 
10306
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10056
  public static class updateUser_args implements org.apache.thrift.TBase<updateUser_args, updateUser_args._Fields>, java.io.Serializable, Cloneable   {
10307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
10057
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_args");
10308
 
10058
 
10309
    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);
10059
    private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10310
 
10060
 
10311
    private long userId; // required
10061
    private User user; // required
10312
 
10062
 
10313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10315
      USER_ID((short)1, "userId");
10065
      USER((short)1, "user");
10316
 
10066
 
10317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10067
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10318
 
10068
 
10319
      static {
10069
      static {
10320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10070
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 10325... Line 10075...
10325
      /**
10075
      /**
10326
       * Find the _Fields constant that matches fieldId, or null if its not found.
10076
       * Find the _Fields constant that matches fieldId, or null if its not found.
10327
       */
10077
       */
10328
      public static _Fields findByThriftId(int fieldId) {
10078
      public static _Fields findByThriftId(int fieldId) {
10329
        switch(fieldId) {
10079
        switch(fieldId) {
10330
          case 1: // USER_ID
10080
          case 1: // USER
10331
            return USER_ID;
10081
            return USER;
10332
          default:
10082
          default:
10333
            return null;
10083
            return null;
10334
        }
10084
        }
10335
      }
10085
      }
10336
 
10086
 
Line 10367... Line 10117...
10367
        return _fieldName;
10117
        return _fieldName;
10368
      }
10118
      }
10369
    }
10119
    }
10370
 
10120
 
10371
    // isset id assignments
10121
    // isset id assignments
10372
    private static final int __USERID_ISSET_ID = 0;
-
 
10373
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10374
 
10122
 
10375
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10376
    static {
10124
    static {
10377
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10378
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10126
      tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10127
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
10380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10128
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
10129
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_args.class, metaDataMap);
10382
    }
10130
    }
10383
 
10131
 
10384
    public deleteUser_args() {
10132
    public updateUser_args() {
10385
    }
10133
    }
10386
 
10134
 
10387
    public deleteUser_args(
10135
    public updateUser_args(
10388
      long userId)
10136
      User user)
10389
    {
10137
    {
10390
      this();
10138
      this();
10391
      this.userId = userId;
10139
      this.user = user;
10392
      setUserIdIsSet(true);
-
 
10393
    }
10140
    }
10394
 
10141
 
10395
    /**
10142
    /**
10396
     * Performs a deep copy on <i>other</i>.
10143
     * Performs a deep copy on <i>other</i>.
10397
     */
10144
     */
10398
    public deleteUser_args(deleteUser_args other) {
10145
    public updateUser_args(updateUser_args other) {
10399
      __isset_bit_vector.clear();
10146
      if (other.isSetUser()) {
10400
      __isset_bit_vector.or(other.__isset_bit_vector);
10147
        this.user = new User(other.user);
10401
      this.userId = other.userId;
10148
      }
10402
    }
10149
    }
10403
 
10150
 
10404
    public deleteUser_args deepCopy() {
10151
    public updateUser_args deepCopy() {
10405
      return new deleteUser_args(this);
10152
      return new updateUser_args(this);
10406
    }
10153
    }
10407
 
10154
 
10408
    @Override
10155
    @Override
10409
    public void clear() {
10156
    public void clear() {
10410
      setUserIdIsSet(false);
-
 
10411
      this.userId = 0;
10157
      this.user = null;
10412
    }
10158
    }
10413
 
10159
 
10414
    public long getUserId() {
10160
    public User getUser() {
10415
      return this.userId;
10161
      return this.user;
10416
    }
10162
    }
10417
 
10163
 
10418
    public void setUserId(long userId) {
10164
    public void setUser(User user) {
10419
      this.userId = userId;
10165
      this.user = user;
10420
      setUserIdIsSet(true);
-
 
10421
    }
10166
    }
10422
 
10167
 
10423
    public void unsetUserId() {
10168
    public void unsetUser() {
10424
      __isset_bit_vector.clear(__USERID_ISSET_ID);
10169
      this.user = null;
10425
    }
10170
    }
10426
 
10171
 
10427
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
10172
    /** Returns true if field user is set (has been assigned a value) and false otherwise */
10428
    public boolean isSetUserId() {
10173
    public boolean isSetUser() {
10429
      return __isset_bit_vector.get(__USERID_ISSET_ID);
10174
      return this.user != null;
10430
    }
10175
    }
10431
 
10176
 
10432
    public void setUserIdIsSet(boolean value) {
10177
    public void setUserIsSet(boolean value) {
-
 
10178
      if (!value) {
10433
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
10179
        this.user = null;
-
 
10180
      }
10434
    }
10181
    }
10435
 
10182
 
10436
    public void setFieldValue(_Fields field, Object value) {
10183
    public void setFieldValue(_Fields field, Object value) {
10437
      switch (field) {
10184
      switch (field) {
10438
      case USER_ID:
10185
      case USER:
10439
        if (value == null) {
10186
        if (value == null) {
10440
          unsetUserId();
10187
          unsetUser();
10441
        } else {
10188
        } else {
10442
          setUserId((Long)value);
10189
          setUser((User)value);
10443
        }
10190
        }
10444
        break;
10191
        break;
10445
 
10192
 
10446
      }
10193
      }
10447
    }
10194
    }
10448
 
10195
 
10449
    public Object getFieldValue(_Fields field) {
10196
    public Object getFieldValue(_Fields field) {
10450
      switch (field) {
10197
      switch (field) {
10451
      case USER_ID:
10198
      case USER:
10452
        return Long.valueOf(getUserId());
10199
        return getUser();
10453
 
10200
 
10454
      }
10201
      }
10455
      throw new IllegalStateException();
10202
      throw new IllegalStateException();
10456
    }
10203
    }
10457
 
10204
 
Line 10460... Line 10207...
10460
      if (field == null) {
10207
      if (field == null) {
10461
        throw new IllegalArgumentException();
10208
        throw new IllegalArgumentException();
10462
      }
10209
      }
10463
 
10210
 
10464
      switch (field) {
10211
      switch (field) {
10465
      case USER_ID:
10212
      case USER:
10466
        return isSetUserId();
10213
        return isSetUser();
10467
      }
10214
      }
10468
      throw new IllegalStateException();
10215
      throw new IllegalStateException();
10469
    }
10216
    }
10470
 
10217
 
10471
    @Override
10218
    @Override
10472
    public boolean equals(Object that) {
10219
    public boolean equals(Object that) {
10473
      if (that == null)
10220
      if (that == null)
10474
        return false;
10221
        return false;
10475
      if (that instanceof deleteUser_args)
10222
      if (that instanceof updateUser_args)
10476
        return this.equals((deleteUser_args)that);
10223
        return this.equals((updateUser_args)that);
10477
      return false;
10224
      return false;
10478
    }
10225
    }
10479
 
10226
 
10480
    public boolean equals(deleteUser_args that) {
10227
    public boolean equals(updateUser_args that) {
10481
      if (that == null)
10228
      if (that == null)
10482
        return false;
10229
        return false;
10483
 
10230
 
10484
      boolean this_present_userId = true;
10231
      boolean this_present_user = true && this.isSetUser();
10485
      boolean that_present_userId = true;
10232
      boolean that_present_user = true && that.isSetUser();
10486
      if (this_present_userId || that_present_userId) {
10233
      if (this_present_user || that_present_user) {
10487
        if (!(this_present_userId && that_present_userId))
10234
        if (!(this_present_user && that_present_user))
10488
          return false;
10235
          return false;
10489
        if (this.userId != that.userId)
10236
        if (!this.user.equals(that.user))
10490
          return false;
10237
          return false;
10491
      }
10238
      }
10492
 
10239
 
10493
      return true;
10240
      return true;
10494
    }
10241
    }
Line 10496... Line 10243...
10496
    @Override
10243
    @Override
10497
    public int hashCode() {
10244
    public int hashCode() {
10498
      return 0;
10245
      return 0;
10499
    }
10246
    }
10500
 
10247
 
10501
    public int compareTo(deleteUser_args other) {
10248
    public int compareTo(updateUser_args other) {
10502
      if (!getClass().equals(other.getClass())) {
10249
      if (!getClass().equals(other.getClass())) {
10503
        return getClass().getName().compareTo(other.getClass().getName());
10250
        return getClass().getName().compareTo(other.getClass().getName());
10504
      }
10251
      }
10505
 
10252
 
10506
      int lastComparison = 0;
10253
      int lastComparison = 0;
10507
      deleteUser_args typedOther = (deleteUser_args)other;
10254
      updateUser_args typedOther = (updateUser_args)other;
10508
 
10255
 
10509
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
10256
      lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser());
10510
      if (lastComparison != 0) {
10257
      if (lastComparison != 0) {
10511
        return lastComparison;
10258
        return lastComparison;
10512
      }
10259
      }
10513
      if (isSetUserId()) {
10260
      if (isSetUser()) {
10514
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
10261
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user);
10515
        if (lastComparison != 0) {
10262
        if (lastComparison != 0) {
10516
          return lastComparison;
10263
          return lastComparison;
10517
        }
10264
        }
10518
      }
10265
      }
10519
      return 0;
10266
      return 0;
Line 10531... Line 10278...
10531
        field = iprot.readFieldBegin();
10278
        field = iprot.readFieldBegin();
10532
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10279
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10533
          break;
10280
          break;
10534
        }
10281
        }
10535
        switch (field.id) {
10282
        switch (field.id) {
10536
          case 1: // USER_ID
10283
          case 1: // USER
10537
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10284
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10538
              this.userId = iprot.readI64();
10285
              this.user = new User();
10539
              setUserIdIsSet(true);
10286
              this.user.read(iprot);
10540
            } else { 
10287
            } else { 
10541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10288
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10542
            }
10289
            }
10543
            break;
10290
            break;
10544
          default:
10291
          default:
Line 10552... Line 10299...
10552
 
10299
 
10553
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10300
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10554
      validate();
10301
      validate();
10555
 
10302
 
10556
      oprot.writeStructBegin(STRUCT_DESC);
10303
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10304
      if (this.user != null) {
10557
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
10305
        oprot.writeFieldBegin(USER_FIELD_DESC);
10558
      oprot.writeI64(this.userId);
10306
        this.user.write(oprot);
10559
      oprot.writeFieldEnd();
10307
        oprot.writeFieldEnd();
-
 
10308
      }
10560
      oprot.writeFieldStop();
10309
      oprot.writeFieldStop();
10561
      oprot.writeStructEnd();
10310
      oprot.writeStructEnd();
10562
    }
10311
    }
10563
 
10312
 
10564
    @Override
10313
    @Override
10565
    public String toString() {
10314
    public String toString() {
10566
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10315
      StringBuilder sb = new StringBuilder("updateUser_args(");
10567
      boolean first = true;
10316
      boolean first = true;
10568
 
10317
 
10569
      sb.append("userId:");
10318
      sb.append("user:");
-
 
10319
      if (this.user == null) {
-
 
10320
        sb.append("null");
-
 
10321
      } else {
10570
      sb.append(this.userId);
10322
        sb.append(this.user);
-
 
10323
      }
10571
      first = false;
10324
      first = false;
10572
      sb.append(")");
10325
      sb.append(")");
10573
      return sb.toString();
10326
      return sb.toString();
10574
    }
10327
    }
10575
 
10328
 
Line 10585... Line 10338...
10585
      }
10338
      }
10586
    }
10339
    }
10587
 
10340
 
10588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10341
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10589
      try {
10342
      try {
10590
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
10591
        __isset_bit_vector = new BitSet(1);
-
 
10592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10593
      } catch (org.apache.thrift.TException te) {
10344
      } catch (org.apache.thrift.TException te) {
10594
        throw new java.io.IOException(te);
10345
        throw new java.io.IOException(te);
10595
      }
10346
      }
10596
    }
10347
    }
10597
 
10348
 
10598
  }
10349
  }
10599
 
10350
 
10600
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10351
  public static class updateUser_result implements org.apache.thrift.TBase<updateUser_result, updateUser_result._Fields>, java.io.Serializable, Cloneable   {
10601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
10352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUser_result");
10602
 
10353
 
10603
    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);
10354
    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);
10604
    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);
10355
    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);
10605
 
10356
 
10606
    private boolean success; // required
10357
    private User success; // required
10607
    private UserContextException ucex; // required
10358
    private UserContextException ucex; // required
10608
 
10359
 
10609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10360
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10610
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10361
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10611
      SUCCESS((short)0, "success"),
10362
      SUCCESS((short)0, "success"),
Line 10666... Line 10417...
10666
        return _fieldName;
10417
        return _fieldName;
10667
      }
10418
      }
10668
    }
10419
    }
10669
 
10420
 
10670
    // isset id assignments
10421
    // isset id assignments
10671
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
10672
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10673
 
10422
 
10674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10675
    static {
10424
    static {
10676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10677
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10426
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10427
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class)));
10679
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10428
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10680
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10681
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10682
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
10431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUser_result.class, metaDataMap);
10683
    }
10432
    }
10684
 
10433
 
10685
    public deleteUser_result() {
10434
    public updateUser_result() {
10686
    }
10435
    }
10687
 
10436
 
10688
    public deleteUser_result(
10437
    public updateUser_result(
10689
      boolean success,
10438
      User success,
10690
      UserContextException ucex)
10439
      UserContextException ucex)
10691
    {
10440
    {
10692
      this();
10441
      this();
10693
      this.success = success;
10442
      this.success = success;
10694
      setSuccessIsSet(true);
-
 
10695
      this.ucex = ucex;
10443
      this.ucex = ucex;
10696
    }
10444
    }
10697
 
10445
 
10698
    /**
10446
    /**
10699
     * Performs a deep copy on <i>other</i>.
10447
     * Performs a deep copy on <i>other</i>.
10700
     */
10448
     */
10701
    public deleteUser_result(deleteUser_result other) {
10449
    public updateUser_result(updateUser_result other) {
10702
      __isset_bit_vector.clear();
10450
      if (other.isSetSuccess()) {
10703
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10704
      this.success = other.success;
10451
        this.success = new User(other.success);
-
 
10452
      }
10705
      if (other.isSetUcex()) {
10453
      if (other.isSetUcex()) {
10706
        this.ucex = new UserContextException(other.ucex);
10454
        this.ucex = new UserContextException(other.ucex);
10707
      }
10455
      }
10708
    }
10456
    }
10709
 
10457
 
10710
    public deleteUser_result deepCopy() {
10458
    public updateUser_result deepCopy() {
10711
      return new deleteUser_result(this);
10459
      return new updateUser_result(this);
10712
    }
10460
    }
10713
 
10461
 
10714
    @Override
10462
    @Override
10715
    public void clear() {
10463
    public void clear() {
10716
      setSuccessIsSet(false);
-
 
10717
      this.success = false;
10464
      this.success = null;
10718
      this.ucex = null;
10465
      this.ucex = null;
10719
    }
10466
    }
10720
 
10467
 
10721
    public boolean isSuccess() {
10468
    public User getSuccess() {
10722
      return this.success;
10469
      return this.success;
10723
    }
10470
    }
10724
 
10471
 
10725
    public void setSuccess(boolean success) {
10472
    public void setSuccess(User success) {
10726
      this.success = success;
10473
      this.success = success;
10727
      setSuccessIsSet(true);
-
 
10728
    }
10474
    }
10729
 
10475
 
10730
    public void unsetSuccess() {
10476
    public void unsetSuccess() {
10731
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10477
      this.success = null;
10732
    }
10478
    }
10733
 
10479
 
10734
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10480
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10735
    public boolean isSetSuccess() {
10481
    public boolean isSetSuccess() {
10736
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10482
      return this.success != null;
10737
    }
10483
    }
10738
 
10484
 
10739
    public void setSuccessIsSet(boolean value) {
10485
    public void setSuccessIsSet(boolean value) {
-
 
10486
      if (!value) {
10740
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10487
        this.success = null;
-
 
10488
      }
10741
    }
10489
    }
10742
 
10490
 
10743
    public UserContextException getUcex() {
10491
    public UserContextException getUcex() {
10744
      return this.ucex;
10492
      return this.ucex;
10745
    }
10493
    }
Line 10767... Line 10515...
10767
      switch (field) {
10515
      switch (field) {
10768
      case SUCCESS:
10516
      case SUCCESS:
10769
        if (value == null) {
10517
        if (value == null) {
10770
          unsetSuccess();
10518
          unsetSuccess();
10771
        } else {
10519
        } else {
10772
          setSuccess((Boolean)value);
10520
          setSuccess((User)value);
10773
        }
10521
        }
10774
        break;
10522
        break;
10775
 
10523
 
10776
      case UCEX:
10524
      case UCEX:
10777
        if (value == null) {
10525
        if (value == null) {
Line 10785... Line 10533...
10785
    }
10533
    }
10786
 
10534
 
10787
    public Object getFieldValue(_Fields field) {
10535
    public Object getFieldValue(_Fields field) {
10788
      switch (field) {
10536
      switch (field) {
10789
      case SUCCESS:
10537
      case SUCCESS:
10790
        return Boolean.valueOf(isSuccess());
10538
        return getSuccess();
10791
 
10539
 
10792
      case UCEX:
10540
      case UCEX:
10793
        return getUcex();
10541
        return getUcex();
10794
 
10542
 
10795
      }
10543
      }
Line 10813... Line 10561...
10813
 
10561
 
10814
    @Override
10562
    @Override
10815
    public boolean equals(Object that) {
10563
    public boolean equals(Object that) {
10816
      if (that == null)
10564
      if (that == null)
10817
        return false;
10565
        return false;
10818
      if (that instanceof deleteUser_result)
10566
      if (that instanceof updateUser_result)
10819
        return this.equals((deleteUser_result)that);
10567
        return this.equals((updateUser_result)that);
10820
      return false;
10568
      return false;
10821
    }
10569
    }
10822
 
10570
 
10823
    public boolean equals(deleteUser_result that) {
10571
    public boolean equals(updateUser_result that) {
10824
      if (that == null)
10572
      if (that == null)
10825
        return false;
10573
        return false;
10826
 
10574
 
10827
      boolean this_present_success = true;
10575
      boolean this_present_success = true && this.isSetSuccess();
10828
      boolean that_present_success = true;
10576
      boolean that_present_success = true && that.isSetSuccess();
10829
      if (this_present_success || that_present_success) {
10577
      if (this_present_success || that_present_success) {
10830
        if (!(this_present_success && that_present_success))
10578
        if (!(this_present_success && that_present_success))
10831
          return false;
10579
          return false;
10832
        if (this.success != that.success)
10580
        if (!this.success.equals(that.success))
10833
          return false;
10581
          return false;
10834
      }
10582
      }
10835
 
10583
 
10836
      boolean this_present_ucex = true && this.isSetUcex();
10584
      boolean this_present_ucex = true && this.isSetUcex();
10837
      boolean that_present_ucex = true && that.isSetUcex();
10585
      boolean that_present_ucex = true && that.isSetUcex();
Line 10848... Line 10596...
10848
    @Override
10596
    @Override
10849
    public int hashCode() {
10597
    public int hashCode() {
10850
      return 0;
10598
      return 0;
10851
    }
10599
    }
10852
 
10600
 
10853
    public int compareTo(deleteUser_result other) {
10601
    public int compareTo(updateUser_result other) {
10854
      if (!getClass().equals(other.getClass())) {
10602
      if (!getClass().equals(other.getClass())) {
10855
        return getClass().getName().compareTo(other.getClass().getName());
10603
        return getClass().getName().compareTo(other.getClass().getName());
10856
      }
10604
      }
10857
 
10605
 
10858
      int lastComparison = 0;
10606
      int lastComparison = 0;
10859
      deleteUser_result typedOther = (deleteUser_result)other;
10607
      updateUser_result typedOther = (updateUser_result)other;
10860
 
10608
 
10861
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10609
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10862
      if (lastComparison != 0) {
10610
      if (lastComparison != 0) {
10863
        return lastComparison;
10611
        return lastComparison;
10864
      }
10612
      }
Line 10894... Line 10642...
10894
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10642
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10895
          break;
10643
          break;
10896
        }
10644
        }
10897
        switch (field.id) {
10645
        switch (field.id) {
10898
          case 0: // SUCCESS
10646
          case 0: // SUCCESS
10899
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10647
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10900
              this.success = iprot.readBool();
10648
              this.success = new User();
10901
              setSuccessIsSet(true);
10649
              this.success.read(iprot);
10902
            } else { 
10650
            } else { 
10903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10904
            }
10652
            }
10905
            break;
10653
            break;
10906
          case 1: // UCEX
10654
          case 1: // UCEX
Line 10923... Line 10671...
10923
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10671
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10924
      oprot.writeStructBegin(STRUCT_DESC);
10672
      oprot.writeStructBegin(STRUCT_DESC);
10925
 
10673
 
10926
      if (this.isSetSuccess()) {
10674
      if (this.isSetSuccess()) {
10927
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10675
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10928
        oprot.writeBool(this.success);
10676
        this.success.write(oprot);
10929
        oprot.writeFieldEnd();
10677
        oprot.writeFieldEnd();
10930
      } else if (this.isSetUcex()) {
10678
      } else if (this.isSetUcex()) {
10931
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10679
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
10932
        this.ucex.write(oprot);
10680
        this.ucex.write(oprot);
10933
        oprot.writeFieldEnd();
10681
        oprot.writeFieldEnd();
Line 10936... Line 10684...
10936
      oprot.writeStructEnd();
10684
      oprot.writeStructEnd();
10937
    }
10685
    }
10938
 
10686
 
10939
    @Override
10687
    @Override
10940
    public String toString() {
10688
    public String toString() {
10941
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10689
      StringBuilder sb = new StringBuilder("updateUser_result(");
10942
      boolean first = true;
10690
      boolean first = true;
10943
 
10691
 
10944
      sb.append("success:");
10692
      sb.append("success:");
-
 
10693
      if (this.success == null) {
-
 
10694
        sb.append("null");
-
 
10695
      } else {
10945
      sb.append(this.success);
10696
        sb.append(this.success);
-
 
10697
      }
10946
      first = false;
10698
      first = false;
10947
      if (!first) sb.append(", ");
10699
      if (!first) sb.append(", ");
10948
      sb.append("ucex:");
10700
      sb.append("ucex:");
10949
      if (this.ucex == null) {
10701
      if (this.ucex == null) {
10950
        sb.append("null");
10702
        sb.append("null");
Line 10976... Line 10728...
10976
      }
10728
      }
10977
    }
10729
    }
10978
 
10730
 
10979
  }
10731
  }
10980
 
10732
 
10981
  public static class getUserState_args implements org.apache.thrift.TBase<getUserState_args, getUserState_args._Fields>, java.io.Serializable, Cloneable   {
10733
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10982
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_args");
10734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
10983
 
10735
 
10984
    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);
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);
10985
 
10737
 
10986
    private long userId; // required
10738
    private long userId; // required
10987
 
10739
 
Line 11051... Line 10803...
11051
    static {
10803
    static {
11052
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11053
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10805
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11054
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10806
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11055
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10807
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11056
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_args.class, metaDataMap);
10808
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
11057
    }
10809
    }
11058
 
10810
 
11059
    public getUserState_args() {
10811
    public deleteUser_args() {
11060
    }
10812
    }
11061
 
10813
 
11062
    public getUserState_args(
10814
    public deleteUser_args(
11063
      long userId)
10815
      long userId)
11064
    {
10816
    {
11065
      this();
10817
      this();
11066
      this.userId = userId;
10818
      this.userId = userId;
11067
      setUserIdIsSet(true);
10819
      setUserIdIsSet(true);
11068
    }
10820
    }
11069
 
10821
 
11070
    /**
10822
    /**
11071
     * Performs a deep copy on <i>other</i>.
10823
     * Performs a deep copy on <i>other</i>.
11072
     */
10824
     */
11073
    public getUserState_args(getUserState_args other) {
10825
    public deleteUser_args(deleteUser_args other) {
11074
      __isset_bit_vector.clear();
10826
      __isset_bit_vector.clear();
11075
      __isset_bit_vector.or(other.__isset_bit_vector);
10827
      __isset_bit_vector.or(other.__isset_bit_vector);
11076
      this.userId = other.userId;
10828
      this.userId = other.userId;
11077
    }
10829
    }
11078
 
10830
 
11079
    public getUserState_args deepCopy() {
10831
    public deleteUser_args deepCopy() {
11080
      return new getUserState_args(this);
10832
      return new deleteUser_args(this);
11081
    }
10833
    }
11082
 
10834
 
11083
    @Override
10835
    @Override
11084
    public void clear() {
10836
    public void clear() {
11085
      setUserIdIsSet(false);
10837
      setUserIdIsSet(false);
Line 11145... Line 10897...
11145
 
10897
 
11146
    @Override
10898
    @Override
11147
    public boolean equals(Object that) {
10899
    public boolean equals(Object that) {
11148
      if (that == null)
10900
      if (that == null)
11149
        return false;
10901
        return false;
11150
      if (that instanceof getUserState_args)
10902
      if (that instanceof deleteUser_args)
11151
        return this.equals((getUserState_args)that);
10903
        return this.equals((deleteUser_args)that);
11152
      return false;
10904
      return false;
11153
    }
10905
    }
11154
 
10906
 
11155
    public boolean equals(getUserState_args that) {
10907
    public boolean equals(deleteUser_args that) {
11156
      if (that == null)
10908
      if (that == null)
11157
        return false;
10909
        return false;
11158
 
10910
 
11159
      boolean this_present_userId = true;
10911
      boolean this_present_userId = true;
11160
      boolean that_present_userId = true;
10912
      boolean that_present_userId = true;
Line 11171... Line 10923...
11171
    @Override
10923
    @Override
11172
    public int hashCode() {
10924
    public int hashCode() {
11173
      return 0;
10925
      return 0;
11174
    }
10926
    }
11175
 
10927
 
11176
    public int compareTo(getUserState_args other) {
10928
    public int compareTo(deleteUser_args other) {
11177
      if (!getClass().equals(other.getClass())) {
10929
      if (!getClass().equals(other.getClass())) {
11178
        return getClass().getName().compareTo(other.getClass().getName());
10930
        return getClass().getName().compareTo(other.getClass().getName());
11179
      }
10931
      }
11180
 
10932
 
11181
      int lastComparison = 0;
10933
      int lastComparison = 0;
11182
      getUserState_args typedOther = (getUserState_args)other;
10934
      deleteUser_args typedOther = (deleteUser_args)other;
11183
 
10935
 
11184
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
10936
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
11185
      if (lastComparison != 0) {
10937
      if (lastComparison != 0) {
11186
        return lastComparison;
10938
        return lastComparison;
11187
      }
10939
      }
Line 11236... Line 10988...
11236
      oprot.writeStructEnd();
10988
      oprot.writeStructEnd();
11237
    }
10989
    }
11238
 
10990
 
11239
    @Override
10991
    @Override
11240
    public String toString() {
10992
    public String toString() {
11241
      StringBuilder sb = new StringBuilder("getUserState_args(");
10993
      StringBuilder sb = new StringBuilder("deleteUser_args(");
11242
      boolean first = true;
10994
      boolean first = true;
11243
 
10995
 
11244
      sb.append("userId:");
10996
      sb.append("userId:");
11245
      sb.append(this.userId);
10997
      sb.append(this.userId);
11246
      first = false;
10998
      first = false;
Line 11270... Line 11022...
11270
      }
11022
      }
11271
    }
11023
    }
11272
 
11024
 
11273
  }
11025
  }
11274
 
11026
 
11275
  public static class getUserState_result implements org.apache.thrift.TBase<getUserState_result, getUserState_result._Fields>, java.io.Serializable, Cloneable   {
11027
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
11276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserState_result");
11028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
11277
 
11029
 
11278
    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);
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);
11279
    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);
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);
11280
 
11032
 
11281
    private UserState success; // required
11033
    private boolean success; // required
11282
    private UserContextException ucex; // required
11034
    private UserContextException ucex; // required
11283
 
11035
 
11284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11036
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11037
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11286
      SUCCESS((short)0, "success"),
11038
      SUCCESS((short)0, "success"),
Line 11341... Line 11093...
11341
        return _fieldName;
11093
        return _fieldName;
11342
      }
11094
      }
11343
    }
11095
    }
11344
 
11096
 
11345
    // isset id assignments
11097
    // isset id assignments
-
 
11098
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
11099
    private BitSet __isset_bit_vector = new BitSet(1);
11346
 
11100
 
11347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11348
    static {
11102
    static {
11349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11350
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11104
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11351
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserState.class)));
11105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11352
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11106
      tmpMap.put(_Fields.UCEX, new org.apache.thrift.meta_data.FieldMetaData("ucex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserState_result.class, metaDataMap);
11109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
11356
    }
11110
    }
11357
 
11111
 
11358
    public getUserState_result() {
11112
    public deleteUser_result() {
11359
    }
11113
    }
11360
 
11114
 
11361
    public getUserState_result(
11115
    public deleteUser_result(
11362
      UserState success,
11116
      boolean success,
11363
      UserContextException ucex)
11117
      UserContextException ucex)
11364
    {
11118
    {
11365
      this();
11119
      this();
11366
      this.success = success;
11120
      this.success = success;
-
 
11121
      setSuccessIsSet(true);
11367
      this.ucex = ucex;
11122
      this.ucex = ucex;
11368
    }
11123
    }
11369
 
11124
 
11370
    /**
11125
    /**
11371
     * Performs a deep copy on <i>other</i>.
11126
     * Performs a deep copy on <i>other</i>.
11372
     */
11127
     */
11373
    public getUserState_result(getUserState_result other) {
11128
    public deleteUser_result(deleteUser_result other) {
11374
      if (other.isSetSuccess()) {
11129
      __isset_bit_vector.clear();
-
 
11130
      __isset_bit_vector.or(other.__isset_bit_vector);
11375
        this.success = new UserState(other.success);
11131
      this.success = other.success;
11376
      }
-
 
11377
      if (other.isSetUcex()) {
11132
      if (other.isSetUcex()) {
11378
        this.ucex = new UserContextException(other.ucex);
11133
        this.ucex = new UserContextException(other.ucex);
11379
      }
11134
      }
11380
    }
11135
    }
11381
 
11136
 
11382
    public getUserState_result deepCopy() {
11137
    public deleteUser_result deepCopy() {
11383
      return new getUserState_result(this);
11138
      return new deleteUser_result(this);
11384
    }
11139
    }
11385
 
11140
 
11386
    @Override
11141
    @Override
11387
    public void clear() {
11142
    public void clear() {
-
 
11143
      setSuccessIsSet(false);
11388
      this.success = null;
11144
      this.success = false;
11389
      this.ucex = null;
11145
      this.ucex = null;
11390
    }
11146
    }
11391
 
11147
 
11392
    public UserState getSuccess() {
11148
    public boolean isSuccess() {
11393
      return this.success;
11149
      return this.success;
11394
    }
11150
    }
11395
 
11151
 
11396
    public void setSuccess(UserState success) {
11152
    public void setSuccess(boolean success) {
11397
      this.success = success;
11153
      this.success = success;
-
 
11154
      setSuccessIsSet(true);
11398
    }
11155
    }
11399
 
11156
 
11400
    public void unsetSuccess() {
11157
    public void unsetSuccess() {
11401
      this.success = null;
11158
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11402
    }
11159
    }
11403
 
11160
 
11404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11161
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11405
    public boolean isSetSuccess() {
11162
    public boolean isSetSuccess() {
11406
      return this.success != null;
11163
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11407
    }
11164
    }
11408
 
11165
 
11409
    public void setSuccessIsSet(boolean value) {
11166
    public void setSuccessIsSet(boolean value) {
11410
      if (!value) {
-
 
11411
        this.success = null;
11167
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11412
      }
-
 
11413
    }
11168
    }
11414
 
11169
 
11415
    public UserContextException getUcex() {
11170
    public UserContextException getUcex() {
11416
      return this.ucex;
11171
      return this.ucex;
11417
    }
11172
    }
Line 11439... Line 11194...
11439
      switch (field) {
11194
      switch (field) {
11440
      case SUCCESS:
11195
      case SUCCESS:
11441
        if (value == null) {
11196
        if (value == null) {
11442
          unsetSuccess();
11197
          unsetSuccess();
11443
        } else {
11198
        } else {
11444
          setSuccess((UserState)value);
11199
          setSuccess((Boolean)value);
11445
        }
11200
        }
11446
        break;
11201
        break;
11447
 
11202
 
11448
      case UCEX:
11203
      case UCEX:
11449
        if (value == null) {
11204
        if (value == null) {
Line 11457... Line 11212...
11457
    }
11212
    }
11458
 
11213
 
11459
    public Object getFieldValue(_Fields field) {
11214
    public Object getFieldValue(_Fields field) {
11460
      switch (field) {
11215
      switch (field) {
11461
      case SUCCESS:
11216
      case SUCCESS:
11462
        return getSuccess();
11217
        return Boolean.valueOf(isSuccess());
11463
 
11218
 
11464
      case UCEX:
11219
      case UCEX:
11465
        return getUcex();
11220
        return getUcex();
11466
 
11221
 
11467
      }
11222
      }
Line 11485... Line 11240...
11485
 
11240
 
11486
    @Override
11241
    @Override
11487
    public boolean equals(Object that) {
11242
    public boolean equals(Object that) {
11488
      if (that == null)
11243
      if (that == null)
11489
        return false;
11244
        return false;
11490
      if (that instanceof getUserState_result)
11245
      if (that instanceof deleteUser_result)
11491
        return this.equals((getUserState_result)that);
11246
        return this.equals((deleteUser_result)that);
11492
      return false;
11247
      return false;
11493
    }
11248
    }
11494
 
11249
 
11495
    public boolean equals(getUserState_result that) {
11250
    public boolean equals(deleteUser_result that) {
11496
      if (that == null)
11251
      if (that == null)
11497
        return false;
11252
        return false;
11498
 
11253
 
11499
      boolean this_present_success = true && this.isSetSuccess();
11254
      boolean this_present_success = true;
11500
      boolean that_present_success = true && that.isSetSuccess();
11255
      boolean that_present_success = true;
11501
      if (this_present_success || that_present_success) {
11256
      if (this_present_success || that_present_success) {
11502
        if (!(this_present_success && that_present_success))
11257
        if (!(this_present_success && that_present_success))
11503
          return false;
11258
          return false;
11504
        if (!this.success.equals(that.success))
11259
        if (this.success != that.success)
11505
          return false;
11260
          return false;
11506
      }
11261
      }
11507
 
11262
 
11508
      boolean this_present_ucex = true && this.isSetUcex();
11263
      boolean this_present_ucex = true && this.isSetUcex();
11509
      boolean that_present_ucex = true && that.isSetUcex();
11264
      boolean that_present_ucex = true && that.isSetUcex();
Line 11520... Line 11275...
11520
    @Override
11275
    @Override
11521
    public int hashCode() {
11276
    public int hashCode() {
11522
      return 0;
11277
      return 0;
11523
    }
11278
    }
11524
 
11279
 
11525
    public int compareTo(getUserState_result other) {
11280
    public int compareTo(deleteUser_result other) {
11526
      if (!getClass().equals(other.getClass())) {
11281
      if (!getClass().equals(other.getClass())) {
11527
        return getClass().getName().compareTo(other.getClass().getName());
11282
        return getClass().getName().compareTo(other.getClass().getName());
11528
      }
11283
      }
11529
 
11284
 
11530
      int lastComparison = 0;
11285
      int lastComparison = 0;
11531
      getUserState_result typedOther = (getUserState_result)other;
11286
      deleteUser_result typedOther = (deleteUser_result)other;
11532
 
11287
 
11533
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11534
      if (lastComparison != 0) {
11289
      if (lastComparison != 0) {
11535
        return lastComparison;
11290
        return lastComparison;
11536
      }
11291
      }
Line 11566... Line 11321...
11566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11567
          break;
11322
          break;
11568
        }
11323
        }
11569
        switch (field.id) {
11324
        switch (field.id) {
11570
          case 0: // SUCCESS
11325
          case 0: // SUCCESS
11571
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11326
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11572
              this.success = new UserState();
11327
              this.success = iprot.readBool();
11573
              this.success.read(iprot);
11328
              setSuccessIsSet(true);
11574
            } else { 
11329
            } else { 
11575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11576
            }
11331
            }
11577
            break;
11332
            break;
11578
          case 1: // UCEX
11333
          case 1: // UCEX
Line 11595... Line 11350...
11595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11596
      oprot.writeStructBegin(STRUCT_DESC);
11351
      oprot.writeStructBegin(STRUCT_DESC);
11597
 
11352
 
11598
      if (this.isSetSuccess()) {
11353
      if (this.isSetSuccess()) {
11599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11354
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11600
        this.success.write(oprot);
11355
        oprot.writeBool(this.success);
11601
        oprot.writeFieldEnd();
11356
        oprot.writeFieldEnd();
11602
      } else if (this.isSetUcex()) {
11357
      } else if (this.isSetUcex()) {
11603
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
11358
        oprot.writeFieldBegin(UCEX_FIELD_DESC);
11604
        this.ucex.write(oprot);
11359
        this.ucex.write(oprot);
11605
        oprot.writeFieldEnd();
11360
        oprot.writeFieldEnd();
Line 11608... Line 11363...
11608
      oprot.writeStructEnd();
11363
      oprot.writeStructEnd();
11609
    }
11364
    }
11610
 
11365
 
11611
    @Override
11366
    @Override
11612
    public String toString() {
11367
    public String toString() {
11613
      StringBuilder sb = new StringBuilder("getUserState_result(");
11368
      StringBuilder sb = new StringBuilder("deleteUser_result(");
11614
      boolean first = true;
11369
      boolean first = true;
11615
 
11370
 
11616
      sb.append("success:");
11371
      sb.append("success:");
11617
      if (this.success == null) {
-
 
11618
        sb.append("null");
-
 
11619
      } else {
-
 
11620
        sb.append(this.success);
11372
      sb.append(this.success);
11621
      }
-
 
11622
      first = false;
11373
      first = false;
11623
      if (!first) sb.append(", ");
11374
      if (!first) sb.append(", ");
11624
      sb.append("ucex:");
11375
      sb.append("ucex:");
11625
      if (this.ucex == null) {
11376
      if (this.ucex == null) {
11626
        sb.append("null");
11377
        sb.append("null");
Line 19196... Line 18947...
19196
        }
18947
        }
19197
        switch (field.id) {
18948
        switch (field.id) {
19198
          case 0: // SUCCESS
18949
          case 0: // SUCCESS
19199
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18950
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19200
              {
18951
              {
19201
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
18952
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
19202
                this.success = new ArrayList<Address>(_list37.size);
18953
                this.success = new ArrayList<Address>(_list33.size);
19203
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
18954
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19204
                {
18955
                {
19205
                  Address _elem39; // required
18956
                  Address _elem35; // required
19206
                  _elem39 = new Address();
18957
                  _elem35 = new Address();
19207
                  _elem39.read(iprot);
18958
                  _elem35.read(iprot);
19208
                  this.success.add(_elem39);
18959
                  this.success.add(_elem35);
19209
                }
18960
                }
19210
                iprot.readListEnd();
18961
                iprot.readListEnd();
19211
              }
18962
              }
19212
            } else { 
18963
            } else { 
19213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 19235... Line 18986...
19235
 
18986
 
19236
      if (this.isSetSuccess()) {
18987
      if (this.isSetSuccess()) {
19237
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18988
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19238
        {
18989
        {
19239
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
18990
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19240
          for (Address _iter40 : this.success)
18991
          for (Address _iter36 : this.success)
19241
          {
18992
          {
19242
            _iter40.write(oprot);
18993
            _iter36.write(oprot);
19243
          }
18994
          }
19244
          oprot.writeListEnd();
18995
          oprot.writeListEnd();
19245
        }
18996
        }
19246
        oprot.writeFieldEnd();
18997
        oprot.writeFieldEnd();
19247
      } else if (this.isSetUcx()) {
18998
      } else if (this.isSetUcx()) {
Line 23892... Line 23643...
23892
        }
23643
        }
23893
        switch (field.id) {
23644
        switch (field.id) {
23894
          case 0: // SUCCESS
23645
          case 0: // SUCCESS
23895
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23646
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23896
              {
23647
              {
23897
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
23648
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
23898
                this.success = new ArrayList<UserCommunication>(_list41.size);
23649
                this.success = new ArrayList<UserCommunication>(_list37.size);
23899
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
23650
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
23900
                {
23651
                {
23901
                  UserCommunication _elem43; // required
23652
                  UserCommunication _elem39; // required
23902
                  _elem43 = new UserCommunication();
23653
                  _elem39 = new UserCommunication();
23903
                  _elem43.read(iprot);
23654
                  _elem39.read(iprot);
23904
                  this.success.add(_elem43);
23655
                  this.success.add(_elem39);
23905
                }
23656
                }
23906
                iprot.readListEnd();
23657
                iprot.readListEnd();
23907
              }
23658
              }
23908
            } else { 
23659
            } else { 
23909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 23931... Line 23682...
23931
 
23682
 
23932
      if (this.isSetSuccess()) {
23683
      if (this.isSetSuccess()) {
23933
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23684
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23934
        {
23685
        {
23935
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23686
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23936
          for (UserCommunication _iter44 : this.success)
23687
          for (UserCommunication _iter40 : this.success)
23937
          {
23688
          {
23938
            _iter44.write(oprot);
23689
            _iter40.write(oprot);
23939
          }
23690
          }
23940
          oprot.writeListEnd();
23691
          oprot.writeListEnd();
23941
        }
23692
        }
23942
        oprot.writeFieldEnd();
23693
        oprot.writeFieldEnd();
23943
      } else if (this.isSetUcx()) {
23694
      } else if (this.isSetUcx()) {
Line 24511... Line 24262...
24511
        }
24262
        }
24512
        switch (field.id) {
24263
        switch (field.id) {
24513
          case 0: // SUCCESS
24264
          case 0: // SUCCESS
24514
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24265
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24515
              {
24266
              {
24516
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
24267
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
24517
                this.success = new ArrayList<UserCommunication>(_list45.size);
24268
                this.success = new ArrayList<UserCommunication>(_list41.size);
24518
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
24269
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
24519
                {
24270
                {
24520
                  UserCommunication _elem47; // required
24271
                  UserCommunication _elem43; // required
24521
                  _elem47 = new UserCommunication();
24272
                  _elem43 = new UserCommunication();
24522
                  _elem47.read(iprot);
24273
                  _elem43.read(iprot);
24523
                  this.success.add(_elem47);
24274
                  this.success.add(_elem43);
24524
                }
24275
                }
24525
                iprot.readListEnd();
24276
                iprot.readListEnd();
24526
              }
24277
              }
24527
            } else { 
24278
            } else { 
24528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 24550... Line 24301...
24550
 
24301
 
24551
      if (this.isSetSuccess()) {
24302
      if (this.isSetSuccess()) {
24552
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24303
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24553
        {
24304
        {
24554
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24305
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24555
          for (UserCommunication _iter48 : this.success)
24306
          for (UserCommunication _iter44 : this.success)
24556
          {
24307
          {
24557
            _iter48.write(oprot);
24308
            _iter44.write(oprot);
24558
          }
24309
          }
24559
          oprot.writeListEnd();
24310
          oprot.writeListEnd();
24560
        }
24311
        }
24561
        oprot.writeFieldEnd();
24312
        oprot.writeFieldEnd();
24562
      } else if (this.isSetUcx()) {
24313
      } else if (this.isSetUcx()) {
Line 25894... Line 25645...
25894
        }
25645
        }
25895
        switch (field.id) {
25646
        switch (field.id) {
25896
          case 0: // SUCCESS
25647
          case 0: // SUCCESS
25897
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25648
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25898
              {
25649
              {
25899
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
25650
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
25900
                this.success = new ArrayList<MasterAffiliate>(_list49.size);
25651
                this.success = new ArrayList<MasterAffiliate>(_list45.size);
25901
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
25652
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
25902
                {
25653
                {
25903
                  MasterAffiliate _elem51; // required
25654
                  MasterAffiliate _elem47; // required
25904
                  _elem51 = new MasterAffiliate();
25655
                  _elem47 = new MasterAffiliate();
25905
                  _elem51.read(iprot);
25656
                  _elem47.read(iprot);
25906
                  this.success.add(_elem51);
25657
                  this.success.add(_elem47);
25907
                }
25658
                }
25908
                iprot.readListEnd();
25659
                iprot.readListEnd();
25909
              }
25660
              }
25910
            } else { 
25661
            } else { 
25911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 25933... Line 25684...
25933
 
25684
 
25934
      if (this.isSetSuccess()) {
25685
      if (this.isSetSuccess()) {
25935
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25686
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25936
        {
25687
        {
25937
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25688
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25938
          for (MasterAffiliate _iter52 : this.success)
25689
          for (MasterAffiliate _iter48 : this.success)
25939
          {
25690
          {
25940
            _iter52.write(oprot);
25691
            _iter48.write(oprot);
25941
          }
25692
          }
25942
          oprot.writeListEnd();
25693
          oprot.writeListEnd();
25943
        }
25694
        }
25944
        oprot.writeFieldEnd();
25695
        oprot.writeFieldEnd();
25945
      } else if (this.isSetUtx()) {
25696
      } else if (this.isSetUtx()) {
Line 30922... Line 30673...
30922
        }
30673
        }
30923
        switch (field.id) {
30674
        switch (field.id) {
30924
          case 0: // SUCCESS
30675
          case 0: // SUCCESS
30925
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30676
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30926
              {
30677
              {
30927
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
30678
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
30928
                this.success = new ArrayList<Affiliate>(_list53.size);
30679
                this.success = new ArrayList<Affiliate>(_list49.size);
30929
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
30680
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
30930
                {
30681
                {
30931
                  Affiliate _elem55; // required
30682
                  Affiliate _elem51; // required
30932
                  _elem55 = new Affiliate();
30683
                  _elem51 = new Affiliate();
30933
                  _elem55.read(iprot);
30684
                  _elem51.read(iprot);
30934
                  this.success.add(_elem55);
30685
                  this.success.add(_elem51);
30935
                }
30686
                }
30936
                iprot.readListEnd();
30687
                iprot.readListEnd();
30937
              }
30688
              }
30938
            } else { 
30689
            } else { 
30939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30690
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 30961... Line 30712...
30961
 
30712
 
30962
      if (this.isSetSuccess()) {
30713
      if (this.isSetSuccess()) {
30963
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30714
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30964
        {
30715
        {
30965
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30716
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30966
          for (Affiliate _iter56 : this.success)
30717
          for (Affiliate _iter52 : this.success)
30967
          {
30718
          {
30968
            _iter56.write(oprot);
30719
            _iter52.write(oprot);
30969
          }
30720
          }
30970
          oprot.writeListEnd();
30721
          oprot.writeListEnd();
30971
        }
30722
        }
30972
        oprot.writeFieldEnd();
30723
        oprot.writeFieldEnd();
30973
      } else if (this.isSetUtx()) {
30724
      } else if (this.isSetUtx()) {
Line 33594... Line 33345...
33594
        }
33345
        }
33595
        switch (field.id) {
33346
        switch (field.id) {
33596
          case 0: // SUCCESS
33347
          case 0: // SUCCESS
33597
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33348
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33598
              {
33349
              {
33599
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
33350
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
33600
                this.success = new ArrayList<TrackLog>(_list57.size);
33351
                this.success = new ArrayList<TrackLog>(_list53.size);
33601
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
33352
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
33602
                {
33353
                {
33603
                  TrackLog _elem59; // required
33354
                  TrackLog _elem55; // required
33604
                  _elem59 = new TrackLog();
33355
                  _elem55 = new TrackLog();
33605
                  _elem59.read(iprot);
33356
                  _elem55.read(iprot);
33606
                  this.success.add(_elem59);
33357
                  this.success.add(_elem55);
33607
                }
33358
                }
33608
                iprot.readListEnd();
33359
                iprot.readListEnd();
33609
              }
33360
              }
33610
            } else { 
33361
            } else { 
33611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 33633... Line 33384...
33633
 
33384
 
33634
      if (this.isSetSuccess()) {
33385
      if (this.isSetSuccess()) {
33635
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33386
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33636
        {
33387
        {
33637
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33388
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
33638
          for (TrackLog _iter60 : this.success)
33389
          for (TrackLog _iter56 : this.success)
33639
          {
33390
          {
33640
            _iter60.write(oprot);
33391
            _iter56.write(oprot);
33641
          }
33392
          }
33642
          oprot.writeListEnd();
33393
          oprot.writeListEnd();
33643
        }
33394
        }
33644
        oprot.writeFieldEnd();
33395
        oprot.writeFieldEnd();
33645
      } else if (this.isSetUtx()) {
33396
      } else if (this.isSetUtx()) {
Line 34307... Line 34058...
34307
        }
34058
        }
34308
        switch (field.id) {
34059
        switch (field.id) {
34309
          case 0: // SUCCESS
34060
          case 0: // SUCCESS
34310
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34061
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34311
              {
34062
              {
34312
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
34063
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
34313
                this.success = new ArrayList<TrackLog>(_list61.size);
34064
                this.success = new ArrayList<TrackLog>(_list57.size);
34314
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
34065
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
34315
                {
34066
                {
34316
                  TrackLog _elem63; // required
34067
                  TrackLog _elem59; // required
34317
                  _elem63 = new TrackLog();
34068
                  _elem59 = new TrackLog();
34318
                  _elem63.read(iprot);
34069
                  _elem59.read(iprot);
34319
                  this.success.add(_elem63);
34070
                  this.success.add(_elem59);
34320
                }
34071
                }
34321
                iprot.readListEnd();
34072
                iprot.readListEnd();
34322
              }
34073
              }
34323
            } else { 
34074
            } else { 
34324
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 34346... Line 34097...
34346
 
34097
 
34347
      if (this.isSetSuccess()) {
34098
      if (this.isSetSuccess()) {
34348
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34099
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34349
        {
34100
        {
34350
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34101
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34351
          for (TrackLog _iter64 : this.success)
34102
          for (TrackLog _iter60 : this.success)
34352
          {
34103
          {
34353
            _iter64.write(oprot);
34104
            _iter60.write(oprot);
34354
          }
34105
          }
34355
          oprot.writeListEnd();
34106
          oprot.writeListEnd();
34356
        }
34107
        }
34357
        oprot.writeFieldEnd();
34108
        oprot.writeFieldEnd();
34358
      } else if (this.isSetUtx()) {
34109
      } else if (this.isSetUtx()) {
Line 35196... Line 34947...
35196
        }
34947
        }
35197
        switch (field.id) {
34948
        switch (field.id) {
35198
          case 0: // SUCCESS
34949
          case 0: // SUCCESS
35199
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34950
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35200
              {
34951
              {
35201
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
34952
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
35202
                this.success = new ArrayList<TrackLog>(_list65.size);
34953
                this.success = new ArrayList<TrackLog>(_list61.size);
35203
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
34954
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
35204
                {
34955
                {
35205
                  TrackLog _elem67; // required
34956
                  TrackLog _elem63; // required
35206
                  _elem67 = new TrackLog();
34957
                  _elem63 = new TrackLog();
35207
                  _elem67.read(iprot);
34958
                  _elem63.read(iprot);
35208
                  this.success.add(_elem67);
34959
                  this.success.add(_elem63);
35209
                }
34960
                }
35210
                iprot.readListEnd();
34961
                iprot.readListEnd();
35211
              }
34962
              }
35212
            } else { 
34963
            } else { 
35213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 35235... Line 34986...
35235
 
34986
 
35236
      if (this.isSetSuccess()) {
34987
      if (this.isSetSuccess()) {
35237
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34988
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35238
        {
34989
        {
35239
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
34990
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
35240
          for (TrackLog _iter68 : this.success)
34991
          for (TrackLog _iter64 : this.success)
35241
          {
34992
          {
35242
            _iter68.write(oprot);
34993
            _iter64.write(oprot);
35243
          }
34994
          }
35244
          oprot.writeListEnd();
34995
          oprot.writeListEnd();
35245
        }
34996
        }
35246
        oprot.writeFieldEnd();
34997
        oprot.writeFieldEnd();
35247
      } else if (this.isSetUtx()) {
34998
      } else if (this.isSetUtx()) {
Line 37324... Line 37075...
37324
      }
37075
      }
37325
    }
37076
    }
37326
 
37077
 
37327
  }
37078
  }
37328
 
37079
 
37329
  public static class getCartsForUser_args implements org.apache.thrift.TBase<getCartsForUser_args, getCartsForUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
37330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_args");
-
 
37331
 
-
 
37332
    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);
-
 
37333
    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)2);
-
 
37334
 
-
 
37335
    private long userId; // required
-
 
37336
    private CartStatus status; // required
-
 
37337
 
-
 
37338
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
37339
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
37340
      USER_ID((short)1, "userId"),
-
 
37341
      /**
-
 
37342
       * 
-
 
37343
       * @see CartStatus
-
 
37344
       */
-
 
37345
      STATUS((short)2, "status");
-
 
37346
 
-
 
37347
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
37348
 
-
 
37349
      static {
-
 
37350
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
37351
          byName.put(field.getFieldName(), field);
-
 
37352
        }
-
 
37353
      }
-
 
37354
 
-
 
37355
      /**
-
 
37356
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
37357
       */
-
 
37358
      public static _Fields findByThriftId(int fieldId) {
-
 
37359
        switch(fieldId) {
-
 
37360
          case 1: // USER_ID
-
 
37361
            return USER_ID;
-
 
37362
          case 2: // STATUS
-
 
37363
            return STATUS;
-
 
37364
          default:
-
 
37365
            return null;
-
 
37366
        }
-
 
37367
      }
-
 
37368
 
-
 
37369
      /**
-
 
37370
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
37371
       * if it is not found.
-
 
37372
       */
-
 
37373
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
37374
        _Fields fields = findByThriftId(fieldId);
-
 
37375
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
37376
        return fields;
-
 
37377
      }
-
 
37378
 
-
 
37379
      /**
-
 
37380
       * Find the _Fields constant that matches name, or null if its not found.
-
 
37381
       */
-
 
37382
      public static _Fields findByName(String name) {
-
 
37383
        return byName.get(name);
-
 
37384
      }
-
 
37385
 
-
 
37386
      private final short _thriftId;
-
 
37387
      private final String _fieldName;
-
 
37388
 
-
 
37389
      _Fields(short thriftId, String fieldName) {
-
 
37390
        _thriftId = thriftId;
-
 
37391
        _fieldName = fieldName;
-
 
37392
      }
-
 
37393
 
-
 
37394
      public short getThriftFieldId() {
-
 
37395
        return _thriftId;
-
 
37396
      }
-
 
37397
 
-
 
37398
      public String getFieldName() {
-
 
37399
        return _fieldName;
-
 
37400
      }
-
 
37401
    }
-
 
37402
 
-
 
37403
    // isset id assignments
-
 
37404
    private static final int __USERID_ISSET_ID = 0;
-
 
37405
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
37406
 
-
 
37407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
37408
    static {
-
 
37409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
37410
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
37412
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37413
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
-
 
37414
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
37415
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_args.class, metaDataMap);
-
 
37416
    }
-
 
37417
 
-
 
37418
    public getCartsForUser_args() {
-
 
37419
    }
-
 
37420
 
-
 
37421
    public getCartsForUser_args(
-
 
37422
      long userId,
-
 
37423
      CartStatus status)
-
 
37424
    {
-
 
37425
      this();
-
 
37426
      this.userId = userId;
-
 
37427
      setUserIdIsSet(true);
-
 
37428
      this.status = status;
-
 
37429
    }
-
 
37430
 
-
 
37431
    /**
-
 
37432
     * Performs a deep copy on <i>other</i>.
-
 
37433
     */
-
 
37434
    public getCartsForUser_args(getCartsForUser_args other) {
-
 
37435
      __isset_bit_vector.clear();
-
 
37436
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
37437
      this.userId = other.userId;
-
 
37438
      if (other.isSetStatus()) {
-
 
37439
        this.status = other.status;
-
 
37440
      }
-
 
37441
    }
-
 
37442
 
-
 
37443
    public getCartsForUser_args deepCopy() {
-
 
37444
      return new getCartsForUser_args(this);
-
 
37445
    }
-
 
37446
 
-
 
37447
    @Override
-
 
37448
    public void clear() {
-
 
37449
      setUserIdIsSet(false);
-
 
37450
      this.userId = 0;
-
 
37451
      this.status = null;
-
 
37452
    }
-
 
37453
 
-
 
37454
    public long getUserId() {
-
 
37455
      return this.userId;
-
 
37456
    }
-
 
37457
 
-
 
37458
    public void setUserId(long userId) {
-
 
37459
      this.userId = userId;
-
 
37460
      setUserIdIsSet(true);
-
 
37461
    }
-
 
37462
 
-
 
37463
    public void unsetUserId() {
-
 
37464
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
37465
    }
-
 
37466
 
-
 
37467
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
37468
    public boolean isSetUserId() {
-
 
37469
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
37470
    }
-
 
37471
 
-
 
37472
    public void setUserIdIsSet(boolean value) {
-
 
37473
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
37474
    }
-
 
37475
 
-
 
37476
    /**
-
 
37477
     * 
-
 
37478
     * @see CartStatus
-
 
37479
     */
-
 
37480
    public CartStatus getStatus() {
-
 
37481
      return this.status;
-
 
37482
    }
-
 
37483
 
-
 
37484
    /**
-
 
37485
     * 
-
 
37486
     * @see CartStatus
-
 
37487
     */
-
 
37488
    public void setStatus(CartStatus status) {
-
 
37489
      this.status = status;
-
 
37490
    }
-
 
37491
 
-
 
37492
    public void unsetStatus() {
-
 
37493
      this.status = null;
-
 
37494
    }
-
 
37495
 
-
 
37496
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
37497
    public boolean isSetStatus() {
-
 
37498
      return this.status != null;
-
 
37499
    }
-
 
37500
 
-
 
37501
    public void setStatusIsSet(boolean value) {
-
 
37502
      if (!value) {
-
 
37503
        this.status = null;
-
 
37504
      }
-
 
37505
    }
-
 
37506
 
-
 
37507
    public void setFieldValue(_Fields field, Object value) {
-
 
37508
      switch (field) {
-
 
37509
      case USER_ID:
-
 
37510
        if (value == null) {
-
 
37511
          unsetUserId();
-
 
37512
        } else {
-
 
37513
          setUserId((Long)value);
-
 
37514
        }
-
 
37515
        break;
-
 
37516
 
-
 
37517
      case STATUS:
-
 
37518
        if (value == null) {
-
 
37519
          unsetStatus();
-
 
37520
        } else {
-
 
37521
          setStatus((CartStatus)value);
-
 
37522
        }
-
 
37523
        break;
-
 
37524
 
-
 
37525
      }
-
 
37526
    }
-
 
37527
 
-
 
37528
    public Object getFieldValue(_Fields field) {
-
 
37529
      switch (field) {
-
 
37530
      case USER_ID:
-
 
37531
        return Long.valueOf(getUserId());
-
 
37532
 
-
 
37533
      case STATUS:
-
 
37534
        return getStatus();
-
 
37535
 
-
 
37536
      }
-
 
37537
      throw new IllegalStateException();
-
 
37538
    }
-
 
37539
 
-
 
37540
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
37541
    public boolean isSet(_Fields field) {
-
 
37542
      if (field == null) {
-
 
37543
        throw new IllegalArgumentException();
-
 
37544
      }
-
 
37545
 
-
 
37546
      switch (field) {
-
 
37547
      case USER_ID:
-
 
37548
        return isSetUserId();
-
 
37549
      case STATUS:
-
 
37550
        return isSetStatus();
-
 
37551
      }
-
 
37552
      throw new IllegalStateException();
-
 
37553
    }
-
 
37554
 
-
 
37555
    @Override
-
 
37556
    public boolean equals(Object that) {
-
 
37557
      if (that == null)
-
 
37558
        return false;
-
 
37559
      if (that instanceof getCartsForUser_args)
-
 
37560
        return this.equals((getCartsForUser_args)that);
-
 
37561
      return false;
-
 
37562
    }
-
 
37563
 
-
 
37564
    public boolean equals(getCartsForUser_args that) {
-
 
37565
      if (that == null)
-
 
37566
        return false;
-
 
37567
 
-
 
37568
      boolean this_present_userId = true;
-
 
37569
      boolean that_present_userId = true;
-
 
37570
      if (this_present_userId || that_present_userId) {
-
 
37571
        if (!(this_present_userId && that_present_userId))
-
 
37572
          return false;
-
 
37573
        if (this.userId != that.userId)
-
 
37574
          return false;
-
 
37575
      }
-
 
37576
 
-
 
37577
      boolean this_present_status = true && this.isSetStatus();
-
 
37578
      boolean that_present_status = true && that.isSetStatus();
-
 
37579
      if (this_present_status || that_present_status) {
-
 
37580
        if (!(this_present_status && that_present_status))
-
 
37581
          return false;
-
 
37582
        if (!this.status.equals(that.status))
-
 
37583
          return false;
-
 
37584
      }
-
 
37585
 
-
 
37586
      return true;
-
 
37587
    }
-
 
37588
 
-
 
37589
    @Override
-
 
37590
    public int hashCode() {
-
 
37591
      return 0;
-
 
37592
    }
-
 
37593
 
-
 
37594
    public int compareTo(getCartsForUser_args other) {
-
 
37595
      if (!getClass().equals(other.getClass())) {
-
 
37596
        return getClass().getName().compareTo(other.getClass().getName());
-
 
37597
      }
-
 
37598
 
-
 
37599
      int lastComparison = 0;
-
 
37600
      getCartsForUser_args typedOther = (getCartsForUser_args)other;
-
 
37601
 
-
 
37602
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
37603
      if (lastComparison != 0) {
-
 
37604
        return lastComparison;
-
 
37605
      }
-
 
37606
      if (isSetUserId()) {
-
 
37607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
37608
        if (lastComparison != 0) {
-
 
37609
          return lastComparison;
-
 
37610
        }
-
 
37611
      }
-
 
37612
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
37613
      if (lastComparison != 0) {
-
 
37614
        return lastComparison;
-
 
37615
      }
-
 
37616
      if (isSetStatus()) {
-
 
37617
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
37618
        if (lastComparison != 0) {
-
 
37619
          return lastComparison;
-
 
37620
        }
-
 
37621
      }
-
 
37622
      return 0;
-
 
37623
    }
-
 
37624
 
-
 
37625
    public _Fields fieldForId(int fieldId) {
-
 
37626
      return _Fields.findByThriftId(fieldId);
-
 
37627
    }
-
 
37628
 
-
 
37629
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
37630
      org.apache.thrift.protocol.TField field;
-
 
37631
      iprot.readStructBegin();
-
 
37632
      while (true)
-
 
37633
      {
-
 
37634
        field = iprot.readFieldBegin();
-
 
37635
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
37636
          break;
-
 
37637
        }
-
 
37638
        switch (field.id) {
-
 
37639
          case 1: // USER_ID
-
 
37640
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
37641
              this.userId = iprot.readI64();
-
 
37642
              setUserIdIsSet(true);
-
 
37643
            } else { 
-
 
37644
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37645
            }
-
 
37646
            break;
-
 
37647
          case 2: // STATUS
-
 
37648
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
37649
              this.status = CartStatus.findByValue(iprot.readI32());
-
 
37650
            } else { 
-
 
37651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37652
            }
-
 
37653
            break;
-
 
37654
          default:
-
 
37655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37656
        }
-
 
37657
        iprot.readFieldEnd();
-
 
37658
      }
-
 
37659
      iprot.readStructEnd();
-
 
37660
      validate();
-
 
37661
    }
-
 
37662
 
-
 
37663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
37664
      validate();
-
 
37665
 
-
 
37666
      oprot.writeStructBegin(STRUCT_DESC);
-
 
37667
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
37668
      oprot.writeI64(this.userId);
-
 
37669
      oprot.writeFieldEnd();
-
 
37670
      if (this.status != null) {
-
 
37671
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
37672
        oprot.writeI32(this.status.getValue());
-
 
37673
        oprot.writeFieldEnd();
-
 
37674
      }
-
 
37675
      oprot.writeFieldStop();
-
 
37676
      oprot.writeStructEnd();
-
 
37677
    }
-
 
37678
 
-
 
37679
    @Override
-
 
37680
    public String toString() {
-
 
37681
      StringBuilder sb = new StringBuilder("getCartsForUser_args(");
-
 
37682
      boolean first = true;
-
 
37683
 
-
 
37684
      sb.append("userId:");
-
 
37685
      sb.append(this.userId);
-
 
37686
      first = false;
-
 
37687
      if (!first) sb.append(", ");
-
 
37688
      sb.append("status:");
-
 
37689
      if (this.status == null) {
-
 
37690
        sb.append("null");
-
 
37691
      } else {
-
 
37692
        sb.append(this.status);
-
 
37693
      }
-
 
37694
      first = false;
-
 
37695
      sb.append(")");
-
 
37696
      return sb.toString();
-
 
37697
    }
-
 
37698
 
-
 
37699
    public void validate() throws org.apache.thrift.TException {
-
 
37700
      // check for required fields
-
 
37701
    }
-
 
37702
 
-
 
37703
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
37704
      try {
-
 
37705
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
37706
      } catch (org.apache.thrift.TException te) {
-
 
37707
        throw new java.io.IOException(te);
-
 
37708
      }
-
 
37709
    }
-
 
37710
 
-
 
37711
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
37712
      try {
-
 
37713
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
37714
        __isset_bit_vector = new BitSet(1);
-
 
37715
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
37716
      } catch (org.apache.thrift.TException te) {
-
 
37717
        throw new java.io.IOException(te);
-
 
37718
      }
-
 
37719
    }
-
 
37720
 
-
 
37721
  }
-
 
37722
 
-
 
37723
  public static class getCartsForUser_result implements org.apache.thrift.TBase<getCartsForUser_result, getCartsForUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
37724
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsForUser_result");
-
 
37725
 
-
 
37726
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
37727
    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);
-
 
37728
 
-
 
37729
    private List<Cart> success; // required
-
 
37730
    private ShoppingCartException scx; // required
-
 
37731
 
-
 
37732
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
37733
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
37734
      SUCCESS((short)0, "success"),
-
 
37735
      SCX((short)1, "scx");
-
 
37736
 
-
 
37737
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
37738
 
-
 
37739
      static {
-
 
37740
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
37741
          byName.put(field.getFieldName(), field);
-
 
37742
        }
-
 
37743
      }
-
 
37744
 
-
 
37745
      /**
-
 
37746
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
37747
       */
-
 
37748
      public static _Fields findByThriftId(int fieldId) {
-
 
37749
        switch(fieldId) {
-
 
37750
          case 0: // SUCCESS
-
 
37751
            return SUCCESS;
-
 
37752
          case 1: // SCX
-
 
37753
            return SCX;
-
 
37754
          default:
-
 
37755
            return null;
-
 
37756
        }
-
 
37757
      }
-
 
37758
 
-
 
37759
      /**
-
 
37760
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
37761
       * if it is not found.
-
 
37762
       */
-
 
37763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
37764
        _Fields fields = findByThriftId(fieldId);
-
 
37765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
37766
        return fields;
-
 
37767
      }
-
 
37768
 
-
 
37769
      /**
-
 
37770
       * Find the _Fields constant that matches name, or null if its not found.
-
 
37771
       */
-
 
37772
      public static _Fields findByName(String name) {
-
 
37773
        return byName.get(name);
-
 
37774
      }
-
 
37775
 
-
 
37776
      private final short _thriftId;
-
 
37777
      private final String _fieldName;
-
 
37778
 
-
 
37779
      _Fields(short thriftId, String fieldName) {
-
 
37780
        _thriftId = thriftId;
-
 
37781
        _fieldName = fieldName;
-
 
37782
      }
-
 
37783
 
-
 
37784
      public short getThriftFieldId() {
-
 
37785
        return _thriftId;
-
 
37786
      }
-
 
37787
 
-
 
37788
      public String getFieldName() {
-
 
37789
        return _fieldName;
-
 
37790
      }
-
 
37791
    }
-
 
37792
 
-
 
37793
    // isset id assignments
-
 
37794
 
-
 
37795
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
37796
    static {
-
 
37797
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
37798
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37799
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
37800
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
-
 
37801
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37802
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
37803
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
37804
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsForUser_result.class, metaDataMap);
-
 
37805
    }
-
 
37806
 
-
 
37807
    public getCartsForUser_result() {
-
 
37808
    }
-
 
37809
 
-
 
37810
    public getCartsForUser_result(
-
 
37811
      List<Cart> success,
-
 
37812
      ShoppingCartException scx)
-
 
37813
    {
-
 
37814
      this();
-
 
37815
      this.success = success;
-
 
37816
      this.scx = scx;
-
 
37817
    }
-
 
37818
 
-
 
37819
    /**
-
 
37820
     * Performs a deep copy on <i>other</i>.
-
 
37821
     */
-
 
37822
    public getCartsForUser_result(getCartsForUser_result other) {
-
 
37823
      if (other.isSetSuccess()) {
-
 
37824
        List<Cart> __this__success = new ArrayList<Cart>();
-
 
37825
        for (Cart other_element : other.success) {
-
 
37826
          __this__success.add(new Cart(other_element));
-
 
37827
        }
-
 
37828
        this.success = __this__success;
-
 
37829
      }
-
 
37830
      if (other.isSetScx()) {
-
 
37831
        this.scx = new ShoppingCartException(other.scx);
-
 
37832
      }
-
 
37833
    }
-
 
37834
 
-
 
37835
    public getCartsForUser_result deepCopy() {
-
 
37836
      return new getCartsForUser_result(this);
-
 
37837
    }
-
 
37838
 
-
 
37839
    @Override
-
 
37840
    public void clear() {
-
 
37841
      this.success = null;
-
 
37842
      this.scx = null;
-
 
37843
    }
-
 
37844
 
-
 
37845
    public int getSuccessSize() {
-
 
37846
      return (this.success == null) ? 0 : this.success.size();
-
 
37847
    }
-
 
37848
 
-
 
37849
    public java.util.Iterator<Cart> getSuccessIterator() {
-
 
37850
      return (this.success == null) ? null : this.success.iterator();
-
 
37851
    }
-
 
37852
 
-
 
37853
    public void addToSuccess(Cart elem) {
-
 
37854
      if (this.success == null) {
-
 
37855
        this.success = new ArrayList<Cart>();
-
 
37856
      }
-
 
37857
      this.success.add(elem);
-
 
37858
    }
-
 
37859
 
-
 
37860
    public List<Cart> getSuccess() {
-
 
37861
      return this.success;
-
 
37862
    }
-
 
37863
 
-
 
37864
    public void setSuccess(List<Cart> success) {
-
 
37865
      this.success = success;
-
 
37866
    }
-
 
37867
 
-
 
37868
    public void unsetSuccess() {
-
 
37869
      this.success = null;
-
 
37870
    }
-
 
37871
 
-
 
37872
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
37873
    public boolean isSetSuccess() {
-
 
37874
      return this.success != null;
-
 
37875
    }
-
 
37876
 
-
 
37877
    public void setSuccessIsSet(boolean value) {
-
 
37878
      if (!value) {
-
 
37879
        this.success = null;
-
 
37880
      }
-
 
37881
    }
-
 
37882
 
-
 
37883
    public ShoppingCartException getScx() {
-
 
37884
      return this.scx;
-
 
37885
    }
-
 
37886
 
-
 
37887
    public void setScx(ShoppingCartException scx) {
-
 
37888
      this.scx = scx;
-
 
37889
    }
-
 
37890
 
-
 
37891
    public void unsetScx() {
-
 
37892
      this.scx = null;
-
 
37893
    }
-
 
37894
 
-
 
37895
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
37896
    public boolean isSetScx() {
-
 
37897
      return this.scx != null;
-
 
37898
    }
-
 
37899
 
-
 
37900
    public void setScxIsSet(boolean value) {
-
 
37901
      if (!value) {
-
 
37902
        this.scx = null;
-
 
37903
      }
-
 
37904
    }
-
 
37905
 
-
 
37906
    public void setFieldValue(_Fields field, Object value) {
-
 
37907
      switch (field) {
-
 
37908
      case SUCCESS:
-
 
37909
        if (value == null) {
-
 
37910
          unsetSuccess();
-
 
37911
        } else {
-
 
37912
          setSuccess((List<Cart>)value);
-
 
37913
        }
-
 
37914
        break;
-
 
37915
 
-
 
37916
      case SCX:
-
 
37917
        if (value == null) {
-
 
37918
          unsetScx();
-
 
37919
        } else {
-
 
37920
          setScx((ShoppingCartException)value);
-
 
37921
        }
-
 
37922
        break;
-
 
37923
 
-
 
37924
      }
-
 
37925
    }
-
 
37926
 
-
 
37927
    public Object getFieldValue(_Fields field) {
-
 
37928
      switch (field) {
-
 
37929
      case SUCCESS:
-
 
37930
        return getSuccess();
-
 
37931
 
-
 
37932
      case SCX:
-
 
37933
        return getScx();
-
 
37934
 
-
 
37935
      }
-
 
37936
      throw new IllegalStateException();
-
 
37937
    }
-
 
37938
 
-
 
37939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
37940
    public boolean isSet(_Fields field) {
-
 
37941
      if (field == null) {
-
 
37942
        throw new IllegalArgumentException();
-
 
37943
      }
-
 
37944
 
-
 
37945
      switch (field) {
-
 
37946
      case SUCCESS:
-
 
37947
        return isSetSuccess();
-
 
37948
      case SCX:
-
 
37949
        return isSetScx();
-
 
37950
      }
-
 
37951
      throw new IllegalStateException();
-
 
37952
    }
-
 
37953
 
-
 
37954
    @Override
-
 
37955
    public boolean equals(Object that) {
-
 
37956
      if (that == null)
-
 
37957
        return false;
-
 
37958
      if (that instanceof getCartsForUser_result)
-
 
37959
        return this.equals((getCartsForUser_result)that);
-
 
37960
      return false;
-
 
37961
    }
-
 
37962
 
-
 
37963
    public boolean equals(getCartsForUser_result that) {
-
 
37964
      if (that == null)
-
 
37965
        return false;
-
 
37966
 
-
 
37967
      boolean this_present_success = true && this.isSetSuccess();
-
 
37968
      boolean that_present_success = true && that.isSetSuccess();
-
 
37969
      if (this_present_success || that_present_success) {
-
 
37970
        if (!(this_present_success && that_present_success))
-
 
37971
          return false;
-
 
37972
        if (!this.success.equals(that.success))
-
 
37973
          return false;
-
 
37974
      }
-
 
37975
 
-
 
37976
      boolean this_present_scx = true && this.isSetScx();
-
 
37977
      boolean that_present_scx = true && that.isSetScx();
-
 
37978
      if (this_present_scx || that_present_scx) {
-
 
37979
        if (!(this_present_scx && that_present_scx))
-
 
37980
          return false;
-
 
37981
        if (!this.scx.equals(that.scx))
-
 
37982
          return false;
-
 
37983
      }
-
 
37984
 
-
 
37985
      return true;
-
 
37986
    }
-
 
37987
 
-
 
37988
    @Override
-
 
37989
    public int hashCode() {
-
 
37990
      return 0;
-
 
37991
    }
-
 
37992
 
-
 
37993
    public int compareTo(getCartsForUser_result other) {
-
 
37994
      if (!getClass().equals(other.getClass())) {
-
 
37995
        return getClass().getName().compareTo(other.getClass().getName());
-
 
37996
      }
-
 
37997
 
-
 
37998
      int lastComparison = 0;
-
 
37999
      getCartsForUser_result typedOther = (getCartsForUser_result)other;
-
 
38000
 
-
 
38001
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
38002
      if (lastComparison != 0) {
-
 
38003
        return lastComparison;
-
 
38004
      }
-
 
38005
      if (isSetSuccess()) {
-
 
38006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
38007
        if (lastComparison != 0) {
-
 
38008
          return lastComparison;
-
 
38009
        }
-
 
38010
      }
-
 
38011
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
38012
      if (lastComparison != 0) {
-
 
38013
        return lastComparison;
-
 
38014
      }
-
 
38015
      if (isSetScx()) {
-
 
38016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
38017
        if (lastComparison != 0) {
-
 
38018
          return lastComparison;
-
 
38019
        }
-
 
38020
      }
-
 
38021
      return 0;
-
 
38022
    }
-
 
38023
 
-
 
38024
    public _Fields fieldForId(int fieldId) {
-
 
38025
      return _Fields.findByThriftId(fieldId);
-
 
38026
    }
-
 
38027
 
-
 
38028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38029
      org.apache.thrift.protocol.TField field;
-
 
38030
      iprot.readStructBegin();
-
 
38031
      while (true)
-
 
38032
      {
-
 
38033
        field = iprot.readFieldBegin();
-
 
38034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38035
          break;
-
 
38036
        }
-
 
38037
        switch (field.id) {
-
 
38038
          case 0: // SUCCESS
-
 
38039
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
38040
              {
-
 
38041
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
-
 
38042
                this.success = new ArrayList<Cart>(_list69.size);
-
 
38043
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
-
 
38044
                {
-
 
38045
                  Cart _elem71; // required
-
 
38046
                  _elem71 = new Cart();
-
 
38047
                  _elem71.read(iprot);
-
 
38048
                  this.success.add(_elem71);
-
 
38049
                }
-
 
38050
                iprot.readListEnd();
-
 
38051
              }
-
 
38052
            } else { 
-
 
38053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38054
            }
-
 
38055
            break;
-
 
38056
          case 1: // SCX
-
 
38057
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
38058
              this.scx = new ShoppingCartException();
-
 
38059
              this.scx.read(iprot);
-
 
38060
            } else { 
-
 
38061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38062
            }
-
 
38063
            break;
-
 
38064
          default:
-
 
38065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38066
        }
-
 
38067
        iprot.readFieldEnd();
-
 
38068
      }
-
 
38069
      iprot.readStructEnd();
-
 
38070
      validate();
-
 
38071
    }
-
 
38072
 
-
 
38073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38074
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38075
 
-
 
38076
      if (this.isSetSuccess()) {
-
 
38077
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38078
        {
-
 
38079
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
38080
          for (Cart _iter72 : this.success)
-
 
38081
          {
-
 
38082
            _iter72.write(oprot);
-
 
38083
          }
-
 
38084
          oprot.writeListEnd();
-
 
38085
        }
-
 
38086
        oprot.writeFieldEnd();
-
 
38087
      } else if (this.isSetScx()) {
-
 
38088
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
38089
        this.scx.write(oprot);
-
 
38090
        oprot.writeFieldEnd();
-
 
38091
      }
-
 
38092
      oprot.writeFieldStop();
-
 
38093
      oprot.writeStructEnd();
-
 
38094
    }
-
 
38095
 
-
 
38096
    @Override
-
 
38097
    public String toString() {
-
 
38098
      StringBuilder sb = new StringBuilder("getCartsForUser_result(");
-
 
38099
      boolean first = true;
-
 
38100
 
-
 
38101
      sb.append("success:");
-
 
38102
      if (this.success == null) {
-
 
38103
        sb.append("null");
-
 
38104
      } else {
-
 
38105
        sb.append(this.success);
-
 
38106
      }
-
 
38107
      first = false;
-
 
38108
      if (!first) sb.append(", ");
-
 
38109
      sb.append("scx:");
-
 
38110
      if (this.scx == null) {
-
 
38111
        sb.append("null");
-
 
38112
      } else {
-
 
38113
        sb.append(this.scx);
-
 
38114
      }
-
 
38115
      first = false;
-
 
38116
      sb.append(")");
-
 
38117
      return sb.toString();
-
 
38118
    }
-
 
38119
 
-
 
38120
    public void validate() throws org.apache.thrift.TException {
-
 
38121
      // check for required fields
-
 
38122
    }
-
 
38123
 
-
 
38124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38125
      try {
-
 
38126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38127
      } catch (org.apache.thrift.TException te) {
-
 
38128
        throw new java.io.IOException(te);
-
 
38129
      }
-
 
38130
    }
-
 
38131
 
-
 
38132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38133
      try {
-
 
38134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38135
      } catch (org.apache.thrift.TException te) {
-
 
38136
        throw new java.io.IOException(te);
-
 
38137
      }
-
 
38138
    }
-
 
38139
 
-
 
38140
  }
-
 
38141
 
-
 
38142
  public static class getCartsByStatus_args implements org.apache.thrift.TBase<getCartsByStatus_args, getCartsByStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
38143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_args");
-
 
38144
 
-
 
38145
    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)1);
-
 
38146
 
-
 
38147
    private CartStatus status; // required
-
 
38148
 
-
 
38149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38151
      /**
-
 
38152
       * 
-
 
38153
       * @see CartStatus
-
 
38154
       */
-
 
38155
      STATUS((short)1, "status");
-
 
38156
 
-
 
38157
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38158
 
-
 
38159
      static {
-
 
38160
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38161
          byName.put(field.getFieldName(), field);
-
 
38162
        }
-
 
38163
      }
-
 
38164
 
-
 
38165
      /**
-
 
38166
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38167
       */
-
 
38168
      public static _Fields findByThriftId(int fieldId) {
-
 
38169
        switch(fieldId) {
-
 
38170
          case 1: // STATUS
-
 
38171
            return STATUS;
-
 
38172
          default:
-
 
38173
            return null;
-
 
38174
        }
-
 
38175
      }
-
 
38176
 
-
 
38177
      /**
-
 
38178
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38179
       * if it is not found.
-
 
38180
       */
-
 
38181
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38182
        _Fields fields = findByThriftId(fieldId);
-
 
38183
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38184
        return fields;
-
 
38185
      }
-
 
38186
 
-
 
38187
      /**
-
 
38188
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38189
       */
-
 
38190
      public static _Fields findByName(String name) {
-
 
38191
        return byName.get(name);
-
 
38192
      }
-
 
38193
 
-
 
38194
      private final short _thriftId;
-
 
38195
      private final String _fieldName;
-
 
38196
 
-
 
38197
      _Fields(short thriftId, String fieldName) {
-
 
38198
        _thriftId = thriftId;
-
 
38199
        _fieldName = fieldName;
-
 
38200
      }
-
 
38201
 
-
 
38202
      public short getThriftFieldId() {
-
 
38203
        return _thriftId;
-
 
38204
      }
-
 
38205
 
-
 
38206
      public String getFieldName() {
-
 
38207
        return _fieldName;
-
 
38208
      }
-
 
38209
    }
-
 
38210
 
-
 
38211
    // isset id assignments
-
 
38212
 
-
 
38213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38214
    static {
-
 
38215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38216
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38217
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
-
 
38218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_args.class, metaDataMap);
-
 
38220
    }
-
 
38221
 
-
 
38222
    public getCartsByStatus_args() {
-
 
38223
    }
-
 
38224
 
-
 
38225
    public getCartsByStatus_args(
-
 
38226
      CartStatus status)
-
 
38227
    {
-
 
38228
      this();
-
 
38229
      this.status = status;
-
 
38230
    }
-
 
38231
 
-
 
38232
    /**
-
 
38233
     * Performs a deep copy on <i>other</i>.
-
 
38234
     */
-
 
38235
    public getCartsByStatus_args(getCartsByStatus_args other) {
-
 
38236
      if (other.isSetStatus()) {
-
 
38237
        this.status = other.status;
-
 
38238
      }
-
 
38239
    }
-
 
38240
 
-
 
38241
    public getCartsByStatus_args deepCopy() {
-
 
38242
      return new getCartsByStatus_args(this);
-
 
38243
    }
-
 
38244
 
-
 
38245
    @Override
-
 
38246
    public void clear() {
-
 
38247
      this.status = null;
-
 
38248
    }
-
 
38249
 
-
 
38250
    /**
-
 
38251
     * 
-
 
38252
     * @see CartStatus
-
 
38253
     */
-
 
38254
    public CartStatus getStatus() {
-
 
38255
      return this.status;
-
 
38256
    }
-
 
38257
 
-
 
38258
    /**
-
 
38259
     * 
-
 
38260
     * @see CartStatus
-
 
38261
     */
-
 
38262
    public void setStatus(CartStatus status) {
-
 
38263
      this.status = status;
-
 
38264
    }
-
 
38265
 
-
 
38266
    public void unsetStatus() {
-
 
38267
      this.status = null;
-
 
38268
    }
-
 
38269
 
-
 
38270
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
38271
    public boolean isSetStatus() {
-
 
38272
      return this.status != null;
-
 
38273
    }
-
 
38274
 
-
 
38275
    public void setStatusIsSet(boolean value) {
-
 
38276
      if (!value) {
-
 
38277
        this.status = null;
-
 
38278
      }
-
 
38279
    }
-
 
38280
 
-
 
38281
    public void setFieldValue(_Fields field, Object value) {
-
 
38282
      switch (field) {
-
 
38283
      case STATUS:
-
 
38284
        if (value == null) {
-
 
38285
          unsetStatus();
-
 
38286
        } else {
-
 
38287
          setStatus((CartStatus)value);
-
 
38288
        }
-
 
38289
        break;
-
 
38290
 
-
 
38291
      }
-
 
38292
    }
-
 
38293
 
-
 
38294
    public Object getFieldValue(_Fields field) {
-
 
38295
      switch (field) {
-
 
38296
      case STATUS:
-
 
38297
        return getStatus();
-
 
38298
 
-
 
38299
      }
-
 
38300
      throw new IllegalStateException();
-
 
38301
    }
-
 
38302
 
-
 
38303
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38304
    public boolean isSet(_Fields field) {
-
 
38305
      if (field == null) {
-
 
38306
        throw new IllegalArgumentException();
-
 
38307
      }
-
 
38308
 
-
 
38309
      switch (field) {
-
 
38310
      case STATUS:
-
 
38311
        return isSetStatus();
-
 
38312
      }
-
 
38313
      throw new IllegalStateException();
-
 
38314
    }
-
 
38315
 
-
 
38316
    @Override
-
 
38317
    public boolean equals(Object that) {
-
 
38318
      if (that == null)
-
 
38319
        return false;
-
 
38320
      if (that instanceof getCartsByStatus_args)
-
 
38321
        return this.equals((getCartsByStatus_args)that);
-
 
38322
      return false;
-
 
38323
    }
-
 
38324
 
-
 
38325
    public boolean equals(getCartsByStatus_args that) {
-
 
38326
      if (that == null)
-
 
38327
        return false;
-
 
38328
 
-
 
38329
      boolean this_present_status = true && this.isSetStatus();
-
 
38330
      boolean that_present_status = true && that.isSetStatus();
-
 
38331
      if (this_present_status || that_present_status) {
-
 
38332
        if (!(this_present_status && that_present_status))
-
 
38333
          return false;
-
 
38334
        if (!this.status.equals(that.status))
-
 
38335
          return false;
-
 
38336
      }
-
 
38337
 
-
 
38338
      return true;
-
 
38339
    }
-
 
38340
 
-
 
38341
    @Override
-
 
38342
    public int hashCode() {
-
 
38343
      return 0;
-
 
38344
    }
-
 
38345
 
-
 
38346
    public int compareTo(getCartsByStatus_args other) {
-
 
38347
      if (!getClass().equals(other.getClass())) {
-
 
38348
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38349
      }
-
 
38350
 
-
 
38351
      int lastComparison = 0;
-
 
38352
      getCartsByStatus_args typedOther = (getCartsByStatus_args)other;
-
 
38353
 
-
 
38354
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
38355
      if (lastComparison != 0) {
-
 
38356
        return lastComparison;
-
 
38357
      }
-
 
38358
      if (isSetStatus()) {
-
 
38359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
38360
        if (lastComparison != 0) {
-
 
38361
          return lastComparison;
-
 
38362
        }
-
 
38363
      }
-
 
38364
      return 0;
-
 
38365
    }
-
 
38366
 
-
 
38367
    public _Fields fieldForId(int fieldId) {
-
 
38368
      return _Fields.findByThriftId(fieldId);
-
 
38369
    }
-
 
38370
 
-
 
38371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38372
      org.apache.thrift.protocol.TField field;
-
 
38373
      iprot.readStructBegin();
-
 
38374
      while (true)
-
 
38375
      {
-
 
38376
        field = iprot.readFieldBegin();
-
 
38377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38378
          break;
-
 
38379
        }
-
 
38380
        switch (field.id) {
-
 
38381
          case 1: // STATUS
-
 
38382
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
38383
              this.status = CartStatus.findByValue(iprot.readI32());
-
 
38384
            } else { 
-
 
38385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38386
            }
-
 
38387
            break;
-
 
38388
          default:
-
 
38389
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38390
        }
-
 
38391
        iprot.readFieldEnd();
-
 
38392
      }
-
 
38393
      iprot.readStructEnd();
-
 
38394
      validate();
-
 
38395
    }
-
 
38396
 
-
 
38397
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38398
      validate();
-
 
38399
 
-
 
38400
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38401
      if (this.status != null) {
-
 
38402
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
38403
        oprot.writeI32(this.status.getValue());
-
 
38404
        oprot.writeFieldEnd();
-
 
38405
      }
-
 
38406
      oprot.writeFieldStop();
-
 
38407
      oprot.writeStructEnd();
-
 
38408
    }
-
 
38409
 
-
 
38410
    @Override
-
 
38411
    public String toString() {
-
 
38412
      StringBuilder sb = new StringBuilder("getCartsByStatus_args(");
-
 
38413
      boolean first = true;
-
 
38414
 
-
 
38415
      sb.append("status:");
-
 
38416
      if (this.status == null) {
-
 
38417
        sb.append("null");
-
 
38418
      } else {
-
 
38419
        sb.append(this.status);
-
 
38420
      }
-
 
38421
      first = false;
-
 
38422
      sb.append(")");
-
 
38423
      return sb.toString();
-
 
38424
    }
-
 
38425
 
-
 
38426
    public void validate() throws org.apache.thrift.TException {
-
 
38427
      // check for required fields
-
 
38428
    }
-
 
38429
 
-
 
38430
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38431
      try {
-
 
38432
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38433
      } catch (org.apache.thrift.TException te) {
-
 
38434
        throw new java.io.IOException(te);
-
 
38435
      }
-
 
38436
    }
-
 
38437
 
-
 
38438
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38439
      try {
-
 
38440
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38441
      } catch (org.apache.thrift.TException te) {
-
 
38442
        throw new java.io.IOException(te);
-
 
38443
      }
-
 
38444
    }
-
 
38445
 
-
 
38446
  }
-
 
38447
 
-
 
38448
  public static class getCartsByStatus_result implements org.apache.thrift.TBase<getCartsByStatus_result, getCartsByStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
38449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByStatus_result");
-
 
38450
 
-
 
38451
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
38452
    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);
-
 
38453
 
-
 
38454
    private List<Cart> success; // required
-
 
38455
    private ShoppingCartException scx; // required
-
 
38456
 
-
 
38457
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38458
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38459
      SUCCESS((short)0, "success"),
-
 
38460
      SCX((short)1, "scx");
-
 
38461
 
-
 
38462
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38463
 
-
 
38464
      static {
-
 
38465
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38466
          byName.put(field.getFieldName(), field);
-
 
38467
        }
-
 
38468
      }
-
 
38469
 
-
 
38470
      /**
-
 
38471
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38472
       */
-
 
38473
      public static _Fields findByThriftId(int fieldId) {
-
 
38474
        switch(fieldId) {
-
 
38475
          case 0: // SUCCESS
-
 
38476
            return SUCCESS;
-
 
38477
          case 1: // SCX
-
 
38478
            return SCX;
-
 
38479
          default:
-
 
38480
            return null;
-
 
38481
        }
-
 
38482
      }
-
 
38483
 
-
 
38484
      /**
-
 
38485
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38486
       * if it is not found.
-
 
38487
       */
-
 
38488
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38489
        _Fields fields = findByThriftId(fieldId);
-
 
38490
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38491
        return fields;
-
 
38492
      }
-
 
38493
 
-
 
38494
      /**
-
 
38495
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38496
       */
-
 
38497
      public static _Fields findByName(String name) {
-
 
38498
        return byName.get(name);
-
 
38499
      }
-
 
38500
 
-
 
38501
      private final short _thriftId;
-
 
38502
      private final String _fieldName;
-
 
38503
 
-
 
38504
      _Fields(short thriftId, String fieldName) {
-
 
38505
        _thriftId = thriftId;
-
 
38506
        _fieldName = fieldName;
-
 
38507
      }
-
 
38508
 
-
 
38509
      public short getThriftFieldId() {
-
 
38510
        return _thriftId;
-
 
38511
      }
-
 
38512
 
-
 
38513
      public String getFieldName() {
-
 
38514
        return _fieldName;
-
 
38515
      }
-
 
38516
    }
-
 
38517
 
-
 
38518
    // isset id assignments
-
 
38519
 
-
 
38520
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38521
    static {
-
 
38522
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38523
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38524
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
38525
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Cart.class))));
-
 
38526
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
38528
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38529
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCartsByStatus_result.class, metaDataMap);
-
 
38530
    }
-
 
38531
 
-
 
38532
    public getCartsByStatus_result() {
-
 
38533
    }
-
 
38534
 
-
 
38535
    public getCartsByStatus_result(
-
 
38536
      List<Cart> success,
-
 
38537
      ShoppingCartException scx)
-
 
38538
    {
-
 
38539
      this();
-
 
38540
      this.success = success;
-
 
38541
      this.scx = scx;
-
 
38542
    }
-
 
38543
 
-
 
38544
    /**
-
 
38545
     * Performs a deep copy on <i>other</i>.
-
 
38546
     */
-
 
38547
    public getCartsByStatus_result(getCartsByStatus_result other) {
-
 
38548
      if (other.isSetSuccess()) {
-
 
38549
        List<Cart> __this__success = new ArrayList<Cart>();
-
 
38550
        for (Cart other_element : other.success) {
-
 
38551
          __this__success.add(new Cart(other_element));
-
 
38552
        }
-
 
38553
        this.success = __this__success;
-
 
38554
      }
-
 
38555
      if (other.isSetScx()) {
-
 
38556
        this.scx = new ShoppingCartException(other.scx);
-
 
38557
      }
-
 
38558
    }
-
 
38559
 
-
 
38560
    public getCartsByStatus_result deepCopy() {
-
 
38561
      return new getCartsByStatus_result(this);
-
 
38562
    }
-
 
38563
 
-
 
38564
    @Override
-
 
38565
    public void clear() {
-
 
38566
      this.success = null;
-
 
38567
      this.scx = null;
-
 
38568
    }
-
 
38569
 
-
 
38570
    public int getSuccessSize() {
-
 
38571
      return (this.success == null) ? 0 : this.success.size();
-
 
38572
    }
-
 
38573
 
-
 
38574
    public java.util.Iterator<Cart> getSuccessIterator() {
-
 
38575
      return (this.success == null) ? null : this.success.iterator();
-
 
38576
    }
-
 
38577
 
-
 
38578
    public void addToSuccess(Cart elem) {
-
 
38579
      if (this.success == null) {
-
 
38580
        this.success = new ArrayList<Cart>();
-
 
38581
      }
-
 
38582
      this.success.add(elem);
-
 
38583
    }
-
 
38584
 
-
 
38585
    public List<Cart> getSuccess() {
-
 
38586
      return this.success;
-
 
38587
    }
-
 
38588
 
-
 
38589
    public void setSuccess(List<Cart> success) {
-
 
38590
      this.success = success;
-
 
38591
    }
-
 
38592
 
-
 
38593
    public void unsetSuccess() {
-
 
38594
      this.success = null;
-
 
38595
    }
-
 
38596
 
-
 
38597
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
38598
    public boolean isSetSuccess() {
-
 
38599
      return this.success != null;
-
 
38600
    }
-
 
38601
 
-
 
38602
    public void setSuccessIsSet(boolean value) {
-
 
38603
      if (!value) {
-
 
38604
        this.success = null;
-
 
38605
      }
-
 
38606
    }
-
 
38607
 
-
 
38608
    public ShoppingCartException getScx() {
-
 
38609
      return this.scx;
-
 
38610
    }
-
 
38611
 
-
 
38612
    public void setScx(ShoppingCartException scx) {
-
 
38613
      this.scx = scx;
-
 
38614
    }
-
 
38615
 
-
 
38616
    public void unsetScx() {
-
 
38617
      this.scx = null;
-
 
38618
    }
-
 
38619
 
-
 
38620
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
38621
    public boolean isSetScx() {
-
 
38622
      return this.scx != null;
-
 
38623
    }
-
 
38624
 
-
 
38625
    public void setScxIsSet(boolean value) {
-
 
38626
      if (!value) {
-
 
38627
        this.scx = null;
-
 
38628
      }
-
 
38629
    }
-
 
38630
 
-
 
38631
    public void setFieldValue(_Fields field, Object value) {
-
 
38632
      switch (field) {
-
 
38633
      case SUCCESS:
-
 
38634
        if (value == null) {
-
 
38635
          unsetSuccess();
-
 
38636
        } else {
-
 
38637
          setSuccess((List<Cart>)value);
-
 
38638
        }
-
 
38639
        break;
-
 
38640
 
-
 
38641
      case SCX:
-
 
38642
        if (value == null) {
-
 
38643
          unsetScx();
-
 
38644
        } else {
-
 
38645
          setScx((ShoppingCartException)value);
-
 
38646
        }
-
 
38647
        break;
-
 
38648
 
-
 
38649
      }
-
 
38650
    }
-
 
38651
 
-
 
38652
    public Object getFieldValue(_Fields field) {
-
 
38653
      switch (field) {
-
 
38654
      case SUCCESS:
-
 
38655
        return getSuccess();
-
 
38656
 
-
 
38657
      case SCX:
-
 
38658
        return getScx();
-
 
38659
 
-
 
38660
      }
-
 
38661
      throw new IllegalStateException();
-
 
38662
    }
-
 
38663
 
-
 
38664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38665
    public boolean isSet(_Fields field) {
-
 
38666
      if (field == null) {
-
 
38667
        throw new IllegalArgumentException();
-
 
38668
      }
-
 
38669
 
-
 
38670
      switch (field) {
-
 
38671
      case SUCCESS:
-
 
38672
        return isSetSuccess();
-
 
38673
      case SCX:
-
 
38674
        return isSetScx();
-
 
38675
      }
-
 
38676
      throw new IllegalStateException();
-
 
38677
    }
-
 
38678
 
-
 
38679
    @Override
-
 
38680
    public boolean equals(Object that) {
-
 
38681
      if (that == null)
-
 
38682
        return false;
-
 
38683
      if (that instanceof getCartsByStatus_result)
-
 
38684
        return this.equals((getCartsByStatus_result)that);
-
 
38685
      return false;
-
 
38686
    }
-
 
38687
 
-
 
38688
    public boolean equals(getCartsByStatus_result that) {
-
 
38689
      if (that == null)
-
 
38690
        return false;
-
 
38691
 
-
 
38692
      boolean this_present_success = true && this.isSetSuccess();
-
 
38693
      boolean that_present_success = true && that.isSetSuccess();
-
 
38694
      if (this_present_success || that_present_success) {
-
 
38695
        if (!(this_present_success && that_present_success))
-
 
38696
          return false;
-
 
38697
        if (!this.success.equals(that.success))
-
 
38698
          return false;
-
 
38699
      }
-
 
38700
 
-
 
38701
      boolean this_present_scx = true && this.isSetScx();
-
 
38702
      boolean that_present_scx = true && that.isSetScx();
-
 
38703
      if (this_present_scx || that_present_scx) {
-
 
38704
        if (!(this_present_scx && that_present_scx))
-
 
38705
          return false;
-
 
38706
        if (!this.scx.equals(that.scx))
-
 
38707
          return false;
-
 
38708
      }
-
 
38709
 
-
 
38710
      return true;
-
 
38711
    }
-
 
38712
 
-
 
38713
    @Override
-
 
38714
    public int hashCode() {
-
 
38715
      return 0;
-
 
38716
    }
-
 
38717
 
-
 
38718
    public int compareTo(getCartsByStatus_result other) {
-
 
38719
      if (!getClass().equals(other.getClass())) {
-
 
38720
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38721
      }
-
 
38722
 
-
 
38723
      int lastComparison = 0;
-
 
38724
      getCartsByStatus_result typedOther = (getCartsByStatus_result)other;
-
 
38725
 
-
 
38726
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
38727
      if (lastComparison != 0) {
-
 
38728
        return lastComparison;
-
 
38729
      }
-
 
38730
      if (isSetSuccess()) {
-
 
38731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
38732
        if (lastComparison != 0) {
-
 
38733
          return lastComparison;
-
 
38734
        }
-
 
38735
      }
-
 
38736
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
38737
      if (lastComparison != 0) {
-
 
38738
        return lastComparison;
-
 
38739
      }
-
 
38740
      if (isSetScx()) {
-
 
38741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
38742
        if (lastComparison != 0) {
-
 
38743
          return lastComparison;
-
 
38744
        }
-
 
38745
      }
-
 
38746
      return 0;
-
 
38747
    }
-
 
38748
 
-
 
38749
    public _Fields fieldForId(int fieldId) {
-
 
38750
      return _Fields.findByThriftId(fieldId);
-
 
38751
    }
-
 
38752
 
-
 
38753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38754
      org.apache.thrift.protocol.TField field;
-
 
38755
      iprot.readStructBegin();
-
 
38756
      while (true)
-
 
38757
      {
-
 
38758
        field = iprot.readFieldBegin();
-
 
38759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38760
          break;
-
 
38761
        }
-
 
38762
        switch (field.id) {
-
 
38763
          case 0: // SUCCESS
-
 
38764
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
38765
              {
-
 
38766
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
-
 
38767
                this.success = new ArrayList<Cart>(_list73.size);
-
 
38768
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
-
 
38769
                {
-
 
38770
                  Cart _elem75; // required
-
 
38771
                  _elem75 = new Cart();
-
 
38772
                  _elem75.read(iprot);
-
 
38773
                  this.success.add(_elem75);
-
 
38774
                }
-
 
38775
                iprot.readListEnd();
-
 
38776
              }
-
 
38777
            } else { 
-
 
38778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38779
            }
-
 
38780
            break;
-
 
38781
          case 1: // SCX
-
 
38782
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
38783
              this.scx = new ShoppingCartException();
-
 
38784
              this.scx.read(iprot);
-
 
38785
            } else { 
-
 
38786
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38787
            }
-
 
38788
            break;
-
 
38789
          default:
-
 
38790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38791
        }
-
 
38792
        iprot.readFieldEnd();
-
 
38793
      }
-
 
38794
      iprot.readStructEnd();
-
 
38795
      validate();
-
 
38796
    }
-
 
38797
 
-
 
38798
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38799
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38800
 
-
 
38801
      if (this.isSetSuccess()) {
-
 
38802
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38803
        {
-
 
38804
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
38805
          for (Cart _iter76 : this.success)
-
 
38806
          {
-
 
38807
            _iter76.write(oprot);
-
 
38808
          }
-
 
38809
          oprot.writeListEnd();
-
 
38810
        }
-
 
38811
        oprot.writeFieldEnd();
-
 
38812
      } else if (this.isSetScx()) {
-
 
38813
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
38814
        this.scx.write(oprot);
-
 
38815
        oprot.writeFieldEnd();
-
 
38816
      }
-
 
38817
      oprot.writeFieldStop();
-
 
38818
      oprot.writeStructEnd();
-
 
38819
    }
-
 
38820
 
-
 
38821
    @Override
-
 
38822
    public String toString() {
-
 
38823
      StringBuilder sb = new StringBuilder("getCartsByStatus_result(");
-
 
38824
      boolean first = true;
-
 
38825
 
-
 
38826
      sb.append("success:");
-
 
38827
      if (this.success == null) {
-
 
38828
        sb.append("null");
-
 
38829
      } else {
-
 
38830
        sb.append(this.success);
-
 
38831
      }
-
 
38832
      first = false;
-
 
38833
      if (!first) sb.append(", ");
-
 
38834
      sb.append("scx:");
-
 
38835
      if (this.scx == null) {
-
 
38836
        sb.append("null");
-
 
38837
      } else {
-
 
38838
        sb.append(this.scx);
-
 
38839
      }
-
 
38840
      first = false;
-
 
38841
      sb.append(")");
-
 
38842
      return sb.toString();
-
 
38843
    }
-
 
38844
 
-
 
38845
    public void validate() throws org.apache.thrift.TException {
-
 
38846
      // check for required fields
-
 
38847
    }
-
 
38848
 
-
 
38849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38850
      try {
-
 
38851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38852
      } catch (org.apache.thrift.TException te) {
-
 
38853
        throw new java.io.IOException(te);
-
 
38854
      }
-
 
38855
    }
-
 
38856
 
-
 
38857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38858
      try {
-
 
38859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38860
      } catch (org.apache.thrift.TException te) {
-
 
38861
        throw new java.io.IOException(te);
-
 
38862
      }
-
 
38863
    }
-
 
38864
 
-
 
38865
  }
-
 
38866
 
-
 
38867
  public static class getCartsByTime_args implements org.apache.thrift.TBase<getCartsByTime_args, getCartsByTime_args._Fields>, java.io.Serializable, Cloneable   {
37080
  public static class getCartsByTime_args implements org.apache.thrift.TBase<getCartsByTime_args, getCartsByTime_args._Fields>, java.io.Serializable, Cloneable   {
38868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_args");
37081
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCartsByTime_args");
38869
 
37082
 
38870
    private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("from_time", org.apache.thrift.protocol.TType.I64, (short)1);
37083
    private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("from_time", org.apache.thrift.protocol.TType.I64, (short)1);
38871
    private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("to_time", org.apache.thrift.protocol.TType.I64, (short)2);
37084
    private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("to_time", org.apache.thrift.protocol.TType.I64, (short)2);
Line 39657... Line 37870...
39657
        }
37870
        }
39658
        switch (field.id) {
37871
        switch (field.id) {
39659
          case 0: // SUCCESS
37872
          case 0: // SUCCESS
39660
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37873
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39661
              {
37874
              {
39662
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
37875
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
39663
                this.success = new ArrayList<Cart>(_list77.size);
37876
                this.success = new ArrayList<Cart>(_list65.size);
39664
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
37877
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
39665
                {
37878
                {
39666
                  Cart _elem79; // required
37879
                  Cart _elem67; // required
39667
                  _elem79 = new Cart();
37880
                  _elem67 = new Cart();
39668
                  _elem79.read(iprot);
37881
                  _elem67.read(iprot);
39669
                  this.success.add(_elem79);
37882
                  this.success.add(_elem67);
39670
                }
37883
                }
39671
                iprot.readListEnd();
37884
                iprot.readListEnd();
39672
              }
37885
              }
39673
            } else { 
37886
            } else { 
39674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 39696... Line 37909...
39696
 
37909
 
39697
      if (this.isSetSuccess()) {
37910
      if (this.isSetSuccess()) {
39698
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37911
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39699
        {
37912
        {
39700
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37913
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39701
          for (Cart _iter80 : this.success)
37914
          for (Cart _iter68 : this.success)
39702
          {
37915
          {
39703
            _iter80.write(oprot);
37916
            _iter68.write(oprot);
39704
          }
37917
          }
39705
          oprot.writeListEnd();
37918
          oprot.writeListEnd();
39706
        }
37919
        }
39707
        oprot.writeFieldEnd();
37920
        oprot.writeFieldEnd();
39708
      } else if (this.isSetScx()) {
37921
      } else if (this.isSetScx()) {
Line 39758... Line 37971...
39758
      }
37971
      }
39759
    }
37972
    }
39760
 
37973
 
39761
  }
37974
  }
39762
 
37975
 
39763
  public static class changeCartStatus_args implements org.apache.thrift.TBase<changeCartStatus_args, changeCartStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
39764
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_args");
-
 
39765
 
-
 
39766
    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);
-
 
39767
    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)2);
-
 
39768
 
-
 
39769
    private long cartId; // required
-
 
39770
    private CartStatus status; // required
-
 
39771
 
-
 
39772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
39773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
39774
      CART_ID((short)1, "cartId"),
-
 
39775
      /**
-
 
39776
       * 
-
 
39777
       * @see CartStatus
-
 
39778
       */
-
 
39779
      STATUS((short)2, "status");
-
 
39780
 
-
 
39781
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
39782
 
-
 
39783
      static {
-
 
39784
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
39785
          byName.put(field.getFieldName(), field);
-
 
39786
        }
-
 
39787
      }
-
 
39788
 
-
 
39789
      /**
-
 
39790
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
39791
       */
-
 
39792
      public static _Fields findByThriftId(int fieldId) {
-
 
39793
        switch(fieldId) {
-
 
39794
          case 1: // CART_ID
-
 
39795
            return CART_ID;
-
 
39796
          case 2: // STATUS
-
 
39797
            return STATUS;
-
 
39798
          default:
-
 
39799
            return null;
-
 
39800
        }
-
 
39801
      }
-
 
39802
 
-
 
39803
      /**
-
 
39804
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
39805
       * if it is not found.
-
 
39806
       */
-
 
39807
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
39808
        _Fields fields = findByThriftId(fieldId);
-
 
39809
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
39810
        return fields;
-
 
39811
      }
-
 
39812
 
-
 
39813
      /**
-
 
39814
       * Find the _Fields constant that matches name, or null if its not found.
-
 
39815
       */
-
 
39816
      public static _Fields findByName(String name) {
-
 
39817
        return byName.get(name);
-
 
39818
      }
-
 
39819
 
-
 
39820
      private final short _thriftId;
-
 
39821
      private final String _fieldName;
-
 
39822
 
-
 
39823
      _Fields(short thriftId, String fieldName) {
-
 
39824
        _thriftId = thriftId;
-
 
39825
        _fieldName = fieldName;
-
 
39826
      }
-
 
39827
 
-
 
39828
      public short getThriftFieldId() {
-
 
39829
        return _thriftId;
-
 
39830
      }
-
 
39831
 
-
 
39832
      public String getFieldName() {
-
 
39833
        return _fieldName;
-
 
39834
      }
-
 
39835
    }
-
 
39836
 
-
 
39837
    // isset id assignments
-
 
39838
    private static final int __CARTID_ISSET_ID = 0;
-
 
39839
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
39840
 
-
 
39841
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
39842
    static {
-
 
39843
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
39844
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39845
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
39846
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
39847
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CartStatus.class)));
-
 
39848
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
39849
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_args.class, metaDataMap);
-
 
39850
    }
-
 
39851
 
-
 
39852
    public changeCartStatus_args() {
-
 
39853
    }
-
 
39854
 
-
 
39855
    public changeCartStatus_args(
-
 
39856
      long cartId,
-
 
39857
      CartStatus status)
-
 
39858
    {
-
 
39859
      this();
-
 
39860
      this.cartId = cartId;
-
 
39861
      setCartIdIsSet(true);
-
 
39862
      this.status = status;
-
 
39863
    }
-
 
39864
 
-
 
39865
    /**
-
 
39866
     * Performs a deep copy on <i>other</i>.
-
 
39867
     */
-
 
39868
    public changeCartStatus_args(changeCartStatus_args other) {
-
 
39869
      __isset_bit_vector.clear();
-
 
39870
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
39871
      this.cartId = other.cartId;
-
 
39872
      if (other.isSetStatus()) {
-
 
39873
        this.status = other.status;
-
 
39874
      }
-
 
39875
    }
-
 
39876
 
-
 
39877
    public changeCartStatus_args deepCopy() {
-
 
39878
      return new changeCartStatus_args(this);
-
 
39879
    }
-
 
39880
 
-
 
39881
    @Override
-
 
39882
    public void clear() {
-
 
39883
      setCartIdIsSet(false);
-
 
39884
      this.cartId = 0;
-
 
39885
      this.status = null;
-
 
39886
    }
-
 
39887
 
-
 
39888
    public long getCartId() {
-
 
39889
      return this.cartId;
-
 
39890
    }
-
 
39891
 
-
 
39892
    public void setCartId(long cartId) {
-
 
39893
      this.cartId = cartId;
-
 
39894
      setCartIdIsSet(true);
-
 
39895
    }
-
 
39896
 
-
 
39897
    public void unsetCartId() {
-
 
39898
      __isset_bit_vector.clear(__CARTID_ISSET_ID);
-
 
39899
    }
-
 
39900
 
-
 
39901
    /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
-
 
39902
    public boolean isSetCartId() {
-
 
39903
      return __isset_bit_vector.get(__CARTID_ISSET_ID);
-
 
39904
    }
-
 
39905
 
-
 
39906
    public void setCartIdIsSet(boolean value) {
-
 
39907
      __isset_bit_vector.set(__CARTID_ISSET_ID, value);
-
 
39908
    }
-
 
39909
 
-
 
39910
    /**
-
 
39911
     * 
-
 
39912
     * @see CartStatus
-
 
39913
     */
-
 
39914
    public CartStatus getStatus() {
-
 
39915
      return this.status;
-
 
39916
    }
-
 
39917
 
-
 
39918
    /**
-
 
39919
     * 
-
 
39920
     * @see CartStatus
-
 
39921
     */
-
 
39922
    public void setStatus(CartStatus status) {
-
 
39923
      this.status = status;
-
 
39924
    }
-
 
39925
 
-
 
39926
    public void unsetStatus() {
-
 
39927
      this.status = null;
-
 
39928
    }
-
 
39929
 
-
 
39930
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
39931
    public boolean isSetStatus() {
-
 
39932
      return this.status != null;
-
 
39933
    }
-
 
39934
 
-
 
39935
    public void setStatusIsSet(boolean value) {
-
 
39936
      if (!value) {
-
 
39937
        this.status = null;
-
 
39938
      }
-
 
39939
    }
-
 
39940
 
-
 
39941
    public void setFieldValue(_Fields field, Object value) {
-
 
39942
      switch (field) {
-
 
39943
      case CART_ID:
-
 
39944
        if (value == null) {
-
 
39945
          unsetCartId();
-
 
39946
        } else {
-
 
39947
          setCartId((Long)value);
-
 
39948
        }
-
 
39949
        break;
-
 
39950
 
-
 
39951
      case STATUS:
-
 
39952
        if (value == null) {
-
 
39953
          unsetStatus();
-
 
39954
        } else {
-
 
39955
          setStatus((CartStatus)value);
-
 
39956
        }
-
 
39957
        break;
-
 
39958
 
-
 
39959
      }
-
 
39960
    }
-
 
39961
 
-
 
39962
    public Object getFieldValue(_Fields field) {
-
 
39963
      switch (field) {
-
 
39964
      case CART_ID:
-
 
39965
        return Long.valueOf(getCartId());
-
 
39966
 
-
 
39967
      case STATUS:
-
 
39968
        return getStatus();
-
 
39969
 
-
 
39970
      }
-
 
39971
      throw new IllegalStateException();
-
 
39972
    }
-
 
39973
 
-
 
39974
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
39975
    public boolean isSet(_Fields field) {
-
 
39976
      if (field == null) {
-
 
39977
        throw new IllegalArgumentException();
-
 
39978
      }
-
 
39979
 
-
 
39980
      switch (field) {
-
 
39981
      case CART_ID:
-
 
39982
        return isSetCartId();
-
 
39983
      case STATUS:
-
 
39984
        return isSetStatus();
-
 
39985
      }
-
 
39986
      throw new IllegalStateException();
-
 
39987
    }
-
 
39988
 
-
 
39989
    @Override
-
 
39990
    public boolean equals(Object that) {
-
 
39991
      if (that == null)
-
 
39992
        return false;
-
 
39993
      if (that instanceof changeCartStatus_args)
-
 
39994
        return this.equals((changeCartStatus_args)that);
-
 
39995
      return false;
-
 
39996
    }
-
 
39997
 
-
 
39998
    public boolean equals(changeCartStatus_args that) {
-
 
39999
      if (that == null)
-
 
40000
        return false;
-
 
40001
 
-
 
40002
      boolean this_present_cartId = true;
-
 
40003
      boolean that_present_cartId = true;
-
 
40004
      if (this_present_cartId || that_present_cartId) {
-
 
40005
        if (!(this_present_cartId && that_present_cartId))
-
 
40006
          return false;
-
 
40007
        if (this.cartId != that.cartId)
-
 
40008
          return false;
-
 
40009
      }
-
 
40010
 
-
 
40011
      boolean this_present_status = true && this.isSetStatus();
-
 
40012
      boolean that_present_status = true && that.isSetStatus();
-
 
40013
      if (this_present_status || that_present_status) {
-
 
40014
        if (!(this_present_status && that_present_status))
-
 
40015
          return false;
-
 
40016
        if (!this.status.equals(that.status))
-
 
40017
          return false;
-
 
40018
      }
-
 
40019
 
-
 
40020
      return true;
-
 
40021
    }
-
 
40022
 
-
 
40023
    @Override
-
 
40024
    public int hashCode() {
-
 
40025
      return 0;
-
 
40026
    }
-
 
40027
 
-
 
40028
    public int compareTo(changeCartStatus_args other) {
-
 
40029
      if (!getClass().equals(other.getClass())) {
-
 
40030
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40031
      }
-
 
40032
 
-
 
40033
      int lastComparison = 0;
-
 
40034
      changeCartStatus_args typedOther = (changeCartStatus_args)other;
-
 
40035
 
-
 
40036
      lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
-
 
40037
      if (lastComparison != 0) {
-
 
40038
        return lastComparison;
-
 
40039
      }
-
 
40040
      if (isSetCartId()) {
-
 
40041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
-
 
40042
        if (lastComparison != 0) {
-
 
40043
          return lastComparison;
-
 
40044
        }
-
 
40045
      }
-
 
40046
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
40047
      if (lastComparison != 0) {
-
 
40048
        return lastComparison;
-
 
40049
      }
-
 
40050
      if (isSetStatus()) {
-
 
40051
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
40052
        if (lastComparison != 0) {
-
 
40053
          return lastComparison;
-
 
40054
        }
-
 
40055
      }
-
 
40056
      return 0;
-
 
40057
    }
-
 
40058
 
-
 
40059
    public _Fields fieldForId(int fieldId) {
-
 
40060
      return _Fields.findByThriftId(fieldId);
-
 
40061
    }
-
 
40062
 
-
 
40063
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40064
      org.apache.thrift.protocol.TField field;
-
 
40065
      iprot.readStructBegin();
-
 
40066
      while (true)
-
 
40067
      {
-
 
40068
        field = iprot.readFieldBegin();
-
 
40069
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40070
          break;
-
 
40071
        }
-
 
40072
        switch (field.id) {
-
 
40073
          case 1: // CART_ID
-
 
40074
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
40075
              this.cartId = iprot.readI64();
-
 
40076
              setCartIdIsSet(true);
-
 
40077
            } else { 
-
 
40078
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40079
            }
-
 
40080
            break;
-
 
40081
          case 2: // STATUS
-
 
40082
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
40083
              this.status = CartStatus.findByValue(iprot.readI32());
-
 
40084
            } else { 
-
 
40085
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40086
            }
-
 
40087
            break;
-
 
40088
          default:
-
 
40089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40090
        }
-
 
40091
        iprot.readFieldEnd();
-
 
40092
      }
-
 
40093
      iprot.readStructEnd();
-
 
40094
      validate();
-
 
40095
    }
-
 
40096
 
-
 
40097
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40098
      validate();
-
 
40099
 
-
 
40100
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40101
      oprot.writeFieldBegin(CART_ID_FIELD_DESC);
-
 
40102
      oprot.writeI64(this.cartId);
-
 
40103
      oprot.writeFieldEnd();
-
 
40104
      if (this.status != null) {
-
 
40105
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
40106
        oprot.writeI32(this.status.getValue());
-
 
40107
        oprot.writeFieldEnd();
-
 
40108
      }
-
 
40109
      oprot.writeFieldStop();
-
 
40110
      oprot.writeStructEnd();
-
 
40111
    }
-
 
40112
 
-
 
40113
    @Override
-
 
40114
    public String toString() {
-
 
40115
      StringBuilder sb = new StringBuilder("changeCartStatus_args(");
-
 
40116
      boolean first = true;
-
 
40117
 
-
 
40118
      sb.append("cartId:");
-
 
40119
      sb.append(this.cartId);
-
 
40120
      first = false;
-
 
40121
      if (!first) sb.append(", ");
-
 
40122
      sb.append("status:");
-
 
40123
      if (this.status == null) {
-
 
40124
        sb.append("null");
-
 
40125
      } else {
-
 
40126
        sb.append(this.status);
-
 
40127
      }
-
 
40128
      first = false;
-
 
40129
      sb.append(")");
-
 
40130
      return sb.toString();
-
 
40131
    }
-
 
40132
 
-
 
40133
    public void validate() throws org.apache.thrift.TException {
-
 
40134
      // check for required fields
-
 
40135
    }
-
 
40136
 
-
 
40137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40138
      try {
-
 
40139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40140
      } catch (org.apache.thrift.TException te) {
-
 
40141
        throw new java.io.IOException(te);
-
 
40142
      }
-
 
40143
    }
-
 
40144
 
-
 
40145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40146
      try {
-
 
40147
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
40148
        __isset_bit_vector = new BitSet(1);
-
 
40149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40150
      } catch (org.apache.thrift.TException te) {
-
 
40151
        throw new java.io.IOException(te);
-
 
40152
      }
-
 
40153
    }
-
 
40154
 
-
 
40155
  }
-
 
40156
 
-
 
40157
  public static class changeCartStatus_result implements org.apache.thrift.TBase<changeCartStatus_result, changeCartStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
40158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeCartStatus_result");
-
 
40159
 
-
 
40160
    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);
-
 
40161
 
-
 
40162
    private ShoppingCartException scx; // required
-
 
40163
 
-
 
40164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40166
      SCX((short)1, "scx");
-
 
40167
 
-
 
40168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40169
 
-
 
40170
      static {
-
 
40171
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40172
          byName.put(field.getFieldName(), field);
-
 
40173
        }
-
 
40174
      }
-
 
40175
 
-
 
40176
      /**
-
 
40177
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40178
       */
-
 
40179
      public static _Fields findByThriftId(int fieldId) {
-
 
40180
        switch(fieldId) {
-
 
40181
          case 1: // SCX
-
 
40182
            return SCX;
-
 
40183
          default:
-
 
40184
            return null;
-
 
40185
        }
-
 
40186
      }
-
 
40187
 
-
 
40188
      /**
-
 
40189
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40190
       * if it is not found.
-
 
40191
       */
-
 
40192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40193
        _Fields fields = findByThriftId(fieldId);
-
 
40194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40195
        return fields;
-
 
40196
      }
-
 
40197
 
-
 
40198
      /**
-
 
40199
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40200
       */
-
 
40201
      public static _Fields findByName(String name) {
-
 
40202
        return byName.get(name);
-
 
40203
      }
-
 
40204
 
-
 
40205
      private final short _thriftId;
-
 
40206
      private final String _fieldName;
-
 
40207
 
-
 
40208
      _Fields(short thriftId, String fieldName) {
-
 
40209
        _thriftId = thriftId;
-
 
40210
        _fieldName = fieldName;
-
 
40211
      }
-
 
40212
 
-
 
40213
      public short getThriftFieldId() {
-
 
40214
        return _thriftId;
-
 
40215
      }
-
 
40216
 
-
 
40217
      public String getFieldName() {
-
 
40218
        return _fieldName;
-
 
40219
      }
-
 
40220
    }
-
 
40221
 
-
 
40222
    // isset id assignments
-
 
40223
 
-
 
40224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40225
    static {
-
 
40226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40227
      tmpMap.put(_Fields.SCX, new org.apache.thrift.meta_data.FieldMetaData("scx", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
40229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeCartStatus_result.class, metaDataMap);
-
 
40231
    }
-
 
40232
 
-
 
40233
    public changeCartStatus_result() {
-
 
40234
    }
-
 
40235
 
-
 
40236
    public changeCartStatus_result(
-
 
40237
      ShoppingCartException scx)
-
 
40238
    {
-
 
40239
      this();
-
 
40240
      this.scx = scx;
-
 
40241
    }
-
 
40242
 
-
 
40243
    /**
-
 
40244
     * Performs a deep copy on <i>other</i>.
-
 
40245
     */
-
 
40246
    public changeCartStatus_result(changeCartStatus_result other) {
-
 
40247
      if (other.isSetScx()) {
-
 
40248
        this.scx = new ShoppingCartException(other.scx);
-
 
40249
      }
-
 
40250
    }
-
 
40251
 
-
 
40252
    public changeCartStatus_result deepCopy() {
-
 
40253
      return new changeCartStatus_result(this);
-
 
40254
    }
-
 
40255
 
-
 
40256
    @Override
-
 
40257
    public void clear() {
-
 
40258
      this.scx = null;
-
 
40259
    }
-
 
40260
 
-
 
40261
    public ShoppingCartException getScx() {
-
 
40262
      return this.scx;
-
 
40263
    }
-
 
40264
 
-
 
40265
    public void setScx(ShoppingCartException scx) {
-
 
40266
      this.scx = scx;
-
 
40267
    }
-
 
40268
 
-
 
40269
    public void unsetScx() {
-
 
40270
      this.scx = null;
-
 
40271
    }
-
 
40272
 
-
 
40273
    /** Returns true if field scx is set (has been assigned a value) and false otherwise */
-
 
40274
    public boolean isSetScx() {
-
 
40275
      return this.scx != null;
-
 
40276
    }
-
 
40277
 
-
 
40278
    public void setScxIsSet(boolean value) {
-
 
40279
      if (!value) {
-
 
40280
        this.scx = null;
-
 
40281
      }
-
 
40282
    }
-
 
40283
 
-
 
40284
    public void setFieldValue(_Fields field, Object value) {
-
 
40285
      switch (field) {
-
 
40286
      case SCX:
-
 
40287
        if (value == null) {
-
 
40288
          unsetScx();
-
 
40289
        } else {
-
 
40290
          setScx((ShoppingCartException)value);
-
 
40291
        }
-
 
40292
        break;
-
 
40293
 
-
 
40294
      }
-
 
40295
    }
-
 
40296
 
-
 
40297
    public Object getFieldValue(_Fields field) {
-
 
40298
      switch (field) {
-
 
40299
      case SCX:
-
 
40300
        return getScx();
-
 
40301
 
-
 
40302
      }
-
 
40303
      throw new IllegalStateException();
-
 
40304
    }
-
 
40305
 
-
 
40306
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40307
    public boolean isSet(_Fields field) {
-
 
40308
      if (field == null) {
-
 
40309
        throw new IllegalArgumentException();
-
 
40310
      }
-
 
40311
 
-
 
40312
      switch (field) {
-
 
40313
      case SCX:
-
 
40314
        return isSetScx();
-
 
40315
      }
-
 
40316
      throw new IllegalStateException();
-
 
40317
    }
-
 
40318
 
-
 
40319
    @Override
-
 
40320
    public boolean equals(Object that) {
-
 
40321
      if (that == null)
-
 
40322
        return false;
-
 
40323
      if (that instanceof changeCartStatus_result)
-
 
40324
        return this.equals((changeCartStatus_result)that);
-
 
40325
      return false;
-
 
40326
    }
-
 
40327
 
-
 
40328
    public boolean equals(changeCartStatus_result that) {
-
 
40329
      if (that == null)
-
 
40330
        return false;
-
 
40331
 
-
 
40332
      boolean this_present_scx = true && this.isSetScx();
-
 
40333
      boolean that_present_scx = true && that.isSetScx();
-
 
40334
      if (this_present_scx || that_present_scx) {
-
 
40335
        if (!(this_present_scx && that_present_scx))
-
 
40336
          return false;
-
 
40337
        if (!this.scx.equals(that.scx))
-
 
40338
          return false;
-
 
40339
      }
-
 
40340
 
-
 
40341
      return true;
-
 
40342
    }
-
 
40343
 
-
 
40344
    @Override
-
 
40345
    public int hashCode() {
-
 
40346
      return 0;
-
 
40347
    }
-
 
40348
 
-
 
40349
    public int compareTo(changeCartStatus_result other) {
-
 
40350
      if (!getClass().equals(other.getClass())) {
-
 
40351
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40352
      }
-
 
40353
 
-
 
40354
      int lastComparison = 0;
-
 
40355
      changeCartStatus_result typedOther = (changeCartStatus_result)other;
-
 
40356
 
-
 
40357
      lastComparison = Boolean.valueOf(isSetScx()).compareTo(typedOther.isSetScx());
-
 
40358
      if (lastComparison != 0) {
-
 
40359
        return lastComparison;
-
 
40360
      }
-
 
40361
      if (isSetScx()) {
-
 
40362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scx, typedOther.scx);
-
 
40363
        if (lastComparison != 0) {
-
 
40364
          return lastComparison;
-
 
40365
        }
-
 
40366
      }
-
 
40367
      return 0;
-
 
40368
    }
-
 
40369
 
-
 
40370
    public _Fields fieldForId(int fieldId) {
-
 
40371
      return _Fields.findByThriftId(fieldId);
-
 
40372
    }
-
 
40373
 
-
 
40374
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40375
      org.apache.thrift.protocol.TField field;
-
 
40376
      iprot.readStructBegin();
-
 
40377
      while (true)
-
 
40378
      {
-
 
40379
        field = iprot.readFieldBegin();
-
 
40380
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
40381
          break;
-
 
40382
        }
-
 
40383
        switch (field.id) {
-
 
40384
          case 1: // SCX
-
 
40385
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
40386
              this.scx = new ShoppingCartException();
-
 
40387
              this.scx.read(iprot);
-
 
40388
            } else { 
-
 
40389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40390
            }
-
 
40391
            break;
-
 
40392
          default:
-
 
40393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
40394
        }
-
 
40395
        iprot.readFieldEnd();
-
 
40396
      }
-
 
40397
      iprot.readStructEnd();
-
 
40398
      validate();
-
 
40399
    }
-
 
40400
 
-
 
40401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
40402
      oprot.writeStructBegin(STRUCT_DESC);
-
 
40403
 
-
 
40404
      if (this.isSetScx()) {
-
 
40405
        oprot.writeFieldBegin(SCX_FIELD_DESC);
-
 
40406
        this.scx.write(oprot);
-
 
40407
        oprot.writeFieldEnd();
-
 
40408
      }
-
 
40409
      oprot.writeFieldStop();
-
 
40410
      oprot.writeStructEnd();
-
 
40411
    }
-
 
40412
 
-
 
40413
    @Override
-
 
40414
    public String toString() {
-
 
40415
      StringBuilder sb = new StringBuilder("changeCartStatus_result(");
-
 
40416
      boolean first = true;
-
 
40417
 
-
 
40418
      sb.append("scx:");
-
 
40419
      if (this.scx == null) {
-
 
40420
        sb.append("null");
-
 
40421
      } else {
-
 
40422
        sb.append(this.scx);
-
 
40423
      }
-
 
40424
      first = false;
-
 
40425
      sb.append(")");
-
 
40426
      return sb.toString();
-
 
40427
    }
-
 
40428
 
-
 
40429
    public void validate() throws org.apache.thrift.TException {
-
 
40430
      // check for required fields
-
 
40431
    }
-
 
40432
 
-
 
40433
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40434
      try {
-
 
40435
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40436
      } catch (org.apache.thrift.TException te) {
-
 
40437
        throw new java.io.IOException(te);
-
 
40438
      }
-
 
40439
    }
-
 
40440
 
-
 
40441
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40442
      try {
-
 
40443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40444
      } catch (org.apache.thrift.TException te) {
-
 
40445
        throw new java.io.IOException(te);
-
 
40446
      }
-
 
40447
    }
-
 
40448
 
-
 
40449
  }
-
 
40450
 
-
 
40451
  public static class addItemToCart_args implements org.apache.thrift.TBase<addItemToCart_args, addItemToCart_args._Fields>, java.io.Serializable, Cloneable   {
37976
  public static class addItemToCart_args implements org.apache.thrift.TBase<addItemToCart_args, addItemToCart_args._Fields>, java.io.Serializable, Cloneable   {
40452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_args");
37977
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemToCart_args");
40453
 
37978
 
40454
    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);
37979
    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);
40455
    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);
37980
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
Line 45751... Line 43276...
45751
        }
43276
        }
45752
        switch (field.id) {
43277
        switch (field.id) {
45753
          case 1: // DISCOUNTS
43278
          case 1: // DISCOUNTS
45754
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
43279
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
45755
              {
43280
              {
45756
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
43281
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
45757
                this.discounts = new ArrayList<Discount>(_list81.size);
43282
                this.discounts = new ArrayList<Discount>(_list69.size);
45758
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
43283
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
45759
                {
43284
                {
45760
                  Discount _elem83; // required
43285
                  Discount _elem71; // required
45761
                  _elem83 = new Discount();
43286
                  _elem71 = new Discount();
45762
                  _elem83.read(iprot);
43287
                  _elem71.read(iprot);
45763
                  this.discounts.add(_elem83);
43288
                  this.discounts.add(_elem71);
45764
                }
43289
                }
45765
                iprot.readListEnd();
43290
                iprot.readListEnd();
45766
              }
43291
              }
45767
            } else { 
43292
            } else { 
45768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43293
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 45783... Line 43308...
45783
      oprot.writeStructBegin(STRUCT_DESC);
43308
      oprot.writeStructBegin(STRUCT_DESC);
45784
      if (this.discounts != null) {
43309
      if (this.discounts != null) {
45785
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
43310
        oprot.writeFieldBegin(DISCOUNTS_FIELD_DESC);
45786
        {
43311
        {
45787
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
43312
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.discounts.size()));
45788
          for (Discount _iter84 : this.discounts)
43313
          for (Discount _iter72 : this.discounts)
45789
          {
43314
          {
45790
            _iter84.write(oprot);
43315
            _iter72.write(oprot);
45791
          }
43316
          }
45792
          oprot.writeListEnd();
43317
          oprot.writeListEnd();
45793
        }
43318
        }
45794
        oprot.writeFieldEnd();
43319
        oprot.writeFieldEnd();
45795
      }
43320
      }
Line 46135... Line 43660...
46135
    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);
43660
    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);
46136
    private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
43661
    private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)2);
46137
    private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)3);
43662
    private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)3);
46138
    private static final org.apache.thrift.protocol.TField FIRST_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSource", org.apache.thrift.protocol.TType.STRING, (short)4);
43663
    private static final org.apache.thrift.protocol.TField FIRST_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSource", org.apache.thrift.protocol.TType.STRING, (short)4);
46139
    private static final org.apache.thrift.protocol.TField FIRST_SOURCE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSourceTime", org.apache.thrift.protocol.TType.I64, (short)5);
43664
    private static final org.apache.thrift.protocol.TField FIRST_SOURCE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSourceTime", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
43665
    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)6);
46140
 
43666
 
46141
    private long cartId; // required
43667
    private long cartId; // required
46142
    private String sessionSource; // required
43668
    private String sessionSource; // required
46143
    private long sessionStartTime; // required
43669
    private long sessionStartTime; // required
46144
    private String firstSource; // required
43670
    private String firstSource; // required
46145
    private long firstSourceTime; // required
43671
    private long firstSourceTime; // required
-
 
43672
    private long userId; // required
46146
 
43673
 
46147
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43674
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46148
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43675
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46149
      CART_ID((short)1, "cartId"),
43676
      CART_ID((short)1, "cartId"),
46150
      SESSION_SOURCE((short)2, "sessionSource"),
43677
      SESSION_SOURCE((short)2, "sessionSource"),
46151
      SESSION_START_TIME((short)3, "sessionStartTime"),
43678
      SESSION_START_TIME((short)3, "sessionStartTime"),
46152
      FIRST_SOURCE((short)4, "firstSource"),
43679
      FIRST_SOURCE((short)4, "firstSource"),
46153
      FIRST_SOURCE_TIME((short)5, "firstSourceTime");
43680
      FIRST_SOURCE_TIME((short)5, "firstSourceTime"),
-
 
43681
      USER_ID((short)6, "userId");
46154
 
43682
 
46155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46156
 
43684
 
46157
      static {
43685
      static {
46158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 46173... Line 43701...
46173
            return SESSION_START_TIME;
43701
            return SESSION_START_TIME;
46174
          case 4: // FIRST_SOURCE
43702
          case 4: // FIRST_SOURCE
46175
            return FIRST_SOURCE;
43703
            return FIRST_SOURCE;
46176
          case 5: // FIRST_SOURCE_TIME
43704
          case 5: // FIRST_SOURCE_TIME
46177
            return FIRST_SOURCE_TIME;
43705
            return FIRST_SOURCE_TIME;
-
 
43706
          case 6: // USER_ID
-
 
43707
            return USER_ID;
46178
          default:
43708
          default:
46179
            return null;
43709
            return null;
46180
        }
43710
        }
46181
      }
43711
      }
46182
 
43712
 
Line 46216... Line 43746...
46216
 
43746
 
46217
    // isset id assignments
43747
    // isset id assignments
46218
    private static final int __CARTID_ISSET_ID = 0;
43748
    private static final int __CARTID_ISSET_ID = 0;
46219
    private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
43749
    private static final int __SESSIONSTARTTIME_ISSET_ID = 1;
46220
    private static final int __FIRSTSOURCETIME_ISSET_ID = 2;
43750
    private static final int __FIRSTSOURCETIME_ISSET_ID = 2;
-
 
43751
    private static final int __USERID_ISSET_ID = 3;
46221
    private BitSet __isset_bit_vector = new BitSet(3);
43752
    private BitSet __isset_bit_vector = new BitSet(4);
46222
 
43753
 
46223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46224
    static {
43755
    static {
46225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46226
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43757
      tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 46231... Line 43762...
46231
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43762
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46232
      tmpMap.put(_Fields.FIRST_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("firstSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43763
      tmpMap.put(_Fields.FIRST_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("firstSource", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46233
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
43764
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
46234
      tmpMap.put(_Fields.FIRST_SOURCE_TIME, new org.apache.thrift.meta_data.FieldMetaData("firstSourceTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43765
      tmpMap.put(_Fields.FIRST_SOURCE_TIME, new org.apache.thrift.meta_data.FieldMetaData("firstSourceTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46235
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43766
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
43767
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
43768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46236
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46237
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
43770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrders_args.class, metaDataMap);
46238
    }
43771
    }
46239
 
43772
 
46240
    public createOrders_args() {
43773
    public createOrders_args() {
Line 46243... Line 43776...
46243
    public createOrders_args(
43776
    public createOrders_args(
46244
      long cartId,
43777
      long cartId,
46245
      String sessionSource,
43778
      String sessionSource,
46246
      long sessionStartTime,
43779
      long sessionStartTime,
46247
      String firstSource,
43780
      String firstSource,
46248
      long firstSourceTime)
43781
      long firstSourceTime,
-
 
43782
      long userId)
46249
    {
43783
    {
46250
      this();
43784
      this();
46251
      this.cartId = cartId;
43785
      this.cartId = cartId;
46252
      setCartIdIsSet(true);
43786
      setCartIdIsSet(true);
46253
      this.sessionSource = sessionSource;
43787
      this.sessionSource = sessionSource;
46254
      this.sessionStartTime = sessionStartTime;
43788
      this.sessionStartTime = sessionStartTime;
46255
      setSessionStartTimeIsSet(true);
43789
      setSessionStartTimeIsSet(true);
46256
      this.firstSource = firstSource;
43790
      this.firstSource = firstSource;
46257
      this.firstSourceTime = firstSourceTime;
43791
      this.firstSourceTime = firstSourceTime;
46258
      setFirstSourceTimeIsSet(true);
43792
      setFirstSourceTimeIsSet(true);
-
 
43793
      this.userId = userId;
-
 
43794
      setUserIdIsSet(true);
46259
    }
43795
    }
46260
 
43796
 
46261
    /**
43797
    /**
46262
     * Performs a deep copy on <i>other</i>.
43798
     * Performs a deep copy on <i>other</i>.
46263
     */
43799
     */
Line 46271... Line 43807...
46271
      this.sessionStartTime = other.sessionStartTime;
43807
      this.sessionStartTime = other.sessionStartTime;
46272
      if (other.isSetFirstSource()) {
43808
      if (other.isSetFirstSource()) {
46273
        this.firstSource = other.firstSource;
43809
        this.firstSource = other.firstSource;
46274
      }
43810
      }
46275
      this.firstSourceTime = other.firstSourceTime;
43811
      this.firstSourceTime = other.firstSourceTime;
-
 
43812
      this.userId = other.userId;
46276
    }
43813
    }
46277
 
43814
 
46278
    public createOrders_args deepCopy() {
43815
    public createOrders_args deepCopy() {
46279
      return new createOrders_args(this);
43816
      return new createOrders_args(this);
46280
    }
43817
    }
Line 46287... Line 43824...
46287
      setSessionStartTimeIsSet(false);
43824
      setSessionStartTimeIsSet(false);
46288
      this.sessionStartTime = 0;
43825
      this.sessionStartTime = 0;
46289
      this.firstSource = null;
43826
      this.firstSource = null;
46290
      setFirstSourceTimeIsSet(false);
43827
      setFirstSourceTimeIsSet(false);
46291
      this.firstSourceTime = 0;
43828
      this.firstSourceTime = 0;
-
 
43829
      setUserIdIsSet(false);
-
 
43830
      this.userId = 0;
46292
    }
43831
    }
46293
 
43832
 
46294
    public long getCartId() {
43833
    public long getCartId() {
46295
      return this.cartId;
43834
      return this.cartId;
46296
    }
43835
    }
Line 46401... Line 43940...
46401
 
43940
 
46402
    public void setFirstSourceTimeIsSet(boolean value) {
43941
    public void setFirstSourceTimeIsSet(boolean value) {
46403
      __isset_bit_vector.set(__FIRSTSOURCETIME_ISSET_ID, value);
43942
      __isset_bit_vector.set(__FIRSTSOURCETIME_ISSET_ID, value);
46404
    }
43943
    }
46405
 
43944
 
-
 
43945
    public long getUserId() {
-
 
43946
      return this.userId;
-
 
43947
    }
-
 
43948
 
-
 
43949
    public void setUserId(long userId) {
-
 
43950
      this.userId = userId;
-
 
43951
      setUserIdIsSet(true);
-
 
43952
    }
-
 
43953
 
-
 
43954
    public void unsetUserId() {
-
 
43955
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
43956
    }
-
 
43957
 
-
 
43958
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
43959
    public boolean isSetUserId() {
-
 
43960
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
43961
    }
-
 
43962
 
-
 
43963
    public void setUserIdIsSet(boolean value) {
-
 
43964
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
43965
    }
-
 
43966
 
46406
    public void setFieldValue(_Fields field, Object value) {
43967
    public void setFieldValue(_Fields field, Object value) {
46407
      switch (field) {
43968
      switch (field) {
46408
      case CART_ID:
43969
      case CART_ID:
46409
        if (value == null) {
43970
        if (value == null) {
46410
          unsetCartId();
43971
          unsetCartId();
Line 46443... Line 44004...
46443
        } else {
44004
        } else {
46444
          setFirstSourceTime((Long)value);
44005
          setFirstSourceTime((Long)value);
46445
        }
44006
        }
46446
        break;
44007
        break;
46447
 
44008
 
-
 
44009
      case USER_ID:
-
 
44010
        if (value == null) {
-
 
44011
          unsetUserId();
-
 
44012
        } else {
-
 
44013
          setUserId((Long)value);
-
 
44014
        }
-
 
44015
        break;
-
 
44016
 
46448
      }
44017
      }
46449
    }
44018
    }
46450
 
44019
 
46451
    public Object getFieldValue(_Fields field) {
44020
    public Object getFieldValue(_Fields field) {
46452
      switch (field) {
44021
      switch (field) {
Line 46463... Line 44032...
46463
        return getFirstSource();
44032
        return getFirstSource();
46464
 
44033
 
46465
      case FIRST_SOURCE_TIME:
44034
      case FIRST_SOURCE_TIME:
46466
        return Long.valueOf(getFirstSourceTime());
44035
        return Long.valueOf(getFirstSourceTime());
46467
 
44036
 
-
 
44037
      case USER_ID:
-
 
44038
        return Long.valueOf(getUserId());
-
 
44039
 
46468
      }
44040
      }
46469
      throw new IllegalStateException();
44041
      throw new IllegalStateException();
46470
    }
44042
    }
46471
 
44043
 
46472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 46484... Line 44056...
46484
        return isSetSessionStartTime();
44056
        return isSetSessionStartTime();
46485
      case FIRST_SOURCE:
44057
      case FIRST_SOURCE:
46486
        return isSetFirstSource();
44058
        return isSetFirstSource();
46487
      case FIRST_SOURCE_TIME:
44059
      case FIRST_SOURCE_TIME:
46488
        return isSetFirstSourceTime();
44060
        return isSetFirstSourceTime();
-
 
44061
      case USER_ID:
-
 
44062
        return isSetUserId();
46489
      }
44063
      }
46490
      throw new IllegalStateException();
44064
      throw new IllegalStateException();
46491
    }
44065
    }
46492
 
44066
 
46493
    @Override
44067
    @Override
Line 46546... Line 44120...
46546
          return false;
44120
          return false;
46547
        if (this.firstSourceTime != that.firstSourceTime)
44121
        if (this.firstSourceTime != that.firstSourceTime)
46548
          return false;
44122
          return false;
46549
      }
44123
      }
46550
 
44124
 
-
 
44125
      boolean this_present_userId = true;
-
 
44126
      boolean that_present_userId = true;
-
 
44127
      if (this_present_userId || that_present_userId) {
-
 
44128
        if (!(this_present_userId && that_present_userId))
-
 
44129
          return false;
-
 
44130
        if (this.userId != that.userId)
-
 
44131
          return false;
-
 
44132
      }
-
 
44133
 
46551
      return true;
44134
      return true;
46552
    }
44135
    }
46553
 
44136
 
46554
    @Override
44137
    @Override
46555
    public int hashCode() {
44138
    public int hashCode() {
Line 46612... Line 44195...
46612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstSourceTime, typedOther.firstSourceTime);
44195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstSourceTime, typedOther.firstSourceTime);
46613
        if (lastComparison != 0) {
44196
        if (lastComparison != 0) {
46614
          return lastComparison;
44197
          return lastComparison;
46615
        }
44198
        }
46616
      }
44199
      }
-
 
44200
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
44201
      if (lastComparison != 0) {
-
 
44202
        return lastComparison;
-
 
44203
      }
-
 
44204
      if (isSetUserId()) {
-
 
44205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
44206
        if (lastComparison != 0) {
-
 
44207
          return lastComparison;
-
 
44208
        }
-
 
44209
      }
46617
      return 0;
44210
      return 0;
46618
    }
44211
    }
46619
 
44212
 
46620
    public _Fields fieldForId(int fieldId) {
44213
    public _Fields fieldForId(int fieldId) {
46621
      return _Fields.findByThriftId(fieldId);
44214
      return _Fields.findByThriftId(fieldId);
Line 46667... Line 44260...
46667
              setFirstSourceTimeIsSet(true);
44260
              setFirstSourceTimeIsSet(true);
46668
            } else { 
44261
            } else { 
46669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46670
            }
44263
            }
46671
            break;
44264
            break;
-
 
44265
          case 6: // USER_ID
-
 
44266
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
44267
              this.userId = iprot.readI64();
-
 
44268
              setUserIdIsSet(true);
-
 
44269
            } else { 
-
 
44270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
44271
            }
-
 
44272
            break;
46672
          default:
44273
          default:
46673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46674
        }
44275
        }
46675
        iprot.readFieldEnd();
44276
        iprot.readFieldEnd();
46676
      }
44277
      }
Line 46699... Line 44300...
46699
        oprot.writeFieldEnd();
44300
        oprot.writeFieldEnd();
46700
      }
44301
      }
46701
      oprot.writeFieldBegin(FIRST_SOURCE_TIME_FIELD_DESC);
44302
      oprot.writeFieldBegin(FIRST_SOURCE_TIME_FIELD_DESC);
46702
      oprot.writeI64(this.firstSourceTime);
44303
      oprot.writeI64(this.firstSourceTime);
46703
      oprot.writeFieldEnd();
44304
      oprot.writeFieldEnd();
-
 
44305
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
44306
      oprot.writeI64(this.userId);
-
 
44307
      oprot.writeFieldEnd();
46704
      oprot.writeFieldStop();
44308
      oprot.writeFieldStop();
46705
      oprot.writeStructEnd();
44309
      oprot.writeStructEnd();
46706
    }
44310
    }
46707
 
44311
 
46708
    @Override
44312
    @Override
Line 46735... Line 44339...
46735
      first = false;
44339
      first = false;
46736
      if (!first) sb.append(", ");
44340
      if (!first) sb.append(", ");
46737
      sb.append("firstSourceTime:");
44341
      sb.append("firstSourceTime:");
46738
      sb.append(this.firstSourceTime);
44342
      sb.append(this.firstSourceTime);
46739
      first = false;
44343
      first = false;
-
 
44344
      if (!first) sb.append(", ");
-
 
44345
      sb.append("userId:");
-
 
44346
      sb.append(this.userId);
-
 
44347
      first = false;
46740
      sb.append(")");
44348
      sb.append(")");
46741
      return sb.toString();
44349
      return sb.toString();
46742
    }
44350
    }
46743
 
44351
 
46744
    public void validate() throws org.apache.thrift.TException {
44352
    public void validate() throws org.apache.thrift.TException {
Line 49481... Line 47089...
49481
            }
47089
            }
49482
            break;
47090
            break;
49483
          case 2: // ITEMS
47091
          case 2: // ITEMS
49484
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
47092
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
49485
              {
47093
              {
49486
                org.apache.thrift.protocol.TMap _map85 = iprot.readMapBegin();
47094
                org.apache.thrift.protocol.TMap _map73 = iprot.readMapBegin();
49487
                this.items = new HashMap<Long,Double>(2*_map85.size);
47095
                this.items = new HashMap<Long,Double>(2*_map73.size);
49488
                for (int _i86 = 0; _i86 < _map85.size; ++_i86)
47096
                for (int _i74 = 0; _i74 < _map73.size; ++_i74)
49489
                {
47097
                {
49490
                  long _key87; // required
47098
                  long _key75; // required
49491
                  double _val88; // required
47099
                  double _val76; // required
49492
                  _key87 = iprot.readI64();
47100
                  _key75 = iprot.readI64();
49493
                  _val88 = iprot.readDouble();
47101
                  _val76 = iprot.readDouble();
49494
                  this.items.put(_key87, _val88);
47102
                  this.items.put(_key75, _val76);
49495
                }
47103
                }
49496
                iprot.readMapEnd();
47104
                iprot.readMapEnd();
49497
              }
47105
              }
49498
            } else { 
47106
            } else { 
49499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47107
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 49517... Line 47125...
49517
      oprot.writeFieldEnd();
47125
      oprot.writeFieldEnd();
49518
      if (this.items != null) {
47126
      if (this.items != null) {
49519
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
47127
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
49520
        {
47128
        {
49521
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
47129
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.items.size()));
49522
          for (Map.Entry<Long, Double> _iter89 : this.items.entrySet())
47130
          for (Map.Entry<Long, Double> _iter77 : this.items.entrySet())
49523
          {
47131
          {
49524
            oprot.writeI64(_iter89.getKey());
47132
            oprot.writeI64(_iter77.getKey());
49525
            oprot.writeDouble(_iter89.getValue());
47133
            oprot.writeDouble(_iter77.getValue());
49526
          }
47134
          }
49527
          oprot.writeMapEnd();
47135
          oprot.writeMapEnd();
49528
        }
47136
        }
49529
        oprot.writeFieldEnd();
47137
        oprot.writeFieldEnd();
49530
      }
47138
      }
Line 51277... Line 48885...
51277
        }
48885
        }
51278
        switch (field.id) {
48886
        switch (field.id) {
51279
          case 0: // SUCCESS
48887
          case 0: // SUCCESS
51280
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48888
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51281
              {
48889
              {
51282
                org.apache.thrift.protocol.TList _list90 = iprot.readListBegin();
48890
                org.apache.thrift.protocol.TList _list78 = iprot.readListBegin();
51283
                this.success = new ArrayList<User>(_list90.size);
48891
                this.success = new ArrayList<User>(_list78.size);
51284
                for (int _i91 = 0; _i91 < _list90.size; ++_i91)
48892
                for (int _i79 = 0; _i79 < _list78.size; ++_i79)
51285
                {
48893
                {
51286
                  User _elem92; // required
48894
                  User _elem80; // required
51287
                  _elem92 = new User();
48895
                  _elem80 = new User();
51288
                  _elem92.read(iprot);
48896
                  _elem80.read(iprot);
51289
                  this.success.add(_elem92);
48897
                  this.success.add(_elem80);
51290
                }
48898
                }
51291
                iprot.readListEnd();
48899
                iprot.readListEnd();
51292
              }
48900
              }
51293
            } else { 
48901
            } else { 
51294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48902
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 51308... Line 48916...
51308
 
48916
 
51309
      if (this.isSetSuccess()) {
48917
      if (this.isSetSuccess()) {
51310
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48918
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51311
        {
48919
        {
51312
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48920
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
51313
          for (User _iter93 : this.success)
48921
          for (User _iter81 : this.success)
51314
          {
48922
          {
51315
            _iter93.write(oprot);
48923
            _iter81.write(oprot);
51316
          }
48924
          }
51317
          oprot.writeListEnd();
48925
          oprot.writeListEnd();
51318
        }
48926
        }
51319
        oprot.writeFieldEnd();
48927
        oprot.writeFieldEnd();
51320
      }
48928
      }
Line 52737... Line 50345...
52737
        }
50345
        }
52738
        switch (field.id) {
50346
        switch (field.id) {
52739
          case 0: // SUCCESS
50347
          case 0: // SUCCESS
52740
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
50348
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52741
              {
50349
              {
52742
                org.apache.thrift.protocol.TList _list94 = iprot.readListBegin();
50350
                org.apache.thrift.protocol.TList _list82 = iprot.readListBegin();
52743
                this.success = new ArrayList<UserNote>(_list94.size);
50351
                this.success = new ArrayList<UserNote>(_list82.size);
52744
                for (int _i95 = 0; _i95 < _list94.size; ++_i95)
50352
                for (int _i83 = 0; _i83 < _list82.size; ++_i83)
52745
                {
50353
                {
52746
                  UserNote _elem96; // required
50354
                  UserNote _elem84; // required
52747
                  _elem96 = new UserNote();
50355
                  _elem84 = new UserNote();
52748
                  _elem96.read(iprot);
50356
                  _elem84.read(iprot);
52749
                  this.success.add(_elem96);
50357
                  this.success.add(_elem84);
52750
                }
50358
                }
52751
                iprot.readListEnd();
50359
                iprot.readListEnd();
52752
              }
50360
              }
52753
            } else { 
50361
            } else { 
52754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 52768... Line 50376...
52768
 
50376
 
52769
      if (this.isSetSuccess()) {
50377
      if (this.isSetSuccess()) {
52770
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50378
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52771
        {
50379
        {
52772
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
50380
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
52773
          for (UserNote _iter97 : this.success)
50381
          for (UserNote _iter85 : this.success)
52774
          {
50382
          {
52775
            _iter97.write(oprot);
50383
            _iter85.write(oprot);
52776
          }
50384
          }
52777
          oprot.writeListEnd();
50385
          oprot.writeListEnd();
52778
        }
50386
        }
52779
        oprot.writeFieldEnd();
50387
        oprot.writeFieldEnd();
52780
      }
50388
      }
Line 53430... Line 51038...
53430
        }
51038
        }
53431
        switch (field.id) {
51039
        switch (field.id) {
53432
          case 0: // SUCCESS
51040
          case 0: // SUCCESS
53433
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
51041
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53434
              {
51042
              {
53435
                org.apache.thrift.protocol.TList _list98 = iprot.readListBegin();
51043
                org.apache.thrift.protocol.TList _list86 = iprot.readListBegin();
53436
                this.success = new ArrayList<Long>(_list98.size);
51044
                this.success = new ArrayList<Long>(_list86.size);
53437
                for (int _i99 = 0; _i99 < _list98.size; ++_i99)
51045
                for (int _i87 = 0; _i87 < _list86.size; ++_i87)
53438
                {
51046
                {
53439
                  long _elem100; // required
51047
                  long _elem88; // required
53440
                  _elem100 = iprot.readI64();
51048
                  _elem88 = iprot.readI64();
53441
                  this.success.add(_elem100);
51049
                  this.success.add(_elem88);
53442
                }
51050
                }
53443
                iprot.readListEnd();
51051
                iprot.readListEnd();
53444
              }
51052
              }
53445
            } else { 
51053
            } else { 
53446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 53468... Line 51076...
53468
 
51076
 
53469
      if (this.isSetSuccess()) {
51077
      if (this.isSetSuccess()) {
53470
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51078
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53471
        {
51079
        {
53472
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
51080
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
53473
          for (long _iter101 : this.success)
51081
          for (long _iter89 : this.success)
53474
          {
51082
          {
53475
            oprot.writeI64(_iter101);
51083
            oprot.writeI64(_iter89);
53476
          }
51084
          }
53477
          oprot.writeListEnd();
51085
          oprot.writeListEnd();
53478
        }
51086
        }
53479
        oprot.writeFieldEnd();
51087
        oprot.writeFieldEnd();
53480
      } else if (this.isSetScx()) {
51088
      } else if (this.isSetScx()) {
Line 55569... Line 53177...
55569
        }
53177
        }
55570
        switch (field.id) {
53178
        switch (field.id) {
55571
          case 0: // SUCCESS
53179
          case 0: // SUCCESS
55572
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53180
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55573
              {
53181
              {
55574
                org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
53182
                org.apache.thrift.protocol.TList _list90 = iprot.readListBegin();
55575
                this.success = new ArrayList<Long>(_list102.size);
53183
                this.success = new ArrayList<Long>(_list90.size);
55576
                for (int _i103 = 0; _i103 < _list102.size; ++_i103)
53184
                for (int _i91 = 0; _i91 < _list90.size; ++_i91)
55577
                {
53185
                {
55578
                  long _elem104; // required
53186
                  long _elem92; // required
55579
                  _elem104 = iprot.readI64();
53187
                  _elem92 = iprot.readI64();
55580
                  this.success.add(_elem104);
53188
                  this.success.add(_elem92);
55581
                }
53189
                }
55582
                iprot.readListEnd();
53190
                iprot.readListEnd();
55583
              }
53191
              }
55584
            } else { 
53192
            } else { 
55585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 55607... Line 53215...
55607
 
53215
 
55608
      if (this.isSetSuccess()) {
53216
      if (this.isSetSuccess()) {
55609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53217
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55610
        {
53218
        {
55611
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
53219
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
55612
          for (long _iter105 : this.success)
53220
          for (long _iter93 : this.success)
55613
          {
53221
          {
55614
            oprot.writeI64(_iter105);
53222
            oprot.writeI64(_iter93);
55615
          }
53223
          }
55616
          oprot.writeListEnd();
53224
          oprot.writeListEnd();
55617
        }
53225
        }
55618
        oprot.writeFieldEnd();
53226
        oprot.writeFieldEnd();
55619
      } else if (this.isSetScx()) {
53227
      } else if (this.isSetScx()) {