Class: Sfeed::ISfeedHandler::Client

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

Instance Method Summary collapse

Instance Method Details

#blockAlbum(uid, albumUid, albumId) ⇒ Object



102
103
104
105
# File 'lib/i_sfeed_handler.rb', line 102

def blockAlbum(uid, albumUid, albumId)
  send_blockAlbum(uid, albumUid, albumId)
  recv_blockAlbum()
end

#cancelTopAlbum(uid, albumUid, albumId) ⇒ Object



87
88
89
90
# File 'lib/i_sfeed_handler.rb', line 87

def cancelTopAlbum(uid, albumUid, albumId)
  send_cancelTopAlbum(uid, albumUid, albumId)
  return recv_cancelTopAlbum()
end

#deleteEvent(uid, key) ⇒ Object



130
131
132
133
# File 'lib/i_sfeed_handler.rb', line 130

def deleteEvent(uid, key)
  send_deleteEvent(uid, key)
  recv_deleteEvent()
end

#getAlbumTracks(uid, albumId, page, size, isAsc, order) ⇒ Object



189
190
191
192
# File 'lib/i_sfeed_handler.rb', line 189

def getAlbumTracks(uid, albumId, page, size, isAsc, order)
  send_getAlbumTracks(uid, albumId, page, size, isAsc, order)
  return recv_getAlbumTracks()
end

#getBlockAlbums(uid, cursor, size) ⇒ Object



144
145
146
147
# File 'lib/i_sfeed_handler.rb', line 144

def getBlockAlbums(uid, cursor, size)
  send_getBlockAlbums(uid, cursor, size)
  return recv_getBlockAlbums()
end

#getBlockAlbumsByPage(uid, page, size) ⇒ Object



174
175
176
177
# File 'lib/i_sfeed_handler.rb', line 174

def getBlockAlbumsByPage(uid, page, size)
  send_getBlockAlbumsByPage(uid, page, size)
  return recv_getBlockAlbumsByPage()
end

#getBlockAlbumsWithCount(uid, cursor, size) ⇒ Object



159
160
161
162
# File 'lib/i_sfeed_handler.rb', line 159

def getBlockAlbumsWithCount(uid, cursor, size)
  send_getBlockAlbumsWithCount(uid, cursor, size)
  return recv_getBlockAlbumsWithCount()
end

#getEvent(uid, timeline, limit, queryType) ⇒ Object



30
31
32
33
# File 'lib/i_sfeed_handler.rb', line 30

def getEvent(uid, timeline, limit, queryType)
  send_getEvent(uid, timeline, limit, queryType)
  return recv_getEvent()
end

#getEventTotalUnread(uid) ⇒ Object



233
234
235
236
# File 'lib/i_sfeed_handler.rb', line 233

def getEventTotalUnread(uid)
  send_getEventTotalUnread(uid)
  return recv_getEventTotalUnread()
end

#getFeed(uid, timeline, limit, queryType) ⇒ Object



15
16
17
18
# File 'lib/i_sfeed_handler.rb', line 15

def getFeed(uid, timeline, limit, queryType)
  send_getFeed(uid, timeline, limit, queryType)
  return recv_getFeed()
end

#getSoundTotalUnread(uid) ⇒ Object



204
205
206
207
# File 'lib/i_sfeed_handler.rb', line 204

def getSoundTotalUnread(uid)
  send_getSoundTotalUnread(uid)
  return recv_getSoundTotalUnread()
end

#queryUnloginFeed(page, size) ⇒ Object



248
249
250
251
# File 'lib/i_sfeed_handler.rb', line 248

def queryUnloginFeed(page, size)
  send_queryUnloginFeed(page, size)
  return recv_queryUnloginFeed()
end

#recv_blockAlbumObject



111
112
113
114
# File 'lib/i_sfeed_handler.rb', line 111

def recv_blockAlbum()
  result = receive_message(BlockAlbum_result)
  return
end

#recv_cancelTopAlbumObject

Raises:

  • (::Thrift::ApplicationException)


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

def recv_cancelTopAlbum()
  result = receive_message(CancelTopAlbum_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'cancelTopAlbum failed: unknown result')
end

#recv_deleteEventObject



139
140
141
142
# File 'lib/i_sfeed_handler.rb', line 139

def recv_deleteEvent()
  result = receive_message(DeleteEvent_result)
  return
end

#recv_getAlbumTracksObject

Raises:

  • (::Thrift::ApplicationException)


198
199
200
201
202
# File 'lib/i_sfeed_handler.rb', line 198

