Subversion Repositories SmartDukaan

Rev

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

Rev 2815 Rev 2981
Line 476... Line 476...
476
     - cartId
476
     - cartId
477
     - items
477
     - items
478
    """
478
    """
479
    pass
479
    pass
480
 
480
 
481
  def getMyResearch(self, userId):
481
  def getUserCount(self, userType):
482
    """
482
    """
483
    Widgets
483
    Returns number of registered users.
-
 
484
    If userType = null, then it returns count of all users, including anonymous
-
 
485
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
-
 
486
    If userType = UserType.USER, then it returns count of non-anonymous users only
484
    
487
    
485
    Parameters:
488
    Parameters:
486
     - userId
489
     - userType
487
    """
490
    """
488
    pass
491
    pass
489
 
492
 
490
  def updateMyResearch(self, userId, itemId):
493
  def getAllUsers(self, userType, startDate, endDate):
491
    """
494
    """
-
 
495
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
-
 
496
    If any of startDate or endDate is -1, then that filter is ignored.
-
 
497
    If userType is null, then returns all the users, irrespective of anonymous flag
-
 
498
    
-
 
499
    
492
    Parameters:
500
    Parameters:
493
     - userId
501
     - userType
-
 
502
     - startDate
494
     - itemId
503
     - endDate
495
    """
504
    """
496
    pass
505
    pass
497
 
506
 
498
  def deleteItemFromMyResearch(self, userId, itemId):
507
  def putUserNote(self, user_id, entity_id, slide, note):
499
    """
508
    """
500
    Parameters:
509
    Parameters:
501
     - userId
510
     - user_id
-
 
511
     - entity_id
-
 
512
     - slide
502
     - itemId
513
     - note
503
    """
514
    """
504
    pass
515
    pass
505
 
516
 
506
  def updateBrowseHistory(self, userId, itemId):
517
  def getUserNotes(self, user_id, entity_id):
507
    """
518
    """
508
    Parameters:
519
    Parameters:
509
     - userId
520
     - user_id
510
     - itemId
521
     - entity_id
511
    """
522
    """
512
    pass
523
    pass
513
 
524
 
514
  def getBrowseHistory(self, userId):
525
  def getMyResearchItems(self, userId):
515
    """
526
    """
-
 
527
    Returns list of item ids in myresearch for the user
-
 
528
    
516
    Parameters:
529
    Parameters:
517
     - userId
530
     - userId
518
    """
531
    """
519
    pass
532
    pass
520
 
533
 
521
  def mergeBrowseHistory(self, fromUserId, toUserId):
534
  def updateMyResearch(self, userId, itemId):
522
    """
-
 
523
    Parameters:
-
 
524
     - fromUserId
-
 
525
     - toUserId
-
 
526
    """
-
 
527
    pass
-
 
528
 
-
 
529
  def getUserCount(self, userType):
-
 
530
    """
535
    """
531
    Returns number of registered users.
536
    add item to my research for a user
532
    If userType = null, then it returns count of all users, including anonymous
-
 
533
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
-
 
534
    If userType = UserType.USER, then it returns count of non-anonymous users only
-
 
535
    
537
    
536
    Parameters:
538
    Parameters:
537
     - userType
539
     - userId
-
 
540
     - itemId
538
    """
541
    """
539
    pass
542
    pass
540
 
543
 
541
  def getAllUsers(self, userType, startDate, endDate):
544
  def deleteItemFromMyResearch(self, userId, itemId):
542
    """
545
    """
543
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
-
 
544
    If any of startDate or endDate is -1, then that filter is ignored.
546
    delete item from my research for a user
545
    If userType is null, then returns all the users, irrespective of anonymous flag
-
 
546
    
-
 
547
    
547
    
548
    Parameters:
548
    Parameters:
549
     - userType
549
     - userId
550
     - startDate
-
 
551
     - endDate
550
     - itemId
552
    """
551
    """
553
    pass
552
    pass
554
 
553
 
555
  def putUserNote(self, user_id, entity_id, slide, note):
554
  def getBrowseHistoryItems(self, userId):
556
    """
555
    """
557
    Masking right now. May be used later.
-
 
558
    void addWidget(1:Widget widget) throws (1:WidgetException scx),
-
 
559
    void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
556
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
560
    void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
-
 
561
    void updateWidget(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
562
    void updateWidgetItem(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
563
    Widget getWidget(1:WidgetType type, 2:i64 userId, 3:bool onlyEnabled) throws (1:WidgetException scx),
-
 
564
    
557
    
565
    Parameters:
558
    Parameters:
566
     - user_id
559
     - userId
567
     - entity_id
-
 
568
     - slide
-
 
569
     - note
-
 
570
    """
560
    """
571
    pass
561
    pass
572
 
562
 
573
  def getUserNotes(self, user_id, entity_id):
563
  def updateBrowseHistory(self, userId, itemId):
574
    """
564
    """
-
 
565
    add item to browse history for a user
-
 
566
    
575
    Parameters:
567
    Parameters:
576
     - user_id
568
     - userId
577
     - entity_id
569
     - itemId
578
    """
570
    """
579
    pass
571
    pass
580
 
572
 
581
 
573
 
582
class Client(Iface):
574
class Client(Iface):
Line 2518... Line 2510...
2518
      return result.success
2510
      return result.success
2519
    if result.scex != None:
2511
    if result.scex != None:
2520
      raise result.scex
2512
      raise result.scex
2521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
2513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
2522
 
2514
 
2523
  def getMyResearch(self, userId):
2515
  def getUserCount(self, userType):
2524
    """
2516
    """
2525
    Widgets
2517
    Returns number of registered users.
-
 
2518
    If userType = null, then it returns count of all users, including anonymous
-
 
2519
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
-
 
2520
    If userType = UserType.USER, then it returns count of non-anonymous users only
2526
    
2521
    
2527
    Parameters:
2522
    Parameters:
2528
     - userId
2523
     - userType
2529
    """
2524
    """
2530
    self.send_getMyResearch(userId)
2525
    self.send_getUserCount(userType)
2531
    return self.recv_getMyResearch()
2526
    return self.recv_getUserCount()
2532
 
2527
 
2533
  def send_getMyResearch(self, userId):
2528
  def send_getUserCount(self, userType):
2534
    self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)
2529
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2535
    args = getMyResearch_args()
2530
    args = getUserCount_args()
2536
    args.userId = userId
2531
    args.userType = userType
2537
    args.write(self._oprot)
2532
    args.write(self._oprot)
2538
    self._oprot.writeMessageEnd()
2533
    self._oprot.writeMessageEnd()
2539
    self._oprot.trans.flush()
2534
    self._oprot.trans.flush()
2540
 
2535
 
2541
  def recv_getMyResearch(self, ):
2536
  def recv_getUserCount(self, ):
2542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2543
    if mtype == TMessageType.EXCEPTION:
2538
    if mtype == TMessageType.EXCEPTION:
2544
      x = TApplicationException()
2539
      x = TApplicationException()
2545
      x.read(self._iprot)
2540
      x.read(self._iprot)
2546
      self._iprot.readMessageEnd()
2541
      self._iprot.readMessageEnd()
2547
      raise x
2542
      raise x
2548
    result = getMyResearch_result()
2543
    result = getUserCount_result()
2549
    result.read(self._iprot)
2544
    result.read(self._iprot)
2550
    self._iprot.readMessageEnd()
2545
    self._iprot.readMessageEnd()
2551
    if result.success != None:
2546
    if result.success != None:
2552
      return result.success
2547
      return result.success
2553
    if result.scx != None:
-
 
2554
      raise result.scx
-
 
2555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
2548
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
2556
 
2549
 
2557
  def updateMyResearch(self, userId, itemId):
2550
  def getAllUsers(self, userType, startDate, endDate):
2558
    """
2551
    """
-
 
2552
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
-
 
2553
    If any of startDate or endDate is -1, then that filter is ignored.
-
 
2554
    If userType is null, then returns all the users, irrespective of anonymous flag
-
 
2555
    
-
 
2556
    
2559
    Parameters:
2557
    Parameters:
2560
     - userId
2558
     - userType
-
 
2559
     - startDate
2561
     - itemId
2560
     - endDate
2562
    """
2561
    """
2563
    self.send_updateMyResearch(userId, itemId)
2562
    self.send_getAllUsers(userType, startDate, endDate)
2564
    return self.recv_updateMyResearch()
2563
    return self.recv_getAllUsers()
2565
 
2564
 
2566
  def send_updateMyResearch(self, userId, itemId):
2565
  def send_getAllUsers(self, userType, startDate, endDate):
2567
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2566
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2568
    args = updateMyResearch_args()
2567
    args = getAllUsers_args()
2569
    args.userId = userId
2568
    args.userType = userType
-
 
2569
    args.startDate = startDate
2570
    args.itemId = itemId
2570
    args.endDate = endDate
2571
    args.write(self._oprot)
2571
    args.write(self._oprot)
2572
    self._oprot.writeMessageEnd()
2572
    self._oprot.writeMessageEnd()
2573
    self._oprot.trans.flush()
2573
    self._oprot.trans.flush()
2574
 
2574
 
2575
  def recv_updateMyResearch(self, ):
2575
  def recv_getAllUsers(self, ):
2576
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2576
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2577
    if mtype == TMessageType.EXCEPTION:
2577
    if mtype == TMessageType.EXCEPTION:
2578
      x = TApplicationException()
2578
      x = TApplicationException()
2579
      x.read(self._iprot)
2579
      x.read(self._iprot)
2580
      self._iprot.readMessageEnd()
2580
      self._iprot.readMessageEnd()
2581
      raise x
2581
      raise x
2582
    result = updateMyResearch_result()
2582
    result = getAllUsers_result()
2583
    result.read(self._iprot)
2583
    result.read(self._iprot)
2584
    self._iprot.readMessageEnd()
2584
    self._iprot.readMessageEnd()
2585
    if result.success != None:
2585
    if result.success != None:
2586
      return result.success
2586
      return result.success
2587
    if result.scx != None:
-
 
2588
      raise result.scx
-
 
2589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
2587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2590
 
2588
 
2591
  def deleteItemFromMyResearch(self, userId, itemId):
2589
  def putUserNote(self, user_id, entity_id, slide, note):
2592
    """
2590
    """
2593
    Parameters:
2591
    Parameters:
2594
     - userId
2592
     - user_id
-
 
2593
     - entity_id
-
 
2594
     - slide
2595
     - itemId
2595
     - note
2596
    """
2596
    """
2597
    self.send_deleteItemFromMyResearch(userId, itemId)
2597
    self.send_putUserNote(user_id, entity_id, slide, note)
2598
    self.recv_deleteItemFromMyResearch()
2598
    self.recv_putUserNote()
2599
 
2599
 
2600
  def send_deleteItemFromMyResearch(self, userId, itemId):
2600
  def send_putUserNote(self, user_id, entity_id, slide, note):
2601
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2601
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2602
    args = deleteItemFromMyResearch_args()
2602
    args = putUserNote_args()
2603
    args.userId = userId
2603
    args.user_id = user_id
2604
    args.itemId = itemId
2604
    args.entity_id = entity_id
-
 
2605
    args.slide = slide
-
 
2606
    args.note = note
2605
    args.write(self._oprot)
2607
    args.write(self._oprot)
2606
    self._oprot.writeMessageEnd()
2608
    self._oprot.writeMessageEnd()
2607
    self._oprot.trans.flush()
2609
    self._oprot.trans.flush()
2608
 
2610
 
2609
  def recv_deleteItemFromMyResearch(self, ):
2611
  def recv_putUserNote(self, ):
2610
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2611
    if mtype == TMessageType.EXCEPTION:
2613
    if mtype == TMessageType.EXCEPTION:
2612
      x = TApplicationException()
2614
      x = TApplicationException()
2613
      x.read(self._iprot)
2615
      x.read(self._iprot)
2614
      self._iprot.readMessageEnd()
2616
      self._iprot.readMessageEnd()
2615
      raise x
2617
      raise x
2616
    result = deleteItemFromMyResearch_result()
2618
    result = putUserNote_result()
2617
    result.read(self._iprot)
2619
    result.read(self._iprot)
2618
    self._iprot.readMessageEnd()
2620
    self._iprot.readMessageEnd()
2619
    if result.scx != None:
-
 
2620
      raise result.scx
-
 
2621
    return
2621
    return
2622
 
2622
 
2623
  def updateBrowseHistory(self, userId, itemId):
2623
  def getUserNotes(self, user_id, entity_id):
2624
    """
2624
    """
2625
    Parameters:
2625
    Parameters:
2626
     - userId
2626
     - user_id
2627
     - itemId
2627
     - entity_id
2628
    """
2628
    """
2629
    self.send_updateBrowseHistory(userId, itemId)
2629
    self.send_getUserNotes(user_id, entity_id)
2630
    self.recv_updateBrowseHistory()
2630
    return self.recv_getUserNotes()
2631
 
2631
 
2632
  def send_updateBrowseHistory(self, userId, itemId):
2632
  def send_getUserNotes(self, user_id, entity_id):
2633
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2633
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2634
    args = updateBrowseHistory_args()
2634
    args = getUserNotes_args()
2635
    args.userId = userId
2635
    args.user_id = user_id
2636
    args.itemId = itemId
2636
    args.entity_id = entity_id
2637
    args.write(self._oprot)
2637
    args.write(self._oprot)
2638
    self._oprot.writeMessageEnd()
2638
    self._oprot.writeMessageEnd()
2639
    self._oprot.trans.flush()
2639
    self._oprot.trans.flush()
2640
 
2640
 
2641
  def recv_updateBrowseHistory(self, ):
2641
  def recv_getUserNotes(self, ):
2642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2643
    if mtype == TMessageType.EXCEPTION:
2643
    if mtype == TMessageType.EXCEPTION:
2644
      x = TApplicationException()
2644
      x = TApplicationException()
2645
      x.read(self._iprot)
2645
      x.read(self._iprot)
2646
      self._iprot.readMessageEnd()
2646
      self._iprot.readMessageEnd()
2647
      raise x
2647
      raise x
2648
    result = updateBrowseHistory_result()
2648
    result = getUserNotes_result()
2649
    result.read(self._iprot)
2649
    result.read(self._iprot)
2650
    self._iprot.readMessageEnd()
2650
    self._iprot.readMessageEnd()
-
 
2651
    if result.success != None:
2651
    return
2652
      return result.success
-
 
2653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
2652
 
2654
 
2653
  def getBrowseHistory(self, userId):
2655
  def getMyResearchItems(self, userId):
2654
    """
2656
    """
-
 
2657
    Returns list of item ids in myresearch for the user
-
 
2658
    
2655
    Parameters:
2659
    Parameters:
2656
     - userId
2660
     - userId
2657
    """
2661
    """
2658
    self.send_getBrowseHistory(userId)
2662
    self.send_getMyResearchItems(userId)
2659
    return self.recv_getBrowseHistory()
2663
    return self.recv_getMyResearchItems()
2660
 
2664
 
2661
  def send_getBrowseHistory(self, userId):
2665
  def send_getMyResearchItems(self, userId):
2662
    self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)
2666
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2663
    args = getBrowseHistory_args()
2667
    args = getMyResearchItems_args()
2664
    args.userId = userId
2668
    args.userId = userId
2665
    args.write(self._oprot)
2669
    args.write(self._oprot)
2666
    self._oprot.writeMessageEnd()
2670
    self._oprot.writeMessageEnd()
2667
    self._oprot.trans.flush()
2671
    self._oprot.trans.flush()
2668
 
2672
 
2669
  def recv_getBrowseHistory(self, ):
2673
  def recv_getMyResearchItems(self, ):
2670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2671
    if mtype == TMessageType.EXCEPTION:
2675
    if mtype == TMessageType.EXCEPTION:
2672
      x = TApplicationException()
2676
      x = TApplicationException()
2673
      x.read(self._iprot)
