Class: Sfeed::ISfeedHandler::Processor

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

Instance Method Summary collapse

Instance Method Details

#process_blockAlbum(seqid, iprot, oprot) ⇒ Object



310
311
312
313
314
315
# File 'lib/i_sfeed_handler.rb', line 310

def process_blockAlbum(seqid, iprot, oprot)
  args = read_args(iprot, BlockAlbum_args)
  result = BlockAlbum_result.new()
  @handler.blockAlbum(args.uid, args.albumUid, args.albumId)
  write_result(result, oprot, 'blockAlbum', seqid)
end

#process_cancelTopAlbum(seqid, iprot, oprot) ⇒ Object



303
304
305
306
307
308
# File 'lib/i_sfeed_handler.rb', line 303

def process_cancelTopAlbum(seqid, iprot, oprot)
  args = read_args(iprot, CancelTopAlbum_args)
  result = CancelTopAlbum_result.new()
  result.success = @handler.cancelTopAlbum(args.uid, args.albumUid, args.albumId)
  write_result(result, oprot, 'cancelTopAlbum', seqid)
end

#process_deleteEvent(seqid, iprot, oprot) ⇒ Object



324
325
326
327
328
329
# File 'lib/i_sfeed_handler.rb', line 324

def process_deleteEvent(seqid, iprot, oprot)
  args = read_args(iprot, DeleteEvent_args)
  result = DeleteEvent_result.new()
  @handler.deleteEvent(args.uid, args.key)
  write_result(result, oprot, 'deleteEvent', seqid)
end

#process_getAlbumTracks(seqid, iprot, oprot) ⇒ Object



352
353
354
355
356
357
# File 'lib/i_sfeed_handler.rb', line 352

def process_getAlbumTracks(seqid, iprot, oprot)
  args = read_args(iprot, GetAlbumTracks_args)
  result = GetAlbumTracks_result.new()
  result.success = @handler.getAlbumTracks(args.uid, args.albumId, args.page, args.size, args.isAsc, args.order)
  write_result(result, oprot, 'getAlbumTracks', seqid)
end

#process_getBlockAlbums(seqid, iprot, oprot) ⇒ Object



331
332
333
334
335
336
# File 'lib/i_sfeed_handler.rb', line 331

def process_getBlockAlbums(seqid, iprot, oprot)
  args = read_args(iprot, GetBlockAlbums_args)
  result = GetBlockAlbums_result.new()
  result.success = @handler.getBlockAlbums(args.uid, args.cursor, args.size)
  write_result(result, oprot, 'getBlockAlbums', seqid)
end

#process_getBlockAlbumsByPage(seqid, iprot, oprot) ⇒ Object



345
346
347
348
349
350
# File 'lib/i_sfeed_handler.rb', line 345

def process_getBlockAlbumsByPage(seqid, iprot, oprot)
  args = read_args(iprot, GetBlockAlbumsByPage_args)
  result = GetBlockAlbumsByPage_result.new()
  result.success = @handler.getBlockAlbumsByPage(args.uid, args.page, args.size)
  write_result(result, oprot, 'getBlockAlbumsByPage', seqid)
end

#process_getBlockAlbumsWithCount(seqid, iprot, oprot) ⇒ Object



338
339
340
341
342
343
# File 'lib/i_sfeed_handler.rb', line 338

def process_getBlockAlbumsWithCount(seqid, iprot, oprot)
  args = read_args(iprot, GetBlockAlbumsWithCount_args)
  result = GetBlockAlbumsWithCount_result.new()
  result.success = @handler.getBlockAlbumsWithCount(args.uid, args.cursor, args.size)
  write_result(result, oprot, 'getBlockAlbumsWithCount', seqid)
end

#process_getEvent(seqid, iprot, oprot) ⇒ Object



275
276
277
278
279
280
# File 'lib/i_sfeed_handler.rb', line 275

def process_getEvent(seqid, iprot, oprot)
  args = read_args(iprot, GetEvent_args)
  result = GetEvent_result.new()
  result.success = @handler.getEvent(args.uid, args.timeline, args.limit, args.queryType)
  write_result(result, oprot, 'getEvent', seqid)
end

#process_getEventTotalUnread(seqid, iprot, oprot) ⇒ Object