def recv_getAlbumTracks()
  result = receive_message(GetAlbumTracks_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumTracks failed: unknown result')
end

#recv_getBlockAlbumsObject

Raises:

  • (::Thrift::ApplicationException)


153
154
155
156
157
# File 'lib/i_sfeed_handler.rb', line 153

def recv_getBlockAlbums()
  result = receive_message(GetBlockAlbums_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlockAlbums failed: unknown result')
end

#recv_getBlockAlbumsByPageObject

Raises:

  • (::Thrift::ApplicationException)


183
184
185
186
187
# File 'lib/i_sfeed_handler.rb', line 183

def recv_getBlockAlbumsByPage()
  result = receive_message(GetBlockAlbumsByPage_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlockAlbumsByPage failed: unknown result')
end

#recv_getBlockAlbumsWithCountObject

Raises:

  • (::Thrift::ApplicationException)


168
169
170
171
172
# File 'lib/i_sfeed_handler.rb', line 168

def recv_getBlockAlbumsWithCount()
  result = receive_message(GetBlockAlbumsWithCount_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlockAlbumsWithCount failed: unknown result')
end

#recv_getEventObject

Raises:

  • (::Thrift::ApplicationException)


39
40
41
42
43
# File 'lib/i_sfeed_handler.rb', line 39

def recv_getEvent()
  result = receive_message(GetEvent_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getEvent failed: unknown result')
end

#recv_getEventTotalUnreadObject

Raises:

  • (::Thrift::ApplicationException)


242
243
244
245
246
# File 'lib/i_sfeed_handler.rb', line 242

def recv_getEventTotalUnread()
  result = receive_message(GetEventTotalUnread_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getEventTotalUnread failed: unknown result')
end

#recv_getFeedObject

Raises:

  • (::Thrift::ApplicationException)


24
25
26
27
28
# File 'lib/i_sfeed_handler.rb', line 24

def recv_getFeed()
  result = receive_message(GetFeed_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFeed failed: unknown result')
end

#recv_getSoundTotalUnreadObject

Raises:

  • (::Thrift::ApplicationException)


213
214
215
216
217
# File 'lib/i_sfeed_handler.rb', line 213

def recv_getSoundTotalUnread()
  result = receive_message(GetSoundTotalUnread_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSoundTotalUnread failed: unknown result')
end

#recv_queryUnloginFeedObject

Raises:

  • (::Thrift::ApplicationException)


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

def recv_queryUnloginFeed()
  result = receive_message(QueryUnloginFeed_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryUnloginFeed failed: unknown result')
end

#recv_resetEventUnreadObject



68
69
70
71
# File 'lib/i_sfeed_handler.rb', line 68

def recv_resetEventUnread()
  result = receive_message(ResetEventUnread_result)
  return
end

#recv_resetSoundTotalUnreadObject



228
229
230
231
# File 'lib/i_sfeed_handler.rb', line 228

def recv_resetSoundTotalUnread()
  result = receive_message(ResetSoundTotalUnread_result)
  return
end

#recv_resetSoundUnreadObject



54
55
56
57
# File 'lib/i_sfeed_handler.rb', line 54

def recv_resetSoundUnread()
  result = receive_message(ResetSoundUnread_result)
  return
end

#recv_topAlbumObject



82
83
84
85
# File 'lib/i_sfeed_handler.rb', line 82

def recv_topAlbum()
  result = receive_message(TopAlbum_result)
  return
end

#recv_unblockAlbumObject



125
126
127
128
# File 'lib/i_sfeed_handler.rb', line 125

def recv_unblockAlbum()
  result = receive_message(UnblockAlbum_result)
  return
end

#resetEventUnread(uid) ⇒ Object



59
60
61
62
# File 'lib/i_sfeed_handler.rb', line 59

def resetEventUnread(uid)
  send_resetEventUnread(uid)
  recv_resetEventUnread()
end

#resetSoundTotalUnread(uid) ⇒ Object



219
220
221
222
# File 'lib/i_sfeed_handler.rb', line 219

def resetSoundTotalUnread(uid)
  send_resetSoundTotalUnread(uid)
  recv_resetSoundTotalUnread()
end

#resetSoundUnread(uid, albumId, albumUid) ⇒ Object



45
46
47
48
# File 'lib/i_sfeed_handler.rb', line 45

def resetSoundUnread(uid, albumId, albumUid)
  send_resetSoundUnread(uid, albumId, albumUid)
  recv_resetSoundUnread()
end

#send_blockAlbum(uid, albumUid, albumId) ⇒ Object



107
108
109
# File 'lib/i_sfeed_handler.rb', line 107

def send_blockAlbum(uid, albumUid, albumId)
  send_message('blockAlbum', BlockAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
end

#send_cancelTopAlbum(uid, albumUid, albumId) ⇒ Object



92
93
94
# File 'lib/i_sfeed_handler.rb', line 92

def send_cancelTopAlbum(uid, albumUid, albumId)
  send_message('cancelTopAlbum', CancelTopAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
end

#send_deleteEvent(uid, key) ⇒ Object



135
136
137
# File 'lib/i_sfeed_handler.rb', line 135

def send_deleteEvent(uid, key)
  send_message('deleteEvent', DeleteEvent_args, :uid => uid, :key => key)
end

#send_getAlbumTracks(uid, albumId, page, size, isAsc, order) ⇒ Object



194
195
196
# File 'lib/i_sfeed_handler.rb', line 194

def send_getAlbumTracks(uid, albumId, page, size, isAsc, order)
  send_message('getAlbumTracks', GetAlbumTracks_args, :uid => uid, :albumId => albumId, :page => page, :size => size, :isAsc => isAsc, :order => order)
end

#send_getBlockAlbums(uid, cursor, size) ⇒ Object



149
150
151
# File 'lib/i_sfeed_handler.rb', line 149

def send_getBlockAlbums(uid, cursor, size)
  send_message('getBlockAlbums', GetBlockAlbums_args, :uid => uid, :cursor => cursor, :size => size)
end

#send_getBlockAlbumsByPage(uid, page, size) ⇒ Object



179
180
181
# File 'lib/i_sfeed_handler.rb', line 179

def send_getBlockAlbumsByPage(uid, page, size)
  send_message('getBlockAlbumsByPage', GetBlockAlbumsByPage_args, :uid => uid, :page => page, :size => size)
end

#send_getBlockAlbumsWithCount(uid, cursor, size) ⇒ Object



164
165
166
# File 'lib/i_sfeed_handler.rb', line 164

def send_getBlockAlbumsWithCount(uid, cursor, size)
  send_message('getBlockAlbumsWithCount', GetBlockAlbumsWithCount_args, :uid => uid, :cursor => cursor, :size => size)
end

#send_getEvent(uid, timeline, limit, queryType) ⇒ Object



35
36
37
# File 'lib/i_sfeed_handler.rb', line 35

def send_getEvent(uid, timeline, limit, queryType)
  send_message('getEvent', GetEvent_args, :uid => uid, :timeline => timeline, :limit => limit, :queryType => queryType)
end

#send_getEventTotalUnread(uid) ⇒ Object



238
239
240
# File 'lib/i_sfeed_handler.rb', line 238

def send_getEventTotalUnread(uid)
  send_message('getEventTotalUnread', GetEventTotalUnread_args, :uid => uid)
end

#send_getFeed(uid, timeline, limit, queryType) ⇒ Object



20
21
22
# File 'lib/i_sfeed_handler.rb', line 20

def send_getFeed(uid, timeline, limit, queryType)
  send_message('getFeed', GetFeed_args, :uid => uid, :timeline => timeline, :limit => limit, :queryType => queryType)
end

#send_getSoundTotalUnread(uid) ⇒ Object



209
210
211
# File 'lib/i_sfeed_handler.rb', line 209

def send_getSoundTotalUnread(uid)
  send_message('getSoundTotalUnread', GetSoundTotalUnread_args, :uid => uid)
end

#send_queryUnloginFeed(page, size) ⇒ Object



253
254
255
# File 'lib/i_sfeed_handler.rb', line 253

def send_queryUnloginFeed(page, size)
  send_message('queryUnloginFeed', QueryUnloginFeed_args, :page => page, :size => size)
end

#send_resetEventUnread(uid) ⇒ Object



64
65
66
# File 'lib/i_sfeed_handler.rb', line 64

def send_resetEventUnread(uid)
  send_message('resetEventUnread', ResetEventUnread_args, :uid => uid)
end

#send_resetSoundTotalUnread(uid) ⇒ Object



224
225
226
# File 'lib/i_sfeed_handler.rb', line 224

def send_resetSoundTotalUnread(uid)
  send_message('resetSoundTotalUnread', ResetSoundTotalUnread_args, :uid => uid)
end

#send_resetSoundUnread(uid, albumId, albumUid) ⇒ Object



50
51
52
# File 'lib/i_sfeed_handler.rb', line 50

def send_resetSoundUnread(uid, albumId, albumUid)
  send_message('resetSoundUnread', ResetSoundUnread_args, :uid => uid, :albumId => albumId, :albumUid => albumUid)
end

#send_topAlbum(uid, albumUid, albumId) ⇒ Object



78
79
80
# File 'lib/i_sfeed_handler.rb', line 78

def send_topAlbum(uid, albumUid, albumId)
  send_message('topAlbum', TopAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
end

#send_unblockAlbum(uid, albumUid, albumId) ⇒ Object



121
122
123
# File 'lib/i_sfeed_handler.rb', line 121

def send_unblockAlbum(uid, albumUid, albumId)
  send_message('unblockAlbum', UnblockAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
end

#topAlbum(uid, albumUid, albumId) ⇒ Object



73
74
75
76
# File 'lib/i_sfeed_handler.rb', line 73

def topAlbum(uid, albumUid, albumId)
  send_topAlbum(uid, albumUid, albumId)
  recv_topAlbum()
end

#unblockAlbum(uid, albumUid, albumId) ⇒ Object



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

def unblockAlbum(uid, albumUid, albumId)
  send_unblockAlbum(uid, albumUid, albumId)
  recv_unblockAlbum()
end