2677
      x.read(self._iprot)
2674
      self._iprot.readMessageEnd()
2678
      self._iprot.readMessageEnd()
2675
      raise x
2679
      raise x
2676
    result = getBrowseHistory_result()
2680
    result = getMyResearchItems_result()
2677
    result.read(self._iprot)
2681
    result.read(self._iprot)
2678
    self._iprot.readMessageEnd()
2682
    self._iprot.readMessageEnd()
2679
    if result.success != None:
2683
    if result.success != None:
2680
      return result.success
2684
      return result.success
2681
    if result.scx != None:
2685
    if result.scx != None:
2682
      raise result.scx
2686
      raise result.scx
2683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
2687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
2684
 
2688
 
2685
  def mergeBrowseHistory(self, fromUserId, toUserId):
2689
  def updateMyResearch(self, userId, itemId):
2686
    """
2690
    """
-
 
2691
    add item to my research for a user
-
 
2692
    
2687
    Parameters:
2693
    Parameters:
2688
     - fromUserId
2694
     - userId
2689
     - toUserId
2695
     - itemId
2690
    """
2696
    """
2691
    self.send_mergeBrowseHistory(fromUserId, toUserId)
2697
    self.send_updateMyResearch(userId, itemId)
2692
    self.recv_mergeBrowseHistory()
2698
    return self.recv_updateMyResearch()
2693
 
2699
 
2694
  def send_mergeBrowseHistory(self, fromUserId, toUserId):
2700
  def send_updateMyResearch(self, userId, itemId):
2695
    self._oprot.writeMessageBegin('mergeBrowseHistory', TMessageType.CALL, self._seqid)
2701
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2696
    args = mergeBrowseHistory_args()
2702
    args = updateMyResearch_args()
2697
    args.fromUserId = fromUserId
2703
    args.userId = userId
2698
    args.toUserId = toUserId
2704
    args.itemId = itemId
2699
    args.write(self._oprot)
2705
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2706
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2707
    self._oprot.trans.flush()
2702
 
2708
 
2703
  def recv_mergeBrowseHistory(self, ):
2709
  def recv_updateMyResearch(self, ):
2704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2705
    if mtype == TMessageType.EXCEPTION:
2711
    if mtype == TMessageType.EXCEPTION:
2706
      x = TApplicationException()
2712
      x = TApplicationException()
2707
      x.read(self._iprot)
2713
      x.read(self._iprot)
2708
      self._iprot.readMessageEnd()
2714
      self._iprot.readMessageEnd()
2709
      raise x
2715
      raise x
2710
    result = mergeBrowseHistory_result()
2716
    result = updateMyResearch_result()
2711
    result.read(self._iprot)
2717
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
2718
    self._iprot.readMessageEnd()
-
 
2719
    if result.success != None:
2713
    return
2720
      return result.success
-
 
2721
    if result.scx != None:
-
 
2722
      raise result.scx
-
 
2723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
2714
 
2724
 
2715
  def getUserCount(self, userType):
2725
  def deleteItemFromMyResearch(self, userId, itemId):
2716
    """
2726
    """
2717
    Returns number of registered users.
2727
    delete item from my research for a user
2718
    If userType = null, then it returns count of all users, including anonymous
-
 
2719
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
-
 
2720
    If userType = UserType.USER, then it returns count of non-anonymous users only
-
 
2721
    
2728
    
2722
    Parameters:
2729
    Parameters:
2723
     - userType
2730
     - userId
-
 
2731
     - itemId
2724
    """
2732
    """
2725
    self.send_getUserCount(userType)
2733
    self.send_deleteItemFromMyResearch(userId, itemId)
2726
    return self.recv_getUserCount()
2734
    self.recv_deleteItemFromMyResearch()
2727
 
2735
 
2728
  def send_getUserCount(self, userType):
2736
  def send_deleteItemFromMyResearch(self, userId, itemId):
2729
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2737
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2730
    args = getUserCount_args()
2738
    args = deleteItemFromMyResearch_args()
2731
    args.userType = userType
2739
    args.userId = userId
-
 
2740
    args.itemId = itemId
2732
    args.write(self._oprot)
2741
    args.write(self._oprot)
2733
    self._oprot.writeMessageEnd()
2742
    self._oprot.writeMessageEnd()
2734
    self._oprot.trans.flush()
2743
    self._oprot.trans.flush()
2735
 
2744
 
2736
  def recv_getUserCount(self, ):
2745
  def recv_deleteItemFromMyResearch(self, ):
2737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2746
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2738
    if mtype == TMessageType.EXCEPTION:
2747
    if mtype == TMessageType.EXCEPTION:
2739
      x = TApplicationException()
2748
      x = TApplicationException()
2740
      x.read(self._iprot)
2749
      x.read(self._iprot)
2741
      self._iprot.readMessageEnd()
2750
      self._iprot.readMessageEnd()
2742
      raise x
2751
      raise x
2743
    result = getUserCount_result()
2752
    result = deleteItemFromMyResearch_result()
2744
    result.read(self._iprot)
2753
    result.read(self._iprot)
2745
    self._iprot.readMessageEnd()
2754
    self._iprot.readMessageEnd()
2746
    if result.success != None:
2755
    if result.scx != None:
2747
      return result.success
2756
      raise result.scx
2748
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
-
 
-
 
2757
    return
2749
 
2758
 
2750
  def getAllUsers(self, userType, startDate, endDate):
2759
  def getBrowseHistoryItems(self, userId):
2751
    """
2760
    """
2752
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2761
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
2753
    If any of startDate or endDate is -1, then that filter is ignored.
-
 
2754
    If userType is null, then returns all the users, irrespective of anonymous flag
-
 
2755
    
-
 
2756
    
2762
    
2757
    Parameters:
2763
    Parameters:
2758
     - userType
2764
     - userId
2759
     - startDate
-
 
2760
     - endDate
-
 
2761
    """
2765
    """
2762
    self.send_getAllUsers(userType, startDate, endDate)
2766
    self.send_getBrowseHistoryItems(userId)
2763
    return self.recv_getAllUsers()
2767
    return self.recv_getBrowseHistoryItems()
2764
 
2768
 
2765
  def send_getAllUsers(self, userType, startDate, endDate):
2769
  def send_getBrowseHistoryItems(self, userId):
2766
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2770
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2767
    args = getAllUsers_args()
2771
    args = getBrowseHistoryItems_args()
2768
    args.userType = userType
2772
    args.userId = userId
2769
    args.startDate = startDate
-
 
2770
    args.endDate = endDate
-
 
2771
    args.write(self._oprot)
2773
    args.write(self._oprot)
2772
    self._oprot.writeMessageEnd()
2774
    self._oprot.writeMessageEnd()
2773
    self._oprot.trans.flush()
2775
    self._oprot.trans.flush()
2774
 
2776
 
2775
  def recv_getAllUsers(self, ):
2777
  def recv_getBrowseHistoryItems(self, ):
2776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2778
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2777
    if mtype == TMessageType.EXCEPTION:
2779
    if mtype == TMessageType.EXCEPTION:
2778
      x = TApplicationException()
2780
      x = TApplicationException()
2779
      x.read(self._iprot)
2781
      x.read(self._iprot)
2780
      self._iprot.readMessageEnd()
2782
      self._iprot.readMessageEnd()
2781
      raise x
2783
      raise x
2782
    result = getAllUsers_result()
2784
    result = getBrowseHistoryItems_result()
2783
    result.read(self._iprot)
2785
    result.read(self._iprot)
2784
    self._iprot.readMessageEnd()
2786
    self._iprot.readMessageEnd()
2785
    if result.success != None:
2787
    if result.success != None:
2786
      return result.success
2788
      return result.success
-
 
2789
    if result.scx != None:
-
 
2790
      raise result.scx
2787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
2788
 
2792
 
2789
  def putUserNote(self, user_id, entity_id, slide, note):
2793
  def updateBrowseHistory(self, userId, itemId):
2790
    """
2794
    """
2791
    Masking right now. May be used later.
2795
    add item to browse history for a user
2792
    void addWidget(1:Widget widget) throws (1:WidgetException scx),
-
 
2793
    void addItemToWidget(1:i64 widget_id, 2:list<i64> items) throws (1:WidgetException scx),
-
 
2794
    void deleteItemFromWidget(1:i64 widget_id, 2:i64 item_id) throws (1:WidgetException scx),
-
 
2795
    void updateWidget(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
2796
    void updateWidgetItem(1:i64 widgetId, 2:bool enable) throws (1:WidgetException scx),
-
 
2797
    Widget getWidget(1:WidgetType type, 2:i64 userId, 3:bool onlyEnabled) throws (1:WidgetException scx),
-
 
2798
    
2796
    
2799
    Parameters:
2797
    Parameters:
2800
     - user_id
2798
     - userId
2801
     - entity_id
-
 
2802
     - slide
-
 
2803
     - note
2799
     - itemId
2804
    """
2800
    """
2805
    self.send_putUserNote(user_id, entity_id, slide, note)
2801
    self.send_updateBrowseHistory(userId, itemId)
2806
    self.recv_putUserNote()
2802
    self.recv_updateBrowseHistory()
2807
 
2803
 
2808
  def send_putUserNote(self, user_id, entity_id, slide, note):
2804
  def send_updateBrowseHistory(self, userId, itemId):
2809
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2805
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2810
    args = putUserNote_args()
2806
    args = updateBrowseHistory_args()
2811
    args.user_id = user_id
2807
    args.userId = userId
2812
    args.entity_id = entity_id
2808
    args.itemId = itemId
2813
    args.slide = slide
-
 
2814
    args.note = note
-
 
2815
    args.write(self._oprot)
2809
    args.write(self._oprot)
2816
    self._oprot.writeMessageEnd()
2810
    self._oprot.writeMessageEnd()
2817
    self._oprot.trans.flush()
2811
    self._oprot.trans.flush()
2818
 
2812
 
2819
  def recv_putUserNote(self, ):
2813
  def recv_updateBrowseHistory(self, ):
2820
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2821
    if mtype == TMessageType.EXCEPTION:
2815
    if mtype == TMessageType.EXCEPTION:
2822
      x = TApplicationException()
2816
      x = TApplicationException()
2823
      x.read(self._iprot)
2817
      x.read(self._iprot)
2824
      self._iprot.readMessageEnd()
2818
      self._iprot.readMessageEnd()
2825
      raise x
2819
      raise x
2826
    result = putUserNote_result()
2820
    result = updateBrowseHistory_result()
2827
    result.read(self._iprot)
2821
    result.read(self._iprot)
2828
    self._iprot.readMessageEnd()
2822
    self._iprot.readMessageEnd()
2829
    return
2823
    return
2830
 
2824
 
2831
  def getUserNotes(self, user_id, entity_id):
-
 
2832
    """
-
 
2833
    Parameters:
-
 
2834
     - user_id
-
 
2835
     - entity_id
-
 
2836
    """
-
 
2837
    self.send_getUserNotes(user_id, entity_id)
-
 
2838
    return self.recv_getUserNotes()
-
 
2839
 
-
 
2840
  def send_getUserNotes(self, user_id, entity_id):
-
 
2841
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
-
 
2842
    args = getUserNotes_args()
-
 
2843
    args.user_id = user_id
-
 
2844
    args.entity_id = entity_id
-
 
2845
    args.write(self._oprot)
-
 
2846
    self._oprot.writeMessageEnd()
-
 
2847
    self._oprot.trans.flush()
-
 
2848
 
-
 
2849
  def recv_getUserNotes(self, ):
-
 
2850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2851
    if mtype == TMessageType.EXCEPTION:
-
 
2852
      x = TApplicationException()
-
 
2853
      x.read(self._iprot)
-
 
2854
      self._iprot.readMessageEnd()
-
 
2855
      raise x
-
 
2856
    result = getUserNotes_result()
-
 
2857
    result.read(self._iprot)
-
 
2858
    self._iprot.readMessageEnd()
-
 
2859
    if result.success != None:
-
 
2860
      return result.success
-
 
2861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
-
 
2862
 
-
 
2863
 
2825
 
2864
class Processor(Iface, TProcessor):
2826
class Processor(Iface, TProcessor):
2865
  def __init__(self, handler):
2827
  def __init__(self, handler):
2866
    self._handler = handler
2828
    self._handler = handler
2867
    self._processMap = {}
2829
    self._processMap = {}
Line 2921... Line 2883...
2921
    self._processMap["createOrders"] = Processor.process_createOrders
2883
    self._processMap["createOrders"] = Processor.process_createOrders
2922
    self._processMap["validateCart"] = Processor.process_validateCart
2884
    self._processMap["validateCart"] = Processor.process_validateCart
2923
    self._processMap["mergeCart"] = Processor.process_mergeCart
2885
    self._processMap["mergeCart"] = Processor.process_mergeCart
2924
    self._processMap["checkOut"] = Processor.process_checkOut
2886
    self._processMap["checkOut"] = Processor.process_checkOut
2925
    self._processMap["resetCart"] = Processor.process_resetCart
2887
    self._processMap["resetCart"] = Processor.process_resetCart
2926
    self._processMap["getMyResearch"] = Processor.process_getMyResearch
-
 
2927
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
-
 
2928
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
-
 
2929
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
-
 
2930
    self._processMap["getBrowseHistory"] = Processor.process_getBrowseHistory
-
 
2931
    self._processMap["mergeBrowseHistory"] = Processor.process_mergeBrowseHistory
-
 
2932
    self._processMap["getUserCount"] = Processor.process_getUserCount
2888
    self._processMap["getUserCount"] = Processor.process_getUserCount
2933
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2889
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2934
    self._processMap["putUserNote"] = Processor.process_putUserNote
2890
    self._processMap["putUserNote"] = Processor.process_putUserNote
2935
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2891
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
-
 
2892
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
-
 
2893
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
-
 
2894
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
-
 
2895
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
-
 
2896
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
2936
 
2897
 
2937
  def process(self, iprot, oprot):
2898
  def process(self, iprot, oprot):
2938
    (name, type, seqid) = iprot.readMessageBegin()
2899
    (name, type, seqid) = iprot.readMessageBegin()
2939
    if name not in self._processMap:
2900
    if name not in self._processMap:
2940
      iprot.skip(TType.STRUCT)
2901
      iprot.skip(TType.STRUCT)
Line 3753... Line 3714...
3753
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
3714
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
3754
    result.write(oprot)
3715
    result.write(oprot)
3755
    oprot.writeMessageEnd()
3716
    oprot.writeMessageEnd()
3756
    oprot.trans.flush()
3717
    oprot.trans.flush()
3757
 
3718
 
3758
  def process_getMyResearch(self, seqid, iprot, oprot):
3719
  def process_getUserCount(self, seqid, iprot, oprot):
3759
    args = getMyResearch_args()
3720
    args = getUserCount_args()
3760
    args.read(iprot)
3721
    args.read(iprot)
3761
    iprot.readMessageEnd()
3722
    iprot.readMessageEnd()
3762
    result = getMyResearch_result()
3723
    result = getUserCount_result()
3763
    try:
-
 
3764
      result.success = self._handler.getMyResearch(args.userId)
3724
    result.success = self._handler.getUserCount(args.userType)
3765
    except WidgetException, scx:
-
 
3766
      result.scx = scx
-
 
3767
    oprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)
3725
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
3768
    result.write(oprot)
3726
    result.write(oprot)
3769
    oprot.writeMessageEnd()
3727
    oprot.writeMessageEnd()
3770
    oprot.trans.flush()
3728
    oprot.trans.flush()
3771
 
3729
 
3772
  def process_updateMyResearch(self, seqid, iprot, oprot):
3730
  def process_getAllUsers(self, seqid, iprot, oprot):
3773
    args = updateMyResearch_args()
3731
    args = getAllUsers_args()
3774
    args.read(iprot)
3732
    args.read(iprot)
3775
    iprot.readMessageEnd()
3733
    iprot.readMessageEnd()
