Class: Stat::Query::THotService::Processor

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

Instance Method Summary collapse

Instance Method Details

#process_hotAlbum(seqid, iprot, oprot) ⇒ Object



257
258
259
260
261
262
# File 'lib/t_hot_service.rb', line 257

def process_hotAlbum(seqid, iprot, oprot)
  args = read_args(iprot, HotAlbum_args)
  result = HotAlbum_result.new()
  result.success = @handler.hotAlbum(args.id, args.tagName, args.pageNo, args.pageSize)
  write_result(result, oprot, 'hotAlbum', seqid)
end

#process_hotCategoryAlbum(seqid, iprot, oprot) ⇒ Object



271
272
273
274
275
276
# File 'lib/t_hot_service.rb', line 271

def process_hotCategoryAlbum(seqid, iprot, oprot)
  args = read_args(iprot, HotCategoryAlbum_args)
  result = HotCategoryAlbum_result.new()
  result.success = @handler.hotCategoryAlbum(args.id, args.tagNames, args.size)
  write_result(result, oprot, 'hotCategoryAlbum', seqid)
end

#process_hotRadio(seqid, iprot, oprot) ⇒ Object



201
202
203
204
205
206
# File 'lib/t_hot_service.rb', line 201

def process_hotRadio(seqid, iprot, oprot)
  args = read_args(iprot, HotRadio_args)
  result = HotRadio_result.new()
  result.success = @handler.hotRadio(args.id, args.pageNo, args.pageSize)
  write_result(result, oprot, 'hotRadio', seqid)
end

#process_hotRadioAndSound(seqid, iprot, oprot) ⇒ Object



264
265
266
267
268
269
# File 'lib/t_hot_service.rb', line 264

def process_hotRadioAndSound(seqid, iprot, oprot)
  args = read_args(iprot, HotRadioAndSound_args)
  result = HotRadioAndSound_result.new()
  result.success = @handler.hotRadioAndSound(args.categoryIds)
  write_result(result, oprot, 'hotRadioAndSound', seqid)
end

#process_hotRadioDay(seqid, iprot, oprot) ⇒ Object



243
244
245
246
247
248
# File 'lib/t_hot_service.rb', line 243

def process_hotRadioDay(seqid, iprot, oprot)
  args = read_args(iprot, HotRadioDay_args)
  result = HotRadioDay_result.new()
  result.success = @handler.hotRadioDay(args.id, args.pageNo, args.pageSize)
  write_result(result, oprot, 'hotRadioDay', seqid)
end

#process_hotRadioRandom(seqid, iprot, oprot) ⇒ Object



278
279
280
281
282
283
# File 'lib/t_hot_service.rb', line 278

def process_hotRadioRandom(seqid, iprot, oprot)
  args = read_args(iprot, HotRadioRandom_args)
  result = HotRadioRandom_result.new()
  result.success = @handler.hotRadioRandom()
  write_result(result, oprot, 'hotRadioRandom', seqid)
end

#process_hotSound(seqid, iprot, oprot) ⇒ Object



208
209
210
211
212
213
# File 'lib/t_hot_service.rb', line 208

def process_hotSound(seqid, iprot, oprot)
  args = read_args(iprot, HotSound_args)
  result = HotSound_result.new()
  result.success = @handler.hotSound(args.id, args.tagName, args.pageNo, args.pageSize)
  write_result(result, oprot, 'hotSound', seqid)
end

#process_hotSoundDay(seqid, iprot, oprot) ⇒ Object



250
251
252
253
254
255
# File 'lib/t_hot_service.rb', line 250

def process_hotSoundDay(seqid, iprot, oprot)
  args = read_args(iprot, HotSoundDay_args)
  result = HotSoundDay_result.new()
  result.success = @handler.hotSoundDay(args.id, args.tagName, args.pageNo, args.pageSize)
  write_result(result, oprot, 'hotSoundDay', seqid)
end

#process_mostFavoritSound(seqid, iprot, oprot) ⇒ Object



229
230
231
232
233
234
# File 'lib/t_hot_service.rb', line 229

def process_mostFavoritSound(seqid, iprot, oprot)
  args = read_args(iprot, MostFavoritSound_args)
  result = MostFavoritSound_result.new()
  result.success = @handler.mostFavoritSound(args.id, args.tagName, args.pageNo, args.pageSize)
  write_result(result, oprot, 'mostFavoritSound', seqid)
end

#process_mostFollowedUser(seqid, iprot, oprot) ⇒ Object



222
223
224
225
226
227
# File 'lib/t_hot_service.rb', line 222

def process_mostFollowedUser(seqid, iprot, oprot)
  args = read_args(iprot, MostFollowedUser_args)
  result = MostFollowedUser_result.new()
  result.success = @handler.mostFollowedUser(args.id, args.pageNo, args.pageSize)
  write_result(result, oprot, 'mostFollowedUser', seqid)
end

#process_newV(seqid, iprot, oprot) ⇒ Object



215
216
217
218
219
220
# File 'lib/t_hot_service.rb', line 215

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

#process_recentVTrack(seqid, iprot, oprot) ⇒ Object



236
237
238
239
240
241
# File 'lib/t_hot_service.rb', line 236

def process_recentVTrack(seqid, iprot, oprot)
  args = read_args(iprot, RecentVTrack_args)
  result = RecentVTrack_result.new()
  result.success = @handler.recentVTrack(args.id, args.tagName, args.pageNo, args.pageSize)
  write_result(result, oprot, 'recentVTrack', seqid)
end