Subversion Repositories SmartDukaan

Rev

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

Rev 765 Rev 772
Line 299... Line 299...
299
     - cartId
299
     - cartId
300
     - items
300
     - items
301
    """
301
    """
302
    pass
302
    pass
303
 
303
 
304
  def addWidget(self, widget):
304
  def getMyResearch(self, userId):
305
    """
-
 
306
    Parameters:
-
 
307
     - widget
-
 
308
    """
-
 
309
    pass
-
 
310
 
-
 
311
  def addItemToWidget(self, widget_id, items):
-
 
312
    """
-
 
313
    Parameters:
-
 
314
     - widget_id
-
 
315
     - items
-
 
316
    """
-
 
317
    pass
-
 
318
 
-
 
319
  def deleteItemFromWidget(self, widget_id, item_id):
-
 
320
    """
-
 
321
    Parameters:
-
 
322
     - widget_id
-
 
323
     - item_id
-
 
324
    """
-
 
325
    pass
-
 
326
 
-
 
327
  def updateWidget(self, widgetId, enable):
-
 
328
    """
-
 
329
    Parameters:
-
 
330
     - widgetId
-
 
331
     - enable
-
 
332
    """
-
 
333
    pass
-
 
334
 
-
 
335
  def updateWidgetItem(self, widgetId, enable):
-
 
336
    """
-
 
337
    Parameters:
-
 
338
     - widgetId
-
 
339
     - enable
-
 
340
    """
-
 
341
    pass
-
 
342
 
-
 
343
  def getWidget(self, type, userId, onlyEnabled):
-
 
344
    """
305
    """
-
 
306
    Widgets
-
 
307
    
345
    Parameters:
308
    Parameters:
346
     - type
-
 
347
     - userId
309
     - userId
348
     - onlyEnabled
-
 
349
    """
-
 
350
    pass
-
 
351
 
-
 
352
  def getMyResearch(self, user_id):
-
 
353
    """
-
 
354
    Parameters:
-
 
355
     - user_id
-
 
356
    """
-
 
357
    pass
-
 
358
 
-
 
359
  def updateMyResearch(self, user_id, item_id):
-
 
360
    """
-
 
361
    Parameters:
-
 
362
     - user_id
-
 
363
     - item_id
-
 
364
    """
310
    """
365
    pass
311
    pass
366
 
312
 
367
  def deleteItemFromMyResearch(self, user_id, item_id):
313
  def updateMyResearch(self, userId, itemId):
368
    """
314
    """
369
    Parameters:
315
    Parameters:
370
     - user_id
316
     - userId
371
     - item_id
317
     - itemId
372
    """
318
    """
373
    pass
319
    pass
374
 
320
 
375
  def updateRatings(self, item_id, type, rating, user_id):
321
  def deleteItemFromMyResearch(self, userId, itemId):
376
    """
322
    """
377
    Parameters:
323
    Parameters:
378
     - item_id
324
     - userId
379
     - type
-
 
380
     - rating
-
 
381
     - user_id
325
     - itemId
382
    """
326
    """
383
    pass
327
    pass
384
 
328
 
385
  def getRatings(self, item_id, user_id):
329
  def updateBrowseHistory(self, userId, itemId):
386
    """
330
    """
387
    Parameters:
331
    Parameters:
388
     - item_id
332
     - userId
389
     - user_id
333
     - itemId
390
    """
334
    """
391
    pass
335
    pass
392
 
336
 
393
  def updateBrowseHistory(self, user_id, item_id, isSessionId):
337
  def getBrowseHistory(self, userId):
394
    """
338
    """
395
    Parameters:
339
    Parameters:
396
     - user_id
340
     - userId
397
     - item_id
-
 
398
     - isSessionId
-
 
399
    """
341
    """
400
    pass
342
    pass
401
 
343
 
402
  def getBrowseHistory(self, userId, isSessionId):
344
  def mergeBrowseHistory(self, fromUserId, toUserId):
403
    """
345
    """
404
    Parameters:
346
    Parameters:
405
     - userId
347
     - fromUserId
406
     - isSessionId
348
     - toUserId
407
    """
349
    """
408
    pass
350
    pass
409
 
351
 
410
 
352
 
411
class Client(Iface):
353
class Client(Iface):
Line 1575... Line 1517...
1575
      return result.success
1517
      return result.success
1576
    if result.scex != None:
1518
    if result.scex != None:
1577
      raise result.scex
1519
      raise result.scex
1578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
1520
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
1579
 
1521
 
1580
  def addWidget(self, widget):
-
 
1581
    """
-
 
1582
    Parameters:
-
 
1583
     - widget
-
 
1584
    """
-
 
1585
    self.send_addWidget(widget)
-
 
1586
    self.recv_addWidget()
-
 
1587
 
-
 
1588
  def send_addWidget(self, widget):
1522
  def getMyResearch(self, userId):
1589
    self._oprot.writeMessageBegin('addWidget', TMessageType.CALL, self._seqid)
-
 
1590
    args = addWidget_args()
-
 
1591
    args.widget = widget
-
 
1592
    args.write(self._oprot)
-
 
1593
    self._oprot.writeMessageEnd()
-
 
1594
    self._oprot.trans.flush()
-
 
1595
 
-
 
1596
  def recv_addWidget(self, ):
-
 
1597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1598
    if mtype == TMessageType.EXCEPTION:
-
 
1599
      x = TApplicationException()
-
 
1600
      x.read(self._iprot)
-
 
1601
      self._iprot.readMessageEnd()
-
 
1602
      raise x
-
 
1603
    result = addWidget_result()
-
 
1604
    result.read(self._iprot)
-
 
1605
    self._iprot.readMessageEnd()
-
 
1606
    if result.scx != None:
-
 
1607
      raise result.scx
-
 
1608
    return
-
 
1609
 
-
 
1610
  def addItemToWidget(self, widget_id, items):
-
 
1611
    """
-
 
1612
    Parameters:
-
 
1613
     - widget_id
-
 
1614
     - items
-
 
1615
    """
-
 
1616
    self.send_addItemToWidget(widget_id, items)
-
 
1617
    self.recv_addItemToWidget()
-
 
1618
 
-
 
1619
  def send_addItemToWidget(self, widget_id, items):
-
 
1620
    self._oprot.writeMessageBegin('addItemToWidget', TMessageType.CALL, self._seqid)
-
 
1621
    args = addItemToWidget_args()
-
 
1622
    args.widget_id = widget_id
-
 
1623
    args.items = items
-
 
1624
    args.write(self._oprot)
-
 
1625
    self._oprot.writeMessageEnd()
-
 
1626
    self._oprot.trans.flush()
-
 
1627
 
-
 
1628
  def recv_addItemToWidget(self, ):
-
 
1629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1630
    if mtype == TMessageType.EXCEPTION:
-
 
1631
      x = TApplicationException()
-
 
1632
      x.read(self._iprot)
-
 
1633
      self._iprot.readMessageEnd()
-
 
1634
      raise x
-
 
1635
    result = addItemToWidget_result()
-
 
1636
    result.read(self._iprot)
-
 
1637
    self._iprot.readMessageEnd()
-
 
1638
    if result.scx != None:
-
 
1639
      raise result.scx
-
 
1640
    return
-
 
1641
 
-
 
1642
  def deleteItemFromWidget(self, widget_id, item_id):
-
 
1643
    """
-
 
1644
    Parameters:
-
 
1645
     - widget_id
-
 
1646
     - item_id
-
 
1647
    """
-
 
1648
    self.send_deleteItemFromWidget(widget_id, item_id)
-
 
1649
    self.recv_deleteItemFromWidget()
-
 
1650
 
-
 
1651
  def send_deleteItemFromWidget(self, widget_id, item_id):
-
 
1652
    self._oprot.writeMessageBegin('deleteItemFromWidget', TMessageType.CALL, self._seqid)
-
 
1653
    args = deleteItemFromWidget_args()
-
 
1654
    args.widget_id = widget_id
-
 
1655
    args.item_id = item_id
-
 
1656
    args.write(self._oprot)
-
 
1657
    self._oprot.writeMessageEnd()
-
 
1658
    self._oprot.trans.flush()
-
 
1659
 
-
 
1660
  def recv_deleteItemFromWidget(self, ):
-
 
1661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1662
    if mtype == TMessageType.EXCEPTION:
-
 
1663
      x = TApplicationException()
-
 
1664
      x.read(self._iprot)
-
 
1665
      self._iprot.readMessageEnd()
-
 
1666
      raise x
-
 
1667
    result = deleteItemFromWidget_result()
-
 
1668
    result.read(self._iprot)
-
 
1669
    self._iprot.readMessageEnd()
-
 
1670
    if result.scx != None:
-
 
1671
      raise result.scx
-
 
1672
    return
-
 
1673
 
-
 
1674
  def updateWidget(self, widgetId, enable):
-
 
1675
    """
-
 
1676
    Parameters:
-
 
1677
     - widgetId
-
 
1678
     - enable
-
 
1679
    """
-
 
1680
    self.send_updateWidget(widgetId, enable)
-
 
1681
    self.recv_updateWidget()
-
 
1682
 
-
 
1683
  def send_updateWidget(self, widgetId, enable):
-
 
1684
    self._oprot.writeMessageBegin('updateWidget', TMessageType.CALL, self._seqid)
-
 
1685
    args = updateWidget_args()
-
 
1686
    args.widgetId = widgetId
-
 
1687
    args.enable = enable
-
 
1688
    args.write(self._oprot)
-
 
1689
    self._oprot.writeMessageEnd()
-
 
1690
    self._oprot.trans.flush()
-
 
1691
 
-
 
1692
  def recv_updateWidget(self, ):
-
 
1693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1694
    if mtype == TMessageType.EXCEPTION:
-
 
1695
      x = TApplicationException()
-
 
1696
      x.read(self._iprot)
-
 
1697
      self._iprot.readMessageEnd()
-
 
1698
      raise x
-
 
1699
    result = updateWidget_result()
-
 
1700
    result.read(self._iprot)
-
 
1701
    self._iprot.readMessageEnd()
-
 
1702
    if result.scx != None:
-
 
1703
      raise result.scx
-
 
1704
    return
-
 
1705
 
-
 
1706
  def updateWidgetItem(self, widgetId, enable):
-
 
1707
    """
-
 
1708
    Parameters:
-
 
1709
     - widgetId
-
 
1710
     - enable
-
 
1711
    """
-
 
1712
    self.send_updateWidgetItem(widgetId, enable)
-
 
1713
    self.recv_updateWidgetItem()
-
 
1714
 
-
 
1715
  def send_updateWidgetItem(self, widgetId, enable):
-
 
1716
    self._oprot.writeMessageBegin('updateWidgetItem', TMessageType.CALL, self._seqid)
-
 
1717
    args = updateWidgetItem_args()
-
 
1718
    args.widgetId = widgetId
-
 
1719
    args.enable = enable
-
 
1720
    args.write(self._oprot)
-
 
1721
    self._oprot.writeMessageEnd()
-
 
1722
    self._oprot.trans.flush()
-
 
1723
 
-
 
1724
  def recv_updateWidgetItem(self, ):
-
 
1725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1726
    if mtype == TMessageType.EXCEPTION:
-
 
1727
      x = TApplicationException()
-
 
1728
      x.read(self._iprot)
-
 
1729
      self._iprot.readMessageEnd()
-
 
1730
      raise x
-
 
1731
    result = updateWidgetItem_result()
-
 
1732
    result.read(self._iprot)
-
 
1733
    self._iprot.readMessageEnd()
-
 
1734
    if result.scx != None:
-
 
1735
      raise result.scx
-
 
1736
    return
-
 
1737
 
-
 
1738
  def getWidget(self, type, userId, onlyEnabled):
-
 
1739
    """
1523
    """
-
 
1524
    Widgets
-
 
1525
    
1740
    Parameters:
1526
    Parameters:
1741
     - type
-
 
1742
     - userId
1527
     - userId
1743
     - onlyEnabled
-
 
1744
    """
1528
    """
1745
    self.send_getWidget(type, userId, onlyEnabled)
-
 
1746
    return self.recv_getWidget()
-
 
1747
 
-
 
1748
  def send_getWidget(self, type, userId, onlyEnabled):
-
 
1749
    self._oprot.writeMessageBegin('getWidget', TMessageType.CALL, self._seqid)
-
 
1750
    args = getWidget_args()
-
 
1751
    args.type = type
-
 
1752
    args.userId = userId
-
 
1753
    args.onlyEnabled = onlyEnabled
-
 
1754
    args.write(self._oprot)
-
 
1755
    self._oprot.writeMessageEnd()
-
 
1756
    self._oprot.trans.flush()
-
 
1757
 
-
 
1758
  def recv_getWidget(self, ):
-
 
1759
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1760
    if mtype == TMessageType.EXCEPTION:
-
 
1761
      x = TApplicationException()
-
 
1762
      x.read(self._iprot)
-
 
1763
      self._iprot.readMessageEnd()
-
 
1764
      raise x
-
 
1765
    result = getWidget_result()
-
 
1766
    result.read(self._iprot)
-
 
1767
    self._iprot.readMessageEnd()
-
 
1768
    if result.success != None:
-
 
1769
      return result.success
-
 
1770
    if result.scx != None:
-
 
1771
      raise result.scx
-
 
1772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWidget failed: unknown result");
-
 
1773
 
-
 
1774
  def getMyResearch(self, user_id):
-
 
1775
    """
-
 
1776
    Parameters:
-
 
1777
     - user_id
-
 
1778
    """
-
 
1779
    self.send_getMyResearch(user_id)
1529
    self.send_getMyResearch(userId)
1780
    return self.recv_getMyResearch()
1530
    return self.recv_getMyResearch()
1781
 
1531
 
1782
  def send_getMyResearch(self, user_id):
1532
  def send_getMyResearch(self, userId):
1783
    self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)
1533
    self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)
1784
    args = getMyResearch_args()
1534
    args = getMyResearch_args()
1785
    args.user_id = user_id
1535
    args.userId = userId
1786
    args.write(self._oprot)
1536
    args.write(self._oprot)
1787
    self._oprot.writeMessageEnd()
1537
    self._oprot.writeMessageEnd()
1788
    self._oprot.trans.flush()