3776
    result = updateMyResearch_result()
3734
    result = getAllUsers_result()
3777
    try:
-
 
3778
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3735
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3779
    except WidgetException, scx:
-
 
3780
      result.scx = scx
-
 
3781
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
3736
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
3782
    result.write(oprot)
3737
    result.write(oprot)
3783
    oprot.writeMessageEnd()
3738
    oprot.writeMessageEnd()
3784
    oprot.trans.flush()
3739
    oprot.trans.flush()
3785
 
3740
 
3786
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3741
  def process_putUserNote(self, seqid, iprot, oprot):
3787
    args = deleteItemFromMyResearch_args()
3742
    args = putUserNote_args()
3788
    args.read(iprot)
3743
    args.read(iprot)
3789
    iprot.readMessageEnd()
3744
    iprot.readMessageEnd()
3790
    result = deleteItemFromMyResearch_result()
3745
    result = putUserNote_result()
3791
    try:
-
 
3792
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3746
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3793
    except WidgetException, scx:
-
 
3794
      result.scx = scx
-
 
3795
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
3747
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
3796
    result.write(oprot)
3748
    result.write(oprot)
3797
    oprot.writeMessageEnd()
3749
    oprot.writeMessageEnd()
3798
    oprot.trans.flush()
3750
    oprot.trans.flush()
3799
 
3751
 
3800
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3752
  def process_getUserNotes(self, seqid, iprot, oprot):
3801
    args = updateBrowseHistory_args()
3753
    args = getUserNotes_args()
3802
    args.read(iprot)
3754
    args.read(iprot)
3803
    iprot.readMessageEnd()
3755
    iprot.readMessageEnd()
3804
    result = updateBrowseHistory_result()
3756
    result = getUserNotes_result()
3805
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3757
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3806
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
3758
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
3807
    result.write(oprot)
3759
    result.write(oprot)
3808
    oprot.writeMessageEnd()
3760
    oprot.writeMessageEnd()
3809
    oprot.trans.flush()
3761
    oprot.trans.flush()
3810
 
3762
 
3811
  def process_getBrowseHistory(self, seqid, iprot, oprot):
3763
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3812
    args = getBrowseHistory_args()
3764
    args = getMyResearchItems_args()
3813
    args.read(iprot)
3765
    args.read(iprot)
3814
    iprot.readMessageEnd()
3766
    iprot.readMessageEnd()
3815
    result = getBrowseHistory_result()
3767
    result = getMyResearchItems_result()
3816
    try:
3768
    try:
3817
      result.success = self._handler.getBrowseHistory(args.userId)
3769
      result.success = self._handler.getMyResearchItems(args.userId)
3818
    except WidgetException, scx:
3770
    except WidgetException, scx:
3819
      result.scx = scx
3771
      result.scx = scx
3820
    oprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)
3772
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
3821
    result.write(oprot)
-
 
3822
    oprot.writeMessageEnd()
-
 
3823
    oprot.trans.flush()
-
 
3824
 
-
 
3825
  def process_mergeBrowseHistory(self, seqid, iprot, oprot):
-
 
3826
    args = mergeBrowseHistory_args()
-
 
3827
    args.read(iprot)
-
 
3828
    iprot.readMessageEnd()
-
 
3829
    result = mergeBrowseHistory_result()
-
 
3830
    self._handler.mergeBrowseHistory(args.fromUserId, args.toUserId)
-
 
3831
    oprot.writeMessageBegin("mergeBrowseHistory", TMessageType.REPLY, seqid)
-
 
3832
    result.write(oprot)
3773
    result.write(oprot)
3833
    oprot.writeMessageEnd()
3774
    oprot.writeMessageEnd()
3834
    oprot.trans.flush()
3775
    oprot.trans.flush()
3835
 
3776
 
3836
  def process_getUserCount(self, seqid, iprot, oprot):
3777
  def process_updateMyResearch(self, seqid, iprot, oprot):
3837
    args = getUserCount_args()
3778
    args = updateMyResearch_args()
3838
    args.read(iprot)
3779
    args.read(iprot)
3839
    iprot.readMessageEnd()
3780
    iprot.readMessageEnd()
3840
    result = getUserCount_result()
3781
    result = updateMyResearch_result()
-
 
3782
    try:
3841
    result.success = self._handler.getUserCount(args.userType)
3783
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
-
 
3784
    except WidgetException, scx:
-
 
3785
      result.scx = scx
3842
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
3786
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
3843
    result.write(oprot)
3787
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3788
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
3789
    oprot.trans.flush()
3846
 
3790
 
3847
  def process_getAllUsers(self, seqid, iprot, oprot):
3791
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3848
    args = getAllUsers_args()
3792
    args = deleteItemFromMyResearch_args()
3849
    args.read(iprot)
3793
    args.read(iprot)
3850
    iprot.readMessageEnd()
3794
    iprot.readMessageEnd()
3851
    result = getAllUsers_result()
3795
    result = deleteItemFromMyResearch_result()
-
 
3796
    try:
3852
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3797
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
-
 
3798
    except WidgetException, scx:
-
 
3799
      result.scx = scx
3853
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
3800
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
3854
    result.write(oprot)
3801
    result.write(oprot)
3855
    oprot.writeMessageEnd()
3802
    oprot.writeMessageEnd()
3856
    oprot.trans.flush()
3803
    oprot.trans.flush()
3857
 
3804
 
3858
  def process_putUserNote(self, seqid, iprot, oprot):
3805
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3859
    args = putUserNote_args()
3806
    args = getBrowseHistoryItems_args()
3860
    args.read(iprot)
3807
    args.read(iprot)
3861
    iprot.readMessageEnd()
3808
    iprot.readMessageEnd()
3862
    result = putUserNote_result()
3809
    result = getBrowseHistoryItems_result()
-
 
3810
    try:
3863
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3811
      result.success = self._handler.getBrowseHistoryItems(args.userId)
-
 
3812
    except WidgetException, scx:
-
 
3813
      result.scx = scx
3864
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
3814
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
3865
    result.write(oprot)
3815
    result.write(oprot)
3866
    oprot.writeMessageEnd()
3816
    oprot.writeMessageEnd()
3867
    oprot.trans.flush()
3817
    oprot.trans.flush()
3868
 
3818
 
3869
  def process_getUserNotes(self, seqid, iprot, oprot):
3819
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3870
    args = getUserNotes_args()
3820
    args = updateBrowseHistory_args()
3871
    args.read(iprot)
3821
    args.read(iprot)
3872
    iprot.readMessageEnd()
3822
    iprot.readMessageEnd()
3873
    result = getUserNotes_result()
3823
    result = updateBrowseHistory_result()
3874
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3824
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3875
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
3825
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
3876
    result.write(oprot)
3826
    result.write(oprot)
3877
    oprot.writeMessageEnd()
3827
    oprot.writeMessageEnd()
3878
    oprot.trans.flush()
3828
    oprot.trans.flush()
3879
 
3829
 
3880
 
3830
 
Line 6152... Line 6102...
6152
      if ftype == TType.STOP:
6102
      if ftype == TType.STOP:
6153
        break
6103
        break
6154
      if fid == 0:
6104
      if fid == 0:
6155
        if ftype == TType.LIST:
6105
        if ftype == TType.LIST:
6156
          self.success = []
6106
          self.success = []
6157
          (_etype38, _size35) = iprot.readListBegin()
6107
          (_etype31, _size28) = iprot.readListBegin()
6158
          for _i39 in xrange(_size35):
6108
          for _i32 in xrange(_size28):
6159
            _elem40 = Address()
6109
            _elem33 = Address()
6160
            _elem40.read(iprot)
6110
            _elem33.read(iprot)
6161
            self.success.append(_elem40)
6111
            self.success.append(_elem33)
6162
          iprot.readListEnd()
6112
          iprot.readListEnd()
6163
        else:
6113
        else:
6164
          iprot.skip(ftype)
6114
          iprot.skip(ftype)
6165
      elif fid == 1:
6115
      elif fid == 1:
6166
        if ftype == TType.STRUCT:
6116
        if ftype == TType.STRUCT:
Line 6179... Line 6129...
6179
      return
6129
      return
6180
    oprot.writeStructBegin('getAllAddressesForUser_result')
6130
    oprot.writeStructBegin('getAllAddressesForUser_result')
6181
    if self.success != None:
6131
    if self.success != None:
6182
      oprot.writeFieldBegin('success', TType.LIST, 0)
6132
      oprot.writeFieldBegin('success', TType.LIST, 0)
6183
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6184
      for iter41 in self.success:
6134
      for iter34 in self.success:
6185
        iter41.write(oprot)
6135
        iter34.write(oprot)
6186
      oprot.writeListEnd()
6136
      oprot.writeListEnd()
6187
      oprot.writeFieldEnd()
6137
      oprot.writeFieldEnd()
6188
    if self.ucx != None:
6138
    if self.ucx != None:
6189
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6139
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6190
      self.ucx.write(oprot)
6140
      self.ucx.write(oprot)
Line 6991... Line 6941...
6991
      if ftype == TType.STOP:
6941
      if ftype == TType.STOP:
6992
        break
6942
        break
6993
      if fid == 0:
6943
      if fid == 0:
6994
        if ftype == TType.LIST:
6944
        if ftype == TType.LIST:
6995
          self.success = []
6945
          self.success = []
6996
          (_etype45, _size42) = iprot.readListBegin()
6946
          (_etype38, _size35) = iprot.readListBegin()
6997
          for _i46 in xrange(_size42):
6947
          for _i39 in xrange(_size35):
6998
            _elem47 = UserCommunication()
6948
            _elem40 = UserCommunication()
6999
            _elem47.read(iprot)
6949
            _elem40.read(iprot)
7000
            self.success.append(_elem47)
6950
            self.success.append(_elem40)
7001
          iprot.readListEnd()
6951
          iprot.readListEnd()
7002
        else:
6952
        else:
7003
          iprot.skip(ftype)
6953
          iprot.skip(ftype)
7004
      elif fid == 1:
6954
      elif fid == 1:
7005
        if ftype == TType.STRUCT:
6955
        if ftype == TType.STRUCT:
Line 7018... Line 6968...
7018
      return
6968
      return
7019
    oprot.writeStructBegin('getUserCommunicationByUser_result')
6969
    oprot.writeStructBegin('getUserCommunicationByUser_result')
7020
    if self.success != None:
6970
    if self.success != None:
7021
      oprot.writeFieldBegin('success', TType.LIST, 0)
6971
      oprot.writeFieldBegin('success', TType.LIST, 0)
7022
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6972
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7023
      for iter48 in self.success:
6973
      for iter41 in self.success:
7024
        iter48.write(oprot)
6974
        iter41.write(oprot)
7025
      oprot.writeListEnd()
6975
      oprot.writeListEnd()
7026
      oprot.writeFieldEnd()
6976
      oprot.writeFieldEnd()
7027
    if self.ucx != None:
6977
    if self.ucx != None:
7028
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6978
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7029
      self.ucx.write(oprot)
6979
      self.ucx.write(oprot)
Line 7106... Line 7056...
7106
      if ftype == TType.STOP:
7056
      if ftype == TType.STOP:
7107
        break
7057
        break
7108
      if fid == 0:
7058
      if fid == 0:
7109
        if ftype == TType.LIST:
7059
        if ftype == TType.LIST:
7110
          self.success = []
7060
          self.success = []
7111
          (_etype52, _size49) = iprot.readListBegin()
7061
          (_etype45, _size42) = iprot.readListBegin()
7112
          for _i53 in xrange(_size49):
7062
          for _i46 in xrange(_size42):
7113
            _elem54 = UserCommunication()
7063
            _elem47 = UserCommunication()
7114
            _elem54.read(iprot)
7064
            _elem47.read(iprot)
7115
            self.success.append(_elem54)
7065
            self.success.append(_elem47)
7116
          iprot.readListEnd()
7066
          iprot.readListEnd()
7117
        else:
7067
        else:
7118
          iprot.skip(ftype)
7068
          iprot.skip(ftype)
7119
      elif fid == 1:
7069
      elif fid == 1:
7120
        if ftype == TType.STRUCT:
7070
        if ftype == TType.STRUCT:
Line 7133... Line 7083...
7133
      return
7083
      return
7134
    oprot.writeStructBegin('getAllUserCommunications_result')
7084
    oprot.writeStructBegin('getAllUserCommunications_result')
7135
    if self.success != None:
7085
    if self.success != None:
7136
      oprot.writeFieldBegin('success', TType.LIST, 0)
7086
      oprot.writeFieldBegin('success', TType.LIST, 0)
7137
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7087
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7138
      for iter55 in self.success:
7088
      for iter48 in self.success:
7139
        iter55.write(oprot)
7089
        iter48.write(oprot)
7140
      oprot.writeListEnd()
7090
      oprot.writeListEnd()
7141
      oprot.writeFieldEnd()
7091
      oprot.writeFieldEnd()
7142
    if self.ucx != None:
7092
    if self.ucx != None:
7143
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7093
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7144
      self.ucx.write(oprot)
7094
      self.ucx.write(oprot)
Line 7358... Line 7308...
7358
      if ftype == TType.STOP:
7308
      if ftype == TType.STOP:
7359
        break
7309
        break
7360
      if fid == 0:
7310
      if fid == 0:
7361
        if ftype == TType.LIST:
7311
        if ftype == TType.LIST:
7362
          self.success = []
7312
          self.success = []
7363
          (_etype59, _size56) = iprot.readListBegin()
7313
          (_etype52, _size49) = iprot.readListBegin()
7364
          for _i60 in xrange(_size56):
7314
          for _i53 in xrange(_size49):
7365
            _elem61 = MasterAffiliate()
7315
            _elem54 = MasterAffiliate()
7366
            _elem61.read(iprot)
7316
            _elem54.read(iprot)
7367
            self.success.append(_elem61)
7317
            self.success.append(_elem54)
7368
          iprot.readListEnd()
7318
          iprot.readListEnd()
7369
        else:
7319
        else:
7370
          iprot.skip(ftype)
7320
          iprot.skip(ftype)
7371
      elif fid == 1:
7321
      elif fid == 1:
7372
        if ftype == TType.STRUCT:
7322
        if ftype == TType.STRUCT:
Line 7385... Line 7335...
7385
      return
7335
      return
7386
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7336
    oprot.writeStructBegin('getAllMasterAffiliates_result')
7387
    if self.success != None:
7337
    if self.success != None:
7388
      oprot.writeFieldBegin('success', TType.LIST, 0)
7338
      oprot.writeFieldBegin('success', TType.LIST, 0)
7389
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7339
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7390
      for iter62 in self.success:
7340
      for iter55 in self.success:
7391
        iter62.write(oprot)
7341
        iter55.write(oprot)
7392
      oprot.writeListEnd()
7342
      oprot.writeListEnd()
7393
      oprot.writeFieldEnd()
7343
      oprot.writeFieldEnd()
7394
    if self.utx != None:
7344
    if self.utx != None:
7395
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7345
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7396
      self.utx.write(oprot)
7346
      self.utx.write(oprot)
Line 8277... Line 8227...
8277
      if ftype == TType.STOP:
8227
      if ftype == TType.STOP:
8278
        break
8228
        break
8279
      if fid == 0:
8229
      if fid == 0:
8280
        if ftype == TType.LIST:
8230
        if ftype == TType.LIST:
8281
          self.success = []
8231
          self.success = []
8282
          (_etype66, _size63) = iprot.readListBegin()
8232
          (_etype59, _size56) = iprot.readListBegin()
8283
          for _i67 in xrange(_size63):
8233
          for _i60 in xrange(_size56):
8284
            _elem68 = Affiliate()
8234
            _elem61 = Affiliate()
8285
            _elem68.read(iprot)
8235
            _elem61.read(iprot)
8286
            self.success.append(_elem68)
8236
            self.success.append(_elem61)
8287
          iprot.readListEnd()
8237
          iprot.readListEnd()
