Class: Stat::Query::TRecommendService::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/t_recommend_service.rb

Instance Method Summary collapse

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_categoryHotUserObject

Raises:

  • (::Thrift::ApplicationException)


70
71
72
73
74
# File 'lib/t_recommend_service.rb', line 70

def recv_categoryHotUser()
  result = receive_message(CategoryHotUser_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'categoryHotUser failed: unknown result')
end

#recv_indirectFollowObject

Raises:

  • (::Thrift::ApplicationException)


25
26
27
28
29
# File 'lib/t_recommend_service.rb', line 25

def recv_indirectFollow()
  result = receive_message(IndirectFollow_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'indirectFollow failed: unknown result')
end

#recv_indirectFollowPageObject

Raises:

  • (::Thrift::ApplicationException)


40
41
42
43
44
# File 'lib/t_recommend_service.rb', line 40

def recv_indirectFollowPage()
  result = receive_message(IndirectFollowPage_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'indirectFollowPage failed: unknown result')
end

#recv_newVObject

Raises:

  • (::Thrift::ApplicationException)


55
56
57
58
59
# File 'lib/t_recommend_service.rb', line 55

def recv_newV()
  result = receive_message(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)
  send_message('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)
  send_message('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)
  send_message('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)
  send_message('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)
  send_message('newV', NewV_args, :uid => uid, :returnSize => returnSize)
end