1538
    self._oprot.trans.flush()
1789
 
1539
 
1790
  def recv_getMyResearch(self, ):
1540
  def recv_getMyResearch(self, ):
Line 1801... Line 1551...
1801
      return result.success
1551
      return result.success
1802
    if result.scx != None:
1552
    if result.scx != None:
1803
      raise result.scx
1553
      raise result.scx
1804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
1554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
1805
 
1555
 
1806
  def updateMyResearch(self, user_id, item_id):
1556
  def updateMyResearch(self, userId, itemId):
1807
    """
1557
    """
1808
    Parameters:
1558
    Parameters:
1809
     - user_id
1559
     - userId
1810
     - item_id
1560
     - itemId
1811
    """
1561
    """
1812
    self.send_updateMyResearch(user_id, item_id)
1562
    self.send_updateMyResearch(userId, itemId)
1813
    return self.recv_updateMyResearch()
1563
    return self.recv_updateMyResearch()
1814
 
1564
 
1815
  def send_updateMyResearch(self, user_id, item_id):
1565
  def send_updateMyResearch(self, userId, itemId):
1816
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
1566
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
1817
    args = updateMyResearch_args()
1567
    args = updateMyResearch_args()
1818
    args.user_id = user_id
1568
    args.userId = userId
1819
    args.item_id = item_id
1569
    args.itemId = itemId
1820
    args.write(self._oprot)
1570
    args.write(self._oprot)
1821
    self._oprot.writeMessageEnd()
1571
    self._oprot.writeMessageEnd()
1822
    self._oprot.trans.flush()
1572
    self._oprot.trans.flush()
1823
 
1573
 
1824
  def recv_updateMyResearch(self, ):
1574
  def recv_updateMyResearch(self, ):
Line 1835... Line 1585...
1835
      return result.success
1585
      return result.success
1836
    if result.scx != None:
1586
    if result.scx != None:
1837
      raise result.scx
1587
      raise result.scx
1838
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
1588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
1839
 
1589
 
1840
  def deleteItemFromMyResearch(self, user_id, item_id):
1590
  def deleteItemFromMyResearch(self, userId, itemId):
1841
    """
1591
    """
1842
    Parameters:
1592
    Parameters:
1843
     - user_id
1593
     - userId
1844
     - item_id
1594
     - itemId
1845
    """
1595
    """
1846
    self.send_deleteItemFromMyResearch(user_id, item_id)
1596
    self.send_deleteItemFromMyResearch(userId, itemId)
1847
    self.recv_deleteItemFromMyResearch()
1597
    self.recv_deleteItemFromMyResearch()
1848
 
1598
 
1849
  def send_deleteItemFromMyResearch(self, user_id, item_id):
1599
  def send_deleteItemFromMyResearch(self, userId, itemId):
1850
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
1600
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
1851
    args = deleteItemFromMyResearch_args()
1601
    args = deleteItemFromMyResearch_args()
1852
    args.user_id = user_id
1602
    args.userId = userId
1853
    args.item_id = item_id
1603
    args.itemId = itemId
1854
    args.write(self._oprot)
1604
    args.write(self._oprot)
1855
    self._oprot.writeMessageEnd()
1605
    self._oprot.writeMessageEnd()
1856
    self._oprot.trans.flush()
1606
    self._oprot.trans.flush()
1857
 
1607
 
1858
  def recv_deleteItemFromMyResearch(self, ):
1608
  def recv_deleteItemFromMyResearch(self, ):
Line 1867... Line 1617...
1867
    self._iprot.readMessageEnd()
1617
    self._iprot.readMessageEnd()
1868
    if result.scx != None:
1618
    if result.scx != None:
1869
      raise result.scx
1619
      raise result.scx
1870
    return
1620
    return
1871
 
1621
 
1872
  def updateRatings(self, item_id, type, rating, user_id):
1622
  def updateBrowseHistory(self, userId, itemId):
1873
    """
1623
    """
1874
    Parameters:
1624
    Parameters:
1875
     - item_id
1625
     - userId
1876
     - type
-
 
1877
     - rating
-
 
1878
     - user_id
1626
     - itemId
1879
    """
1627
    """
1880
    self.send_updateRatings(item_id, type, rating, user_id)
1628
    self.send_updateBrowseHistory(userId, itemId)
1881
    self.recv_updateRatings()
1629
    self.recv_updateBrowseHistory()
1882
 
1630
 
1883
  def send_updateRatings(self, item_id, type, rating, user_id):
1631
  def send_updateBrowseHistory(self, userId, itemId):
1884
    self._oprot.writeMessageBegin('updateRatings', TMessageType.CALL, self._seqid)
1632
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
1885
    args = updateRatings_args()
1633
    args = updateBrowseHistory_args()
1886
    args.item_id = item_id
1634
    args.userId = userId
1887
    args.type = type
-
 
1888
    args.rating = rating
-
 
1889
    args.user_id = user_id
1635
    args.itemId = itemId
1890
    args.write(self._oprot)
1636
    args.write(self._oprot)
1891
    self._oprot.writeMessageEnd()
1637
    self._oprot.writeMessageEnd()
1892
    self._oprot.trans.flush()
1638
    self._oprot.trans.flush()
1893
 
1639
 
1894
  def recv_updateRatings(self, ):
1640
  def recv_updateBrowseHistory(self, ):
1895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1896
    if mtype == TMessageType.EXCEPTION:
1642
    if mtype == TMessageType.EXCEPTION:
1897
      x = TApplicationException()
1643
      x = TApplicationException()
1898
      x.read(self._iprot)
1644
      x.read(self._iprot)
1899
      self._iprot.readMessageEnd()
1645
      self._iprot.readMessageEnd()
1900
      raise x
1646
      raise x
1901
    result = updateRatings_result()
1647
    result = updateBrowseHistory_result()
1902
    result.read(self._iprot)
1648
    result.read(self._iprot)
1903
    self._iprot.readMessageEnd()
1649
    self._iprot.readMessageEnd()
1904
    return
1650
    return
1905
 
1651
 
1906
  def getRatings(self, item_id, user_id):
1652
  def getBrowseHistory(self, userId):
1907
    """
1653
    """
1908
    Parameters:
1654
    Parameters:
1909
     - item_id
-
 
1910
     - user_id
1655
     - userId
1911
    """
1656
    """
1912
    self.send_getRatings(item_id, user_id)
1657
    self.send_getBrowseHistory(userId)
1913
    return self.recv_getRatings()
1658
    return self.recv_getBrowseHistory()
1914
 
1659
 
1915
  def send_getRatings(self, item_id, user_id):
1660
  def send_getBrowseHistory(self, userId):
1916
    self._oprot.writeMessageBegin('getRatings', TMessageType.CALL, self._seqid)
1661
    self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)
1917
    args = getRatings_args()
1662
    args = getBrowseHistory_args()
1918
    args.item_id = item_id
-
 
1919
    args.user_id = user_id
1663
    args.userId = userId
1920
    args.write(self._oprot)
1664
    args.write(self._oprot)
1921
    self._oprot.writeMessageEnd()
1665
    self._oprot.writeMessageEnd()
1922
    self._oprot.trans.flush()
1666
    self._oprot.trans.flush()
1923
 
1667
 
1924
  def recv_getRatings(self, ):
1668
  def recv_getBrowseHistory(self, ):
1925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1926
    if mtype == TMessageType.EXCEPTION:
1670
    if mtype == TMessageType.EXCEPTION:
1927
      x = TApplicationException()
1671
      x = TApplicationException()
1928
      x.read(self._iprot)
1672
      x.read(self._iprot)
1929
      self._iprot.readMessageEnd()
1673
      self._iprot.readMessageEnd()
1930
      raise x
1674
      raise x
1931
    result = getRatings_result()
1675
    result = getBrowseHistory_result()
1932
    result.read(self._iprot)
1676
    result.read(self._iprot)
1933
    self._iprot.readMessageEnd()
1677
    self._iprot.readMessageEnd()
1934
    if result.success != None:
1678
    if result.success != None:
1935
      return result.success
1679
      return result.success
1936
    if result.scx != None:
1680
    if result.scx != None:
1937
      raise result.scx
1681
      raise result.scx
1938
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRatings failed: unknown result");
1682
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
1939
 
1683
 
1940
  def updateBrowseHistory(self, user_id, item_id, isSessionId):
1684
  def mergeBrowseHistory(self, fromUserId, toUserId):
1941
    """
1685
    """
1942
    Parameters:
1686
    Parameters:
1943
     - user_id
1687
     - fromUserId
1944
     - item_id
1688
     - toUserId
1945
     - isSessionId
-
 
1946
    """
1689
    """
1947
    self.send_updateBrowseHistory(user_id, item_id, isSessionId)
1690
    self.send_mergeBrowseHistory(fromUserId, toUserId)
1948
    self.recv_updateBrowseHistory()
1691
    self.recv_mergeBrowseHistory()
1949
 
1692
 
1950
  def send_updateBrowseHistory(self, user_id, item_id, isSessionId):
1693
  def send_mergeBrowseHistory(self, fromUserId, toUserId):
1951
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
1694
    self._oprot.writeMessageBegin('mergeBrowseHistory', TMessageType.CALL, self._seqid)
1952
    args = updateBrowseHistory_args()
1695
    args = mergeBrowseHistory_args()
1953
    args.user_id = user_id
1696
    args.fromUserId = fromUserId
1954
    args.item_id = item_id
1697
    args.toUserId = toUserId
1955
    args.isSessionId = isSessionId
-
 
1956
    args.write(self._oprot)
1698
    args.write(self._oprot)
1957
    self._oprot.writeMessageEnd()
1699
    self._oprot.writeMessageEnd()
1958
    self._oprot.trans.flush()
1700
    self._oprot.trans.flush()
1959
 
1701
 
1960
  def recv_updateBrowseHistory(self, ):
1702
  def recv_mergeBrowseHistory(self, ):
1961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1962
    if mtype == TMessageType.EXCEPTION:
1704
    if mtype == TMessageType.EXCEPTION:
1963
      x = TApplicationException()
1705
      x = TApplicationException()
1964
      x.read(self._iprot)
1706
      x.read(self._iprot)
1965
      self._iprot.readMessageEnd()
1707
      self._iprot.readMessageEnd()
1966
      raise x
1708
      raise x
1967
    result = updateBrowseHistory_result()
1709
    result = mergeBrowseHistory_result()
1968
    result.read(self._iprot)
1710
    result.read(self._iprot)
1969
    self._iprot.readMessageEnd()
1711
    self._iprot.readMessageEnd()
1970
    return
1712
    return
1971
 
1713
 
1972
  def getBrowseHistory(self, userId, isSessionId):
-
 
1973
    """
-
 
1974
    Parameters:
-
 
1975
     - userId
-
 
1976
     - isSessionId
-
 
1977
    """
-
 
1978
    self.send_getBrowseHistory(userId, isSessionId)
-
 
1979
    return self.recv_getBrowseHistory()
-
 
1980
 
-
 
1981
  def send_getBrowseHistory(self, userId, isSessionId):
-
 
1982
    self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)
-
 
1983
    args = getBrowseHistory_args()
-
 
1984
    args.userId = userId
-
 
1985
    args.isSessionId = isSessionId
-
 
1986
    args.write(self._oprot)
-
 
1987
    self._oprot.writeMessageEnd()
-
 
1988
    self._oprot.trans.flush()
-
 
1989
 
-
 
1990
  def recv_getBrowseHistory(self, ):
-
 
1991
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1992
    if mtype == TMessageType.EXCEPTION:
-
 
1993
      x = TApplicationException()
-
 
1994
      x.read(self._iprot)
-
 
1995
      self._iprot.readMessageEnd()
-
 
1996
      raise x
-
 
1997
    result = getBrowseHistory_result()
-
 
1998
    result.read(self._iprot)
-
 
1999
    self._iprot.readMessageEnd()
-
 
2000
    if result.success != None:
-
 
2001
      return result.success
-
 
2002
    if result.scx != None:
-
 
2003
      raise result.scx
-
 
2004
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
-
 
2005
 
-
 
2006
 
1714
 
2007
class Processor(Iface, TProcessor):
1715
class Processor(Iface, TProcessor):
2008
  def __init__(self, handler):
1716
  def __init__(self, handler):
2009
    self._handler = handler
1717
    self._handler = handler
2010
    self._processMap = {}
1718
    self._processMap = {}
Line 2041... Line 1749...
2041
    self._processMap["createOrders"] = Processor.process_createOrders
1749
    self._processMap["createOrders"] = Processor.process_createOrders
2042
    self._processMap["validateCart"] = Processor.process_validateCart
1750
    self._processMap["validateCart"] = Processor.process_validateCart
2043
    self._processMap["mergeCart"] = Processor.process_mergeCart
1751
    self._processMap["mergeCart"] = Processor.process_mergeCart
2044
    self._processMap["checkOut"] = Processor.process_checkOut
1752
    self._processMap["checkOut"] = Processor.process_checkOut
2045
    self._processMap["resetCart"] = Processor.process_resetCart
1753
    self._processMap["resetCart"] = Processor.process_resetCart
2046
    self._processMap["addWidget"] = Processor.process_addWidget
-
 
2047
    self._processMap["addItemToWidget"] = Processor.process_addItemToWidget
-
 
2048
    self._processMap["deleteItemFromWidget"] = Processor.process_deleteItemFromWidget
-
 
2049
    self._processMap["updateWidget"] = Processor.process_updateWidget
-
 
2050
    self._processMap["updateWidgetItem"] = Processor.process_updateWidgetItem
-
 
2051
    self._processMap["getWidget"] = Processor.process_getWidget
-
 
2052
    self._processMap["getMyResearch"] = Processor.process_getMyResearch
1754
    self._processMap["getMyResearch"] = Processor.process_getMyResearch
2053
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
1755
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2054
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
1756
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2055
    self._processMap["updateRatings"] = Processor.process_updateRatings
-
 
2056
    self._processMap["getRatings"] = Processor.process_getRatings
-
 
2057
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
1757
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
2058
    self._processMap["getBrowseHistory"] = Processor.process_getBrowseHistory
1758
    self._processMap["getBrowseHistory"] = Processor.process_getBrowseHistory