8288
        else:
8238
        else:
8289
          iprot.skip(ftype)
8239
          iprot.skip(ftype)
8290
      elif fid == 1:
8240
      elif fid == 1:
8291
        if ftype == TType.STRUCT:
8241
        if ftype == TType.STRUCT:
Line 8304... Line 8254...
8304
      return
8254
      return
8305
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8255
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
8306
    if self.success != None:
8256
    if self.success != None:
8307
      oprot.writeFieldBegin('success', TType.LIST, 0)
8257
      oprot.writeFieldBegin('success', TType.LIST, 0)
8308
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8258
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8309
      for iter69 in self.success:
8259
      for iter62 in self.success:
8310
        iter69.write(oprot)
8260
        iter62.write(oprot)
8311
      oprot.writeListEnd()
8261
      oprot.writeListEnd()
8312
      oprot.writeFieldEnd()
8262
      oprot.writeFieldEnd()
8313
    if self.utx != None:
8263
    if self.utx != None:
8314
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8264
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8315
      self.utx.write(oprot)
8265
      self.utx.write(oprot)
Line 8719... Line 8669...
8719
      if ftype == TType.STOP:
8669
      if ftype == TType.STOP:
8720
        break
8670
        break
8721
      if fid == 0:
8671
      if fid == 0:
8722
        if ftype == TType.LIST:
8672
        if ftype == TType.LIST:
8723
          self.success = []
8673
          self.success = []
8724
          (_etype73, _size70) = iprot.readListBegin()
8674
          (_etype66, _size63) = iprot.readListBegin()
8725
          for _i74 in xrange(_size70):
8675
          for _i67 in xrange(_size63):
8726
            _elem75 = TrackLog()
8676
            _elem68 = TrackLog()
8727
            _elem75.read(iprot)
8677
            _elem68.read(iprot)
8728
            self.success.append(_elem75)
8678
            self.success.append(_elem68)
8729
          iprot.readListEnd()
8679
          iprot.readListEnd()
8730
        else:
8680
        else:
8731
          iprot.skip(ftype)
8681
          iprot.skip(ftype)
8732
      elif fid == 1:
8682
      elif fid == 1:
8733
        if ftype == TType.STRUCT:
8683
        if ftype == TType.STRUCT:
Line 8746... Line 8696...
8746
      return
8696
      return
8747
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
8697
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
8748
    if self.success != None:
8698
    if self.success != None:
8749
      oprot.writeFieldBegin('success', TType.LIST, 0)
8699
      oprot.writeFieldBegin('success', TType.LIST, 0)
8750
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8700
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8751
      for iter76 in self.success:
8701
      for iter69 in self.success:
8752
        iter76.write(oprot)
8702
        iter69.write(oprot)
8753
      oprot.writeListEnd()
8703
      oprot.writeListEnd()
8754
      oprot.writeFieldEnd()
8704
      oprot.writeFieldEnd()
8755
    if self.utx != None:
8705
    if self.utx != None:
8756
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8706
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8757
      self.utx.write(oprot)
8707
      self.utx.write(oprot)
Line 8852... Line 8802...
8852
      if ftype == TType.STOP:
8802
      if ftype == TType.STOP:
8853
        break
8803
        break
8854
      if fid == 0:
8804
      if fid == 0:
8855
        if ftype == TType.LIST:
8805
        if ftype == TType.LIST:
8856
          self.success = []
8806
          self.success = []
8857
          (_etype80, _size77) = iprot.readListBegin()
8807
          (_etype73, _size70) = iprot.readListBegin()
8858
          for _i81 in xrange(_size77):
8808
          for _i74 in xrange(_size70):
8859
            _elem82 = TrackLog()
8809
            _elem75 = TrackLog()
8860
            _elem82.read(iprot)
8810
            _elem75.read(iprot)
8861
            self.success.append(_elem82)
8811
            self.success.append(_elem75)
8862
          iprot.readListEnd()
8812
          iprot.readListEnd()
8863
        else:
8813
        else:
8864
          iprot.skip(ftype)
8814
          iprot.skip(ftype)
8865
      elif fid == 1:
8815
      elif fid == 1:
8866
        if ftype == TType.STRUCT:
8816
        if ftype == TType.STRUCT:
Line 8879... Line 8829...
8879
      return
8829
      return
8880
    oprot.writeStructBegin('getTrackLogsByUser_result')
8830
    oprot.writeStructBegin('getTrackLogsByUser_result')
8881
    if self.success != None:
8831
    if self.success != None:
8882
      oprot.writeFieldBegin('success', TType.LIST, 0)
8832
      oprot.writeFieldBegin('success', TType.LIST, 0)
8883
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8833
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8884
      for iter83 in self.success:
8834
      for iter76 in self.success:
8885
        iter83.write(oprot)
8835
        iter76.write(oprot)
8886
      oprot.writeListEnd()
8836
      oprot.writeListEnd()
8887
      oprot.writeFieldEnd()
8837
      oprot.writeFieldEnd()
8888
    if self.utx != None:
8838
    if self.utx != None:
8889
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8839
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8890
      self.utx.write(oprot)
8840
      self.utx.write(oprot)
Line 9009... Line 8959...
9009
      if ftype == TType.STOP:
8959
      if ftype == TType.STOP:
9010
        break
8960
        break
9011
      if fid == 0:
8961
      if fid == 0:
9012
        if ftype == TType.LIST:
8962
        if ftype == TType.LIST:
9013
          self.success = []
8963
          self.success = []
9014
          (_etype87, _size84) = iprot.readListBegin()
8964
          (_etype80, _size77) = iprot.readListBegin()
9015
          for _i88 in xrange(_size84):
8965
          for _i81 in xrange(_size77):
9016
            _elem89 = TrackLog()
8966
            _elem82 = TrackLog()
9017
            _elem89.read(iprot)
8967
            _elem82.read(iprot)
9018
            self.success.append(_elem89)
8968
            self.success.append(_elem82)
9019
          iprot.readListEnd()
8969
          iprot.readListEnd()
9020
        else:
8970
        else:
9021
          iprot.skip(ftype)
8971
          iprot.skip(ftype)
9022
      elif fid == 1:
8972
      elif fid == 1:
9023
        if ftype == TType.STRUCT:
8973
        if ftype == TType.STRUCT:
Line 9036... Line 8986...
9036
      return
8986
      return
9037
    oprot.writeStructBegin('getTrackLogs_result')
8987
    oprot.writeStructBegin('getTrackLogs_result')
9038
    if self.success != None:
8988
    if self.success != None:
9039
      oprot.writeFieldBegin('success', TType.LIST, 0)
8989
      oprot.writeFieldBegin('success', TType.LIST, 0)
9040
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8990
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9041
      for iter90 in self.success:
8991
      for iter83 in self.success:
9042
        iter90.write(oprot)
8992
        iter83.write(oprot)
9043
      oprot.writeListEnd()
8993
      oprot.writeListEnd()
9044
      oprot.writeFieldEnd()
8994
      oprot.writeFieldEnd()
9045
    if self.utx != None:
8995
    if self.utx != None:
9046
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8996
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9047
      self.utx.write(oprot)
8997
      self.utx.write(oprot)
Line 9528... Line 9478...
9528
      if ftype == TType.STOP:
9478
      if ftype == TType.STOP:
9529
        break
9479
        break
9530
      if fid == 0:
9480
      if fid == 0:
9531
        if ftype == TType.LIST:
9481
        if ftype == TType.LIST:
9532
          self.success = []
9482
          self.success = []
9533
          (_etype94, _size91) = iprot.readListBegin()
9483
          (_etype87, _size84) = iprot.readListBegin()
9534
          for _i95 in xrange(_size91):
9484
          for _i88 in xrange(_size84):
9535
            _elem96 = Cart()
9485
            _elem89 = Cart()
9536
            _elem96.read(iprot)
9486
            _elem89.read(iprot)
9537
            self.success.append(_elem96)
9487
            self.success.append(_elem89)
9538
          iprot.readListEnd()
9488
          iprot.readListEnd()
9539
        else:
9489
        else:
9540
          iprot.skip(ftype)
9490
          iprot.skip(ftype)
9541
      elif fid == 1:
9491
      elif fid == 1:
9542
        if ftype == TType.STRUCT:
9492
        if ftype == TType.STRUCT:
Line 9555... Line 9505...
9555
      return
9505
      return
9556
    oprot.writeStructBegin('getCartsForUser_result')
9506
    oprot.writeStructBegin('getCartsForUser_result')
9557
    if self.success != None:
9507
    if self.success != None:
9558
      oprot.writeFieldBegin('success', TType.LIST, 0)
9508
      oprot.writeFieldBegin('success', TType.LIST, 0)
9559
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9509
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9560
      for iter97 in self.success:
9510
      for iter90 in self.success:
9561
        iter97.write(oprot)
9511
        iter90.write(oprot)
9562
      oprot.writeListEnd()
9512
      oprot.writeListEnd()
9563
      oprot.writeFieldEnd()
9513
      oprot.writeFieldEnd()
9564
    if self.scx != None:
9514
    if self.scx != None:
9565
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9515
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9566
      self.scx.write(oprot)
9516
      self.scx.write(oprot)
Line 9661... Line 9611...
9661
      if ftype == TType.STOP:
9611
      if ftype == TType.STOP:
9662
        break
9612
        break
9663
      if fid == 0:
9613
      if fid == 0:
9664
        if ftype == TType.LIST:
9614
        if ftype == TType.LIST:
9665
          self.success = []
9615
          self.success = []
9666
          (_etype101, _size98) = iprot.readListBegin()
9616
          (_etype94, _size91) = iprot.readListBegin()
9667
          for _i102 in xrange(_size98):
9617
          for _i95 in xrange(_size91):
9668
            _elem103 = Cart()
9618
            _elem96 = Cart()
9669
            _elem103.read(iprot)
9619
            _elem96.read(iprot)
9670
            self.success.append(_elem103)
9620
            self.success.append(_elem96)
9671
          iprot.readListEnd()
9621
          iprot.readListEnd()
9672
        else:
9622
        else:
9673
          iprot.skip(ftype)
9623
          iprot.skip(ftype)
9674
      elif fid == 1:
9624
      elif fid == 1:
9675
        if ftype == TType.STRUCT:
9625
        if ftype == TType.STRUCT:
Line 9688... Line 9638...
9688
      return
9638
      return
9689
    oprot.writeStructBegin('getCartsByStatus_result')
9639
    oprot.writeStructBegin('getCartsByStatus_result')
9690
    if self.success != None:
9640
    if self.success != None:
9691
      oprot.writeFieldBegin('success', TType.LIST, 0)
9641
      oprot.writeFieldBegin('success', TType.LIST, 0)
9692
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9642
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9693
      for iter104 in self.success:
9643
      for iter97 in self.success:
9694
        iter104.write(oprot)
9644
        iter97.write(oprot)
9695
      oprot.writeListEnd()
9645
      oprot.writeListEnd()
9696
      oprot.writeFieldEnd()
9646
      oprot.writeFieldEnd()
9697
    if self.scx != None:
9647
    if self.scx != None:
9698
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9648
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9699
      self.scx.write(oprot)
9649
      self.scx.write(oprot)
Line 9818... Line 9768...
9818
      if ftype == TType.STOP:
9768
      if ftype == TType.STOP:
9819
        break
9769
        break
9820
      if fid == 0:
9770
      if fid == 0:
9821
        if ftype == TType.LIST:
9771
        if ftype == TType.LIST:
9822
          self.success = []
9772
          self.success = []
9823
          (_etype108, _size105) = iprot.readListBegin()
9773
          (_etype101, _size98) = iprot.readListBegin()
9824
          for _i109 in xrange(_size105):
9774
          for _i102 in xrange(_size98):
9825
            _elem110 = Cart()
9775
            _elem103 = Cart()
9826
            _elem110.read(iprot)
9776
            _elem103.read(iprot)
9827
            self.success.append(_elem110)
9777
            self.success.append(_elem103)
9828
          iprot.readListEnd()
9778
          iprot.readListEnd()
9829
        else:
9779
        else:
9830
          iprot.skip(ftype)
9780
          iprot.skip(ftype)
9831
      elif fid == 1:
9781
      elif fid == 1:
9832
        if ftype == TType.STRUCT:
9782
        if ftype == TType.STRUCT:
Line 9845... Line 9795...
9845
      return
9795
      return
9846
    oprot.writeStructBegin('getCartsByTime_result')
9796
    oprot.writeStructBegin('getCartsByTime_result')
9847
    if self.success != None:
9797
    if self.success != None:
9848
      oprot.writeFieldBegin('success', TType.LIST, 0)
9798
      oprot.writeFieldBegin('success', TType.LIST, 0)
9849
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9799
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9850
      for iter111 in self.success:
9800
      for iter104 in self.success:
9851
        iter111.write(oprot)
9801
        iter104.write(oprot)
9852
      oprot.writeListEnd()
9802
      oprot.writeListEnd()
9853
      oprot.writeFieldEnd()
9803
      oprot.writeFieldEnd()
9854
    if self.scx != None:
9804
    if self.scx != None:
9855
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9805
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9856
      self.scx.write(oprot)
9806
      self.scx.write(oprot)
Line 11462... Line 11412...
11462
        else:
11412
        else:
11463
          iprot.skip(ftype)
11413
          iprot.skip(ftype)
11464
      elif fid == 2:
11414
      elif fid == 2:
11465
        if ftype == TType.MAP:
11415
        if ftype == TType.MAP:
11466
          self.items = {}
11416
          self.items = {}
11467
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
11417
          (_ktype106, _vtype107, _size105 ) = iprot.readMapBegin() 
11468
          for _i116 in xrange(_size112):
11418
          for _i109 in xrange(_size105):
11469
            _key117 = iprot.readI64();
11419
            _key110 = iprot.readI64();
11470
            _val118 = iprot.readDouble();
11420
            _val111 = iprot.readDouble();
11471
            self.items[_key117] = _val118
11421
            self.items[_key110] = _val111
11472
          iprot.readMapEnd()
11422
          iprot.readMapEnd()
11473
        else:
11423
        else:
11474
          iprot.skip(ftype)
11424
          iprot.skip(ftype)
11475
      else:
11425
      else:
11476
        iprot.skip(ftype)
11426
        iprot.skip(ftype)
Line 11487... Line 11437...
11487
      oprot.writeI64(self.cartId)
11437
      oprot.writeI64(self.cartId)
11488
      oprot.writeFieldEnd()
11438
      oprot.writeFieldEnd()
11489
    if self.items != None:
11439
    if self.items != None:
11490
      oprot.writeFieldBegin('items', TType.MAP, 2)
11440
      oprot.writeFieldBegin('items', TType.MAP, 2)
11491
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11441
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11492
      for kiter119,viter120 in self.items.items():
11442
      for kiter112,viter113 in self.items.items():
11493
        oprot.writeI64(kiter119)
11443
        oprot.writeI64(kiter112)
11494
        oprot.writeDouble(viter120)
11444
        oprot.writeDouble(viter113)
11495
      oprot.writeMapEnd()
11445
      oprot.writeMapEnd()
11496
      oprot.writeFieldEnd()
11446
      oprot.writeFieldEnd()
11497
    oprot.writeFieldStop()
11447
    oprot.writeFieldStop()
11498
    oprot.writeStructEnd()
11448
    oprot.writeStructEnd()
11499
 
11449
 
Line 11574... Line 11524...
11574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11575
 
11525
 
11576
  def __ne__(self, other):
11526
  def __ne__(self, other):
11577
    return not (self == other)
11527
    return not (self == other)
11578
 
11528
 
11579
class getMyResearch_args:
11529
class getUserCount_args:
11580
  """
11530
  """
11581
  Attributes:
11531
  Attributes:
11582
   - userId
11532
   - userType
11583
  """
11533
  """
11584
 
11534
 
