sfeed 0.0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c7cb9c89d6c46a4d295d10f99c74212bd3f81440
4
+ data.tar.gz: 6577f150a61514d690a0e2e22dc7d7a31818b767
5
+ SHA512:
6
+ metadata.gz: 4a4c54f4992edfd79ff0d564c036c71497441287f98f6408b6bd94a255692b58e288eed5576691f87fee0c44de4e46d5450cef57b17190fc4ae23762d5666319
7
+ data.tar.gz: dd79c67900c9fb110f42b651981a5b589b7b959234d42c4866c748ffde8a9f8c56863c8aee53401e97da58d57e79fa466f561cc580fd70bb80d4ac2f18373a12
@@ -0,0 +1,138 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'sfeed_types'
9
+
10
+ module Sfeed
11
+ module IBlockHandler
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def checkBlock(albumId, albumUid, uids)
16
+ send_checkBlock(albumId, albumUid, uids)
17
+ return recv_checkBlock()
18
+ end
19
+
20
+ def send_checkBlock(albumId, albumUid, uids)
21
+ send_message('checkBlock', CheckBlock_args, :albumId => albumId, :albumUid => albumUid, :uids => uids)
22
+ end
23
+
24
+ def recv_checkBlock()
25
+ result = receive_message(CheckBlock_result)
26
+ return result.success unless result.success.nil?
27
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'checkBlock failed: unknown result')
28
+ end
29
+
30
+ def invalidCache(albumId, albumUid)
31
+ send_invalidCache(albumId, albumUid)
32
+ recv_invalidCache()
33
+ end
34
+
35
+ def send_invalidCache(albumId, albumUid)
36
+ send_message('invalidCache', InvalidCache_args, :albumId => albumId, :albumUid => albumUid)
37
+ end
38
+
39
+ def recv_invalidCache()
40
+ result = receive_message(InvalidCache_result)
41
+ return
42
+ end
43
+
44
+ end
45
+
46
+ class Processor
47
+ include ::Thrift::Processor
48
+
49
+ def process_checkBlock(seqid, iprot, oprot)
50
+ args = read_args(iprot, CheckBlock_args)
51
+ result = CheckBlock_result.new()
52
+ result.success = @handler.checkBlock(args.albumId, args.albumUid, args.uids)
53
+ write_result(result, oprot, 'checkBlock', seqid)
54
+ end
55
+
56
+ def process_invalidCache(seqid, iprot, oprot)
57
+ args = read_args(iprot, InvalidCache_args)
58
+ result = InvalidCache_result.new()
59
+ @handler.invalidCache(args.albumId, args.albumUid)
60
+ write_result(result, oprot, 'invalidCache', seqid)
61
+ end
62
+
63
+ end
64
+
65
+ # HELPER FUNCTIONS AND STRUCTURES
66
+
67
+ class CheckBlock_args
68
+ include ::Thrift::Struct, ::Thrift::Struct_Union
69
+ ALBUMID = 1
70
+ ALBUMUID = 2
71
+ UIDS = 3
72
+
73
+ FIELDS = {
74
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
75
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'},
76
+ UIDS => {:type => ::Thrift::Types::LIST, :name => 'uids', :element => {:type => ::Thrift::Types::I64}}
77
+ }
78
+
79
+ def struct_fields; FIELDS; end
80
+
81
+ def validate
82
+ end
83
+
84
+ ::Thrift::Struct.generate_accessors self
85
+ end
86
+
87
+ class CheckBlock_result
88
+ include ::Thrift::Struct, ::Thrift::Struct_Union
89
+ SUCCESS = 0
90
+
91
+ FIELDS = {
92
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::BOOL}}
93
+ }
94
+
95
+ def struct_fields; FIELDS; end
96
+
97
+ def validate
98
+ end
99
+
100
+ ::Thrift::Struct.generate_accessors self
101
+ end
102
+
103
+ class InvalidCache_args
104
+ include ::Thrift::Struct, ::Thrift::Struct_Union
105
+ ALBUMID = 1
106
+ ALBUMUID = 2
107
+
108
+ FIELDS = {
109
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
110
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'}
111
+ }
112
+
113
+ def struct_fields; FIELDS; end
114
+
115
+ def validate
116
+ end
117
+
118
+ ::Thrift::Struct.generate_accessors self
119
+ end
120
+
121
+ class InvalidCache_result
122
+ include ::Thrift::Struct, ::Thrift::Struct_Union
123
+
124
+ FIELDS = {
125
+
126
+ }
127
+
128
+ def struct_fields; FIELDS; end
129
+
130
+ def validate
131
+ end
132
+
133
+ ::Thrift::Struct.generate_accessors self
134
+ end
135
+
136
+ end
137
+
138
+ end
@@ -0,0 +1,994 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'sfeed_types'
9
+
10
+ module Sfeed
11
+ module ISfeedHandler
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def getFeed(uid, timeline, limit, queryType)
16
+ send_getFeed(uid, timeline, limit, queryType)
17
+ return recv_getFeed()
18
+ end
19
+
20
+ def send_getFeed(uid, timeline, limit, queryType)
21
+ send_message('getFeed', GetFeed_args, :uid => uid, :timeline => timeline, :limit => limit, :queryType => queryType)
22
+ end
23
+
24
+ def recv_getFeed()
25
+ result = receive_message(GetFeed_result)
26
+ return result.success unless result.success.nil?
27
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFeed failed: unknown result')
28
+ end
29
+
30
+ def getEvent(uid, timeline, limit, queryType)
31
+ send_getEvent(uid, timeline, limit, queryType)
32
+ return recv_getEvent()
33
+ end
34
+
35
+ def send_getEvent(uid, timeline, limit, queryType)
36
+ send_message('getEvent', GetEvent_args, :uid => uid, :timeline => timeline, :limit => limit, :queryType => queryType)
37
+ end
38
+
39
+ def recv_getEvent()
40
+ result = receive_message(GetEvent_result)
41
+ return result.success unless result.success.nil?
42
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getEvent failed: unknown result')
43
+ end
44
+
45
+ def resetSoundUnread(uid, albumId, albumUid)
46
+ send_resetSoundUnread(uid, albumId, albumUid)
47
+ recv_resetSoundUnread()
48
+ end
49
+
50
+ def send_resetSoundUnread(uid, albumId, albumUid)
51
+ send_message('resetSoundUnread', ResetSoundUnread_args, :uid => uid, :albumId => albumId, :albumUid => albumUid)
52
+ end
53
+
54
+ def recv_resetSoundUnread()
55
+ result = receive_message(ResetSoundUnread_result)
56
+ return
57
+ end
58
+
59
+ def resetEventUnread(uid)
60
+ send_resetEventUnread(uid)
61
+ recv_resetEventUnread()
62
+ end
63
+
64
+ def send_resetEventUnread(uid)
65
+ send_message('resetEventUnread', ResetEventUnread_args, :uid => uid)
66
+ end
67
+
68
+ def recv_resetEventUnread()
69
+ result = receive_message(ResetEventUnread_result)
70
+ return
71
+ end
72
+
73
+ def topAlbum(uid, albumUid, albumId)
74
+ send_topAlbum(uid, albumUid, albumId)
75
+ recv_topAlbum()
76
+ end
77
+
78
+ def send_topAlbum(uid, albumUid, albumId)
79
+ send_message('topAlbum', TopAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
80
+ end
81
+
82
+ def recv_topAlbum()
83
+ result = receive_message(TopAlbum_result)
84
+ return
85
+ end
86
+
87
+ def cancelTopAlbum(uid, albumUid, albumId)
88
+ send_cancelTopAlbum(uid, albumUid, albumId)
89
+ return recv_cancelTopAlbum()
90
+ end
91
+
92
+ def send_cancelTopAlbum(uid, albumUid, albumId)
93
+ send_message('cancelTopAlbum', CancelTopAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
94
+ end
95
+
96
+ def recv_cancelTopAlbum()
97
+ result = receive_message(CancelTopAlbum_result)
98
+ return result.success unless result.success.nil?
99
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'cancelTopAlbum failed: unknown result')
100
+ end
101
+
102
+ def blockAlbum(uid, albumUid, albumId)
103
+ send_blockAlbum(uid, albumUid, albumId)
104
+ recv_blockAlbum()
105
+ end
106
+
107
+ def send_blockAlbum(uid, albumUid, albumId)
108
+ send_message('blockAlbum', BlockAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
109
+ end
110
+
111
+ def recv_blockAlbum()
112
+ result = receive_message(BlockAlbum_result)
113
+ return
114
+ end
115
+
116
+ def unblockAlbum(uid, albumUid, albumId)
117
+ send_unblockAlbum(uid, albumUid, albumId)
118
+ recv_unblockAlbum()
119
+ end
120
+
121
+ def send_unblockAlbum(uid, albumUid, albumId)
122
+ send_message('unblockAlbum', UnblockAlbum_args, :uid => uid, :albumUid => albumUid, :albumId => albumId)
123
+ end
124
+
125
+ def recv_unblockAlbum()
126
+ result = receive_message(UnblockAlbum_result)
127
+ return
128
+ end
129
+
130
+ def deleteEvent(uid, key)
131
+ send_deleteEvent(uid, key)
132
+ recv_deleteEvent()
133
+ end
134
+
135
+ def send_deleteEvent(uid, key)
136
+ send_message('deleteEvent', DeleteEvent_args, :uid => uid, :key => key)
137
+ end
138
+
139
+ def recv_deleteEvent()
140
+ result = receive_message(DeleteEvent_result)
141
+ return
142
+ end
143
+
144
+ def getBlockAlbums(uid, cursor, size)
145
+ send_getBlockAlbums(uid, cursor, size)
146
+ return recv_getBlockAlbums()
147
+ end
148
+
149
+ def send_getBlockAlbums(uid, cursor, size)
150
+ send_message('getBlockAlbums', GetBlockAlbums_args, :uid => uid, :cursor => cursor, :size => size)
151
+ end
152
+
153
+ def recv_getBlockAlbums()
154
+ result = receive_message(GetBlockAlbums_result)
155
+ return result.success unless result.success.nil?
156
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlockAlbums failed: unknown result')
157
+ end
158
+
159
+ def getBlockAlbumsWithCount(uid, cursor, size)
160
+ send_getBlockAlbumsWithCount(uid, cursor, size)
161
+ return recv_getBlockAlbumsWithCount()
162
+ end
163
+
164
+ def send_getBlockAlbumsWithCount(uid, cursor, size)
165
+ send_message('getBlockAlbumsWithCount', GetBlockAlbumsWithCount_args, :uid => uid, :cursor => cursor, :size => size)
166
+ end
167
+
168
+ def recv_getBlockAlbumsWithCount()
169
+ result = receive_message(GetBlockAlbumsWithCount_result)
170
+ return result.success unless result.success.nil?
171
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlockAlbumsWithCount failed: unknown result')
172
+ end
173
+
174
+ def getBlockAlbumsByPage(uid, page, size)
175
+ send_getBlockAlbumsByPage(uid, page, size)
176
+ return recv_getBlockAlbumsByPage()
177
+ end
178
+
179
+ def send_getBlockAlbumsByPage(uid, page, size)
180
+ send_message('getBlockAlbumsByPage', GetBlockAlbumsByPage_args, :uid => uid, :page => page, :size => size)
181
+ end
182
+
183
+ def recv_getBlockAlbumsByPage()
184
+ result = receive_message(GetBlockAlbumsByPage_result)
185
+ return result.success unless result.success.nil?
186
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBlockAlbumsByPage failed: unknown result')
187
+ end
188
+
189
+ def getAlbumTracks(uid, albumId, page, size, isAsc, order)
190
+ send_getAlbumTracks(uid, albumId, page, size, isAsc, order)
191
+ return recv_getAlbumTracks()
192
+ end
193
+
194
+ def send_getAlbumTracks(uid, albumId, page, size, isAsc, order)
195
+ send_message('getAlbumTracks', GetAlbumTracks_args, :uid => uid, :albumId => albumId, :page => page, :size => size, :isAsc => isAsc, :order => order)
196
+ end
197
+
198
+ def recv_getAlbumTracks()
199
+ result = receive_message(GetAlbumTracks_result)
200
+ return result.success unless result.success.nil?
201
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumTracks failed: unknown result')
202
+ end
203
+
204
+ def getSoundTotalUnread(uid)
205
+ send_getSoundTotalUnread(uid)
206
+ return recv_getSoundTotalUnread()
207
+ end
208
+
209
+ def send_getSoundTotalUnread(uid)
210
+ send_message('getSoundTotalUnread', GetSoundTotalUnread_args, :uid => uid)
211
+ end
212
+
213
+ def recv_getSoundTotalUnread()
214
+ result = receive_message(GetSoundTotalUnread_result)
215
+ return result.success unless result.success.nil?
216
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getSoundTotalUnread failed: unknown result')
217
+ end
218
+
219
+ def resetSoundTotalUnread(uid)
220
+ send_resetSoundTotalUnread(uid)
221
+ recv_resetSoundTotalUnread()
222
+ end
223
+
224
+ def send_resetSoundTotalUnread(uid)
225
+ send_message('resetSoundTotalUnread', ResetSoundTotalUnread_args, :uid => uid)
226
+ end
227
+
228
+ def recv_resetSoundTotalUnread()
229
+ result = receive_message(ResetSoundTotalUnread_result)
230
+ return
231
+ end
232
+
233
+ def getEventTotalUnread(uid)
234
+ send_getEventTotalUnread(uid)
235
+ return recv_getEventTotalUnread()
236
+ end
237
+
238
+ def send_getEventTotalUnread(uid)
239
+ send_message('getEventTotalUnread', GetEventTotalUnread_args, :uid => uid)
240
+ end
241
+
242
+ def recv_getEventTotalUnread()
243
+ result = receive_message(GetEventTotalUnread_result)
244
+ return result.success unless result.success.nil?
245
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getEventTotalUnread failed: unknown result')
246
+ end
247
+
248
+ def queryUnloginFeed(page, size)
249
+ send_queryUnloginFeed(page, size)
250
+ return recv_queryUnloginFeed()
251
+ end
252
+
253
+ def send_queryUnloginFeed(page, size)
254
+ send_message('queryUnloginFeed', QueryUnloginFeed_args, :page => page, :size => size)
255
+ end
256
+
257
+ def recv_queryUnloginFeed()
258
+ result = receive_message(QueryUnloginFeed_result)
259
+ return result.success unless result.success.nil?
260
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryUnloginFeed failed: unknown result')
261
+ end
262
+
263
+ end
264
+
265
+ class Processor
266
+ include ::Thrift::Processor
267
+
268
+ def process_getFeed(seqid, iprot, oprot)
269
+ args = read_args(iprot, GetFeed_args)
270
+ result = GetFeed_result.new()
271
+ result.success = @handler.getFeed(args.uid, args.timeline, args.limit, args.queryType)
272
+ write_result(result, oprot, 'getFeed', seqid)
273
+ end
274
+
275
+ def process_getEvent(seqid, iprot, oprot)
276
+ args = read_args(iprot, GetEvent_args)
277
+ result = GetEvent_result.new()
278
+ result.success = @handler.getEvent(args.uid, args.timeline, args.limit, args.queryType)
279
+ write_result(result, oprot, 'getEvent', seqid)
280
+ end
281
+
282
+ def process_resetSoundUnread(seqid, iprot, oprot)
283
+ args = read_args(iprot, ResetSoundUnread_args)
284
+ result = ResetSoundUnread_result.new()
285
+ @handler.resetSoundUnread(args.uid, args.albumId, args.albumUid)
286
+ write_result(result, oprot, 'resetSoundUnread', seqid)
287
+ end
288
+
289
+ def process_resetEventUnread(seqid, iprot, oprot)
290
+ args = read_args(iprot, ResetEventUnread_args)
291
+ result = ResetEventUnread_result.new()
292
+ @handler.resetEventUnread(args.uid)
293
+ write_result(result, oprot, 'resetEventUnread', seqid)
294
+ end
295
+
296
+ def process_topAlbum(seqid, iprot, oprot)
297
+ args = read_args(iprot, TopAlbum_args)
298
+ result = TopAlbum_result.new()
299
+ @handler.topAlbum(args.uid, args.albumUid, args.albumId)
300
+ write_result(result, oprot, 'topAlbum', seqid)
301
+ end
302
+
303
+ def process_cancelTopAlbum(seqid, iprot, oprot)
304
+ args = read_args(iprot, CancelTopAlbum_args)
305
+ result = CancelTopAlbum_result.new()
306
+ result.success = @handler.cancelTopAlbum(args.uid, args.albumUid, args.albumId)
307
+ write_result(result, oprot, 'cancelTopAlbum', seqid)
308
+ end
309
+
310
+ def process_blockAlbum(seqid, iprot, oprot)
311
+ args = read_args(iprot, BlockAlbum_args)
312
+ result = BlockAlbum_result.new()
313
+ @handler.blockAlbum(args.uid, args.albumUid, args.albumId)
314
+ write_result(result, oprot, 'blockAlbum', seqid)
315
+ end
316
+
317
+ def process_unblockAlbum(seqid, iprot, oprot)
318
+ args = read_args(iprot, UnblockAlbum_args)
319
+ result = UnblockAlbum_result.new()
320
+ @handler.unblockAlbum(args.uid, args.albumUid, args.albumId)
321
+ write_result(result, oprot, 'unblockAlbum', seqid)
322
+ end
323
+
324
+ def process_deleteEvent(seqid, iprot, oprot)
325
+ args = read_args(iprot, DeleteEvent_args)
326
+ result = DeleteEvent_result.new()
327
+ @handler.deleteEvent(args.uid, args.key)
328
+ write_result(result, oprot, 'deleteEvent', seqid)
329
+ end
330
+
331
+ def process_getBlockAlbums(seqid, iprot, oprot)
332
+ args = read_args(iprot, GetBlockAlbums_args)
333
+ result = GetBlockAlbums_result.new()
334
+ result.success = @handler.getBlockAlbums(args.uid, args.cursor, args.size)
335
+ write_result(result, oprot, 'getBlockAlbums', seqid)
336
+ end
337
+
338
+ def process_getBlockAlbumsWithCount(seqid, iprot, oprot)
339
+ args = read_args(iprot, GetBlockAlbumsWithCount_args)
340
+ result = GetBlockAlbumsWithCount_result.new()
341
+ result.success = @handler.getBlockAlbumsWithCount(args.uid, args.cursor, args.size)
342
+ write_result(result, oprot, 'getBlockAlbumsWithCount', seqid)
343
+ end
344
+
345
+ def process_getBlockAlbumsByPage(seqid, iprot, oprot)
346
+ args = read_args(iprot, GetBlockAlbumsByPage_args)
347
+ result = GetBlockAlbumsByPage_result.new()
348
+ result.success = @handler.getBlockAlbumsByPage(args.uid, args.page, args.size)
349
+ write_result(result, oprot, 'getBlockAlbumsByPage', seqid)
350
+ end
351
+
352
+ def process_getAlbumTracks(seqid, iprot, oprot)
353
+ args = read_args(iprot, GetAlbumTracks_args)
354
+ result = GetAlbumTracks_result.new()
355
+ result.success = @handler.getAlbumTracks(args.uid, args.albumId, args.page, args.size, args.isAsc, args.order)
356
+ write_result(result, oprot, 'getAlbumTracks', seqid)
357
+ end
358
+
359
+ def process_getSoundTotalUnread(seqid, iprot, oprot)
360
+ args = read_args(iprot, GetSoundTotalUnread_args)
361
+ result = GetSoundTotalUnread_result.new()
362
+ result.success = @handler.getSoundTotalUnread(args.uid)
363
+ write_result(result, oprot, 'getSoundTotalUnread', seqid)
364
+ end
365
+
366
+ def process_resetSoundTotalUnread(seqid, iprot, oprot)
367
+ args = read_args(iprot, ResetSoundTotalUnread_args)
368
+ result = ResetSoundTotalUnread_result.new()
369
+ @handler.resetSoundTotalUnread(args.uid)
370
+ write_result(result, oprot, 'resetSoundTotalUnread', seqid)
371
+ end
372
+
373
+ def process_getEventTotalUnread(seqid, iprot, oprot)
374
+ args = read_args(iprot, GetEventTotalUnread_args)
375
+ result = GetEventTotalUnread_result.new()
376
+ result.success = @handler.getEventTotalUnread(args.uid)
377
+ write_result(result, oprot, 'getEventTotalUnread', seqid)
378
+ end
379
+
380
+ def process_queryUnloginFeed(seqid, iprot, oprot)
381
+ args = read_args(iprot, QueryUnloginFeed_args)
382
+ result = QueryUnloginFeed_result.new()
383
+ result.success = @handler.queryUnloginFeed(args.page, args.size)
384
+ write_result(result, oprot, 'queryUnloginFeed', seqid)
385
+ end
386
+
387
+ end
388
+
389
+ # HELPER FUNCTIONS AND STRUCTURES
390
+
391
+ class GetFeed_args
392
+ include ::Thrift::Struct, ::Thrift::Struct_Union
393
+ UID = 1
394
+ TIMELINE = 2
395
+ LIMIT = 3
396
+ QUERYTYPE = 4
397
+
398
+ FIELDS = {
399
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
400
+ TIMELINE => {:type => ::Thrift::Types::DOUBLE, :name => 'timeline'},
401
+ LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
402
+ QUERYTYPE => {:type => ::Thrift::Types::I32, :name => 'queryType', :enum_class => ::Sfeed::QueryType}
403
+ }
404
+
405
+ def struct_fields; FIELDS; end
406
+
407
+ def validate
408
+ unless @queryType.nil? || ::Sfeed::QueryType::VALID_VALUES.include?(@queryType)
409
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field queryType!')
410
+ end
411
+ end
412
+
413
+ ::Thrift::Struct.generate_accessors self
414
+ end
415
+
416
+ class GetFeed_result
417
+ include ::Thrift::Struct, ::Thrift::Struct_Union
418
+ SUCCESS = 0
419
+
420
+ FIELDS = {
421
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Sfeed::FeedResult}
422
+ }
423
+
424
+ def struct_fields; FIELDS; end
425
+
426
+ def validate
427
+ end
428
+
429
+ ::Thrift::Struct.generate_accessors self
430
+ end
431
+
432
+ class GetEvent_args
433
+ include ::Thrift::Struct, ::Thrift::Struct_Union
434
+ UID = 1
435
+ TIMELINE = 2
436
+ LIMIT = 3
437
+ QUERYTYPE = 4
438
+
439
+ FIELDS = {
440
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
441
+ TIMELINE => {:type => ::Thrift::Types::DOUBLE, :name => 'timeline'},
442
+ LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
443
+ QUERYTYPE => {:type => ::Thrift::Types::I32, :name => 'queryType', :enum_class => ::Sfeed::QueryType}
444
+ }
445
+
446
+ def struct_fields; FIELDS; end
447
+
448
+ def validate
449
+ unless @queryType.nil? || ::Sfeed::QueryType::VALID_VALUES.include?(@queryType)
450
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field queryType!')
451
+ end
452
+ end
453
+
454
+ ::Thrift::Struct.generate_accessors self
455
+ end
456
+
457
+ class GetEvent_result
458
+ include ::Thrift::Struct, ::Thrift::Struct_Union
459
+ SUCCESS = 0
460
+
461
+ FIELDS = {
462
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Sfeed::EventResult}
463
+ }
464
+
465
+ def struct_fields; FIELDS; end
466
+
467
+ def validate
468
+ end
469
+
470
+ ::Thrift::Struct.generate_accessors self
471
+ end
472
+
473
+ class ResetSoundUnread_args
474
+ include ::Thrift::Struct, ::Thrift::Struct_Union
475
+ UID = 1
476
+ ALBUMID = 2
477
+ ALBUMUID = 3
478
+
479
+ FIELDS = {
480
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
481
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
482
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'}
483
+ }
484
+
485
+ def struct_fields; FIELDS; end
486
+
487
+ def validate
488
+ end
489
+
490
+ ::Thrift::Struct.generate_accessors self
491
+ end
492
+
493
+ class ResetSoundUnread_result
494
+ include ::Thrift::Struct, ::Thrift::Struct_Union
495
+
496
+ FIELDS = {
497
+
498
+ }
499
+
500
+ def struct_fields; FIELDS; end
501
+
502
+ def validate
503
+ end
504
+
505
+ ::Thrift::Struct.generate_accessors self
506
+ end
507
+
508
+ class ResetEventUnread_args
509
+ include ::Thrift::Struct, ::Thrift::Struct_Union
510
+ UID = 1
511
+
512
+ FIELDS = {
513
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
514
+ }
515
+
516
+ def struct_fields; FIELDS; end
517
+
518
+ def validate
519
+ end
520
+
521
+ ::Thrift::Struct.generate_accessors self
522
+ end
523
+
524
+ class ResetEventUnread_result
525
+ include ::Thrift::Struct, ::Thrift::Struct_Union
526
+
527
+ FIELDS = {
528
+
529
+ }
530
+
531
+ def struct_fields; FIELDS; end
532
+
533
+ def validate
534
+ end
535
+
536
+ ::Thrift::Struct.generate_accessors self
537
+ end
538
+
539
+ class TopAlbum_args
540
+ include ::Thrift::Struct, ::Thrift::Struct_Union
541
+ UID = 1
542
+ ALBUMUID = 2
543
+ ALBUMID = 3
544
+
545
+ FIELDS = {
546
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
547
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'},
548
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'}
549
+ }
550
+
551
+ def struct_fields; FIELDS; end
552
+
553
+ def validate
554
+ end
555
+
556
+ ::Thrift::Struct.generate_accessors self
557
+ end
558
+
559
+ class TopAlbum_result
560
+ include ::Thrift::Struct, ::Thrift::Struct_Union
561
+
562
+ FIELDS = {
563
+
564
+ }
565
+
566
+ def struct_fields; FIELDS; end
567
+
568
+ def validate
569
+ end
570
+
571
+ ::Thrift::Struct.generate_accessors self
572
+ end
573
+
574
+ class CancelTopAlbum_args
575
+ include ::Thrift::Struct, ::Thrift::Struct_Union
576
+ UID = 1
577
+ ALBUMUID = 2
578
+ ALBUMID = 3
579
+
580
+ FIELDS = {
581
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
582
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'},
583
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'}
584
+ }
585
+
586
+ def struct_fields; FIELDS; end
587
+
588
+ def validate
589
+ end
590
+
591
+ ::Thrift::Struct.generate_accessors self
592
+ end
593
+
594
+ class CancelTopAlbum_result
595
+ include ::Thrift::Struct, ::Thrift::Struct_Union
596
+ SUCCESS = 0
597
+
598
+ FIELDS = {
599
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Sfeed::RankInfo}
600
+ }
601
+
602
+ def struct_fields; FIELDS; end
603
+
604
+ def validate
605
+ end
606
+
607
+ ::Thrift::Struct.generate_accessors self
608
+ end
609
+
610
+ class BlockAlbum_args
611
+ include ::Thrift::Struct, ::Thrift::Struct_Union
612
+ UID = 1
613
+ ALBUMUID = 2
614
+ ALBUMID = 3
615
+
616
+ FIELDS = {
617
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
618
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'},
619
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'}
620
+ }
621
+
622
+ def struct_fields; FIELDS; end
623
+
624
+ def validate
625
+ end
626
+
627
+ ::Thrift::Struct.generate_accessors self
628
+ end
629
+
630
+ class BlockAlbum_result
631
+ include ::Thrift::Struct, ::Thrift::Struct_Union
632
+
633
+ FIELDS = {
634
+
635
+ }
636
+
637
+ def struct_fields; FIELDS; end
638
+
639
+ def validate
640
+ end
641
+
642
+ ::Thrift::Struct.generate_accessors self
643
+ end
644
+
645
+ class UnblockAlbum_args
646
+ include ::Thrift::Struct, ::Thrift::Struct_Union
647
+ UID = 1
648
+ ALBUMUID = 2
649
+ ALBUMID = 3
650
+
651
+ FIELDS = {
652
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
653
+ ALBUMUID => {:type => ::Thrift::Types::I64, :name => 'albumUid'},
654
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'}
655
+ }
656
+
657
+ def struct_fields; FIELDS; end
658
+
659
+ def validate
660
+ end
661
+
662
+ ::Thrift::Struct.generate_accessors self
663
+ end
664
+
665
+ class UnblockAlbum_result
666
+ include ::Thrift::Struct, ::Thrift::Struct_Union
667
+
668
+ FIELDS = {
669
+
670
+ }
671
+
672
+ def struct_fields; FIELDS; end
673
+
674
+ def validate
675
+ end
676
+
677
+ ::Thrift::Struct.generate_accessors self
678
+ end
679
+
680
+ class DeleteEvent_args
681
+ include ::Thrift::Struct, ::Thrift::Struct_Union
682
+ UID = 1
683
+ KEY = 2
684
+
685
+ FIELDS = {
686
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
687
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
688
+ }
689
+
690
+ def struct_fields; FIELDS; end
691
+
692
+ def validate
693
+ end
694
+
695
+ ::Thrift::Struct.generate_accessors self
696
+ end
697
+
698
+ class DeleteEvent_result
699
+ include ::Thrift::Struct, ::Thrift::Struct_Union
700
+
701
+ FIELDS = {
702
+
703
+ }
704
+
705
+ def struct_fields; FIELDS; end
706
+
707
+ def validate
708
+ end
709
+
710
+ ::Thrift::Struct.generate_accessors self
711
+ end
712
+
713
+ class GetBlockAlbums_args
714
+ include ::Thrift::Struct, ::Thrift::Struct_Union
715
+ UID = 1
716
+ CURSOR = 2
717
+ SIZE = 3
718
+
719
+ FIELDS = {
720
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
721
+ CURSOR => {:type => ::Thrift::Types::I64, :name => 'cursor'},
722
+ SIZE => {:type => ::Thrift::Types::I32, :name => 'size'}
723
+ }
724
+
725
+ def struct_fields; FIELDS; end
726
+
727
+ def validate
728
+ end
729
+
730
+ ::Thrift::Struct.generate_accessors self
731
+ end
732
+
733
+ class GetBlockAlbums_result
734
+ include ::Thrift::Struct, ::Thrift::Struct_Union
735
+ SUCCESS = 0
736
+
737
+ FIELDS = {
738
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Sfeed::BlockAlbum}}
739
+ }
740
+
741
+ def struct_fields; FIELDS; end
742
+
743
+ def validate
744
+ end
745
+
746
+ ::Thrift::Struct.generate_accessors self
747
+ end
748
+
749
+ class GetBlockAlbumsWithCount_args
750
+ include ::Thrift::Struct, ::Thrift::Struct_Union
751
+ UID = 1
752
+ CURSOR = 2
753
+ SIZE = 3
754
+
755
+ FIELDS = {
756
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
757
+ CURSOR => {:type => ::Thrift::Types::I64, :name => 'cursor'},
758
+ SIZE => {:type => ::Thrift::Types::I32, :name => 'size'}
759
+ }
760
+
761
+ def struct_fields; FIELDS; end
762
+
763
+ def validate
764
+ end
765
+
766
+ ::Thrift::Struct.generate_accessors self
767
+ end
768
+
769
+ class GetBlockAlbumsWithCount_result
770
+ include ::Thrift::Struct, ::Thrift::Struct_Union
771
+ SUCCESS = 0
772
+
773
+ FIELDS = {
774
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Sfeed::BlockAlbumResult}
775
+ }
776
+
777
+ def struct_fields; FIELDS; end
778
+
779
+ def validate
780
+ end
781
+
782
+ ::Thrift::Struct.generate_accessors self
783
+ end
784
+
785
+ class GetBlockAlbumsByPage_args
786
+ include ::Thrift::Struct, ::Thrift::Struct_Union
787
+ UID = 1
788
+ PAGE = 2
789
+ SIZE = 3
790
+
791
+ FIELDS = {
792
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
793
+ PAGE => {:type => ::Thrift::Types::I32, :name => 'page'},
794
+ SIZE => {:type => ::Thrift::Types::I32, :name => 'size'}
795
+ }
796
+
797
+ def struct_fields; FIELDS; end
798
+
799
+ def validate
800
+ end
801
+
802
+ ::Thrift::Struct.generate_accessors self
803
+ end
804
+
805
+ class GetBlockAlbumsByPage_result
806
+ include ::Thrift::Struct, ::Thrift::Struct_Union
807
+ SUCCESS = 0
808
+
809
+ FIELDS = {
810
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Sfeed::BlockAlbumResult}
811
+ }
812
+
813
+ def struct_fields; FIELDS; end
814
+
815
+ def validate
816
+ end
817
+
818
+ ::Thrift::Struct.generate_accessors self
819
+ end
820
+
821
+ class GetAlbumTracks_args
822
+ include ::Thrift::Struct, ::Thrift::Struct_Union
823
+ UID = 1
824
+ ALBUMID = 2
825
+ PAGE = 3
826
+ SIZE = 4
827
+ ISASC = 5
828
+ ORDER = 6
829
+
830
+ FIELDS = {
831
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
832
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId'},
833
+ PAGE => {:type => ::Thrift::Types::I32, :name => 'page'},
834
+ SIZE => {:type => ::Thrift::Types::I32, :name => 'size'},
835
+ ISASC => {:type => ::Thrift::Types::BOOL, :name => 'isAsc'},
836
+ ORDER => {:type => ::Thrift::Types::BOOL, :name => 'order'}
837
+ }
838
+
839
+ def struct_fields; FIELDS; end
840
+
841
+ def validate
842
+ end
843
+
844
+ ::Thrift::Struct.generate_accessors self
845
+ end
846
+
847
+ class GetAlbumTracks_result
848
+ include ::Thrift::Struct, ::Thrift::Struct_Union
849
+ SUCCESS = 0
850
+
851
+ FIELDS = {
852
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Sfeed::TrackInfo}}
853
+ }
854
+
855
+ def struct_fields; FIELDS; end
856
+
857
+ def validate
858
+ end
859
+
860
+ ::Thrift::Struct.generate_accessors self
861
+ end
862
+
863
+ class GetSoundTotalUnread_args
864
+ include ::Thrift::Struct, ::Thrift::Struct_Union
865
+ UID = 1
866
+
867
+ FIELDS = {
868
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
869
+ }
870
+
871
+ def struct_fields; FIELDS; end
872
+
873
+ def validate
874
+ end
875
+
876
+ ::Thrift::Struct.generate_accessors self
877
+ end
878
+
879
+ class GetSoundTotalUnread_result
880
+ include ::Thrift::Struct, ::Thrift::Struct_Union
881
+ SUCCESS = 0
882
+
883
+ FIELDS = {
884
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}
885
+ }
886
+
887
+ def struct_fields; FIELDS; end
888
+
889
+ def validate
890
+ end
891
+
892
+ ::Thrift::Struct.generate_accessors self
893
+ end
894
+
895
+ class ResetSoundTotalUnread_args
896
+ include ::Thrift::Struct, ::Thrift::Struct_Union
897
+ UID = 1
898
+
899
+ FIELDS = {
900
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
901
+ }
902
+
903
+ def struct_fields; FIELDS; end
904
+
905
+ def validate
906
+ end
907
+
908
+ ::Thrift::Struct.generate_accessors self
909
+ end
910
+
911
+ class ResetSoundTotalUnread_result
912
+ include ::Thrift::Struct, ::Thrift::Struct_Union
913
+
914
+ FIELDS = {
915
+
916
+ }
917
+
918
+ def struct_fields; FIELDS; end
919
+
920
+ def validate
921
+ end
922
+
923
+ ::Thrift::Struct.generate_accessors self
924
+ end
925
+
926
+ class GetEventTotalUnread_args
927
+ include ::Thrift::Struct, ::Thrift::Struct_Union
928
+ UID = 1
929
+
930
+ FIELDS = {
931
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
932
+ }
933
+
934
+ def struct_fields; FIELDS; end
935
+
936
+ def validate
937
+ end
938
+
939
+ ::Thrift::Struct.generate_accessors self
940
+ end
941
+
942
+ class GetEventTotalUnread_result
943
+ include ::Thrift::Struct, ::Thrift::Struct_Union
944
+ SUCCESS = 0
945
+
946
+ FIELDS = {
947
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}
948
+ }
949
+
950
+ def struct_fields; FIELDS; end
951
+
952
+ def validate
953
+ end
954
+
955
+ ::Thrift::Struct.generate_accessors self
956
+ end
957
+
958
+ class QueryUnloginFeed_args
959
+ include ::Thrift::Struct, ::Thrift::Struct_Union
960
+ PAGE = 1
961
+ SIZE = 2
962
+
963
+ FIELDS = {
964
+ PAGE => {:type => ::Thrift::Types::I32, :name => 'page'},
965
+ SIZE => {:type => ::Thrift::Types::I32, :name => 'size'}
966
+ }
967
+
968
+ def struct_fields; FIELDS; end
969
+
970
+ def validate
971
+ end
972
+
973
+ ::Thrift::Struct.generate_accessors self
974
+ end
975
+
976
+ class QueryUnloginFeed_result
977
+ include ::Thrift::Struct, ::Thrift::Struct_Union
978
+ SUCCESS = 0
979
+
980
+ FIELDS = {
981
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Sfeed::RecommendInfo}}
982
+ }
983
+
984
+ def struct_fields; FIELDS; end
985
+
986
+ def validate
987
+ end
988
+
989
+ ::Thrift::Struct.generate_accessors self
990
+ end
991
+
992
+ end
993
+
994
+ end