-
 
1759
    self._processMap["mergeBrowseHistory"] = Processor.process_mergeBrowseHistory
2059
 
1760
 
2060
  def process(self, iprot, oprot):
1761
  def process(self, iprot, oprot):
2061
    (name, type, seqid) = iprot.readMessageBegin()
1762
    (name, type, seqid) = iprot.readMessageBegin()
2062
    if name not in self._processMap:
1763
    if name not in self._processMap:
2063
      iprot.skip(TType.STRUCT)
1764
      iprot.skip(TType.STRUCT)
Line 2554... Line 2255...
2554
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
2255
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
2555
    result.write(oprot)
2256
    result.write(oprot)
2556
    oprot.writeMessageEnd()
2257
    oprot.writeMessageEnd()
2557
    oprot.trans.flush()
2258
    oprot.trans.flush()
2558
 
2259
 
2559
  def process_addWidget(self, seqid, iprot, oprot):
-
 
2560
    args = addWidget_args()
-
 
2561
    args.read(iprot)
-
 
2562
    iprot.readMessageEnd()
-
 
2563
    result = addWidget_result()
-
 
2564
    try:
-
 
2565
      self._handler.addWidget(args.widget)
-
 
2566
    except WidgetException, scx:
-
 
2567
      result.scx = scx
-
 
2568
    oprot.writeMessageBegin("addWidget", TMessageType.REPLY, seqid)
-
 
2569
    result.write(oprot)
-
 
2570
    oprot.writeMessageEnd()
-
 
2571
    oprot.trans.flush()
-
 
2572
 
-
 
2573
  def process_addItemToWidget(self, seqid, iprot, oprot):
-
 
2574
    args = addItemToWidget_args()
-
 
2575
    args.read(iprot)
-
 
2576
    iprot.readMessageEnd()
-
 
2577
    result = addItemToWidget_result()
-
 
2578
    try:
-
 
2579
      self._handler.addItemToWidget(args.widget_id, args.items)
-
 
2580
    except WidgetException, scx:
-
 
2581
      result.scx = scx
-
 
2582
    oprot.writeMessageBegin("addItemToWidget", TMessageType.REPLY, seqid)
-
 
2583
    result.write(oprot)
-
 
2584
    oprot.writeMessageEnd()
-
 
2585
    oprot.trans.flush()
-
 
2586
 
-
 
2587
  def process_deleteItemFromWidget(self, seqid, iprot, oprot):
-
 
2588
    args = deleteItemFromWidget_args()
-
 
2589
    args.read(iprot)
-
 
2590
    iprot.readMessageEnd()
-
 
2591
    result = deleteItemFromWidget_result()
-
 
2592
    try:
-
 
2593
      self._handler.deleteItemFromWidget(args.widget_id, args.item_id)
-
 
2594
    except WidgetException, scx:
-
 
2595
      result.scx = scx
-
 
2596
    oprot.writeMessageBegin("deleteItemFromWidget", TMessageType.REPLY, seqid)
-
 
2597
    result.write(oprot)
-
 
2598
    oprot.writeMessageEnd()
-
 
2599
    oprot.trans.flush()
-
 
2600
 
-
 
2601
  def process_updateWidget(self, seqid, iprot, oprot):
-
 
2602
    args = updateWidget_args()
-
 
2603
    args.read(iprot)
-
 
2604
    iprot.readMessageEnd()
-
 
2605
    result = updateWidget_result()
-
 
2606
    try:
-
 
2607
      self._handler.updateWidget(args.widgetId, args.enable)
-
 
2608
    except WidgetException, scx:
-
 
2609
      result.scx = scx
-
 
2610
    oprot.writeMessageBegin("updateWidget", TMessageType.REPLY, seqid)
-
 
2611
    result.write(oprot)
-
 
2612
    oprot.writeMessageEnd()
-
 
2613
    oprot.trans.flush()
-
 
2614
 
-
 
2615
  def process_updateWidgetItem(self, seqid, iprot, oprot):
-
 
2616
    args = updateWidgetItem_args()
-
 
2617
    args.read(iprot)
-
 
2618
    iprot.readMessageEnd()
-
 
2619
    result = updateWidgetItem_result()
-
 
2620
    try:
-
 
2621
      self._handler.updateWidgetItem(args.widgetId, args.enable)
-
 
2622
    except WidgetException, scx:
-
 
2623
      result.scx = scx
-
 
2624
    oprot.writeMessageBegin("updateWidgetItem", TMessageType.REPLY, seqid)
-
 
2625
    result.write(oprot)
-
 
2626
    oprot.writeMessageEnd()
-
 
2627
    oprot.trans.flush()
-
 
2628
 
-
 
2629
  def process_getWidget(self, seqid, iprot, oprot):
-
 
2630
    args = getWidget_args()
-
 
2631
    args.read(iprot)
-
 
2632
    iprot.readMessageEnd()
-
 
2633
    result = getWidget_result()
-
 
2634
    try:
-
 
2635
      result.success = self._handler.getWidget(args.type, args.userId, args.onlyEnabled)
-
 
2636
    except WidgetException, scx:
-
 
2637
      result.scx = scx
-
 
2638
    oprot.writeMessageBegin("getWidget", TMessageType.REPLY, seqid)
-
 
2639
    result.write(oprot)
-
 
2640
    oprot.writeMessageEnd()
-
 
2641
    oprot.trans.flush()
-
 
2642
 
-
 
2643
  def process_getMyResearch(self, seqid, iprot, oprot):
2260
  def process_getMyResearch(self, seqid, iprot, oprot):
2644
    args = getMyResearch_args()
2261
    args = getMyResearch_args()
2645
    args.read(iprot)
2262
    args.read(iprot)
2646
    iprot.readMessageEnd()
2263
    iprot.readMessageEnd()
2647
    result = getMyResearch_result()
2264
    result = getMyResearch_result()
2648
    try:
2265
    try:
2649
      result.success = self._handler.getMyResearch(args.user_id)
2266
      result.success = self._handler.getMyResearch(args.userId)
2650
    except WidgetException, scx:
2267
    except WidgetException, scx:
2651
      result.scx = scx
2268
      result.scx = scx
2652
    oprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)
2269
    oprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)
2653
    result.write(oprot)
2270
    result.write(oprot)
2654
    oprot.writeMessageEnd()
2271
    oprot.writeMessageEnd()
Line 2658... Line 2275...
2658
    args = updateMyResearch_args()
2275
    args = updateMyResearch_args()
2659
    args.read(iprot)
2276
    args.read(iprot)
2660
    iprot.readMessageEnd()
2277
    iprot.readMessageEnd()
2661
    result = updateMyResearch_result()
2278
    result = updateMyResearch_result()
2662
    try:
2279
    try:
2663
      result.success = self._handler.updateMyResearch(args.user_id, args.item_id)
2280
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
2664
    except WidgetException, scx:
2281
    except WidgetException, scx:
2665
      result.scx = scx
2282
      result.scx = scx
2666
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
2283
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
2667
    result.write(oprot)
2284
    result.write(oprot)
2668
    oprot.writeMessageEnd()
2285
    oprot.writeMessageEnd()
Line 2672... Line 2289...
2672
    args = deleteItemFromMyResearch_args()
2289
    args = deleteItemFromMyResearch_args()
2673
    args.read(iprot)
2290
    args.read(iprot)
2674
    iprot.readMessageEnd()
2291
    iprot.readMessageEnd()
2675
    result = deleteItemFromMyResearch_result()
2292
    result = deleteItemFromMyResearch_result()
2676
    try:
2293
    try:
2677
      self._handler.deleteItemFromMyResearch(args.user_id, args.item_id)
2294
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
2678
    except WidgetException, scx:
2295
    except WidgetException, scx:
2679
      result.scx = scx
2296
      result.scx = scx
2680
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
2297
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
2681
    result.write(oprot)
2298
    result.write(oprot)
2682
    oprot.writeMessageEnd()
2299
    oprot.writeMessageEnd()
2683
    oprot.trans.flush()
2300
    oprot.trans.flush()
2684
 
2301
 
2685
  def process_updateRatings(self, seqid, iprot, oprot):
-
 
2686
    args = updateRatings_args()
-
 
2687
    args.read(iprot)
-
 
2688
    iprot.readMessageEnd()
-
 
2689
    result = updateRatings_result()
-
 
2690
    self._handler.updateRatings(args.item_id, args.type, args.rating, args.user_id)
-
 
2691
    oprot.writeMessageBegin("updateRatings", TMessageType.REPLY, seqid)
-
 
2692
    result.write(oprot)
-
 
2693
    oprot.writeMessageEnd()
-
 
2694
    oprot.trans.flush()
-
 
2695
 
-
 
2696
  def process_getRatings(self, seqid, iprot, oprot):
-
 
2697
    args = getRatings_args()
-
 
2698
    args.read(iprot)
-
 
2699
    iprot.readMessageEnd()
-
 
2700
    result = getRatings_result()
-
 
2701
    try:
-
 
2702
      result.success = self._handler.getRatings(args.item_id, args.user_id)
-
 
2703
    except WidgetException, scx:
-
 
2704
      result.scx = scx
-
 
2705
    oprot.writeMessageBegin("getRatings", TMessageType.REPLY, seqid)
-
 
2706
    result.write(oprot)
-
 
2707
    oprot.writeMessageEnd()
-
 
2708
    oprot.trans.flush()
-
 
2709
 
-
 
2710
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
2302
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
2711
    args = updateBrowseHistory_args()
2303
    args = updateBrowseHistory_args()
2712
    args.read(iprot)
2304
    args.read(iprot)
2713
    iprot.readMessageEnd()
2305
    iprot.readMessageEnd()
2714
    result = updateBrowseHistory_result()
2306
    result = updateBrowseHistory_result()
2715
    self._handler.updateBrowseHistory(args.user_id, args.item_id, args.isSessionId)
2307
    self._handler.updateBrowseHistory(args.userId, args.itemId)
2716
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2308
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2717
    result.write(oprot)
2309
    result.write(oprot)
2718
    oprot.writeMessageEnd()
2310
    oprot.writeMessageEnd()
2719
    oprot.trans.flush()
2311
    oprot.trans.flush()
2720
 
2312
 
Line 2722... Line 2314...
2722
    args = getBrowseHistory_args()
2314
    args = getBrowseHistory_args()
2723
    args.read(iprot)
2315
    args.read(iprot)
2724
    iprot.readMessageEnd()
2316
    iprot.readMessageEnd()
2725
    result = getBrowseHistory_result()
2317
    result = getBrowseHistory_result()
2726
    try:
2318
    try:
2727
      result.success = self._handler.getBrowseHistory(args.userId, args.isSessionId)
2319
      result.success = self._handler.getBrowseHistory(args.userId)
2728
    except WidgetException, scx:
2320
    except WidgetException, scx:
2729
      result.scx = scx
2321
      result.scx = scx
2730
    oprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)
2322
    oprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)
2731
    result.write(oprot)
2323
    result.write(oprot)
2732
    oprot.writeMessageEnd()
2324
    oprot.writeMessageEnd()
2733
    oprot.trans.flush()
2325
    oprot.trans.flush()
2734
 
2326
 
-
 
2327
  def process_mergeBrowseHistory(self, seqid, iprot, oprot):
-
 
2328
    args = mergeBrowseHistory_args()
-
 
2329
    args.read(iprot)
-
 
2330
    iprot.readMessageEnd()
-
 
2331
    result = mergeBrowseHistory_result()
-
 
2332
    self._handler.mergeBrowseHistory(args.fromUserId, args.toUserId)
-
 
2333
    oprot.writeMessageBegin("mergeBrowseHistory", TMessageType.REPLY, seqid)
-
 
2334
    result.write(oprot)
-
 
2335
    oprot.writeMessageEnd()
-
 
2336
    oprot.trans.flush()
-
 
2337
 
2735
 
2338
 
2736
# HELPER FUNCTIONS AND STRUCTURES
2339
# HELPER FUNCTIONS AND STRUCTURES
2737
 
2340
 
2738
class closeSession_args:
2341
class closeSession_args:
2739
 
2342
 
Line 4870... Line 4473...
4870
      if ftype == TType.STOP:
4473
      if ftype == TType.STOP:
4871
        break
4474
        break
4872
      if fid == 0:
4475
      if fid == 0:
4873
        if ftype == TType.LIST:
4476
        if ftype == TType.LIST:
4874
          self.success = []
4477
          self.success = []
4875
          (_etype40, _size37) = iprot.readListBegin()
4478
          (_etype31, _size28) = iprot.readListBegin()
4876
          for _i41 in xrange(_size37):
4479
          for _i32 in xrange(_size28):
4877
            _elem42 = Address()
4480
            _elem33 = Address()
4878
            _elem42.read(iprot)
4481
            _elem33.read(iprot)
4879
            self.success.append(_elem42)
4482
            self.success.append(_elem33)
4880
          iprot.readListEnd()
4483
          iprot.readListEnd()
4881
        else:
4484
        else:
4882
          iprot.skip(ftype)
4485
          iprot.skip(ftype)
4883
      elif fid == 1:
4486
      elif fid == 1:
4884
        if ftype == TType.STRUCT:
4487
        if ftype == TType.STRUCT:
Line 4897... Line 4500...
4897
      return
4500
      return
4898
    oprot.writeStructBegin('getAllAddressesForUser_result')
4501
    oprot.writeStructBegin('getAllAddressesForUser_result')
4899
    if self.success != None:
4502
    if self.success != None:
4900
      oprot.writeFieldBegin('success', TType.LIST, 0)
4503
      oprot.writeFieldBegin('success', TType.LIST, 0)
4901
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4504
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4902
      for iter43 in self.success:
4505
      for iter34 in self.success:
4903
        iter43.write(oprot)
4506
        iter34.write(oprot)
4904
      oprot.writeListEnd()
4507
      oprot.writeListEnd()
4905
      oprot.writeFieldEnd()
4508
      oprot.writeFieldEnd()
4906
    if self.ucx != None:
4509
    if self.ucx != None:
4907
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4510
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4908
      self.ucx.write(oprot)
4511
      self.ucx.write(oprot)
Line 5513... Line 5116...
5513
      if ftype == TType.STOP:
5116
      if ftype == TType.STOP:
5514
        break
5117
        break
5515
      if fid == 0:
5118
      if fid == 0:
5516
        if ftype == TType.LIST:
5119
        if ftype == TType.LIST:
5517
          self.success = []
5120
          self.success = []
5518
          (_etype47, _size44) = iprot.readListBegin()
5121
          (_etype38, _size35) = iprot.readListBegin()
5519
          for _i48 in xrange(_size44):
5122
          for _i39 in xrange(_size35):
5520
            _elem49 = Cart()
5123
            _elem40 = Cart()
5521
            _elem49.read(iprot)
5124
            _elem40.read(iprot)
5522
            self.success.append(_elem49)
5125
            self.success.append(_elem40)
5523
          iprot.readListEnd()
5126
          iprot.readListEnd()
5524
        else:
5127
        else:
5525
          iprot.skip(ftype)
5128
          iprot.skip(ftype)
5526
      elif fid == 1:
5129
      elif fid == 1:
5527
        if ftype == TType.STRUCT:
5130
        if ftype == TType.STRUCT:
Line 5540... Line 5143...
5540
      return
5143
      return
5541
    oprot.writeStructBegin('getCartsForUser_result')
5144
    oprot.writeStructBegin('getCartsForUser_result')
5542
    if self.success != None:
5145
    if self.success != None:
5543
      oprot.writeFieldBegin('success', TType.LIST, 0)
5146
      oprot.writeFieldBegin('success', TType.LIST, 0)
5544
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5147
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5545
      for iter50 in self.success:
5148
      for iter41 in self.success:
5546
        iter50.write(oprot)
5149
        iter41.write(oprot)
5547
      oprot.writeListEnd()
5150
      oprot.writeListEnd()
5548
      oprot.writeFieldEnd()
5151
      oprot.writeFieldEnd()
5549
    if self.scx != None:
5152
    if self.scx != None:
5550
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5153
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5551
      self.scx.write(oprot)
5154
      self.scx.write(oprot)
Line 5646... Line 5249...
5646
      if ftype == TType.STOP:
5249
      if ftype == TType.STOP:
5647
        break
5250
        break
5648
      if fid == 0:
5251
      if fid == 0:
5649
        if ftype == TType.LIST:
5252
        if ftype == TType.LIST:
5650
          self.success = []
5253
          self.success = []
5651
          (_etype54, _size51) = iprot.readListBegin()
5254
          (_etype45, _size42) = iprot.readListBegin()
5652
          for _i55 in xrange(_size51):
5255
          for _i46 in xrange(_size42):
5653
            _elem56 = Cart()
5256
            _elem47 = Cart()
5654
            _elem56.read(iprot)
5257
            _elem47.read(iprot)
5655
            self.success.append(_elem56)
5258
            self.success.append(_elem47)
5656
          iprot.readListEnd()
5259
          iprot.readListEnd()
5657
        else:
5260
        else:
5658
          iprot.skip(ftype)
5261
          iprot.skip(ftype)
5659
      elif fid == 1:
5262
      elif fid == 1:
5660
        if ftype == TType.STRUCT:
5263
        if ftype == TType.STRUCT:
Line 5673... Line 5276...
5673
      return
5276
      return
5674
    oprot.writeStructBegin('getCartsByStatus_result')
5277
    oprot.writeStructBegin('getCartsByStatus_result')
5675
    if self.success != None:
5278
    if self.success != None:
5676
      oprot.writeFieldBegin('success', TType.LIST, 0)
5279
      oprot.writeFieldBegin('success', TType.LIST, 0)
5677
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5280
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5678
      for iter57 in self.success:
5281
      for iter48 in self.success:
5679
        iter57.write(oprot)
5282
        iter48.write(oprot)
5680
      oprot.writeListEnd()
5283
      oprot.writeListEnd()
5681
      oprot.writeFieldEnd()
5284
      oprot.writeFieldEnd()
5682
    if self.scx != None:
5285
    if self.scx != None:
5683
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5286
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5684
      self.scx.write(oprot)
5287
      self.scx.write(oprot)
Line 5803... Line 5406...
5803
      if ftype == TType.STOP:
5406
      if ftype == TType.STOP:
5804
        break
5407
        break
5805
      if fid == 0:
5408
      if fid == 0:
5806
        if ftype == TType.LIST:
5409
        if ftype == TType.LIST:
5807
          self.success = []
5410
          self.success = []
5808
          (_etype61, _size58) = iprot.readListBegin()
5411
          (_etype52, _size49) = iprot.readListBegin()
5809
          for _i62 in xrange(_size58):
5412
          for _i53 in xrange(_size49):
5810
            _elem63 = Cart()
5413
            _elem54 = Cart()
5811
            _elem63.read(iprot)
5414
            _elem54.read(iprot)
5812
            self.success.append(_elem63)
5415
            self.success.append(_elem54)
5813
          iprot.readListEnd()
5416
          iprot.readListEnd()
5814
        else:
5417
        else:
5815
          iprot.skip(ftype)
5418
          iprot.skip(ftype)
5816
      elif fid == 1:
5419
      elif fid == 1:
5817
        if ftype == TType.STRUCT:
5420
        if ftype == TType.STRUCT:
Line 5830... Line 5433...
5830
      return
5433
      return
5831
    oprot.writeStructBegin('getCartsByTime_result')
5434
    oprot.writeStructBegin('getCartsByTime_result')
5832
    if self.success != None:
5435
    if self.success != None:
5833
      oprot.writeFieldBegin('success', TType.LIST, 0)
5436
      oprot.writeFieldBegin('success', TType.LIST, 0)
5834
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5437
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5835
      for iter64 in self.success:
5438
      for iter55 in self.success:
5836
        iter64.write(oprot)
5439
        iter55.write(oprot)
5837
      oprot.writeListEnd()
5440
      oprot.writeListEnd()
5838
      oprot.writeFieldEnd()
5441
      oprot.writeFieldEnd()
5839
    if self.scx != None:
5442
    if self.scx != None:
5840
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5443
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
5841
      self.scx.write(oprot)
5444
      self.scx.write(oprot)
Line 7150... Line 6753...
7150
        else:
6753
        else:
7151
          iprot.skip(ftype)
6754
          iprot.skip(ftype)
7152
      elif fid == 2:
6755
      elif fid == 2:
7153
        if ftype == TType.MAP:
6756
        if ftype == TType.MAP:
7154
          self.items = {}
6757
          self.items = {}
7155
          (_ktype66, _vtype67, _size65 ) = iprot.readMapBegin() 
6758
          (_ktype57, _vtype58, _size56 ) = iprot.readMapBegin() 
7156
          for _i69 in xrange(_size65):
6759
          for _i60 in xrange(_size56):
7157
            _key70 = iprot.readI64();
6760
            _key61 = iprot.readI64();
7158
            _val71 = iprot.readDouble();
6761
            _val62 = iprot.readDouble();
7159
            self.items[_key70] = _val71
6762
            self.items[_key61] = _val62
7160
          iprot.readMapEnd()
6763
          iprot.readMapEnd()
7161
        else:
6764
        else:
7162
          iprot.skip(ftype)
6765
          iprot.skip(ftype)
7163
      else:
6766
      else:
7164
        iprot.skip(ftype)
6767
        iprot.skip(ftype)
Line 7175... Line 6778...
7175
      oprot.writeI64(self.cartId)
6778
      oprot.writeI64(self.cartId)
7176
      oprot.writeFieldEnd()
6779
      oprot.writeFieldEnd()
7177
    if self.items != None:
6780
    if self.items != None:
7178
      oprot.writeFieldBegin('items', TType.MAP, 2)
6781
      oprot.writeFieldBegin('items', TType.MAP, 2)
7179
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
6782
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
7180
      for kiter72,viter73 in self.items.items():
6783
      for kiter63,viter64 in self.items.items():
7181
        oprot.writeI64(kiter72)
6784
        oprot.writeI64(kiter63)
7182
        oprot.writeDouble(viter73)
6785
        oprot.writeDouble(viter64)
7183
      oprot.writeMapEnd()
6786
      oprot.writeMapEnd()
7184
      oprot.writeFieldEnd()
6787
      oprot.writeFieldEnd()
7185
    oprot.writeFieldStop()
6788
    oprot.writeFieldStop()
7186
    oprot.writeStructEnd()
6789
    oprot.writeStructEnd()
7187
 
6790
 
Line 7262... Line 6865...
7262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7263
 
6866
 
7264
  def __ne__(self, other):
6867
  def __ne__(self, other):
7265
    return not (self == other)
6868
    return not (self == other)
7266
 
6869
 
7267
class addWidget_args:
-
 
7268
  """
-
 
7269
  Attributes:
-
 
7270
   - widget
-
 
7271
  """
-
 
7272
 
-
 
7273
  thrift_spec = (
-
 
7274
    None, # 0
-
 
7275
    (1, TType.STRUCT, 'widget', (Widget, Widget.thrift_spec), None, ), # 1
-
 
7276
  )
-
 
7277
 
-
 
7278
  def __init__(self, widget=None,):
-
 
7279
    self.widget = widget
-
 
7280
 
-
 
7281
  def read(self, iprot):
-
 
7282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7284
      return
-
 
7285
    iprot.readStructBegin()
-
 
7286
    while True:
-
 
7287
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7288
      if ftype == TType.STOP:
-
 
7289
        break
-
 
7290
      if fid == 1:
-
 
7291
        if ftype == TType.STRUCT:
-
 
7292
          self.widget = Widget()
-
 
7293
          self.widget.read(iprot)
-
 
7294
        else:
-
 
7295
          iprot.skip(ftype)
-
 
7296
      else:
-
 
7297
        iprot.skip(ftype)
-
 
7298
      iprot.readFieldEnd()
-
 
7299
    iprot.readStructEnd()
-
 
7300
 
-
 
7301
  def write(self, oprot):
-
 
7302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7304
      return
-
 
7305
    oprot.writeStructBegin('addWidget_args')
-
 
7306
    if self.widget != None:
-
 
7307
      oprot.writeFieldBegin('widget', TType.STRUCT, 1)
-
 
7308
      self.widget.write(oprot)
-
 
7309
      oprot.writeFieldEnd()
-
 
7310
    oprot.writeFieldStop()
-
 
7311
    oprot.writeStructEnd()
-
 
7312
 
-
 
7313
  def __repr__(self):
-
 
7314
    L = ['%s=%r' % (key, value)
-
 
7315
      for key, value in self.__dict__.iteritems()]
-
 
7316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7317
 
-
 
7318
  def __eq__(self, other):
-
 
7319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7320
 
-
 
7321
  def __ne__(self, other):
-
 
7322
    return not (self == other)
-
 
7323
 
-
 
7324
class addWidget_result:
-
 
7325
  """
-
 
7326
  Attributes:
-
 
7327
   - scx
-
 
7328
  """
-
 
7329
 
-
 
7330
  thrift_spec = (
-
 
7331
    None, # 0
-
 
7332
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7333
  )
-
 
7334
 
-
 
7335
  def __init__(self, scx=None,):
-
 
7336
    self.scx = scx
-
 
7337
 
-
 
7338
  def read(self, iprot):
-
 
7339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7341
      return
-
 
7342
    iprot.readStructBegin()
-
 
7343
    while True:
-
 
7344
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7345
      if ftype == TType.STOP:
-
 
7346
        break
-
 
7347
      if fid == 1:
-
 
7348
        if ftype == TType.STRUCT:
-
 
7349
          self.scx = WidgetException()
-
 
7350
          self.scx.read(iprot)
-
 
7351
        else:
-
 
7352
          iprot.skip(ftype)
-
 
7353
      else:
-
 
7354
        iprot.skip(ftype)
-
 
7355
      iprot.readFieldEnd()
-
 
7356
    iprot.readStructEnd()
-
 
7357
 
-
 
7358
  def write(self, oprot):
-
 
7359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7361
      return
-
 
7362
    oprot.writeStructBegin('addWidget_result')
-
 
7363
    if self.scx != None:
-
 
7364
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
7365
      self.scx.write(oprot)
-
 
7366
      oprot.writeFieldEnd()
-
 
7367
    oprot.writeFieldStop()
-
 
7368
    oprot.writeStructEnd()
-
 
7369
 
-
 
7370
  def __repr__(self):
-
 
7371
    L = ['%s=%r' % (key, value)
-
 
7372
      for key, value in self.__dict__.iteritems()]
-
 
7373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7374
 
-
 
7375
  def __eq__(self, other):
-
 
7376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7377
 
-
 
7378
  def __ne__(self, other):
-
 
7379
    return not (self == other)
-
 
7380
 
-
 
7381
class addItemToWidget_args:
-
 
7382
  """
-
 
7383
  Attributes:
-
 
7384
   - widget_id
-
 
7385
   - items
-
 
7386
  """
-
 
7387
 
-
 
7388
  thrift_spec = (
-
 
7389
    None, # 0
-
 
7390
    (1, TType.I64, 'widget_id', None, None, ), # 1
-
 
7391
    (2, TType.LIST, 'items', (TType.I64,None), None, ), # 2
-
 
7392
  )
-
 
7393
 
-
 
7394
  def __init__(self, widget_id=None, items=None,):
-
 
7395
    self.widget_id = widget_id
-
 
7396
    self.items = items
-
 
7397
 
-
 
7398
  def read(self, iprot):
-
 
7399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7401
      return
-
 
7402
    iprot.readStructBegin()
-
 
7403
    while True:
-
 
7404
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7405
      if ftype == TType.STOP:
-
 
7406
        break
-
 
7407
      if fid == 1:
-
 
7408
        if ftype == TType.I64:
-
 
7409
          self.widget_id = iprot.readI64();
-
 
7410
        else:
-
 
7411
          iprot.skip(ftype)
-
 
7412
      elif fid == 2:
-
 
7413
        if ftype == TType.LIST:
-
 
7414
          self.items = []
-
 
7415
          (_etype77, _size74) = iprot.readListBegin()
-
 
7416
          for _i78 in xrange(_size74):
-
 
7417
            _elem79 = iprot.readI64();
-
 
7418
            self.items.append(_elem79)
-
 
7419
          iprot.readListEnd()
-
 
7420
        else:
-
 