11585
  thrift_spec = (
11535
  thrift_spec = (
11586
    None, # 0
11536
    None, # 0
11587
    (1, TType.I64, 'userId', None, None, ), # 1
11537
    (1, TType.I32, 'userType', None, None, ), # 1
11588
  )
11538
  )
11589
 
11539
 
11590
  def __init__(self, userId=None,):
11540
  def __init__(self, userType=None,):
11591
    self.userId = userId
11541
    self.userType = userType
11592
 
11542
 
11593
  def read(self, iprot):
11543
  def read(self, iprot):
11594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11596
      return
11546
      return
Line 11598... Line 11548...
11598
    while True:
11548
    while True:
11599
      (fname, ftype, fid) = iprot.readFieldBegin()
11549
      (fname, ftype, fid) = iprot.readFieldBegin()
11600
      if ftype == TType.STOP:
11550
      if ftype == TType.STOP:
11601
        break
11551
        break
11602
      if fid == 1:
11552
      if fid == 1:
11603
        if ftype == TType.I64:
11553
        if ftype == TType.I32:
11604
          self.userId = iprot.readI64();
11554
          self.userType = iprot.readI32();
11605
        else:
11555
        else:
11606
          iprot.skip(ftype)
11556
          iprot.skip(ftype)
11607
      else:
11557
      else:
11608
        iprot.skip(ftype)
11558
        iprot.skip(ftype)
11609
      iprot.readFieldEnd()
11559
      iprot.readFieldEnd()
Line 11611... Line 11561...
11611
 
11561
 
11612
  def write(self, oprot):
11562
  def write(self, oprot):
11613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11615
      return
11565
      return
11616
    oprot.writeStructBegin('getMyResearch_args')
11566
    oprot.writeStructBegin('getUserCount_args')
11617
    if self.userId != None:
11567
    if self.userType != None:
11618
      oprot.writeFieldBegin('userId', TType.I64, 1)
11568
      oprot.writeFieldBegin('userType', TType.I32, 1)
11619
      oprot.writeI64(self.userId)
11569
      oprot.writeI32(self.userType)
11620
      oprot.writeFieldEnd()
11570
      oprot.writeFieldEnd()
11621
    oprot.writeFieldStop()
11571
    oprot.writeFieldStop()
11622
    oprot.writeStructEnd()
11572
    oprot.writeStructEnd()
11623
 
11573
 
11624
  def __repr__(self):
11574
  def __repr__(self):
Line 11630... Line 11580...
11630
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11631
 
11581
 
11632
  def __ne__(self, other):
11582
  def __ne__(self, other):
11633
    return not (self == other)
11583
    return not (self == other)
11634
 
11584
 
11635
class getMyResearch_result:
11585
class getUserCount_result:
11636
  """
11586
  """
11637
  Attributes:
11587
  Attributes:
11638
   - success
11588
   - success
11639
   - scx
-
 
11640
  """
11589
  """
11641
 
11590
 
11642
  thrift_spec = (
11591
  thrift_spec = (
11643
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
11592
    (0, TType.I64, 'success', None, None, ), # 0
11644
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
11645
  )
11593
  )
11646
 
11594
 
11647
  def __init__(self, success=None, scx=None,):
11595
  def __init__(self, success=None,):
11648
    self.success = success
11596
    self.success = success
11649
    self.scx = scx
-
 
11650
 
11597
 
11651
  def read(self, iprot):
11598
  def read(self, iprot):
11652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11654
      return
11601
      return
Line 11656... Line 11603...
11656
    while True:
11603
    while True:
11657
      (fname, ftype, fid) = iprot.readFieldBegin()
11604
      (fname, ftype, fid) = iprot.readFieldBegin()
11658
      if ftype == TType.STOP:
11605
      if ftype == TType.STOP:
11659
        break
11606
        break
11660
      if fid == 0:
11607
      if fid == 0:
11661
        if ftype == TType.STRUCT:
11608
        if ftype == TType.I64:
11662
          self.success = Widget()
11609
          self.success = iprot.readI64();
11663
          self.success.read(iprot)
-
 
11664
        else:
-
 
11665
          iprot.skip(ftype)
-
 
11666
      elif fid == 1:
-
 
11667
        if ftype == TType.STRUCT:
-
 
11668
          self.scx = WidgetException()
-
 
11669
          self.scx.read(iprot)
-
 
11670
        else:
11610
        else:
11671
          iprot.skip(ftype)
11611
          iprot.skip(ftype)
11672
      else:
11612
      else:
11673
        iprot.skip(ftype)
11613
        iprot.skip(ftype)
11674
      iprot.readFieldEnd()
11614
      iprot.readFieldEnd()
Line 11676... Line 11616...
11676
 
11616
 
11677
  def write(self, oprot):
11617
  def write(self, oprot):
11678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11680
      return
11620
      return
11681
    oprot.writeStructBegin('getMyResearch_result')
11621
    oprot.writeStructBegin('getUserCount_result')
11682
    if self.success != None:
11622
    if self.success != None:
11683
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
11623
      oprot.writeFieldBegin('success', TType.I64, 0)
11684
      self.success.write(oprot)
-
 
11685
      oprot.writeFieldEnd()
11624
      oprot.writeI64(self.success)
11686
    if self.scx != None:
-
 
11687
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11688
      self.scx.write(oprot)
-
 
11689
      oprot.writeFieldEnd()
11625
      oprot.writeFieldEnd()
11690
    oprot.writeFieldStop()
11626
    oprot.writeFieldStop()
11691
    oprot.writeStructEnd()
11627
    oprot.writeStructEnd()
11692
 
11628
 
11693
  def __repr__(self):
11629
  def __repr__(self):
Line 11699... Line 11635...
11699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11700
 
11636
 
11701
  def __ne__(self, other):
11637
  def __ne__(self, other):
11702
    return not (self == other)
11638
    return not (self == other)
11703
 
11639
 
11704
class updateMyResearch_args:
11640
class getAllUsers_args:
11705
  """
11641
  """
11706
  Attributes:
11642
  Attributes:
11707
   - userId
11643
   - userType
-
 
11644
   - startDate
11708
   - itemId
11645
   - endDate
11709
  """
11646
  """
11710
 
11647
 
11711
  thrift_spec = (
11648
  thrift_spec = (
11712
    None, # 0
11649
    None, # 0
11713
    (1, TType.I64, 'userId', None, None, ), # 1
11650
    (1, TType.I32, 'userType', None, None, ), # 1
11714
    (2, TType.I64, 'itemId', None, None, ), # 2
11651
    (2, TType.I64, 'startDate', None, None, ), # 2
-
 
11652
    (3, TType.I64, 'endDate', None, None, ), # 3
11715
  )
11653
  )
11716
 
11654
 
11717
  def __init__(self, userId=None, itemId=None,):
11655
  def __init__(self, userType=None, startDate=None, endDate=None,):
11718
    self.userId = userId
11656
    self.userType = userType
-
 
11657
    self.startDate = startDate
11719
    self.itemId = itemId
11658
    self.endDate = endDate
11720
 
11659
 
11721
  def read(self, iprot):
11660
  def read(self, iprot):
11722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11724
      return
11663
      return
Line 11726... Line 11665...
11726
    while True:
11665
    while True:
11727
      (fname, ftype, fid) = iprot.readFieldBegin()
11666
      (fname, ftype, fid) = iprot.readFieldBegin()
11728
      if ftype == TType.STOP:
11667
      if ftype == TType.STOP:
11729
        break
11668
        break
11730
      if fid == 1:
11669
      if fid == 1:
11731
        if ftype == TType.I64:
11670
        if ftype == TType.I32:
11732
          self.userId = iprot.readI64();
11671
          self.userType = iprot.readI32();
11733
        else:
11672
        else:
11734
          iprot.skip(ftype)
11673
          iprot.skip(ftype)
11735
      elif fid == 2:
11674
      elif fid == 2:
11736
        if ftype == TType.I64:
11675
        if ftype == TType.I64:
-
 
11676
          self.startDate = iprot.readI64();
-
 
11677
        else:
-
 
11678
          iprot.skip(ftype)
-
 
11679
      elif fid == 3:
-
 
11680
        if ftype == TType.I64:
11737
          self.itemId = iprot.readI64();
11681
          self.endDate = iprot.readI64();
11738
        else:
11682
        else:
11739
          iprot.skip(ftype)
11683
          iprot.skip(ftype)
11740
      else:
11684
      else:
11741
        iprot.skip(ftype)
11685
        iprot.skip(ftype)
11742
      iprot.readFieldEnd()
11686
      iprot.readFieldEnd()
Line 11744... Line 11688...
11744
 
11688
 
11745
  def write(self, oprot):
11689
  def write(self, oprot):
11746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11748
      return
11692
      return
11749
    oprot.writeStructBegin('updateMyResearch_args')
11693
    oprot.writeStructBegin('getAllUsers_args')
11750
    if self.userId != None:
11694
    if self.userType != None:
11751
      oprot.writeFieldBegin('userId', TType.I64, 1)
11695
      oprot.writeFieldBegin('userType', TType.I32, 1)
11752
      oprot.writeI64(self.userId)
11696
      oprot.writeI32(self.userType)
11753
      oprot.writeFieldEnd()
11697
      oprot.writeFieldEnd()
-
 
11698
    if self.startDate != None:
-
 
11699
      oprot.writeFieldBegin('startDate', TType.I64, 2)
-
 
11700
      oprot.writeI64(self.startDate)
-
 
11701
      oprot.writeFieldEnd()
11754
    if self.itemId != None:
11702
    if self.endDate != None:
11755
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11703
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11756
      oprot.writeI64(self.itemId)
11704
      oprot.writeI64(self.endDate)
11757
      oprot.writeFieldEnd()
11705
      oprot.writeFieldEnd()
11758
    oprot.writeFieldStop()
11706
    oprot.writeFieldStop()
11759
    oprot.writeStructEnd()
11707
    oprot.writeStructEnd()
11760
 
11708
 
11761
  def __repr__(self):
11709
  def __repr__(self):
Line 11767... Line 11715...
11767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11768
 
11716
 
11769
  def __ne__(self, other):
11717
  def __ne__(self, other):
11770
    return not (self == other)
11718
    return not (self == other)
11771
 
11719
 
11772
class updateMyResearch_result:
11720
class getAllUsers_result:
11773
  """
11721
  """
11774
  Attributes:
11722
  Attributes:
11775
   - success
11723
   - success
11776
   - scx
-
 
11777
  """
11724
  """
11778
 
11725
 
11779
  thrift_spec = (
11726
  thrift_spec = (
11780
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
11781
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
11727
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
11782
  )
11728
  )
11783
 
11729
 
11784
  def __init__(self, success=None, scx=None,):
11730
  def __init__(self, success=None,):
11785
    self.success = success
11731
    self.success = success
11786
    self.scx = scx
-
 
11787
 
11732
 
11788
  def read(self, iprot):
11733
  def read(self, iprot):
11789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11791
      return
11736
      return
Line 11793... Line 11738...
11793
    while True:
11738
    while True:
11794
      (fname, ftype, fid) = iprot.readFieldBegin()
11739
      (fname, ftype, fid) = iprot.readFieldBegin()
11795
      if ftype == TType.STOP:
11740
      if ftype == TType.STOP:
11796
        break
11741
        break
11797
      if fid == 0:
11742
      if fid == 0:
11798
        if ftype == TType.BOOL:
11743
        if ftype == TType.LIST:
11799
          self.success = iprot.readBool();
11744
          self.success = []
11800
        else:
11745
          (_etype117, _size114) = iprot.readListBegin()
11801
          iprot.skip(ftype)
11746
          for _i118 in xrange(_size114):
11802
      elif fid == 1:
11747
            _elem119 = User()
11803
        if ftype == TType.STRUCT:
11748
            _elem119.read(iprot)
11804
          self.scx = WidgetException()
11749
            self.success.append(_elem119)
11805
          self.scx.read(iprot)
11750
          iprot.readListEnd()
11806
        else:
11751
        else:
11807
          iprot.skip(ftype)
11752
          iprot.skip(ftype)
11808
      else:
11753
      else:
11809
        iprot.skip(ftype)
11754
        iprot.skip(ftype)
11810
      iprot.readFieldEnd()
11755
      iprot.readFieldEnd()
Line 11812... Line 11757...
11812
 
11757
 
11813
  def write(self, oprot):
11758
  def write(self, oprot):
11814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11816
      return
11761
      return
11817
    oprot.writeStructBegin('updateMyResearch_result')
11762
    oprot.writeStructBegin('getAllUsers_result')
11818
    if self.success != None:
11763
    if self.success != None:
11819
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11764
      oprot.writeFieldBegin('success', TType.LIST, 0)
11820
      oprot.writeBool(self.success)
11765
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11821
      oprot.writeFieldEnd()
11766
      for iter120 in self.success:
11822
    if self.scx != None:
11767
        iter120.write(oprot)
11823
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11824
      self.scx.write(oprot)
11768
      oprot.writeListEnd()
11825
      oprot.writeFieldEnd()
11769
      oprot.writeFieldEnd()
11826
    oprot.writeFieldStop()
11770
    oprot.writeFieldStop()
11827
    oprot.writeStructEnd()
11771
    oprot.writeStructEnd()
11828
 
11772
 
11829
  def __repr__(self):
11773
  def __repr__(self):
Line 11835... Line 11779...
11835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11836
 
11780
 
11837
  def __ne__(self, other):
11781
  def __ne__(self, other):
11838
    return not (self == other)
11782
    return not (self == other)
11839
 
11783
 
11840
class deleteItemFromMyResearch_args:
11784
class putUserNote_args:
11841
  """
11785
  """
11842
  Attributes:
11786
  Attributes:
11843
   - userId
11787
   - user_id
11844
   - itemId
11788
   - entity_id
-
 
11789
   - slide
-
 
11790
   - note
11845
  """
11791
  """
11846
 
11792
 
11847
  thrift_spec = (
11793
  thrift_spec = (
11848
    None, # 0
11794
    None, # 0
11849
    (1, TType.I64, 'userId', None, None, ), # 1
11795
    (1, TType.I64, 'user_id', None, None, ), # 1
11850
    (2, TType.I64, 'itemId', None, None, ), # 2
11796
    (2, TType.I64, 'entity_id', None, None, ), # 2
-
 
11797
    (3, TType.STRING, 'slide', None, None, ), # 3
-
 
11798
    (4, TType.STRING, 'note', None, None, ), # 4
11851
  )
11799
  )
11852
 
11800
 
11853
  def __init__(self, userId=None, itemId=None,):
11801
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
11854
    self.userId = userId
11802
    self.user_id = user_id
11855
    self.itemId = itemId
11803
    self.entity_id = entity_id
-
 
11804
    self.slide = slide
-
 
11805
    self.note = note
11856
 
11806
 
11857
  def read(self, iprot):
11807
  def read(self, iprot):
11858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11860
      return
11810
      return
Line 11863... Line 11813...
11863
      (fname, ftype, fid) = iprot.readFieldBegin()
11813
      (fname, ftype, fid) = iprot.readFieldBegin()
11864
      if ftype == TType.STOP:
11814
      if ftype == TType.STOP:
11865
        break
11815
        break
11866
      if fid == 1:
11816
      if fid == 1:
11867
        if ftype == TType.I64:
11817
        if ftype == TType.I64:
11868
          self.userId = iprot.readI64();
11818
          self.user_id = iprot.readI64();
11869
        else:
11819
        else:
11870
          iprot.skip(ftype)
11820
          iprot.skip(ftype)
11871
      elif fid == 2:
11821
      elif fid == 2:
11872
        if ftype == TType.I64:
11822
        if ftype == TType.I64:
11873
          self.itemId = iprot.readI64();
11823
          self.entity_id = iprot.readI64();
-
 
11824
        else:
-
 
11825
          iprot.skip(ftype)
-
 
11826
      elif fid == 3:
-
 
11827
        if ftype == TType.STRING:
-
 