373
374
375
376
377
378
# File 'lib/i_sfeed_handler.rb', line 373

def process_getEventTotalUnread(seqid, iprot, oprot)
  args = read_args(iprot, GetEventTotalUnread_args)
  result = GetEventTotalUnread_result.new()
  result.success = @handler.getEventTotalUnread(args.uid)
  write_result(result, oprot, 'getEventTotalUnread', seqid)
end

#process_getFeed(seqid, iprot, oprot) ⇒ Object



268
269
270
271
272
273
# File 'lib/i_sfeed_handler.rb', line 268

def process_getFeed(seqid, iprot, oprot)
  args = read_args(iprot, GetFeed_args)
  result = GetFeed_result.new()
  result.success = @handler.getFeed(args.uid, args.timeline, args.limit, args.queryType)
  write_result(result, oprot, 'getFeed', seqid)
end

#process_getSoundTotalUnread(seqid, iprot, oprot) ⇒ Object



359
360
361
362
363
364
# File 'lib/i_sfeed_handler.rb', line 359

def process_getSoundTotalUnread(seqid, iprot, oprot)
  args = read_args(iprot, GetSoundTotalUnread_args)
  result = GetSoundTotalUnread_result.new()
  result.success = @handler.getSoundTotalUnread(args.uid)
  write_result(result, oprot, 'getSoundTotalUnread', seqid)
end

#process_queryUnloginFeed(seqid, iprot, oprot) ⇒ Object



380
381
382
383
384
385
# File 'lib/i_sfeed_handler.rb', line 380

def process_queryUnloginFeed(seqid, iprot, oprot)
  args = read_args(iprot, QueryUnloginFeed_args)
  result = QueryUnloginFeed_result.new()
  result.success = @handler.queryUnloginFeed(args.page, args.size)
  write_result(result, oprot, 'queryUnloginFeed', seqid)
end

#process_resetEventUnread(seqid, iprot, oprot) ⇒ Object



289
290
291
292
293
294
# File 'lib/i_sfeed_handler.rb', line 289

def process_resetEventUnread(seqid, iprot, oprot)
  args = read_args(iprot, ResetEventUnread_args)
  result = ResetEventUnread_result.new()
  @handler.resetEventUnread(args.uid)
  write_result(result, oprot, 'resetEventUnread', seqid)
end

#process_resetSoundTotalUnread(seqid, iprot, oprot) ⇒ Object



366
367
368
369
370
371
# File 'lib/i_sfeed_handler.rb', line 366

def process_resetSoundTotalUnread(seqid, iprot, oprot)
  args = read_args(iprot, ResetSoundTotalUnread_args)
  result = ResetSoundTotalUnread_result.new()
  @handler.resetSoundTotalUnread(args.uid)
  write_result(result, oprot, 'resetSoundTotalUnread', seqid)
end

#process_resetSoundUnread(seqid, iprot, oprot) ⇒ Object



282
283
284
285
286
287
# File 'lib/i_sfeed_handler.rb', line 282

def process_resetSoundUnread(seqid, iprot, oprot)
  args = read_args(iprot, ResetSoundUnread_args)
  result = ResetSoundUnread_result.new()
  @handler.resetSoundUnread(args.uid, args.albumId, args.albumUid)
  write_result(result, oprot, 'resetSoundUnread', seqid)
end

#process_topAlbum(seqid, iprot, oprot) ⇒ Object



296
297
298
299
300
301
# File 'lib/i_sfeed_handler.rb', line 296

def process_topAlbum(seqid, iprot, oprot)
  args = read_args(iprot, TopAlbum_args)
  result = TopAlbum_result.new()
  @handler.topAlbum(args.uid, args.albumUid, args.albumId)
  write_result(result, oprot, 'topAlbum', seqid)
end

#process_unblockAlbum(seqid, iprot, oprot) ⇒ Object



317
318
319
320
321
322
# File 'lib/i_sfeed_handler.rb', line 317

def process_unblockAlbum(seqid, iprot, oprot)
  args = read_args(iprot, UnblockAlbum_args)
  result = UnblockAlbum_result.new()
  @handler.unblockAlbum(args.uid, args.albumUid, args.albumId)
  write_result(result, oprot, 'unblockAlbum', seqid)
end