7421
          iprot.skip(ftype)
-
 
7422
      else:
-
 
7423
        iprot.skip(ftype)
-
 
7424
      iprot.readFieldEnd()
-
 
7425
    iprot.readStructEnd()
-
 
7426
 
-
 
7427
  def write(self, oprot):
-
 
7428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7430
      return
-
 
7431
    oprot.writeStructBegin('addItemToWidget_args')
-
 
7432
    if self.widget_id != None:
-
 
7433
      oprot.writeFieldBegin('widget_id', TType.I64, 1)
-
 
7434
      oprot.writeI64(self.widget_id)
-
 
7435
      oprot.writeFieldEnd()
-
 
7436
    if self.items != None:
-
 
7437
      oprot.writeFieldBegin('items', TType.LIST, 2)
-
 
7438
      oprot.writeListBegin(TType.I64, len(self.items))
-
 
7439
      for iter80 in self.items:
-
 
7440
        oprot.writeI64(iter80)
-
 
7441
      oprot.writeListEnd()
-
 
7442
      oprot.writeFieldEnd()
-
 
7443
    oprot.writeFieldStop()
-
 
7444
    oprot.writeStructEnd()
-
 
7445
 
-
 
7446
  def __repr__(self):
-
 
7447
    L = ['%s=%r' % (key, value)
-
 
7448
      for key, value in self.__dict__.iteritems()]
-
 
7449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7450
 
-
 
7451
  def __eq__(self, other):
-
 
7452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7453
 
-
 
7454
  def __ne__(self, other):
-
 
7455
    return not (self == other)
-
 
7456
 
-
 
7457
class addItemToWidget_result:
-
 
7458
  """
-
 
7459
  Attributes:
-
 
7460
   - scx
-
 
7461
  """
-
 
7462
 
-
 
7463
  thrift_spec = (
-
 
7464
    None, # 0
-
 
7465
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7466
  )
-
 
7467
 
-
 
7468
  def __init__(self, scx=None,):
-
 
7469
    self.scx = scx
-
 
7470
 
-
 
7471
  def read(self, iprot):
-
 
7472
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7473
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7474
      return
-
 
7475
    iprot.readStructBegin()
-
 
7476
    while True:
-
 
7477
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7478
      if ftype == TType.STOP:
-
 
7479
        break
-
 
7480
      if fid == 1:
-
 
7481
        if ftype == TType.STRUCT:
-
 
7482
          self.scx = WidgetException()
-
 
7483
          self.scx.read(iprot)
-
 
7484
        else:
-
 
7485
          iprot.skip(ftype)
-
 
7486
      else:
-
 
7487
        iprot.skip(ftype)
-
 
7488
      iprot.readFieldEnd()
-
 
7489
    iprot.readStructEnd()
-
 
7490
 
-
 
7491
  def write(self, oprot):
-
 
7492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7494
      return
-
 
7495
    oprot.writeStructBegin('addItemToWidget_result')
-
 
7496
    if self.scx != None:
-
 
7497
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
7498
      self.scx.write(oprot)
-
 
7499
      oprot.writeFieldEnd()
-
 
7500
    oprot.writeFieldStop()
-
 
7501
    oprot.writeStructEnd()
-
 
7502
 
-
 
7503
  def __repr__(self):
-
 
7504
    L = ['%s=%r' % (key, value)
-
 
7505
      for key, value in self.__dict__.iteritems()]
-
 
7506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7507
 
-
 
7508
  def __eq__(self, other):
-
 
7509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7510
 
-
 
7511
  def __ne__(self, other):
-
 
7512
    return not (self == other)
-
 
7513
 
-
 
7514
class deleteItemFromWidget_args:
-
 
7515
  """
-
 
7516
  Attributes:
-
 
7517
   - widget_id
-
 
7518
   - item_id
-
 
7519
  """
-
 
7520
 
-
 
7521
  thrift_spec = (
-
 
7522
    None, # 0
-
 
7523
    (1, TType.I64, 'widget_id', None, None, ), # 1
-
 
7524
    (2, TType.I64, 'item_id', None, None, ), # 2
-
 
7525
  )
-
 
7526
 
-
 
7527
  def __init__(self, widget_id=None, item_id=None,):
-
 
7528
    self.widget_id = widget_id
-
 
7529
    self.item_id = item_id
-
 
7530
 
-
 
7531
  def read(self, iprot):
-
 
7532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7534
      return
-
 
7535
    iprot.readStructBegin()
-
 
7536
    while True:
-
 
7537
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7538
      if ftype == TType.STOP:
-
 
7539
        break
-
 
7540
      if fid == 1:
-
 
7541
        if ftype == TType.I64:
-
 
7542
          self.widget_id = iprot.readI64();
-
 
7543
        else:
-
 
7544
          iprot.skip(ftype)
-
 
7545
      elif fid == 2:
-
 
7546
        if ftype == TType.I64:
-
 
7547
          self.item_id = iprot.readI64();
-
 
7548
        else:
-
 
7549
          iprot.skip(ftype)
-
 
7550
      else:
-
 
7551
        iprot.skip(ftype)
-
 
7552
      iprot.readFieldEnd()
-
 
7553
    iprot.readStructEnd()
-
 
7554
 
-
 
7555
  def write(self, oprot):
-
 
7556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7558
      return
-
 
7559
    oprot.writeStructBegin('deleteItemFromWidget_args')
-
 
7560
    if self.widget_id != None:
-
 
7561
      oprot.writeFieldBegin('widget_id', TType.I64, 1)
-
 
7562
      oprot.writeI64(self.widget_id)
-
 
7563
      oprot.writeFieldEnd()
-
 
7564
    if self.item_id != None:
-
 
7565
      oprot.writeFieldBegin('item_id', TType.I64, 2)
-
 
7566
      oprot.writeI64(self.item_id)
-
 
7567
      oprot.writeFieldEnd()
-
 
7568
    oprot.writeFieldStop()
-
 
7569
    oprot.writeStructEnd()
-
 
7570
 
-
 
7571
  def __repr__(self):
-
 
7572
    L = ['%s=%r' % (key, value)
-
 
7573
      for key, value in self.__dict__.iteritems()]
-
 
7574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7575
 
-
 
7576
  def __eq__(self, other):
-
 
7577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7578
 
-
 
7579
  def __ne__(self, other):
-
 
7580
    return not (self == other)
-
 
7581
 
-
 
7582
class deleteItemFromWidget_result:
-
 
7583
  """
-
 
7584
  Attributes:
-
 
7585
   - scx
-
 
7586
  """
-
 
7587
 
-
 
7588
  thrift_spec = (
-
 
7589
    None, # 0
-
 
7590
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7591
  )
-
 
7592
 
-
 
7593
  def __init__(self, scx=None,):
-
 
7594
    self.scx = scx
-
 
7595
 
-
 
7596
  def read(self, iprot):
-
 
7597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7599
      return
-
 
7600
    iprot.readStructBegin()
-
 
7601
    while True:
-
 
7602
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7603
      if ftype == TType.STOP:
-
 
7604
        break
-
 
7605
      if fid == 1:
-
 
7606
        if ftype == TType.STRUCT:
-
 
7607
          self.scx = WidgetException()
-
 
7608
          self.scx.read(iprot)
-
 
7609
        else:
-
 
7610
          iprot.skip(ftype)
-
 
7611
      else:
-
 
7612
        iprot.skip(ftype)
-
 
7613
      iprot.readFieldEnd()
-
 
7614
    iprot.readStructEnd()
-
 
7615
 
-
 
7616
  def write(self, oprot):
-
 
7617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7619
      return
-
 
7620
    oprot.writeStructBegin('deleteItemFromWidget_result')
-
 
7621
    if self.scx != None:
-
 
7622
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
7623
      self.scx.write(oprot)
-
 
7624
      oprot.writeFieldEnd()
-
 
7625
    oprot.writeFieldStop()
-
 
7626
    oprot.writeStructEnd()
-
 
7627
 
-
 
7628
  def __repr__(self):
-
 
7629
    L = ['%s=%r' % (key, value)
-
 
7630
      for key, value in self.__dict__.iteritems()]
-
 
7631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7632
 
-
 
7633
  def __eq__(self, other):
-
 
7634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7635
 
-
 
7636
  def __ne__(self, other):
-
 
7637
    return not (self == other)
-
 
7638
 
-
 
7639
class updateWidget_args:
-
 
7640
  """
-
 
7641
  Attributes:
-
 
7642
   - widgetId
-
 
7643
   - enable
-
 
7644
  """
-
 
7645
 
-
 
7646
  thrift_spec = (
-
 
7647
    None, # 0
-
 
7648
    (1, TType.I64, 'widgetId', None, None, ), # 1
-
 
7649
    (2, TType.BOOL, 'enable', None, None, ), # 2
-
 
7650
  )
-
 
7651
 
-
 
7652
  def __init__(self, widgetId=None, enable=None,):
-
 
7653
    self.widgetId = widgetId
-
 
7654
    self.enable = enable
-
 
7655
 
-
 
7656
  def read(self, iprot):
-
 
7657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7659
      return
-
 
7660
    iprot.readStructBegin()
-
 
7661
    while True:
-
 
7662
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7663
      if ftype == TType.STOP:
-
 
7664
        break
-
 
7665
      if fid == 1:
-
 
7666
        if ftype == TType.I64:
-
 
7667
          self.widgetId = iprot.readI64();
-
 
7668
        else:
-
 
7669
          iprot.skip(ftype)
-
 
7670
      elif fid == 2:
-
 
7671
        if ftype == TType.BOOL:
-
 
7672
          self.enable = iprot.readBool();
-
 
7673
        else:
-
 
7674
          iprot.skip(ftype)
-
 
7675
      else:
-
 
7676
        iprot.skip(ftype)
-
 
7677
      iprot.readFieldEnd()
-
 
7678
    iprot.readStructEnd()
-
 
7679
 
-
 
7680
  def write(self, oprot):
-
 
7681
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7682
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7683
      return
-
 
7684
    oprot.writeStructBegin('updateWidget_args')
-
 
7685
    if self.widgetId != None:
-
 
7686
      oprot.writeFieldBegin('widgetId', TType.I64, 1)
-
 
7687
      oprot.writeI64(self.widgetId)
-
 
7688
      oprot.writeFieldEnd()
-
 
7689
    if self.enable != None:
-
 
7690
      oprot.writeFieldBegin('enable', TType.BOOL, 2)
-
 
7691
      oprot.writeBool(self.enable)
-
 
7692
      oprot.writeFieldEnd()
-
 
7693
    oprot.writeFieldStop()
-
 
7694
    oprot.writeStructEnd()
-
 
7695
 
-
 
7696
  def __repr__(self):
-
 
7697
    L = ['%s=%r' % (key, value)
-
 
7698
      for key, value in self.__dict__.iteritems()]
-
 
7699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7700
 
-
 
7701
  def __eq__(self, other):
-
 
7702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7703
 
-
 
7704
  def __ne__(self, other):
-
 
7705
    return not (self == other)
-
 
7706
 
-
 
7707
class updateWidget_result:
-
 
7708
  """
-
 
7709
  Attributes:
-
 
7710
   - scx
-
 
7711
  """
-
 
7712
 
-
 
7713
  thrift_spec = (
-
 
7714
    None, # 0
-
 
7715
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7716
  )
-
 
7717
 
-
 
7718
  def __init__(self, scx=None,):
-
 
7719
    self.scx = scx
-
 
7720
 
-
 
7721
  def read(self, iprot):
-
 
7722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7724
      return
-
 
7725
    iprot.readStructBegin()
-
 
7726
    while True:
-
 
7727
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7728
      if ftype == TType.STOP:
-
 
7729
        break
-
 
7730
      if fid == 1:
-
 
7731
        if ftype == TType.STRUCT:
-
 
7732
          self.scx = WidgetException()
-
 
7733
          self.scx.read(iprot)
-
 
7734
        else:
-
 
7735
          iprot.skip(ftype)
-
 
7736
      else:
-
 
7737
        iprot.skip(ftype)
-
 
7738
      iprot.readFieldEnd()
-
 
7739
    iprot.readStructEnd()
-
 
7740
 
-
 
7741
  def write(self, oprot):
-
 
7742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7744
      return
-
 
7745
    oprot.writeStructBegin('updateWidget_result')
-
 
7746
    if self.scx != None:
-
 
7747
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
7748
      self.scx.write(oprot)
-
 
7749
      oprot.writeFieldEnd()
-
 
7750
    oprot.writeFieldStop()
-
 
7751
    oprot.writeStructEnd()
-
 
7752
 
-
 
7753
  def __repr__(self):
-
 
7754
    L = ['%s=%r' % (key, value)
-
 
7755
      for key, value in self.__dict__.iteritems()]
-
 
7756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7757
 
-
 
7758
  def __eq__(self, other):
-
 
7759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7760
 
-
 
7761
  def __ne__(self, other):
-
 
7762
    return not (self == other)
-
 
7763
 
-
 
7764
class updateWidgetItem_args:
-
 
7765
  """
-
 
7766
  Attributes:
-
 
7767
   - widgetId
-
 
7768
   - enable
-
 
7769
  """
-
 
7770
 
-
 
7771
  thrift_spec = (
-
 
7772
    None, # 0
-
 
7773
    (1, TType.I64, 'widgetId', None, None, ), # 1
-
 
7774
    (2, TType.BOOL, 'enable', None, None, ), # 2
-
 
7775
  )
-
 
7776
 
-
 
7777
  def __init__(self, widgetId=None, enable=None,):
-
 
7778
    self.widgetId = widgetId
-
 
7779
    self.enable = enable
-
 
7780
 
-
 
7781
  def read(self, iprot):
-
 
7782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7784
      return
-
 
7785
    iprot.readStructBegin()
-
 
7786
    while True:
-
 
7787
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7788
      if ftype == TType.STOP:
-
 
7789
        break
-
 
7790
      if fid == 1:
-
 
7791
        if ftype == TType.I64:
-
 
7792
          self.widgetId = iprot.readI64();
-
 
7793
        else:
-
 
7794
          iprot.skip(ftype)
-
 
7795
      elif fid == 2:
-
 
7796
        if ftype == TType.BOOL:
-
 
7797
          self.enable = iprot.readBool();
