Class: Stat::Query::TRecommendService::Processor

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

Instance Method Summary collapse

Instance Method Details

#process_categoryHotUser(seqid, iprot, oprot) ⇒ Object



109
110
111
112
113
114
# File 'lib/t_recommend_service.rb', line 109

def process_categoryHotUser(seqid, iprot, oprot)
  args = read_args(iprot, CategoryHotUser_args)
  result = CategoryHotUser_result.new()
  result.success = @handler.categoryHotUser(args.uid, args.categoryids, args.count)
  write_result(result, oprot, 'categoryHotUser', seqid)
end

#process_dislikeUser(seqid, iprot, oprot) ⇒ Object



116
117
118
119
120
# File 'lib/t_recommend_service.rb', line 116

def process_dislikeUser(seqid, iprot, oprot)
  args = read_args(iprot, DislikeUser_args)
  @handler.dislikeUser(args.uid, args.dislikeUid)
  return
end

#process_indirectFollow(seqid, iprot, oprot) ⇒ Object



88
89
90
91
92
93
# File 'lib/t_recommend_service.rb', line 88

def process_indirectFollow(seqid, iprot, oprot)
  args = read_args(iprot, IndirectFollow_args)
  result = IndirectFollow_result.new()
  result.success = @handler.indirectFollow(args.uid, args.count)
  write_result(result, oprot, 'indirectFollow', seqid)
end

#process_indirectFollowPage(seqid, iprot, oprot) ⇒ Object



95
96
97
98
99
100
# File 'lib/t_recommend_service.rb', line 95

def process_indirectFollowPage(seqid, iprot, oprot)
  args = read_args(iprot, IndirectFollowPage_args)
  result = IndirectFollowPage_result.new()
  result.success = @handler.indirectFollowPage(args.uid, args.pageSize, args.pageNo)
  write_result(result, oprot, 'indirectFollowPage', seqid)
end

#process_newV(seqid, iprot, oprot) ⇒ Object



102
103
104
105
106
107
# File 'lib/t_recommend_service.rb', line 102

def process_newV(seqid, iprot, oprot)
  args = read_args(iprot, NewV_args)
  result = NewV_result.new()
  result.success = @handler.newV(args.uid, args.returnSize)
  write_result(result, oprot, 'newV', seqid)
end