Class: Stat::Query::TRecommendService::Client
- Inherits:
-
Object
- Object
- Stat::Query::TRecommendService::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/t_recommend_service.rb
Instance Method Summary collapse
- #categoryHotUser(uid, categoryids, count) ⇒ Object
- #dislikeUser(uid, dislikeUid) ⇒ Object
- #indirectFollow(uid, count) ⇒ Object
- #indirectFollowPage(uid, pageSize, pageNo) ⇒ Object
- #newV(uid, returnSize) ⇒ Object
- #recv_categoryHotUser ⇒ Object
- #recv_indirectFollow ⇒ Object
- #recv_indirectFollowPage ⇒ Object
- #recv_newV ⇒ Object
- #send_categoryHotUser(uid, categoryids, count) ⇒ Object
- #send_dislikeUser(uid, dislikeUid) ⇒ Object
- #send_indirectFollow(uid, count) ⇒ Object
- #send_indirectFollowPage(uid, pageSize, pageNo) ⇒ Object
- #send_newV(uid, returnSize) ⇒ Object
Instance Method Details
#categoryHotUser(uid, categoryids, count) ⇒ Object
61 62 63 64 |
# File 'lib/t_recommend_service.rb', line 61 def categoryHotUser(uid, categoryids, count) send_categoryHotUser(uid, categoryids, count) return recv_categoryHotUser() end |
#dislikeUser(uid, dislikeUid) ⇒ Object
76 77 78 |
# File 'lib/t_recommend_service.rb', line 76 def dislikeUser(uid, dislikeUid) send_dislikeUser(uid, dislikeUid) end |
#indirectFollow(uid, count) ⇒ Object
16 17 18 19 |
# File 'lib/t_recommend_service.rb', line 16 def indirectFollow(uid, count) send_indirectFollow(uid, count) return recv_indirectFollow() end |
#indirectFollowPage(uid, pageSize, pageNo) ⇒ Object
31 32 33 34 |
# File 'lib/t_recommend_service.rb', line 31 def indirectFollowPage(uid, pageSize, pageNo) send_indirectFollowPage(uid, pageSize, pageNo) return recv_indirectFollowPage() end |
#newV(uid, returnSize) ⇒ Object
46 47 48 49 |
# File 'lib/t_recommend_service.rb', line 46 def newV(uid, returnSize) send_newV(uid, returnSize) return recv_newV() end |
#recv_categoryHotUser ⇒ Object
70 71 72 73 74 |
# File 'lib/t_recommend_service.rb', line 70 def recv_categoryHotUser() result = (CategoryHotUser_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'categoryHotUser failed: unknown result') end |
#recv_indirectFollow ⇒ Object
25 26 27 28 29 |
# File 'lib/t_recommend_service.rb', line 25 def recv_indirectFollow() result = (IndirectFollow_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'indirectFollow failed: unknown result') end |
#recv_indirectFollowPage ⇒ Object
40 41 42 43 44 |
# File 'lib/t_recommend_service.rb', line 40 def recv_indirectFollowPage() result = (IndirectFollowPage_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'indirectFollowPage failed: unknown result') end |
#recv_newV ⇒ Object
55 56 57 58 59 |
# File 'lib/t_recommend_service.rb', line 55 def recv_newV() result = (NewV_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'newV failed: unknown result') end |
#send_categoryHotUser(uid, categoryids, count) ⇒ Object
66 67 68 |
# File 'lib/t_recommend_service.rb', line 66 def send_categoryHotUser(uid, categoryids, count) ('categoryHotUser', CategoryHotUser_args, :uid => uid, :categoryids => categoryids, :count => count) end |
#send_dislikeUser(uid, dislikeUid) ⇒ Object
80 81 82 |
# File 'lib/t_recommend_service.rb', line 80 def send_dislikeUser(uid, dislikeUid) ('dislikeUser', DislikeUser_args, :uid => uid, :dislikeUid => dislikeUid) end |
#send_indirectFollow(uid, count) ⇒ Object
21 22 23 |
# File 'lib/t_recommend_service.rb', line 21 def send_indirectFollow(uid, count) ('indirectFollow', IndirectFollow_args, :uid => uid, :count => count) end |
#send_indirectFollowPage(uid, pageSize, pageNo) ⇒ Object
36 37 38 |
# File 'lib/t_recommend_service.rb', line 36 def send_indirectFollowPage(uid, pageSize, pageNo) ('indirectFollowPage', IndirectFollowPage_args, :uid => uid, :pageSize => pageSize, :pageNo => pageNo) end |
#send_newV(uid, returnSize) ⇒ Object
51 52 53 |
# File 'lib/t_recommend_service.rb', line 51 def send_newV(uid, returnSize) ('newV', NewV_args, :uid => uid, :returnSize => returnSize) end |