-
 
7798
        else:
-
 
7799
          iprot.skip(ftype)
-
 
7800
      else:
-
 
7801
        iprot.skip(ftype)
-
 
7802
      iprot.readFieldEnd()
-
 
7803
    iprot.readStructEnd()
-
 
7804
 
-
 
7805
  def write(self, oprot):
-
 
7806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7808
      return
-
 
7809
    oprot.writeStructBegin('updateWidgetItem_args')
-
 
7810
    if self.widgetId != None:
-
 
7811
      oprot.writeFieldBegin('widgetId', TType.I64, 1)
-
 
7812
      oprot.writeI64(self.widgetId)
-
 
7813
      oprot.writeFieldEnd()
-
 
7814
    if self.enable != None:
-
 
7815
      oprot.writeFieldBegin('enable', TType.BOOL, 2)
-
 
7816
      oprot.writeBool(self.enable)
-
 
7817
      oprot.writeFieldEnd()
-
 
7818
    oprot.writeFieldStop()
-
 
7819
    oprot.writeStructEnd()
-
 
7820
 
-
 
7821
  def __repr__(self):
-
 
7822
    L = ['%s=%r' % (key, value)
-
 
7823
      for key, value in self.__dict__.iteritems()]
-
 
7824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7825
 
-
 
7826
  def __eq__(self, other):
-
 
7827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7828
 
-
 
7829
  def __ne__(self, other):
-
 
7830
    return not (self == other)
-
 
7831
 
-
 
7832
class updateWidgetItem_result:
-
 
7833
  """
-
 
7834
  Attributes:
-
 
7835
   - scx
-
 
7836
  """
-
 
7837
 
-
 
7838
  thrift_spec = (
-
 
7839
    None, # 0
-
 
7840
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7841
  )
-
 
7842
 
-
 
7843
  def __init__(self, scx=None,):
-
 
7844
    self.scx = scx
-
 
7845
 
-
 
7846
  def read(self, iprot):
-
 
7847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7849
      return
-
 
7850
    iprot.readStructBegin()
-
 
7851
    while True:
-
 
7852
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7853
      if ftype == TType.STOP:
-
 
7854
        break
-
 
7855
      if fid == 1:
-
 
7856
        if ftype == TType.STRUCT:
-
 
7857
          self.scx = WidgetException()
-
 
7858
          self.scx.read(iprot)
-
 
7859
        else:
-
 
7860
          iprot.skip(ftype)
-
 
7861
      else:
-
 
7862
        iprot.skip(ftype)
-
 
7863
      iprot.readFieldEnd()
-
 
7864
    iprot.readStructEnd()
-
 
7865
 
-
 
7866
  def write(self, oprot):
-
 
7867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7869
      return
-
 
7870
    oprot.writeStructBegin('updateWidgetItem_result')
-
 
7871
    if self.scx != None:
-
 
7872
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
7873
      self.scx.write(oprot)
-
 
7874
      oprot.writeFieldEnd()
-
 
7875
    oprot.writeFieldStop()
-
 
7876
    oprot.writeStructEnd()
-
 
7877
 
-
 
7878
  def __repr__(self):
-
 
7879
    L = ['%s=%r' % (key, value)
-
 
7880
      for key, value in self.__dict__.iteritems()]
-
 
7881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7882
 
-
 
7883
  def __eq__(self, other):
-
 
7884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7885
 
-
 
7886
  def __ne__(self, other):
-
 
7887
    return not (self == other)
-
 
7888
 
-
 
7889
class getWidget_args:
6870
class getMyResearch_args:
7890
  """
6871
  """
7891
  Attributes:
6872
  Attributes:
7892
   - type
-
 
7893
   - userId
6873
   - userId
7894
   - onlyEnabled
-
 
7895
  """
6874
  """
7896
 
6875
 
7897
  thrift_spec = (
6876
  thrift_spec = (
7898
    None, # 0
6877
    None, # 0
7899
    (1, TType.I32, 'type', None, None, ), # 1
-
 
7900
    (2, TType.I64, 'userId', None, None, ), # 2
6878
    (1, TType.I64, 'userId', None, None, ), # 1
7901
    (3, TType.BOOL, 'onlyEnabled', None, None, ), # 3
-
 
7902
  )
6879
  )
7903
 
6880
 
7904
  def __init__(self, type=None, userId=None, onlyEnabled=None,):
6881
  def __init__(self, userId=None,):
7905
    self.type = type
-
 
7906
    self.userId = userId
6882
    self.userId = userId
7907
    self.onlyEnabled = onlyEnabled
-
 
7908
 
6883
 
7909
  def read(self, iprot):
6884
  def read(self, iprot):
7910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7912
      return
6887
      return
Line 7914... Line 6889...
7914
    while True:
6889
    while True:
7915
      (fname, ftype, fid) = iprot.readFieldBegin()
6890
      (fname, ftype, fid) = iprot.readFieldBegin()
7916
      if ftype == TType.STOP:
6891
      if ftype == TType.STOP:
7917
        break
6892
        break
7918
      if fid == 1:
6893
      if fid == 1:
7919
        if ftype == TType.I32:
-
 
7920
          self.type = iprot.readI32();
-
 
7921
        else:
-
 
7922
          iprot.skip(ftype)
-
 
7923
      elif fid == 2:
-
 
7924
        if ftype == TType.I64:
6894
        if ftype == TType.I64:
7925
          self.userId = iprot.readI64();
6895
          self.userId = iprot.readI64();
7926
        else:
6896
        else:
7927
          iprot.skip(ftype)
6897
          iprot.skip(ftype)
7928
      elif fid == 3:
-
 
7929
        if ftype == TType.BOOL:
-
 
7930
          self.onlyEnabled = iprot.readBool();
-
 
7931
        else:
-
 
7932
          iprot.skip(ftype)
-
 
7933
      else:
6898
      else:
7934
        iprot.skip(ftype)
6899
        iprot.skip(ftype)
7935
      iprot.readFieldEnd()
6900
      iprot.readFieldEnd()
7936
    iprot.readStructEnd()
6901
    iprot.readStructEnd()
7937
 
6902
 
7938
  def write(self, oprot):
6903
  def write(self, oprot):
7939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7941
      return
6906
      return
7942
    oprot.writeStructBegin('getWidget_args')
6907
    oprot.writeStructBegin('getMyResearch_args')
7943
    if self.type != None:
-
 
7944
      oprot.writeFieldBegin('type', TType.I32, 1)
-
 
7945
      oprot.writeI32(self.type)
-
 
7946
      oprot.writeFieldEnd()
-
 
7947
    if self.userId != None:
6908
    if self.userId != None:
7948
      oprot.writeFieldBegin('userId', TType.I64, 2)
6909
      oprot.writeFieldBegin('userId', TType.I64, 1)
7949
      oprot.writeI64(self.userId)
6910
      oprot.writeI64(self.userId)
7950
      oprot.writeFieldEnd()
6911
      oprot.writeFieldEnd()
7951
    if self.onlyEnabled != None:
-
 
7952
      oprot.writeFieldBegin('onlyEnabled', TType.BOOL, 3)
-
 
7953
      oprot.writeBool(self.onlyEnabled)
-
 
7954
      oprot.writeFieldEnd()
-
 
7955
    oprot.writeFieldStop()
-
 
7956
    oprot.writeStructEnd()
-
 
7957
 
-
 
7958
  def __repr__(self):
-
 
7959
    L = ['%s=%r' % (key, value)
-
 
7960
      for key, value in self.__dict__.iteritems()]
-
 
7961
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7962
 
-
 
7963
  def __eq__(self, other):
-
 
7964
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7965
 
-
 
7966
  def __ne__(self, other):
-
 
7967
    return not (self == other)
-
 
7968
 
-
 
7969
class getWidget_result:
-
 
7970
  """
-
 
7971
  Attributes:
-
 
7972
   - success
-
 
7973
   - scx
-
 
7974
  """
-
 
7975
 
-
 
7976
  thrift_spec = (
-
 
7977
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
-
 
7978
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7979
  )
-
 
7980
 
-
 
7981
  def __init__(self, success=None, scx=None,):
-
 
7982
    self.success = success
-
 
7983
    self.scx = scx
-
 
7984
 
-
 
7985
  def read(self, iprot):
-
 
7986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7988
      return
-
 
7989
    iprot.readStructBegin()
-
 
7990
    while True:
-
 
7991
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7992
      if ftype == TType.STOP:
-
 
7993
        break
-
 
7994
      if fid == 0:
-
 
7995
        if ftype == TType.STRUCT:
-
 
7996
          self.success = Widget()
-
 
7997
          self.success.read(iprot)
-
 
7998
        else:
-
 
7999
          iprot.skip(ftype)
-
 
8000
      elif fid == 1:
-
 
8001
        if ftype == TType.STRUCT:
-
 
8002
          self.scx = WidgetException()
-
 
8003
          self.scx.read(iprot)
-
 
8004
        else:
-
 
8005
          iprot.skip(ftype)
-
 
8006
      else:
-
 
8007
        iprot.skip(ftype)
-
 
8008
      iprot.readFieldEnd()
-
 
8009
    iprot.readStructEnd()
-
 
8010
 
-
 
8011
  def write(self, oprot):
-
 
8012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8014
      return
-
 
8015
    oprot.writeStructBegin('getWidget_result')
-
 
8016
    if self.success != None:
-
 
8017
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
8018
      self.success.write(oprot)
-
 
8019
      oprot.writeFieldEnd()
-
 
8020
    if self.scx != None:
-
 
8021
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
8022
      self.scx.write(oprot)
-
 
8023
      oprot.writeFieldEnd()
-
 
8024
    oprot.writeFieldStop()
-
 
8025
    oprot.writeStructEnd()
-
 
8026
 
-
 
8027
  def __repr__(self):
-
 
8028
    L = ['%s=%r' % (key, value)
-
 
8029
      for key, value in self.__dict__.iteritems()]
-
 
8030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8031
 
-
 
8032
  def __eq__(self, other):
-
 
8033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8034
 
-
 
8035
  def __ne__(self, other):
-
 
8036
    return not (self == other)
-
 
8037
 
-
 
8038
class getMyResearch_args:
-
 
8039
  """
-
 
8040
  Attributes:
-
 
8041
   - user_id
-
 
8042
  """
-
 
8043
 
-
 
8044
  thrift_spec = (
-
 
8045
    None, # 0
-
 
8046
    (1, TType.I64, 'user_id', None, None, ), # 1
-
 
8047
  )
-
 
8048
 
-
 
8049
  def __init__(self, user_id=None,):
-
 
8050
    self.user_id = user_id
-
 
8051
 
-
 
8052
  def read(self, iprot):
-
 
8053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8055
      return
-
 
8056
    iprot.readStructBegin()
-
 
8057
    while True:
-
 
8058
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8059
      if ftype == TType.STOP:
-
 
8060
        break
-
 
8061
      if fid == 1:
-
 
8062
        if ftype == TType.I64:
-
 
8063
          self.user_id = iprot.readI64();
-
 
8064
        else:
-
 
8065
          iprot.skip(ftype)
-
 
8066
      else:
-
 
8067
        iprot.skip(ftype)
-
 
8068
      iprot.readFieldEnd()
-
 
8069
    iprot.readStructEnd()
-
 
8070
 
-
 
8071
  def write(self, oprot):
-
 
8072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8074
      return
-
 
8075
    oprot.writeStructBegin('getMyResearch_args')
-
 
8076
    if self.user_id != None:
-
 
8077
      oprot.writeFieldBegin('user_id', TType.I64, 1)
-
 
8078
      oprot.writeI64(self.user_id)
-
 
8079
      oprot.writeFieldEnd()
-
 
8080
    oprot.writeFieldStop()
6912
    oprot.writeFieldStop()
8081
    oprot.writeStructEnd()
6913
    oprot.writeStructEnd()
8082
 
6914
 
8083
  def __repr__(self):
6915
  def __repr__(self):