11828
          self.slide = iprot.readString();
-
 
11829
        else:
-
 
11830
          iprot.skip(ftype)
-
 
11831
      elif fid == 4:
-
 
11832
        if ftype == TType.STRING:
-
 
11833
          self.note = iprot.readString();
11874
        else:
11834
        else:
11875
          iprot.skip(ftype)
11835
          iprot.skip(ftype)
11876
      else:
11836
      else:
11877
        iprot.skip(ftype)
11837
        iprot.skip(ftype)
11878
      iprot.readFieldEnd()
11838
      iprot.readFieldEnd()
Line 11880... Line 11840...
11880
 
11840
 
11881
  def write(self, oprot):
11841
  def write(self, oprot):
11882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11884
      return
11844
      return
11885
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
11845
    oprot.writeStructBegin('putUserNote_args')
11886
    if self.userId != None:
11846
    if self.user_id != None:
11887
      oprot.writeFieldBegin('userId', TType.I64, 1)
11847
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11888
      oprot.writeI64(self.userId)
11848
      oprot.writeI64(self.user_id)
11889
      oprot.writeFieldEnd()
11849
      oprot.writeFieldEnd()
11890
    if self.itemId != None:
11850
    if self.entity_id != None:
11891
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11851
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11892
      oprot.writeI64(self.itemId)
11852
      oprot.writeI64(self.entity_id)
-
 
11853
      oprot.writeFieldEnd()
-
 
11854
    if self.slide != None:
-
 
11855
      oprot.writeFieldBegin('slide', TType.STRING, 3)
-
 
11856
      oprot.writeString(self.slide)
-
 
11857
      oprot.writeFieldEnd()
-
 
11858
    if self.note != None:
-
 
11859
      oprot.writeFieldBegin('note', TType.STRING, 4)
-
 
11860
      oprot.writeString(self.note)
11893
      oprot.writeFieldEnd()
11861
      oprot.writeFieldEnd()
11894
    oprot.writeFieldStop()
11862
    oprot.writeFieldStop()
11895
    oprot.writeStructEnd()
11863
    oprot.writeStructEnd()
11896
 
11864
 
11897
  def __repr__(self):
11865
  def __repr__(self):
Line 11903... Line 11871...
11903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11904
 
11872
 
11905
  def __ne__(self, other):
11873
  def __ne__(self, other):
11906
    return not (self == other)
11874
    return not (self == other)
11907
 
11875
 
11908
class deleteItemFromMyResearch_result:
11876
class putUserNote_result:
11909
  """
-
 
11910
  Attributes:
-
 
11911
   - scx
-
 
11912
  """
-
 
11913
 
11877
 
11914
  thrift_spec = (
11878
  thrift_spec = (
11915
    None, # 0
-
 
11916
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
11917
  )
11879
  )
11918
 
11880
 
11919
  def __init__(self, scx=None,):
-
 
11920
    self.scx = scx
-
 
11921
 
-
 
11922
  def read(self, iprot):
11881
  def read(self, iprot):
11923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11925
      return
11884
      return
11926
    iprot.readStructBegin()
11885
    iprot.readStructBegin()
11927
    while True:
11886
    while True:
11928
      (fname, ftype, fid) = iprot.readFieldBegin()
11887
      (fname, ftype, fid) = iprot.readFieldBegin()
11929
      if ftype == TType.STOP:
11888
      if ftype == TType.STOP:
11930
        break
11889
        break
11931
      if fid == 1:
-
 
11932
        if ftype == TType.STRUCT:
-
 
11933
          self.scx = WidgetException()
-
 
11934
          self.scx.read(iprot)
-
 
11935
        else:
-
 
11936
          iprot.skip(ftype)
-
 
11937
      else:
11890
      else:
11938
        iprot.skip(ftype)
11891
        iprot.skip(ftype)
11939
      iprot.readFieldEnd()
11892
      iprot.readFieldEnd()
11940
    iprot.readStructEnd()
11893
    iprot.readStructEnd()
11941
 
11894
 
11942
  def write(self, oprot):
11895
  def write(self, oprot):
11943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11945
      return
11898
      return
11946
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
11899
    oprot.writeStructBegin('putUserNote_result')
11947
    if self.scx != None:
-
 
11948
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
11949
      self.scx.write(oprot)
-
 
11950
      oprot.writeFieldEnd()
-
 
11951
    oprot.writeFieldStop()
11900
    oprot.writeFieldStop()
11952
    oprot.writeStructEnd()
11901
    oprot.writeStructEnd()
11953
 
11902
 
11954
  def __repr__(self):
11903
  def __repr__(self):