8084
    L = ['%s=%r' % (key, value)
6916
    L = ['%s=%r' % (key, value)
Line 8161... Line 6993...
8161
    return not (self == other)
6993
    return not (self == other)
8162
 
6994
 
8163
class updateMyResearch_args:
6995
class updateMyResearch_args:
8164
  """
6996
  """
8165
  Attributes:
6997
  Attributes:
8166
   - user_id
6998
   - userId
8167
   - item_id
6999
   - itemId
8168
  """
7000
  """
8169
 
7001
 
8170
  thrift_spec = (
7002
  thrift_spec = (
8171
    None, # 0
7003
    None, # 0
8172
    (1, TType.I64, 'user_id', None, None, ), # 1
7004
    (1, TType.I64, 'userId', None, None, ), # 1
8173
    (2, TType.I64, 'item_id', None, None, ), # 2
7005
    (2, TType.I64, 'itemId', None, None, ), # 2
8174
  )
7006
  )
8175
 
7007
 
8176
  def __init__(self, user_id=None, item_id=None,):
7008
  def __init__(self, userId=None, itemId=None,):
8177
    self.user_id = user_id
7009
    self.userId = userId
8178
    self.item_id = item_id
7010
    self.itemId = itemId
8179
 
7011
 
8180
  def read(self, iprot):
7012
  def read(self, iprot):
8181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8183
      return
7015
      return
Line 8186... Line 7018...
8186
      (fname, ftype, fid) = iprot.readFieldBegin()
7018
      (fname, ftype, fid) = iprot.readFieldBegin()
8187
      if ftype == TType.STOP:
7019
      if ftype == TType.STOP:
8188
        break
7020
        break
8189
      if fid == 1:
7021
      if fid == 1:
8190
        if ftype == TType.I64:
7022
        if ftype == TType.I64:
8191
          self.user_id = iprot.readI64();
7023
          self.userId = iprot.readI64();
8192
        else:
7024
        else:
8193
          iprot.skip(ftype)
7025
          iprot.skip(ftype)
8194
      elif fid == 2:
7026
      elif fid == 2:
8195
        if ftype == TType.I64:
7027
        if ftype == TType.I64:
8196
          self.item_id = iprot.readI64();
7028
          self.itemId = iprot.readI64();
8197
        else:
7029
        else:
8198
          iprot.skip(ftype)
7030
          iprot.skip(ftype)
8199
      else:
7031
      else:
8200
        iprot.skip(ftype)
7032
        iprot.skip(ftype)
8201
      iprot.readFieldEnd()
7033
      iprot.readFieldEnd()
Line 8204... Line 7036...
8204
  def write(self, oprot):
7036
  def write(self, oprot):
8205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8207
      return
7039
      return
8208
    oprot.writeStructBegin('updateMyResearch_args')
7040
    oprot.writeStructBegin('updateMyResearch_args')
8209
    if self.user_id != None:
7041
    if self.userId != None:
8210
      oprot.writeFieldBegin('user_id', TType.I64, 1)
7042
      oprot.writeFieldBegin('userId', TType.I64, 1)
8211
      oprot.writeI64(self.user_id)
7043
      oprot.writeI64(self.userId)
8212
      oprot.writeFieldEnd()
7044
      oprot.writeFieldEnd()
8213
    if self.item_id != None:
7045
    if self.itemId != None:
8214
      oprot.writeFieldBegin('item_id', TType.I64, 2)
7046
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8215
      oprot.writeI64(self.item_id)
7047
      oprot.writeI64(self.itemId)
8216
      oprot.writeFieldEnd()
7048
      oprot.writeFieldEnd()
8217
    oprot.writeFieldStop()
7049
    oprot.writeFieldStop()
8218
    oprot.writeStructEnd()
7050
    oprot.writeStructEnd()
8219
 
7051
 
8220
  def __repr__(self):
7052
  def __repr__(self):
Line 8297... Line 7129...
8297
    return not (self == other)
7129
    return not (self == other)
8298
 
7130
 
8299
class deleteItemFromMyResearch_args:
7131
class deleteItemFromMyResearch_args:
8300
  """
7132
  """
8301
  Attributes:
7133
  Attributes:
8302
   - user_id
7134
   - userId
8303
   - item_id
7135
   - itemId
8304
  """
7136
  """
8305
 
7137
 
8306
  thrift_spec = (
7138
  thrift_spec = (
8307
    None, # 0
7139
    None, # 0
8308
    (1, TType.I64, 'user_id', None, None, ), # 1
7140
    (1, TType.I64, 'userId', None, None, ), # 1
8309
    (2, TType.I64, 'item_id', None, None, ), # 2
7141
    (2, TType.I64, 'itemId', None, None, ), # 2
8310
  )
7142
  )
8311
 
7143
 
8312
  def __init__(self, user_id=None, item_id=None,):
7144
  def __init__(self, userId=None, itemId=None,):
8313
    self.user_id = user_id
7145
    self.userId = userId
8314
    self.item_id = item_id
7146
    self.itemId = itemId
8315
 
7147
 
8316
  def read(self, iprot):
7148
  def read(self, iprot):
8317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8319
      return
7151
      return
Line 8322... Line 7154...
8322
      (fname, ftype, fid) = iprot.readFieldBegin()
7154
      (fname, ftype, fid) = iprot.readFieldBegin()
8323
      if ftype == TType.STOP:
7155
      if ftype == TType.STOP:
8324
        break
7156
        break
8325
      if fid == 1:
7157
      if fid == 1:
8326
        if ftype == TType.I64:
7158
        if ftype == TType.I64:
8327
          self.user_id = iprot.readI64();
7159
          self.userId = iprot.readI64();
8328
        else:
7160
        else:
8329
          iprot.skip(ftype)
7161
          iprot.skip(ftype)
8330
      elif fid == 2:
7162
      elif fid == 2:
8331
        if ftype == TType.I64:
7163
        if ftype == TType.I64:
8332
          self.item_id = iprot.readI64();
7164
          self.itemId = iprot.readI64();
8333
        else:
7165
        else:
8334
          iprot.skip(ftype)
7166
          iprot.skip(ftype)
8335
      else:
7167
      else:
8336
        iprot.skip(ftype)
7168
        iprot.skip(ftype)
8337
      iprot.readFieldEnd()
7169
      iprot.readFieldEnd()
Line 8340... Line 7172...
8340
  def write(self, oprot):
7172
  def write(self, oprot):
8341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8343
      return
7175
      return
8344
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
7176
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
8345
    if self.user_id != None:
7177
    if self.userId != None:
8346
      oprot.writeFieldBegin('user_id', TType.I64, 1)
7178
      oprot.writeFieldBegin('userId', TType.I64, 1)
8347
      oprot.writeI64(self.user_id)
7179
      oprot.writeI64(self.userId)
8348
      oprot.writeFieldEnd()
7180
      oprot.writeFieldEnd()
8349
    if self.item_id != None:
7181
    if self.itemId != None:
8350
      oprot.writeFieldBegin('item_id', TType.I64, 2)
7182
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8351
      oprot.writeI64(self.item_id)
7183
      oprot.writeI64(self.itemId)
8352
      oprot.writeFieldEnd()
7184
      oprot.writeFieldEnd()
8353
    oprot.writeFieldStop()
7185
    oprot.writeFieldStop()
8354
    oprot.writeStructEnd()
7186
    oprot.writeStructEnd()
8355
 
7187
 
8356
  def __repr__(self):
7188
  def __repr__(self):
Line 8419... Line 7251...
8419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8420
 
7252
 
8421
  def __ne__(self, other):
7253
  def __ne__(self, other):
8422
    return not (self == other)
7254
    return not (self == other)
8423
 
7255
 
8424
class updateRatings_args:
7256
class updateBrowseHistory_args:
8425
  """
7257
  """
8426
  Attributes:
7258
  Attributes:
8427
   - item_id
7259
   - userId
8428
   - type
-
 
8429
   - rating
-
 
8430
   - user_id
7260
   - itemId
8431
  """
7261
  """
8432
 
7262
 
8433
  thrift_spec = (
7263
  thrift_spec = (
8434
    None, # 0
7264
    None, # 0
8435
    (1, TType.I64, 'item_id', None, None, ), # 1
7265
    (1, TType.I64, 'userId', None, None, ), # 1
8436
    (2, TType.I32, 'type', None, None, ), # 2
-
 
8437
    (3, TType.DOUBLE, 'rating', None, None, ), # 3
-
 
8438
    (4, TType.I64, 'user_id', None, None, ), # 4
7266
    (2, TType.I64, 'itemId', None, None, ), # 2
8439
  )
7267
  )
8440
 
7268
 
8441
  def __init__(self, item_id=None, type=None, rating=None, user_id=None,):
7269
  def __init__(self, userId=None, itemId=None,):
8442
    self.item_id = item_id
7270
    self.userId = userId
8443
    self.type = type
-
 
8444
    self.rating = rating
-
 
8445
    self.user_id = user_id
7271
    self.itemId = itemId
8446
 
7272
 
8447
  def read(self, iprot):
7273
  def read(self, iprot):
8448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8450
      return
7276
      return
Line 8453... Line 7279...
8453
      (fname, ftype, fid) = iprot.readFieldBegin()
7279
      (fname, ftype, fid) = iprot.readFieldBegin()
8454
      if ftype == TType.STOP:
7280
      if ftype == TType.STOP:
8455
        break
7281
        break
8456
      if fid == 1:
7282
      if fid == 1:
8457
        if ftype == TType.I64:
7283
        if ftype == TType.I64:
8458
          self.item_id = iprot.readI64();
7284
          self.userId = iprot.readI64();
8459
        else:
7285
        else:
8460
          iprot.skip(ftype)
7286
          iprot.skip(ftype)
8461
      elif fid == 2:
7287
      elif fid == 2:
8462
        if ftype == TType.I32:
-
 
8463
          self.type = iprot.readI32();
-
 
8464
        else:
-
 
8465
          iprot.skip(ftype)
-
 
8466
      elif fid == 3:
-
 
8467
        if ftype == TType.DOUBLE:
-
 
8468
          self.rating = iprot.readDouble();
-
 
8469
        else:
-
 
8470
          iprot.skip(ftype)
-
 
8471
      elif fid == 4:
-
 
8472
        if ftype == TType.I64:
7288
        if ftype == TType.I64:
8473
          self.user_id = iprot.readI64();
7289
          self.itemId = iprot.readI64();
8474
        else:
7290
        else:
8475
          iprot.skip(ftype)
7291
          iprot.skip(ftype)
8476
      else:
7292
      else:
8477
        iprot.skip(ftype)
7293
        iprot.skip(ftype)
8478
      iprot.readFieldEnd()
7294
      iprot.readFieldEnd()
Line 8480... Line 7296...
8480
 
7296
 
8481
  def write(self, oprot):
7297
  def write(self, oprot):
8482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8484
      return
7300
      return
8485
    oprot.writeStructBegin('updateRatings_args')
7301
    oprot.writeStructBegin('updateBrowseHistory_args')
8486
    if self.item_id != None:
7302
    if self.userId != None:
8487
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7303
      oprot.writeFieldBegin('userId', TType.I64, 1)
8488
      oprot.writeI64(self.item_id)
7304
      oprot.writeI64(self.userId)
8489
      oprot.writeFieldEnd()
-
 
8490
    if self.type != None:
-
 
8491
      oprot.writeFieldBegin('type', TType.I32, 2)
-
 
8492
      oprot.writeI32(self.type)
-
 
8493
      oprot.writeFieldEnd()
-
 
8494
    if self.rating != None:
-
 
8495
      oprot.writeFieldBegin('rating', TType.DOUBLE, 3)
-
 
8496
      oprot.writeDouble(self.rating)
-
 
8497
      oprot.writeFieldEnd()
7305
      oprot.writeFieldEnd()
8498
    if self.user_id != None:
7306
    if self.itemId != None:
8499
      oprot.writeFieldBegin('user_id', TType.I64, 4)
7307
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8500
      oprot.writeI64(self.user_id)
7308
      oprot.writeI64(self.itemId)
8501
      oprot.writeFieldEnd()
7309
      oprot.writeFieldEnd()
8502
    oprot.writeFieldStop()
7310
    oprot.writeFieldStop()
8503
    oprot.writeStructEnd()
7311
    oprot.writeStructEnd()
8504
 
7312
 
8505
  def __repr__(self):
7313
  def __repr__(self):
Line 8511... Line 7319...
8511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8512
 
7320
 
8513
  def __ne__(self, other):
7321
  def __ne__(self, other):
8514
    return not (self == other)
7322
    return not (self == other)
8515
 
7323
 
8516
class updateRatings_result:
7324
class updateBrowseHistory_result:
8517
 
7325
 
8518
  thrift_spec = (
7326
  thrift_spec = (
8519
  )
7327
  )
8520
 
7328
 
8521
  def read(self, iprot):
7329
  def read(self, iprot):
Line 8534... Line 7342...
8534
 
7342
 
8535
  def write(self, oprot):
7343
  def write(self, oprot):
8536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8538
      return
7346
      return
8539
    oprot.writeStructBegin('updateRatings_result')
7347
    oprot.writeStructBegin('updateBrowseHistory_result')
8540
    oprot.writeFieldStop()
7348
    oprot.writeFieldStop()
8541
    oprot.writeStructEnd()
7349
    oprot.writeStructEnd()
8542
 
7350
 
8543
  def __repr__(self):
7351
  def __repr__(self):
8544
    L = ['%s=%r' % (key, value)
7352
    L = ['%s=%r' % (key, value)
Line 8549... Line 7357...
8549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8550
 
7358
 
8551
  def __ne__(self, other):
7359
  def __ne__(self, other):
8552
    return not (self == other)
7360
    return not (self == other)
8553
 
7361
 
8554
class getRatings_args:
7362
class getBrowseHistory_args:
8555
  """
7363
  """
8556
  Attributes:
7364
  Attributes:
8557
   - item_id
-
 
8558
   - user_id
7365
   - userId
8559
  """
7366
  """
8560
 
7367
 
8561
  thrift_spec = (
7368
  thrift_spec = (
8562
    None, # 0
7369
    None, # 0
8563
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
8564
    (2, TType.I64, 'user_id', None, None, ), # 2
7370
    (1, TType.I64, 'userId', None, None, ), # 1
8565
  )
7371
  )
8566
 
7372
 
8567
  def __init__(self, item_id=None, user_id=None,):
7373
  def __init__(self, userId=None,):
8568
    self.item_id = item_id
-
 
8569
    self.user_id = user_id
7374
    self.userId = userId
8570
 
7375
 
8571
  def read(self, iprot):
7376
  def read(self, iprot):
8572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8574
      return
7379
      return
Line 8577... Line 7382...
8577
      (fname, ftype, fid) = iprot.readFieldBegin()
7382
      (fname, ftype, fid) = iprot.readFieldBegin()
8578
      if ftype == TType.STOP:
7383
      if ftype == TType.STOP:
8579
        break
7384
        break
8580
      if fid == 1:
7385
      if fid == 1:
8581
        if ftype == TType.I64:
7386
        if ftype == TType.I64:
8582
          self.item_id = iprot.readI64();
-
 
8583
        else:
-
 
8584
          iprot.skip(ftype)
-
 
8585
      elif fid == 2:
-
 
8586
        if ftype == TType.I64:
-
 
8587
          self.user_id = iprot.readI64();
7387
          self.userId = iprot.readI64();
8588
        else:
7388
        else:
8589
          iprot.skip(ftype)
7389
          iprot.skip(ftype)
8590
      else:
7390
      else:
8591
        iprot.skip(ftype)
7391
        iprot.skip(ftype)
8592
      iprot.readFieldEnd()
7392
      iprot.readFieldEnd()
Line 8594... Line 7394...
8594
 
7394
 
8595
  def write(self, oprot):
7395
  def write(self, oprot):
8596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8598
      return
7398
      return
8599
    oprot.writeStructBegin('getRatings_args')
7399
    oprot.writeStructBegin('getBrowseHistory_args')
8600
    if self.item_id != None:
-
 
8601
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
8602
      oprot.writeI64(self.item_id)
-
 
8603
      oprot.writeFieldEnd()
-
 
8604
    if self.user_id != None:
7400
    if self.userId != None:
8605
      oprot.writeFieldBegin('user_id', TType.I64, 2)
7401
      oprot.writeFieldBegin('userId', TType.I64, 1)
8606
      oprot.writeI64(self.user_id)
7402
      oprot.writeI64(self.userId)
8607
      oprot.writeFieldEnd()
7403
      oprot.writeFieldEnd()
8608
    oprot.writeFieldStop()
7404
    oprot.writeFieldStop()
8609
    oprot.writeStructEnd()
7405
    oprot.writeStructEnd()
8610
 
7406
 
8611
  def __repr__(self):
7407
  def __repr__(self):
Line 8617... Line 7413...
8617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8618
 
7414
 
8619
  def __ne__(self, other):
7415
  def __ne__(self, other):
8620
    return not (self == other)
7416
    return not (self == other)
8621
 
7417
 
8622
class getRatings_result:
7418
class getBrowseHistory_result:
8623
  """
7419
  """
8624
  Attributes:
7420
  Attributes:
8625
   - success
7421
   - success
8626
   - scx
7422
   - scx
8627
  """
7423
  """
8628
 
7424
 
8629
  thrift_spec = (
7425
  thrift_spec = (
8630
    (0, TType.STRUCT, 'success', (RatingsWidget, RatingsWidget.thrift_spec), None, ), # 0
7426
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
8631
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
7427
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
8632
  )
7428
  )
8633
 
7429
 
8634
  def __init__(self, success=None, scx=None,):
7430
  def __init__(self, success=None, scx=None,):
8635
    self.success = success
7431
    self.success = success
Line 8644... Line 7440...
8644
      (fname, ftype, fid) = iprot.readFieldBegin()
7440
      (fname, ftype, fid) = iprot.readFieldBegin()
8645
      if ftype == TType.STOP:
7441
      if ftype == TType.STOP:
8646
        break
7442
        break
8647
      if fid == 0:
7443
      if fid == 0:
8648
        if ftype == TType.STRUCT:
7444
        if ftype == TType.STRUCT:
8649
          self.success = RatingsWidget()
7445
          self.success = Widget()
8650
          self.success.read(iprot)
7446
          self.success.read(iprot)
8651
        else:
7447
        else:
8652
          iprot.skip(ftype)
7448
          iprot.skip(ftype)
8653
      elif fid == 1:
7449
      elif fid == 1:
8654
        if ftype == TType.STRUCT:
7450
        if ftype == TType.STRUCT:
Line 8663... Line 7459...
8663
 
7459
 
8664
  def write(self, oprot):
7460
  def write(self, oprot):
8665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8667
      return
7463
      return
8668
    oprot.writeStructBegin('getRatings_result')
7464
    oprot.writeStructBegin('getBrowseHistory_result')
8669
    if self.success != None:
7465
    if self.success != None:
8670
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7466
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8671
      self.success.write(oprot)
7467
      self.success.write(oprot)
8672
      oprot.writeFieldEnd()
7468
      oprot.writeFieldEnd()
8673
    if self.scx != None:
7469
    if self.scx != None:
Line 8686... Line 7482...
8686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8687
 
7483
 
8688
  def __ne__(self, other):
7484
  def __ne__(self, other):
8689
    return not (self == other)
7485
    return not (self == other)
8690
 
7486
 
8691
class updateBrowseHistory_args:
7487
class mergeBrowseHistory_args:
8692
  """
7488
  """
8693
  Attributes:
7489
  Attributes:
8694
   - user_id
7490
   - fromUserId
8695
   - item_id
7491
   - toUserId
8696
   - isSessionId
-
 
8697
  """
7492
  """
8698
 
7493
 
8699
  thrift_spec = (
7494
  thrift_spec = (
8700
    None, # 0
7495
    None, # 0
8701
    (1, TType.I64, 'user_id', None, None, ), # 1
7496
    (1, TType.I64, 'fromUserId', None, None, ), # 1
8702
    (2, TType.I64, 'item_id', None, None, ), # 2
7497
    (2, TType.I64, 'toUserId', None, None, ), # 2
8703
    (3, TType.BOOL, 'isSessionId', None, None, ), # 3
-
 
8704
  )
7498
  )
8705
 
7499
 
8706
  def __init__(self, user_id=None, item_id=None, isSessionId=None,):
7500
  def __init__(self, fromUserId=None, toUserId=None,):
8707
    self.user_id = user_id
7501
    self.fromUserId = fromUserId
8708
    self.item_id = item_id
7502
    self.toUserId = toUserId
8709
    self.isSessionId = isSessionId
-
 
8710
 
7503
 
8711
  def read(self, iprot):
7504
  def read(self, iprot):
8712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8714
      return
7507
      return
Line 8717... Line 7510...
8717
      (fname, ftype, fid) = iprot.readFieldBegin()
7510
      (fname, ftype, fid) = iprot.readFieldBegin()
8718
      if ftype == TType.STOP:
7511
      if ftype == TType.STOP:
8719
        break
7512
        break
8720
      if fid == 1:
7513
      if fid == 1:
8721
        if ftype == TType.I64:
7514
        if ftype == TType.I64:
8722
          self.user_id = iprot.readI64();
7515
          self.fromUserId = iprot.readI64();
8723
        else:
7516
        else:
8724
          iprot.skip(ftype)
7517
          iprot.skip(ftype)
8725
      elif fid == 2:
7518
      elif fid == 2:
8726
        if ftype == TType.I64:
7519
        if ftype == TType.I64:
8727
          self.item_id = iprot.readI64();
7520
          self.toUserId = iprot.readI64();
8728
        else:
-
 
8729
          iprot.skip(ftype)
-
 
8730
      elif fid == 3:
-
 
8731
        if ftype == TType.BOOL:
-
 
8732
          self.isSessionId = iprot.readBool();
-
 
8733
        else:
7521
        else:
8734
          iprot.skip(ftype)
7522
          iprot.skip(ftype)
8735
      else:
7523
      else:
8736
        iprot.skip(ftype)
7524
        iprot.skip(ftype)
8737
      iprot.readFieldEnd()
7525
      iprot.readFieldEnd()
Line 8739... Line 7527...
8739
 
7527
 
8740
  def write(self, oprot):
7528
  def write(self, oprot):
8741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8743
      return
7531
      return
8744
    oprot.writeStructBegin('updateBrowseHistory_args')
7532
    oprot.writeStructBegin('mergeBrowseHistory_args')
8745
    if self.user_id != None:
7533
    if self.fromUserId != None:
8746
      oprot.writeFieldBegin('user_id', TType.I64, 1)
7534
      oprot.writeFieldBegin('fromUserId', TType.I64, 1)
8747
      oprot.writeI64(self.user_id)
7535
      oprot.writeI64(self.fromUserId)
8748
      oprot.writeFieldEnd()
-
 
8749
    if self.item_id != None:
-
 
8750
      oprot.writeFieldBegin('item_id', TType.I64, 2)
-
 
8751
      oprot.writeI64(self.item_id)
-
 
8752
      oprot.writeFieldEnd()
-
 
8753
    if self.isSessionId != None:
-
 
8754
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 3)
-
 
8755
      oprot.writeBool(self.isSessionId)
-
 
8756
      oprot.writeFieldEnd()
7536
      oprot.writeFieldEnd()
8757
    oprot.writeFieldStop()
-
 
8758
    oprot.writeStructEnd()
-
 
8759
 
-
 
8760
  def __repr__(self):
-
 
8761
    L = ['%s=%r' % (key, value)
-
 
8762
      for key, value in self.__dict__.iteritems()]
-
 
8763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8764
 
-
 
8765
  def __eq__(self, other):
-
 
8766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8767
 
-
 
8768
  def __ne__(self, other):
-
 
8769
    return not (self == other)
-
 
8770
 
-
 
8771
class updateBrowseHistory_result:
-
 
8772
 
-
 
8773
  thrift_spec = (
-
 
8774
  )
-
 
8775
 
-
 
8776
  def read(self, iprot):
-
 
8777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8779
      return
-
 
8780
    iprot.readStructBegin()
-
 
8781
    while True:
-
 
8782
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8783
      if ftype == TType.STOP:
-
 
8784
        break
-
 
8785
      else:
-
 
8786
        iprot.skip(ftype)
-
 
8787
      iprot.readFieldEnd()
-
 
8788
    iprot.readStructEnd()
-
 
8789
 
-
 
8790
  def write(self, oprot):
-
 
8791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8793
      return
-
 
8794
    oprot.writeStructBegin('updateBrowseHistory_result')
-
 
8795
    oprot.writeFieldStop()
-
 
8796
    oprot.writeStructEnd()
-
 
8797
 
-
 
8798
  def __repr__(self):
-
 
8799
    L = ['%s=%r' % (key, value)
-
 
8800
      for key, value in self.__dict__.iteritems()]
-
 
8801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
8802
 
-
 
8803
  def __eq__(self, other):
-
 
8804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
8805
 
-
 
8806
  def __ne__(self, other):
-
 
8807
    return not (self == other)
-
 
8808
 
-
 
8809
class getBrowseHistory_args:
-
 
8810
  """
-
 
8811
  Attributes:
-
 
8812
   - userId
-
 
8813
   - isSessionId
-
 
8814
  """
-
 
8815
 
-
 
8816
  thrift_spec = (
-
 
8817
    None, # 0
-
 
8818
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
8819
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
8820
  )
-
 
8821
 
-
 
8822
  def __init__(self, userId=None, isSessionId=None,):
-
 
8823
    self.userId = userId
-
 
8824
    self.isSessionId = isSessionId
-
 
8825
 
-
 
8826
  def read(self, iprot):
-
 
8827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
8828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
8829
      return
-
 
8830
    iprot.readStructBegin()
-
 
8831
    while True:
-
 
8832
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
8833
      if ftype == TType.STOP:
-
 
8834
        break
-
 
8835
      if fid == 1:
-
 
8836
        if ftype == TType.I64:
-
 
8837
          self.userId = iprot.readI64();
-
 
8838
        else:
-
 
8839
          iprot.skip(ftype)
-
 
8840
      elif fid == 2:
-
 
8841
        if ftype == TType.BOOL:
-
 
8842
          self.isSessionId = iprot.readBool();
-
 
8843
        else:
-
 
8844
          iprot.skip(ftype)
-
 
8845
      else:
-
 
8846
        iprot.skip(ftype)
-
 
8847
      iprot.readFieldEnd()
-
 
8848
    iprot.readStructEnd()
-
 
8849
 
-
 
8850
  def write(self, oprot):
-
 
8851
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
8852
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
8853
      return
-
 
8854
    oprot.writeStructBegin('getBrowseHistory_args')
-
 
8855
    if self.userId != None:
7537
    if self.toUserId != None:
8856
      oprot.writeFieldBegin('userId', TType.I64, 1)
7538
      oprot.writeFieldBegin('toUserId', TType.I64, 2)
8857
      oprot.writeI64(self.userId)
7539
      oprot.writeI64(self.toUserId)
8858
      oprot.writeFieldEnd()
-
 
8859
    if self.isSessionId != None:
-
 
8860
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
8861
      oprot.writeBool(self.isSessionId)
-
 
8862
      oprot.writeFieldEnd()
7540
      oprot.writeFieldEnd()
8863
    oprot.writeFieldStop()
7541
    oprot.writeFieldStop()
8864
    oprot.writeStructEnd()
7542
    oprot.writeStructEnd()
8865
 
7543
 
8866
  def __repr__(self):
7544
  def __repr__(self):
Line 8872... Line 7550...
8872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8873
 
7551
 
8874
  def __ne__(self, other):
7552
  def __ne__(self, other):
8875
    return not (self == other)
7553
    return not (self == other)
8876
 
7554
 
8877
class getBrowseHistory_result:
7555
class mergeBrowseHistory_result:
8878
  """
-
 
8879
  Attributes:
-
 
8880
   - success
-
 
8881
   - scx
-
 
8882
  """
-
 
8883
 
7556
 
8884
  thrift_spec = (
7557
  thrift_spec = (
8885
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
-
 
8886
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
8887
  )
7558
  )
8888
 
7559
 
8889
  def __init__(self, success=None, scx=None,):
-
 
8890
    self.success = success
-
 
8891
    self.scx = scx
-
 
8892
 
-
 
8893
  def read(self, iprot):
7560
  def read(self, iprot):
8894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8896
      return
7563
      return
8897
    iprot.readStructBegin()
7564
    iprot.readStructBegin()
8898
    while True:
7565
    while True:
8899
      (fname, ftype, fid) = iprot.readFieldBegin()
7566
      (fname, ftype, fid) = iprot.readFieldBegin()
8900
      if ftype == TType.STOP:
7567
      if ftype == TType.STOP:
8901
        break
7568
        break
8902
      if fid == 0:
-
 
8903
        if ftype == TType.STRUCT:
-
 
8904
          self.success = Widget()
-
 
8905
          self.success.read(iprot)
-
 
8906
        else:
-
 
8907
          iprot.skip(ftype)
-
 
8908
      elif fid == 1:
-
 
8909
        if ftype == TType.STRUCT:
-
 
8910
          self.scx = WidgetException()
-
 
8911
          self.scx.read(iprot)
-
 
8912
        else:
-
 
8913
          iprot.skip(ftype)
-
 
8914
      else:
7569
      else:
8915
        iprot.skip(ftype)
7570
        iprot.skip(ftype)
8916
      iprot.readFieldEnd()
7571
      iprot.readFieldEnd()
8917
    iprot.readStructEnd()
7572
    iprot.readStructEnd()
8918
 
7573
 
8919
  def write(self, oprot):
7574
  def write(self, oprot):
8920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8922
      return
7577
      return
8923
    oprot.writeStructBegin('getBrowseHistory_result')
7578
    oprot.writeStructBegin('mergeBrowseHistory_result')
8924
    if self.success != None:
-
 
8925
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
8926
      self.success.write(oprot)
-
 
8927
      oprot.writeFieldEnd()
-
 
8928
    if self.scx != None:
-
 
8929
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
8930
      self.scx.write(oprot)
-
 
8931
      oprot.writeFieldEnd()
-
 
8932
    oprot.writeFieldStop()
7579
    oprot.writeFieldStop()
8933
    oprot.writeStructEnd()
7580
    oprot.writeStructEnd()
8934
 
7581
 
8935
  def __repr__(self):
7582
  def __repr__(self):
8936
    L = ['%s=%r' % (key, value)
7583
    L = ['%s=%r' % (key, value)