11955
    L = ['%s=%r' % (key, value)
11904
    L = ['%s=%r' % (key, value)
Line 11960... Line 11909...
11960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11961
 
11910
 
11962
  def __ne__(self, other):
11911
  def __ne__(self, other):
11963
    return not (self == other)
11912
    return not (self == other)
11964
 
11913
 
11965
class updateBrowseHistory_args:
11914
class getUserNotes_args:
11966
  """
11915
  """
11967
  Attributes:
11916
  Attributes:
11968
   - userId
11917
   - user_id
11969
   - itemId
11918
   - entity_id
11970
  """
11919
  """
11971
 
11920
 
11972
  thrift_spec = (
11921
  thrift_spec = (
11973
    None, # 0
11922
    None, # 0
11974
    (1, TType.I64, 'userId', None, None, ), # 1
11923
    (1, TType.I64, 'user_id', None, None, ), # 1
11975
    (2, TType.I64, 'itemId', None, None, ), # 2
11924
    (2, TType.I64, 'entity_id', None, None, ), # 2
11976
  )
11925
  )
11977
 
11926
 
11978
  def __init__(self, userId=None, itemId=None,):
11927
  def __init__(self, user_id=None, entity_id=None,):
11979
    self.userId = userId
11928
    self.user_id = user_id
11980
    self.itemId = itemId
11929
    self.entity_id = entity_id
11981
 
11930
 
11982
  def read(self, iprot):
11931
  def read(self, iprot):
11983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11985
      return
11934
      return
Line 11988... Line 11937...
11988
      (fname, ftype, fid) = iprot.readFieldBegin()
11937
      (fname, ftype, fid) = iprot.readFieldBegin()
11989
      if ftype == TType.STOP:
11938
      if ftype == TType.STOP:
11990
        break
11939
        break
11991
      if fid == 1:
11940
      if fid == 1:
11992
        if ftype == TType.I64:
11941
        if ftype == TType.I64:
11993
          self.userId = iprot.readI64();
11942
          self.user_id = iprot.readI64();
11994
        else:
11943
        else:
11995
          iprot.skip(ftype)
11944
          iprot.skip(ftype)
11996
      elif fid == 2:
11945
      elif fid == 2:
11997
        if ftype == TType.I64:
11946
        if ftype == TType.I64:
11998
          self.itemId = iprot.readI64();
11947
          self.entity_id = iprot.readI64();
11999
        else:
11948
        else:
12000
          iprot.skip(ftype)
11949
          iprot.skip(ftype)
12001
      else:
11950
      else:
12002
        iprot.skip(ftype)
11951
        iprot.skip(ftype)
12003
      iprot.readFieldEnd()
11952
      iprot.readFieldEnd()
Line 12005... Line 11954...
12005
 
11954
 
12006
  def write(self, oprot):
11955
  def write(self, oprot):
12007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12009
      return
11958
      return
12010
    oprot.writeStructBegin('updateBrowseHistory_args')
11959
    oprot.writeStructBegin('getUserNotes_args')
12011
    if self.userId != None:
11960
    if self.user_id != None:
12012
      oprot.writeFieldBegin('userId', TType.I64, 1)
11961
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12013
      oprot.writeI64(self.userId)
11962
      oprot.writeI64(self.user_id)
12014
      oprot.writeFieldEnd()
11963
      oprot.writeFieldEnd()
12015
    if self.itemId != None:
11964
    if self.entity_id != None:
12016
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11965
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12017
      oprot.writeI64(self.itemId)
11966
      oprot.writeI64(self.entity_id)
12018
      oprot.writeFieldEnd()
11967
      oprot.writeFieldEnd()
12019
    oprot.writeFieldStop()
11968
    oprot.writeFieldStop()
12020
    oprot.writeStructEnd()
11969
    oprot.writeStructEnd()
12021
 
11970
 
12022
  def __repr__(self):
11971
  def __repr__(self):
Line 12028... Line 11977...
12028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12029
 
11978
 
12030
  def __ne__(self, other):
11979
  def __ne__(self, other):
12031
    return not (self == other)
11980
    return not (self == other)
12032
 
11981
 
12033
class updateBrowseHistory_result:
11982
class getUserNotes_result:
-
 
11983
  """
-
 
11984
  Attributes:
-
 
11985
   - success
-
 
11986
  """
12034
 
11987
 
12035
  thrift_spec = (
11988
  thrift_spec = (
-
 
11989
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
12036
  )
11990
  )
12037
 
11991
 
-
 
11992
  def __init__(self, success=None,):
-
 
11993
    self.success = success
-
 
11994
 
12038
  def read(self, iprot):
11995
  def read(self, iprot):
12039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12041
      return
11998
      return
12042
    iprot.readStructBegin()
11999
    iprot.readStructBegin()
12043
    while True:
12000
    while True:
12044
      (fname, ftype, fid) = iprot.readFieldBegin()
12001
      (fname, ftype, fid) = iprot.readFieldBegin()
12045
      if ftype == TType.STOP:
12002
      if ftype == TType.STOP:
12046
        break
12003
        break
-
 
12004
      if fid == 0:
-
 
12005
        if ftype == TType.LIST:
-
 
12006
          self.success = []
-
 
12007
          (_etype124, _size121) = iprot.readListBegin()
-
 
12008
          for _i125 in xrange(_size121):
-
 
12009
            _elem126 = UserNote()
-
 
12010
            _elem126.read(iprot)
-
 
12011
            self.success.append(_elem126)
-
 
12012
          iprot.readListEnd()
-
 
12013
        else:
-
 
12014
          iprot.skip(ftype)
12047
      else:
12015
      else:
12048
        iprot.skip(ftype)
12016
        iprot.skip(ftype)
12049
      iprot.readFieldEnd()
12017
      iprot.readFieldEnd()
12050
    iprot.readStructEnd()
12018
    iprot.readStructEnd()
12051
 
12019
 
12052
  def write(self, oprot):
12020
  def write(self, oprot):
12053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12055
      return
12023
      return
12056
    oprot.writeStructBegin('updateBrowseHistory_result')
12024
    oprot.writeStructBegin('getUserNotes_result')
-
 
12025
    if self.success != None:
-
 
12026
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
12027
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
12028
      for iter127 in self.success:
-
 
12029
        iter127.write(oprot)
-
 
12030
      oprot.writeListEnd()
-
 
12031
      oprot.writeFieldEnd()
12057
    oprot.writeFieldStop()
12032
    oprot.writeFieldStop()
12058
    oprot.writeStructEnd()
12033
    oprot.writeStructEnd()
12059
 
12034
 
12060
  def __repr__(self):
12035
  def __repr__(self):
12061
    L = ['%s=%r' % (key, value)
12036
    L = ['%s=%r' % (key, value)
Line 12066... Line 12041...
12066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12067
 
12042
 
12068
  def __ne__(self, other):
12043
  def __ne__(self, other):
12069
    return not (self == other)
12044
    return not (self == other)
12070
 
12045
 
12071
class getBrowseHistory_args:
12046
class getMyResearchItems_args:
12072
  """
12047
  """
12073
  Attributes:
12048
  Attributes:
12074
   - userId
12049
   - userId
12075
  """
12050
  """
12076
 
12051
 
Line 12103... Line 12078...
12103
 
12078
 
12104
  def write(self, oprot):
12079
  def write(self, oprot):
12105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12107
      return
12082
      return
12108
    oprot.writeStructBegin('getBrowseHistory_args')
12083
    oprot.writeStructBegin('getMyResearchItems_args')
12109
    if self.userId != None:
12084
    if self.userId != None:
12110
      oprot.writeFieldBegin('userId', TType.I64, 1)
12085
      oprot.writeFieldBegin('userId', TType.I64, 1)
12111
      oprot.writeI64(self.userId)
12086
      oprot.writeI64(self.userId)
12112
      oprot.writeFieldEnd()
12087
      oprot.writeFieldEnd()
12113
    oprot.writeFieldStop()
12088
    oprot.writeFieldStop()
Line 12122... Line 12097...
12122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12123
 
12098
 
12124
  def __ne__(self, other):
12099
  def __ne__(self, other):
12125
    return not (self == other)
12100
    return not (self == other)
12126
 
12101
 
12127
class getBrowseHistory_result:
12102
class getMyResearchItems_result:
12128
  """
12103
  """
12129
  Attributes:
12104
  Attributes:
12130
   - success
12105
   - success
12131
   - scx
12106
   - scx
12132
  """
12107
  """
12133
 
12108
 
12134
  thrift_spec = (
12109
  thrift_spec = (
12135
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
12110
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12136
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
12111
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
12137
  )
12112
  )
12138
 
12113
 
12139
  def __init__(self, success=None, scx=None,):
12114
  def __init__(self, success=None, scx=None,):
12140
    self.success = success
12115
    self.success = success
Line 12148... Line 12123...
12148
    while True:
12123
    while True:
12149
      (fname, ftype, fid) = iprot.readFieldBegin()
12124
      (fname, ftype, fid) = iprot.readFieldBegin()
12150
      if ftype == TType.STOP:
12125
      if ftype == TType.STOP:
12151
        break
12126
        break
12152
      if fid == 0:
12127
      if fid == 0:
12153
        if ftype == TType.STRUCT:
12128
        if ftype == TType.LIST:
12154
          self.success = Widget()
12129
          self.success = []
-
 
12130
          (_etype131, _size128) = iprot.readListBegin()
-
 
12131
          for _i132 in xrange(_size128):
-
 
12132
            _elem133 = iprot.readI64();
12155
          self.success.read(iprot)
12133
            self.success.append(_elem133)
-
 
12134
          iprot.readListEnd()
12156
        else:
12135
        else:
12157
          iprot.skip(ftype)
12136
          iprot.skip(ftype)
12158
      elif fid == 1:
12137
      elif fid == 1:
12159
        if ftype == TType.STRUCT:
12138
        if ftype == TType.STRUCT:
12160
          self.scx = WidgetException()
12139
          self.scx = WidgetException()
Line 12168... Line 12147...
12168
 
12147
 
12169
  def write(self, oprot):
12148
  def write(self, oprot):
12170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12172
      return
12151
      return
12173
    oprot.writeStructBegin('getBrowseHistory_result')
12152
    oprot.writeStructBegin('getMyResearchItems_result')
12174
    if self.success != None:
12153
    if self.success != None:
12175
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12154
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
12155
      oprot.writeListBegin(TType.I64, len(self.success))
-
 
12156
      for iter134 in self.success:
12176
      self.success.write(oprot)
12157
        oprot.writeI64(iter134)
-
 
12158
      oprot.writeListEnd()
12177
      oprot.writeFieldEnd()
12159
      oprot.writeFieldEnd()
12178
    if self.scx != None:
12160
    if self.scx != None:
12179
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12161
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12180
      self.scx.write(oprot)
12162
      self.scx.write(oprot)
12181
      oprot.writeFieldEnd()
12163
      oprot.writeFieldEnd()
Line 12191... Line 12173...
12191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12192
 
12174
 
12193
  def __ne__(self, other):
12175
  def __ne__(self, other):
12194
    return not (self == other)
12176
    return not (self == other)
12195
 
12177
 
12196
class mergeBrowseHistory_args:
12178
class updateMyResearch_args:
12197
  """
12179
  """
12198
  Attributes:
12180
  Attributes:
12199
   - fromUserId
12181
   - userId
12200
   - toUserId
12182
   - itemId
12201
  """
12183
  """
12202
 
12184
 
12203
  thrift_spec = (
12185
  thrift_spec = (
12204
    None, # 0
12186
    None, # 0
12205
    (1, TType.I64, 'fromUserId', None, None, ), # 1
12187
    (1, TType.I64, 'userId', None, None, ), # 1
12206
    (2, TType.I64, 'toUserId', None, None, ), # 2
12188
    (2, TType.I64, 'itemId', None, None, ), # 2
12207
  )
12189
  )
12208
 
12190
 
12209
  def __init__(self, fromUserId=None, toUserId=None,):
12191
  def __init__(self, userId=None, itemId=None,):
12210
    self.fromUserId = fromUserId
12192
    self.userId = userId
12211
    self.toUserId = toUserId
12193
    self.itemId = itemId
12212
 
12194
 
12213
  def read(self, iprot):
12195
  def read(self, iprot):
12214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12216
      return
12198
      return
Line 12219... Line 12201...
12219
      (fname, ftype, fid) = iprot.readFieldBegin()
12201
      (fname, ftype, fid) = iprot.readFieldBegin()
12220
      if ftype == TType.STOP:
12202
      if ftype == TType.STOP:
12221
        break
12203
        break
12222
      if fid == 1:
12204
      if fid == 1:
12223
        if ftype == TType.I64:
12205
        if ftype == TType.I64:
12224
          self.fromUserId = iprot.readI64();
12206
          self.userId = iprot.readI64();
12225
        else:
12207
        else:
12226
          iprot.skip(ftype)
12208
          iprot.skip(ftype)
12227
      elif fid == 2:
12209
      elif fid == 2:
12228
        if ftype == TType.I64:
12210
        if ftype == TType.I64:
12229
          self.toUserId = iprot.readI64();
12211
          self.itemId = iprot.readI64();
12230
        else:
12212
        else:
12231
          iprot.skip(ftype)
12213
          iprot.skip(ftype)
12232
      else:
12214
      else:
12233
        iprot.skip(ftype)
12215
        iprot.skip(ftype)
12234
      iprot.readFieldEnd()
12216
      iprot.readFieldEnd()
Line 12236... Line 12218...
12236
 
12218
 
12237
  def write(self, oprot):
12219
  def write(self, oprot):
12238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12240
      return
12222
      return
12241
    oprot.writeStructBegin('mergeBrowseHistory_args')
12223
    oprot.writeStructBegin('updateMyResearch_args')
12242
    if self.fromUserId != None:
12224
    if self.userId != None:
12243
      oprot.writeFieldBegin('fromUserId', TType.I64, 1)
12225
      oprot.writeFieldBegin('userId', TType.I64, 1)
12244
      oprot.writeI64(self.fromUserId)
12226
      oprot.writeI64(self.userId)
12245
      oprot.writeFieldEnd()
12227
      oprot.writeFieldEnd()
12246
    if self.toUserId != None:
12228
    if self.itemId != None:
12247
      oprot.writeFieldBegin('toUserId', TType.I64, 2)
12229
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12248
      oprot.writeI64(self.toUserId)
12230
      oprot.writeI64(self.itemId)
12249
      oprot.writeFieldEnd()
12231
      oprot.writeFieldEnd()
12250
    oprot.writeFieldStop()
12232
    oprot.writeFieldStop()
12251
    oprot.writeStructEnd()
12233
    oprot.writeStructEnd()
12252
 
12234
 
12253
  def __repr__(self):
12235
  def __repr__(self):
Line 12259... Line 12241...
12259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12260
 
12242
 
12261
  def __ne__(self, other):
12243
  def __ne__(self, other):
12262
    return not (self == other)
12244
    return not (self == other)
12263
 
12245
 
12264
class mergeBrowseHistory_result:
12246
class updateMyResearch_result:
-
 
12247
  """
-
 
12248
  Attributes:
-
 
12249
   - success
-
 
12250
   - scx
-
 
12251
  """
12265
 
12252
 
12266
  thrift_spec = (
12253
  thrift_spec = (
-
 
12254
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
12255
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
12267
  )
12256
  )
12268
 
12257
 
-
 
12258
  def __init__(self, success=None, scx=None,):
-
 
12259
    self.success = success
-
 
12260
    self.scx = scx
-
 
12261
 
12269
  def read(self, iprot):
12262
  def read(self, iprot):
12270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12272
      return
12265
      return
12273
    iprot.readStructBegin()
12266
    iprot.readStructBegin()
12274
    while True:
12267
    while True:
12275
      (fname, ftype, fid) = iprot.readFieldBegin()
12268
      (fname, ftype, fid) = iprot.readFieldBegin()
12276
      if ftype == TType.STOP:
12269
      if ftype == TType.STOP:
12277
        break
12270
        break
-
 
12271
      if fid == 0:
-
 
12272
        if ftype == TType.BOOL:
-
 
12273
          self.success = iprot.readBool();
-
 
12274
        else:
-
 
12275
          iprot.skip(ftype)
-
 
12276
      elif fid == 1:
-
 
12277
        if ftype == TType.STRUCT:
-
 
12278
          self.scx = WidgetException()
-
 
12279
          self.scx.read(iprot)
-
 
12280
        else:
-
 
12281
          iprot.skip(ftype)
12278
      else:
12282
      else:
12279
        iprot.skip(ftype)
12283
        iprot.skip(ftype)
12280
      iprot.readFieldEnd()
12284
      iprot.readFieldEnd()
12281
    iprot.readStructEnd()
12285
    iprot.readStructEnd()
12282
 
12286
 
12283
  def write(self, oprot):
12287
  def write(self, oprot):
12284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12286
      return
12290
      return
12287
    oprot.writeStructBegin('mergeBrowseHistory_result')
12291
    oprot.writeStructBegin('updateMyResearch_result')
-
 
12292
    if self.success != None:
-
 
12293
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
12294
      oprot.writeBool(self.success)
-
 
12295
      oprot.writeFieldEnd()
-
 
12296
    if self.scx != None:
-
 
12297
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
12298
      self.scx.write(oprot)
-
 
12299
      oprot.writeFieldEnd()
12288
    oprot.writeFieldStop()
12300
    oprot.writeFieldStop()
12289
    oprot.writeStructEnd()
12301
    oprot.writeStructEnd()
12290
 
12302
 
12291
  def __repr__(self):
12303
  def __repr__(self):
12292
    L = ['%s=%r' % (key, value)
12304
    L = ['%s=%r' % (key, value)
Line 12297... Line 12309...
12297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12298
 
12310
 
12299
  def __ne__(self, other):
12311
  def __ne__(self, other):
12300
    return not (self == other)
12312
    return not (self == other)
12301
 
12313
 
12302
class getUserCount_args:
12314
class deleteItemFromMyResearch_args:
12303
  """
12315
  """
12304
  Attributes:
12316
  Attributes:
12305
   - userType
12317
   - userId
-
 
12318
   - itemId
12306
  """
12319
  """
12307
 
12320
 
12308
  thrift_spec = (
12321
  thrift_spec = (
12309
    None, # 0
12322
    None, # 0
12310
    (1, TType.I32, 'userType', None, None, ), # 1
12323
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
12324
    (2, TType.I64, 'itemId', None, None, ), # 2
12311
  )
12325
  )
12312
 
12326
 
12313
  def __init__(self, userType=None,):
12327
  def __init__(self, userId=None, itemId=None,):
12314
    self.userType = userType
12328
    self.userId = userId
-
 
12329
    self.itemId = itemId
12315
 
12330
 
12316
  def read(self, iprot):
12331
  def read(self, iprot):
12317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12319
      return
12334
      return
Line 12321... Line 12336...
12321
    while True:
12336
    while True:
12322
      (fname, ftype, fid) = iprot.readFieldBegin()
12337
      (fname, ftype, fid) = iprot.readFieldBegin()
12323
      if ftype == TType.STOP:
12338
      if ftype == TType.STOP:
12324
        break
12339
        break
12325
      if fid == 1:
12340
      if fid == 1:
12326
        if ftype == TType.I32:
12341
        if ftype == TType.I64:
12327
          self.userType = iprot.readI32();
12342
          self.userId = iprot.readI64();
-
 
12343
        else:
-
 
12344
          iprot.skip(ftype)
-
 
12345
      elif fid == 2:
-
 
12346
        if ftype == TType.I64:
-
 
12347
          self.itemId = iprot.readI64();
12328
        else:
12348
        else:
12329
          iprot.skip(ftype)
12349
          iprot.skip(ftype)
12330
      else:
12350
      else:
12331
        iprot.skip(ftype)
12351
        iprot.skip(ftype)
12332
      iprot.readFieldEnd()
12352
      iprot.readFieldEnd()
Line 12334... Line 12354...
12334
 
12354
 
12335
  def write(self, oprot):
12355
  def write(self, oprot):
12336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12338
      return
12358
      return
12339
    oprot.writeStructBegin('getUserCount_args')
12359
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
12340
    if self.userType != None:
12360
    if self.userId != None:
12341
      oprot.writeFieldBegin('userType', TType.I32, 1)
12361
      oprot.writeFieldBegin('userId', TType.I64, 1)
12342
      oprot.writeI32(self.userType)
12362
      oprot.writeI64(self.userId)
-
 
12363
      oprot.writeFieldEnd()
-
 
12364
    if self.itemId != None:
-
 
12365
      oprot.writeFieldBegin('itemId', TType.I64, 2)
-
 
12366
      oprot.writeI64(self.itemId)
12343
      oprot.writeFieldEnd()
12367
      oprot.writeFieldEnd()
12344
    oprot.writeFieldStop()
12368
    oprot.writeFieldStop()
12345
    oprot.writeStructEnd()
12369
    oprot.writeStructEnd()
12346
 
12370
 
12347
  def __repr__(self):
12371
  def __repr__(self):
Line 12353... Line 12377...
12353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12354
 
12378
 
12355
  def __ne__(self, other):
12379
  def __ne__(self, other):
12356
    return not (self == other)
12380
    return not (self == other)
12357
 
12381
 
12358
class getUserCount_result:
12382
class deleteItemFromMyResearch_result:
12359
  """
12383
  """
12360
  Attributes:
12384
  Attributes:
12361
   - success
12385
   - scx
12362
  """
12386
  """
12363
 
12387
 
12364
  thrift_spec = (
12388
  thrift_spec = (
-
 
12389
    None, # 0
12365
    (0, TType.I64, 'success', None, None, ), # 0
12390
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
12366
  )
12391
  )
12367
 
12392
 
12368
  def __init__(self, success=None,):
12393
  def __init__(self, scx=None,):
12369
    self.success = success
12394
    self.scx = scx
12370
 
12395
 
12371
  def read(self, iprot):
12396
  def read(self, iprot):
12372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12374
      return
12399
      return
12375
    iprot.readStructBegin()
12400
    iprot.readStructBegin()
12376
    while True:
12401
    while True:
12377
      (fname, ftype, fid) = iprot.readFieldBegin()
12402
      (fname, ftype, fid) = iprot.readFieldBegin()
12378
      if ftype == TType.STOP:
12403
      if ftype == TType.STOP:
12379
        break
12404
        break
12380
      if fid == 0:
12405
      if fid == 1:
12381
        if ftype == TType.I64:
12406
        if ftype == TType.STRUCT:
12382
          self.success = iprot.readI64();
12407
          self.scx = WidgetException()
-
 
12408
          self.scx.read(iprot)
12383
        else:
12409
        else:
12384
          iprot.skip(ftype)
12410
          iprot.skip(ftype)
12385
      else:
12411
      else:
12386
        iprot.skip(ftype)
12412
        iprot.skip(ftype)
12387
      iprot.readFieldEnd()
12413
      iprot.readFieldEnd()
Line 12389... Line 12415...
12389
 
12415
 
12390
  def write(self, oprot):
12416
  def write(self, oprot):
12391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12393
      return
12419
      return
12394
    oprot.writeStructBegin('getUserCount_result')
12420
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
12395
    if self.success != None:
12421
    if self.scx != None:
12396
      oprot.writeFieldBegin('success', TType.I64, 0)
12422
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12397
      oprot.writeI64(self.success)
12423
      self.scx.write(oprot)
12398
      oprot.writeFieldEnd()
12424
      oprot.writeFieldEnd()
12399
    oprot.writeFieldStop()
12425
    oprot.writeFieldStop()
12400
    oprot.writeStructEnd()
12426
    oprot.writeStructEnd()
12401
 
12427
 
12402
  def __repr__(self):
12428
  def __repr__(self):
Line 12408... Line 12434...
12408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12409
 
12435
 
12410
  def __ne__(self, other):
12436
  def __ne__(self, other):
12411
    return not (self == other)
12437
    return not (self == other)
12412
 
12438
 
12413
class getAllUsers_args:
12439
class getBrowseHistoryItems_args:
12414
  """
12440
  """
12415
  Attributes:
12441
  Attributes:
12416
   - userType
12442
   - userId
12417
   - startDate
-
 
12418
   - endDate
-
 
12419
  """
12443
  """
12420
 
12444
 
12421
  thrift_spec = (
12445
  thrift_spec = (
12422
    None, # 0
12446
    None, # 0
12423
    (1, TType.I32, 'userType', None, None, ), # 1
12447
    (1, TType.I64, 'userId', None, None, ), # 1
12424
    (2, TType.I64, 'startDate', None, None, ), # 2
-
 
12425
    (3, TType.I64, 'endDate', None, None, ), # 3
-
 
12426
  )
12448
  )
12427
 
12449
 
12428
  def __init__(self, userType=None, startDate=None, endDate=None,):
12450
  def __init__(self, userId=None,):
12429
    self.userType = userType
12451
    self.userId = userId
12430
    self.startDate = startDate
-
 
12431
    self.endDate = endDate
-
 
12432
 
12452
 
12433
  def read(self, iprot):
12453
  def read(self, iprot):
12434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12436
      return
12456
      return
Line 12438... Line 12458...
12438
    while True:
12458
    while True:
12439
      (fname, ftype, fid) = iprot.readFieldBegin()
12459
      (fname, ftype, fid) = iprot.readFieldBegin()
12440
      if ftype == TType.STOP:
12460
      if ftype == TType.STOP:
12441
        break
12461
        break
12442
      if fid == 1:
12462
      if fid == 1:
12443
        if ftype == TType.I32:
-
 
12444
          self.userType = iprot.readI32();
-
 
12445
        else:
-
 
12446
          iprot.skip(ftype)
-
 
12447
      elif fid == 2:
-
 
12448
        if ftype == TType.I64:
-
 
12449
          self.startDate = iprot.readI64();
-
 
12450
        else:
-
 
12451
          iprot.skip(ftype)
-
 
12452
      elif fid == 3:
-
 
12453
        if ftype == TType.I64:
12463
        if ftype == TType.I64:
12454
          self.endDate = iprot.readI64();
12464
          self.userId = iprot.readI64();
12455
        else:
12465
        else:
12456
          iprot.skip(ftype)
12466
          iprot.skip(ftype)
12457
      else:
12467
      else:
12458
        iprot.skip(ftype)
12468
        iprot.skip(ftype)
12459
      iprot.readFieldEnd()
12469
      iprot.readFieldEnd()
Line 12461... Line 12471...
12461
 
12471
 
12462
  def write(self, oprot):
12472
  def write(self, oprot):
12463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12465
      return
12475
      return
12466
    oprot.writeStructBegin('getAllUsers_args')
12476
    oprot.writeStructBegin('getBrowseHistoryItems_args')
12467
    if self.userType != None:
12477
    if self.userId != None:
12468
      oprot.writeFieldBegin('userType', TType.I32, 1)
12478
      oprot.writeFieldBegin('userId', TType.I64, 1)
12469
      oprot.writeI32(self.userType)
12479
      oprot.writeI64(self.userId)
12470
      oprot.writeFieldEnd()
-
 
12471
    if self.startDate != None:
-
 
12472
      oprot.writeFieldBegin('startDate', TType.I64, 2)
-
 
12473
      oprot.writeI64(self.startDate)
-
 
12474
      oprot.writeFieldEnd()
-
 
12475
    if self.endDate != None:
-
 
12476
      oprot.writeFieldBegin('endDate', TType.I64, 3)
-
 
12477
      oprot.writeI64(self.endDate)
-
 
12478
      oprot.writeFieldEnd()
12480
      oprot.writeFieldEnd()
12479
    oprot.writeFieldStop()
12481
    oprot.writeFieldStop()
12480
    oprot.writeStructEnd()
12482
    oprot.writeStructEnd()
12481
 
12483
 
12482
  def __repr__(self):
12484
  def __repr__(self):
Line 12488... Line 12490...
12488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12489
 
12491
 
12490
  def __ne__(self, other):
12492
  def __ne__(self, other):
12491
    return not (self == other)
12493
    return not (self == other)
12492
 
12494
 
12493
class getAllUsers_result:
12495
class getBrowseHistoryItems_result:
12494
  """
12496
  """
12495
  Attributes:
12497
  Attributes:
12496
   - success
12498
   - success
-
 
12499
   - scx
12497
  """
12500
  """
12498
 
12501
 
12499
  thrift_spec = (
12502
  thrift_spec = (
12500
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
12503
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
-
 
12504
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
12501
  )
12505
  )
12502
 
12506
 
12503
  def __init__(self, success=None,):
12507
  def __init__(self, success=None, scx=None,):
12504
    self.success = success
12508
    self.success = success
-
 
12509
    self.scx = scx
12505
 
12510
 
12506
  def read(self, iprot):
12511
  def read(self, iprot):
12507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12509
      return
12514
      return
Line 12513... Line 12518...
12513
      if ftype == TType.STOP:
12518
      if ftype == TType.STOP:
12514
        break
12519
        break
12515
      if fid == 0:
12520
      if fid == 0:
12516
        if ftype == TType.LIST:
12521
        if ftype == TType.LIST:
12517
          self.success = []
12522
          self.success = []
12518
          (_etype124, _size121) = iprot.readListBegin()
12523
          (_etype138, _size135) = iprot.readListBegin()
12519
          for _i125 in xrange(_size121):
12524
          for _i139 in xrange(_size135):
12520
            _elem126 = User()
12525
            _elem140 = iprot.readI64();
12521
            _elem126.read(iprot)
-
 
12522
            self.success.append(_elem126)
12526
            self.success.append(_elem140)
12523
          iprot.readListEnd()
12527
          iprot.readListEnd()
12524
        else:
12528
        else:
12525
          iprot.skip(ftype)
12529
          iprot.skip(ftype)
-
 
12530
      elif fid == 1:
-
 
12531
        if ftype == TType.STRUCT:
-
 
12532
          self.scx = WidgetException()
-
 
12533
          self.scx.read(iprot)
-
 
12534
        else:
-
 
12535
          iprot.skip(ftype)
12526
      else:
12536
      else:
12527
        iprot.skip(ftype)
12537
        iprot.skip(ftype)
12528
      iprot.readFieldEnd()
12538
      iprot.readFieldEnd()
12529
    iprot.readStructEnd()
12539
    iprot.readStructEnd()
12530
 
12540
 
12531
  def write(self, oprot):
12541
  def write(self, oprot):
12532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12534
      return
12544
      return
12535
    oprot.writeStructBegin('getAllUsers_result')
12545
    oprot.writeStructBegin('getBrowseHistoryItems_result')
12536
    if self.success != None:
12546
    if self.success != None:
12537
      oprot.writeFieldBegin('success', TType.LIST, 0)
12547
      oprot.writeFieldBegin('success', TType.LIST, 0)
12538
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12548
      oprot.writeListBegin(TType.I64, len(self.success))
12539
      for iter127 in self.success:
12549
      for iter141 in self.success:
12540
        iter127.write(oprot)
12550
        oprot.writeI64(iter141)
12541
      oprot.writeListEnd()
12551
      oprot.writeListEnd()
12542
      oprot.writeFieldEnd()
12552
      oprot.writeFieldEnd()
12543
    oprot.writeFieldStop()
-
 
12544
    oprot.writeStructEnd()
-
 
12545
 
-
 
12546
  def __repr__(self):
-
 
12547
    L = ['%s=%r' % (key, value)
-
 
12548
      for key, value in self.__dict__.iteritems()]
-
 
12549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12550
 
-
 
12551
  def __eq__(self, other):
-
 
12552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12553
 
-
 
12554
  def __ne__(self, other):
-
 
12555
    return not (self == other)
-
 
12556
 
-
 
12557
class putUserNote_args:
-
 
12558
  """
-
 
12559
  Attributes:
-
 
12560
   - user_id
-
 
12561
   - entity_id
-
 
12562
   - slide
-
 
12563
   - note
-
 
12564
  """
-
 
12565
 
-
 
12566
  thrift_spec = (
-
 
12567
    None, # 0
-
 
12568
    (1, TType.I64, 'user_id', None, None, ), # 1
-
 
12569
    (2, TType.I64, 'entity_id', None, None, ), # 2
-
 
12570
    (3, TType.STRING, 'slide', None, None, ), # 3
-
 
12571
    (4, TType.STRING, 'note', None, None, ), # 4
-
 
12572
  )
-
 
12573
 
-
 
12574
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
-
 
12575
    self.user_id = user_id
-
 
12576
    self.entity_id = entity_id
-
 
12577
    self.slide = slide
-
 
12578
    self.note = note
-
 
12579
 
-
 
12580
  def read(self, iprot):
-
 
12581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12583
      return
-
 
12584
    iprot.readStructBegin()
-
 
12585
    while True:
-
 
12586
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12587
      if ftype == TType.STOP:
-
 
12588
        break
-
 
12589
      if fid == 1:
-
 
12590
        if ftype == TType.I64:
-
 
12591
          self.user_id = iprot.readI64();
-
 
12592
        else:
-
 
12593
          iprot.skip(ftype)
-
 
12594
      elif fid == 2:
-
 
12595
        if ftype == TType.I64:
-
 
12596
          self.entity_id = iprot.readI64();
-
 
12597
        else:
-
 
12598
          iprot.skip(ftype)
-
 
12599
      elif fid == 3:
-
 
12600
        if ftype == TType.STRING:
-
 
12601
          self.slide = iprot.readString();
-
 
12602
        else:
-
 
12603
          iprot.skip(ftype)
-
 
12604
      elif fid == 4:
-
 
12605
        if ftype == TType.STRING:
-
 
12606
          self.note = iprot.readString();
-
 
12607
        else:
-
 
12608
          iprot.skip(ftype)
-
 
12609
      else:
-
 
12610
        iprot.skip(ftype)
-
 
12611
      iprot.readFieldEnd()
-
 
12612
    iprot.readStructEnd()
-
 
12613
 
-
 
12614
  def write(self, oprot):
-
 
12615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12617
      return
-
 
12618
    oprot.writeStructBegin('putUserNote_args')
-
 
12619
    if self.user_id != None:
-
 
12620
      oprot.writeFieldBegin('user_id', TType.I64, 1)
-
 
12621
      oprot.writeI64(self.user_id)
-
 
12622
      oprot.writeFieldEnd()
-
 
12623
    if self.entity_id != None:
-
 
12624
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
-
 
12625
      oprot.writeI64(self.entity_id)
-
 
12626
      oprot.writeFieldEnd()
-
 
12627
    if self.slide != None:
12553
    if self.scx != None:
12628
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12554
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12629
      oprot.writeString(self.slide)
-
 
12630
      oprot.writeFieldEnd()
12555
      self.scx.write(oprot)
12631
    if self.note != None:
-
 
12632
      oprot.writeFieldBegin('note', TType.STRING, 4)
-
 
12633
      oprot.writeString(self.note)
-
 
12634
      oprot.writeFieldEnd()
12556
      oprot.writeFieldEnd()
12635
    oprot.writeFieldStop()
12557
    oprot.writeFieldStop()
12636
    oprot.writeStructEnd()
12558
    oprot.writeStructEnd()
12637
 
12559
 
12638
  def __repr__(self):
12560
  def __repr__(self):
Line 12644... Line 12566...
12644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12645
 
12567
 
12646
  def __ne__(self, other):
12568
  def __ne__(self, other):
12647
    return not (self == other)
12569
    return not (self == other)
12648
 
12570
 
12649
class putUserNote_result:
-
 
12650
 
-
 
12651
  thrift_spec = (
-
 
12652
  )
-
 
12653
 
-
 
12654
  def read(self, iprot):
-
 
12655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12657
      return
-
 
12658
    iprot.readStructBegin()
-
 
12659
    while True:
-
 
12660
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12661
      if ftype == TType.STOP:
-
 
12662
        break
-
 
12663
      else:
-
 
12664
        iprot.skip(ftype)
-
 
12665
      iprot.readFieldEnd()
-
 
12666
    iprot.readStructEnd()
-
 
12667
 
-
 
12668
  def write(self, oprot):
-
 
12669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12671
      return
-
 
12672
    oprot.writeStructBegin('putUserNote_result')
-
 
12673
    oprot.writeFieldStop()
-
 
12674
    oprot.writeStructEnd()
-
 
12675
 
-
 
12676
  def __repr__(self):
-
 
12677
    L = ['%s=%r' % (key, value)
-
 
12678
      for key, value in self.__dict__.iteritems()]
-
 
12679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12680
 
-
 
12681
  def __eq__(self, other):
-
 
12682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12683
 
-
 
12684
  def __ne__(self, other):
-
 
12685
    return not (self == other)
-
 
12686
 
-
 
12687
class getUserNotes_args:
12571
class updateBrowseHistory_args:
12688
  """
12572
  """
12689
  Attributes:
12573
  Attributes:
12690
   - user_id
12574
   - userId
12691
   - entity_id
12575
   - itemId
12692
  """
12576
  """
12693
 
12577
 
12694
  thrift_spec = (
12578
  thrift_spec = (
12695
    None, # 0
12579
    None, # 0
12696
    (1, TType.I64, 'user_id', None, None, ), # 1
12580
    (1, TType.I64, 'userId', None, None, ), # 1
12697
    (2, TType.I64, 'entity_id', None, None, ), # 2
12581
    (2, TType.I64, 'itemId', None, None, ), # 2
12698
  )
12582
  )
12699
 
12583
 
12700
  def __init__(self, user_id=None, entity_id=None,):
12584
  def __init__(self, userId=None, itemId=None,):
12701
    self.user_id = user_id
12585
    self.userId = userId
12702
    self.entity_id = entity_id
12586
    self.itemId = itemId
12703
 
12587
 
12704
  def read(self, iprot):
12588
  def read(self, iprot):
12705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12707
      return
12591
      return
Line 12710... Line 12594...
12710
      (fname, ftype, fid) = iprot.readFieldBegin()
12594
      (fname, ftype, fid) = iprot.readFieldBegin()
12711
      if ftype == TType.STOP:
12595
      if ftype == TType.STOP:
12712
        break
12596
        break
12713
      if fid == 1:
12597
      if fid == 1:
12714
        if ftype == TType.I64:
12598
        if ftype == TType.I64:
12715
          self.user_id = iprot.readI64();
12599
          self.userId = iprot.readI64();
12716
        else:
12600
        else:
12717
          iprot.skip(ftype)
12601
          iprot.skip(ftype)
12718
      elif fid == 2:
12602
      elif fid == 2:
12719
        if ftype == TType.I64:
12603
        if ftype == TType.I64:
12720
          self.entity_id = iprot.readI64();
12604
          self.itemId = iprot.readI64();
12721
        else:
12605
        else:
12722
          iprot.skip(ftype)
12606
          iprot.skip(ftype)
12723
      else:
12607
      else:
12724
        iprot.skip(ftype)
12608
        iprot.skip(ftype)
12725
      iprot.readFieldEnd()
12609
      iprot.readFieldEnd()
Line 12727... Line 12611...
12727
 
12611
 
12728
  def write(self, oprot):
12612
  def write(self, oprot):
12729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12731
      return
12615
      return
12732
    oprot.writeStructBegin('getUserNotes_args')
12616
    oprot.writeStructBegin('updateBrowseHistory_args')
12733
    if self.user_id != None:
12617
    if self.userId != None:
12734
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12618
      oprot.writeFieldBegin('userId', TType.I64, 1)
12735
      oprot.writeI64(self.user_id)
12619
      oprot.writeI64(self.userId)
12736
      oprot.writeFieldEnd()
12620
      oprot.writeFieldEnd()
12737
    if self.entity_id != None:
12621
    if self.itemId != None:
12738
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12622
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12739
      oprot.writeI64(self.entity_id)
12623
      oprot.writeI64(self.itemId)
12740
      oprot.writeFieldEnd()
12624
      oprot.writeFieldEnd()
12741
    oprot.writeFieldStop()
12625
    oprot.writeFieldStop()
12742
    oprot.writeStructEnd()
12626
    oprot.writeStructEnd()
12743
 
12627
 
12744
  def __repr__(self):
12628
  def __repr__(self):
Line 12750... Line 12634...
12750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12751
 
12635
 
12752
  def __ne__(self, other):
12636
  def __ne__(self, other):
12753
    return not (self == other)
12637
    return not (self == other)
12754
 
12638
 
12755
class getUserNotes_result:
12639
class updateBrowseHistory_result:
12756
  """
-
 
12757
  Attributes:
-
 
12758
   - success
-
 
12759
  """
-
 
12760
 
12640
 
12761
  thrift_spec = (
12641
  thrift_spec = (
12762
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
-
 
12763
  )
12642
  )
12764
 
12643
 
12765
  def __init__(self, success=None,):
-
 
12766
    self.success = success
-
 
12767
 
-
 
12768
  def read(self, iprot):
12644
  def read(self, iprot):
12769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12771
      return
12647
      return
12772
    iprot.readStructBegin()
12648
    iprot.readStructBegin()
12773
    while True:
12649
    while True:
12774
      (fname, ftype, fid) = iprot.readFieldBegin()
12650
      (fname, ftype, fid) = iprot.readFieldBegin()
12775
      if ftype == TType.STOP:
12651
      if ftype == TType.STOP:
12776
        break
12652
        break
12777
      if fid == 0:
-
 
12778
        if ftype == TType.LIST:
-
 
12779
          self.success = []
-
 
12780
          (_etype131, _size128) = iprot.readListBegin()
-
 
12781
          for _i132 in xrange(_size128):
-
 
12782
            _elem133 = UserNote()
-
 
12783
            _elem133.read(iprot)
-
 
12784
            self.success.append(_elem133)
-
 
12785
          iprot.readListEnd()
-
 
12786
        else:
-
 
12787
          iprot.skip(ftype)
-
 
12788
      else:
12653
      else:
12789
        iprot.skip(ftype)
12654
        iprot.skip(ftype)
12790
      iprot.readFieldEnd()
12655
      iprot.readFieldEnd()
12791
    iprot.readStructEnd()
12656
    iprot.readStructEnd()
12792
 
12657
 
12793
  def write(self, oprot):
12658
  def write(self, oprot):
12794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12796
      return
12661
      return
12797
    oprot.writeStructBegin('getUserNotes_result')
12662
    oprot.writeStructBegin('updateBrowseHistory_result')
12798
    if self.success != None:
-
 
12799
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
12800
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
12801
      for iter134 in self.success:
-
 
12802
        iter134.write(oprot)
-
 
12803
      oprot.writeListEnd()
-
 
12804
      oprot.writeFieldEnd()
-
 
12805
    oprot.writeFieldStop()
12663
    oprot.writeFieldStop()
12806
    oprot.writeStructEnd()
12664
    oprot.writeStructEnd()
12807
 
12665
 
12808
  def __repr__(self):
12666
  def __repr__(self):
12809
    L = ['%s=%r' % (key, value)
12667
    L = ['%s=%r' % (key, value)