feed 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/feed.rb +10 -0
- data/lib/feed_constants.rb +11 -0
- data/lib/feed_thrift_service.rb +666 -0
- data/lib/feed_types.rb +12 -0
- data/lib/feedmodel_constants.rb +11 -0
- data/lib/feedmodel_types.rb +312 -0
- data/lib/version.rb +3 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: da95520df22cdd08e93498479980c07ce2b7bf34
|
4
|
+
data.tar.gz: eda0e2f14200dcaacad1a171443876a4d9020933
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5f47d63561d170d54ef65cf52e0e0c2f6c87d2f1a6a5483364dad69f5d6c724f828bcb8a1aafb2c4af9e7c43882cef3004712f7c0dd85c831e3c8725858956c4
|
7
|
+
data.tar.gz: 78f143b46664ded4f0402abbb9874fe209297a16c8e1fbbf20ec46c5e22cbada44aee52a2a90d4b85e5ab78fab97cfe37e6bd82fddebf2440d5674efbf998496
|
data/lib/feed.rb
ADDED
@@ -0,0 +1,666 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'feed_types'
|
9
|
+
|
10
|
+
module Feed
|
11
|
+
module FeedThriftService
|
12
|
+
class Client
|
13
|
+
include ::Thrift::Client
|
14
|
+
|
15
|
+
def getWebUnread(key)
|
16
|
+
send_getWebUnread(key)
|
17
|
+
return recv_getWebUnread()
|
18
|
+
end
|
19
|
+
|
20
|
+
def send_getWebUnread(key)
|
21
|
+
send_message('getWebUnread', GetWebUnread_args, :key => key)
|
22
|
+
end
|
23
|
+
|
24
|
+
def recv_getWebUnread()
|
25
|
+
result = receive_message(GetWebUnread_result)
|
26
|
+
return result.success unless result.success.nil?
|
27
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWebUnread failed: unknown result')
|
28
|
+
end
|
29
|
+
|
30
|
+
def getMobileUnread(key)
|
31
|
+
send_getMobileUnread(key)
|
32
|
+
return recv_getMobileUnread()
|
33
|
+
end
|
34
|
+
|
35
|
+
def send_getMobileUnread(key)
|
36
|
+
send_message('getMobileUnread', GetMobileUnread_args, :key => key)
|
37
|
+
end
|
38
|
+
|
39
|
+
def recv_getMobileUnread()
|
40
|
+
result = receive_message(GetMobileUnread_result)
|
41
|
+
return result.success unless result.success.nil?
|
42
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getMobileUnread failed: unknown result')
|
43
|
+
end
|
44
|
+
|
45
|
+
def getWebSoundTimeline(key, timeLine, pageSize, type)
|
46
|
+
send_getWebSoundTimeline(key, timeLine, pageSize, type)
|
47
|
+
return recv_getWebSoundTimeline()
|
48
|
+
end
|
49
|
+
|
50
|
+
def send_getWebSoundTimeline(key, timeLine, pageSize, type)
|
51
|
+
send_message('getWebSoundTimeline', GetWebSoundTimeline_args, :key => key, :timeLine => timeLine, :pageSize => pageSize, :type => type)
|
52
|
+
end
|
53
|
+
|
54
|
+
def recv_getWebSoundTimeline()
|
55
|
+
result = receive_message(GetWebSoundTimeline_result)
|
56
|
+
return result.success unless result.success.nil?
|
57
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWebSoundTimeline failed: unknown result')
|
58
|
+
end
|
59
|
+
|
60
|
+
def getWebSoundRange(key, offset, limit)
|
61
|
+
send_getWebSoundRange(key, offset, limit)
|
62
|
+
return recv_getWebSoundRange()
|
63
|
+
end
|
64
|
+
|
65
|
+
def send_getWebSoundRange(key, offset, limit)
|
66
|
+
send_message('getWebSoundRange', GetWebSoundRange_args, :key => key, :offset => offset, :limit => limit)
|
67
|
+
end
|
68
|
+
|
69
|
+
def recv_getWebSoundRange()
|
70
|
+
result = receive_message(GetWebSoundRange_result)
|
71
|
+
return result.success unless result.success.nil?
|
72
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWebSoundRange failed: unknown result')
|
73
|
+
end
|
74
|
+
|
75
|
+
def getMobileSoundTimeline(key, timeLine, pageSize, type)
|
76
|
+
send_getMobileSoundTimeline(key, timeLine, pageSize, type)
|
77
|
+
return recv_getMobileSoundTimeline()
|
78
|
+
end
|
79
|
+
|
80
|
+
def send_getMobileSoundTimeline(key, timeLine, pageSize, type)
|
81
|
+
send_message('getMobileSoundTimeline', GetMobileSoundTimeline_args, :key => key, :timeLine => timeLine, :pageSize => pageSize, :type => type)
|
82
|
+
end
|
83
|
+
|
84
|
+
def recv_getMobileSoundTimeline()
|
85
|
+
result = receive_message(GetMobileSoundTimeline_result)
|
86
|
+
return result.success unless result.success.nil?
|
87
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getMobileSoundTimeline failed: unknown result')
|
88
|
+
end
|
89
|
+
|
90
|
+
def getWebEventTimeline(key, timeLine, pageSize, type)
|
91
|
+
send_getWebEventTimeline(key, timeLine, pageSize, type)
|
92
|
+
return recv_getWebEventTimeline()
|
93
|
+
end
|
94
|
+
|
95
|
+
def send_getWebEventTimeline(key, timeLine, pageSize, type)
|
96
|
+
send_message('getWebEventTimeline', GetWebEventTimeline_args, :key => key, :timeLine => timeLine, :pageSize => pageSize, :type => type)
|
97
|
+
end
|
98
|
+
|
99
|
+
def recv_getWebEventTimeline()
|
100
|
+
result = receive_message(GetWebEventTimeline_result)
|
101
|
+
return result.success unless result.success.nil?
|
102
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWebEventTimeline failed: unknown result')
|
103
|
+
end
|
104
|
+
|
105
|
+
def getWebEventRange(key, offset, limit)
|
106
|
+
send_getWebEventRange(key, offset, limit)
|
107
|
+
return recv_getWebEventRange()
|
108
|
+
end
|
109
|
+
|
110
|
+
def send_getWebEventRange(key, offset, limit)
|
111
|
+
send_message('getWebEventRange', GetWebEventRange_args, :key => key, :offset => offset, :limit => limit)
|
112
|
+
end
|
113
|
+
|
114
|
+
def recv_getWebEventRange()
|
115
|
+
result = receive_message(GetWebEventRange_result)
|
116
|
+
return result.success unless result.success.nil?
|
117
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWebEventRange failed: unknown result')
|
118
|
+
end
|
119
|
+
|
120
|
+
def getMobileEventTimeline(key, timeLine, pageSize, type)
|
121
|
+
send_getMobileEventTimeline(key, timeLine, pageSize, type)
|
122
|
+
return recv_getMobileEventTimeline()
|
123
|
+
end
|
124
|
+
|
125
|
+
def send_getMobileEventTimeline(key, timeLine, pageSize, type)
|
126
|
+
send_message('getMobileEventTimeline', GetMobileEventTimeline_args, :key => key, :timeLine => timeLine, :pageSize => pageSize, :type => type)
|
127
|
+
end
|
128
|
+
|
129
|
+
def recv_getMobileEventTimeline()
|
130
|
+
result = receive_message(GetMobileEventTimeline_result)
|
131
|
+
return result.success unless result.success.nil?
|
132
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getMobileEventTimeline failed: unknown result')
|
133
|
+
end
|
134
|
+
|
135
|
+
def deleteFeed(uid, feedId, type, groups)
|
136
|
+
send_deleteFeed(uid, feedId, type, groups)
|
137
|
+
return recv_deleteFeed()
|
138
|
+
end
|
139
|
+
|
140
|
+
def send_deleteFeed(uid, feedId, type, groups)
|
141
|
+
send_message('deleteFeed', DeleteFeed_args, :uid => uid, :feedId => feedId, :type => type, :groups => groups)
|
142
|
+
end
|
143
|
+
|
144
|
+
def recv_deleteFeed()
|
145
|
+
result = receive_message(DeleteFeed_result)
|
146
|
+
return result.success unless result.success.nil?
|
147
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'deleteFeed failed: unknown result')
|
148
|
+
end
|
149
|
+
|
150
|
+
def getTimelineMetaInfo(uid)
|
151
|
+
send_getTimelineMetaInfo(uid)
|
152
|
+
return recv_getTimelineMetaInfo()
|
153
|
+
end
|
154
|
+
|
155
|
+
def send_getTimelineMetaInfo(uid)
|
156
|
+
send_message('getTimelineMetaInfo', GetTimelineMetaInfo_args, :uid => uid)
|
157
|
+
end
|
158
|
+
|
159
|
+
def recv_getTimelineMetaInfo()
|
160
|
+
result = receive_message(GetTimelineMetaInfo_result)
|
161
|
+
return result.success unless result.success.nil?
|
162
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTimelineMetaInfo failed: unknown result')
|
163
|
+
end
|
164
|
+
|
165
|
+
def getTimelineData(time, uid, pageNo, pageSize, isInit)
|
166
|
+
send_getTimelineData(time, uid, pageNo, pageSize, isInit)
|
167
|
+
return recv_getTimelineData()
|
168
|
+
end
|
169
|
+
|
170
|
+
def send_getTimelineData(time, uid, pageNo, pageSize, isInit)
|
171
|
+
send_message('getTimelineData', GetTimelineData_args, :time => time, :uid => uid, :pageNo => pageNo, :pageSize => pageSize, :isInit => isInit)
|
172
|
+
end
|
173
|
+
|
174
|
+
def recv_getTimelineData()
|
175
|
+
result = receive_message(GetTimelineData_result)
|
176
|
+
return result.success unless result.success.nil?
|
177
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTimelineData failed: unknown result')
|
178
|
+
end
|
179
|
+
|
180
|
+
end
|
181
|
+
|
182
|
+
class Processor
|
183
|
+
include ::Thrift::Processor
|
184
|
+
|
185
|
+
def process_getWebUnread(seqid, iprot, oprot)
|
186
|
+
args = read_args(iprot, GetWebUnread_args)
|
187
|
+
result = GetWebUnread_result.new()
|
188
|
+
result.success = @handler.getWebUnread(args.key)
|
189
|
+
write_result(result, oprot, 'getWebUnread', seqid)
|
190
|
+
end
|
191
|
+
|
192
|
+
def process_getMobileUnread(seqid, iprot, oprot)
|
193
|
+
args = read_args(iprot, GetMobileUnread_args)
|
194
|
+
result = GetMobileUnread_result.new()
|
195
|
+
result.success = @handler.getMobileUnread(args.key)
|
196
|
+
write_result(result, oprot, 'getMobileUnread', seqid)
|
197
|
+
end
|
198
|
+
|
199
|
+
def process_getWebSoundTimeline(seqid, iprot, oprot)
|
200
|
+
args = read_args(iprot, GetWebSoundTimeline_args)
|
201
|
+
result = GetWebSoundTimeline_result.new()
|
202
|
+
result.success = @handler.getWebSoundTimeline(args.key, args.timeLine, args.pageSize, args.type)
|
203
|
+
write_result(result, oprot, 'getWebSoundTimeline', seqid)
|
204
|
+
end
|
205
|
+
|
206
|
+
def process_getWebSoundRange(seqid, iprot, oprot)
|
207
|
+
args = read_args(iprot, GetWebSoundRange_args)
|
208
|
+
result = GetWebSoundRange_result.new()
|
209
|
+
result.success = @handler.getWebSoundRange(args.key, args.offset, args.limit)
|
210
|
+
write_result(result, oprot, 'getWebSoundRange', seqid)
|
211
|
+
end
|
212
|
+
|
213
|
+
def process_getMobileSoundTimeline(seqid, iprot, oprot)
|
214
|
+
args = read_args(iprot, GetMobileSoundTimeline_args)
|
215
|
+
result = GetMobileSoundTimeline_result.new()
|
216
|
+
result.success = @handler.getMobileSoundTimeline(args.key, args.timeLine, args.pageSize, args.type)
|
217
|
+
write_result(result, oprot, 'getMobileSoundTimeline', seqid)
|
218
|
+
end
|
219
|
+
|
220
|
+
def process_getWebEventTimeline(seqid, iprot, oprot)
|
221
|
+
args = read_args(iprot, GetWebEventTimeline_args)
|
222
|
+
result = GetWebEventTimeline_result.new()
|
223
|
+
result.success = @handler.getWebEventTimeline(args.key, args.timeLine, args.pageSize, args.type)
|
224
|
+
write_result(result, oprot, 'getWebEventTimeline', seqid)
|
225
|
+
end
|
226
|
+
|
227
|
+
def process_getWebEventRange(seqid, iprot, oprot)
|
228
|
+
args = read_args(iprot, GetWebEventRange_args)
|
229
|
+
result = GetWebEventRange_result.new()
|
230
|
+
result.success = @handler.getWebEventRange(args.key, args.offset, args.limit)
|
231
|
+
write_result(result, oprot, 'getWebEventRange', seqid)
|
232
|
+
end
|
233
|
+
|
234
|
+
def process_getMobileEventTimeline(seqid, iprot, oprot)
|
235
|
+
args = read_args(iprot, GetMobileEventTimeline_args)
|
236
|
+
result = GetMobileEventTimeline_result.new()
|
237
|
+
result.success = @handler.getMobileEventTimeline(args.key, args.timeLine, args.pageSize, args.type)
|
238
|
+
write_result(result, oprot, 'getMobileEventTimeline', seqid)
|
239
|
+
end
|
240
|
+
|
241
|
+
def process_deleteFeed(seqid, iprot, oprot)
|
242
|
+
args = read_args(iprot, DeleteFeed_args)
|
243
|
+
result = DeleteFeed_result.new()
|
244
|
+
result.success = @handler.deleteFeed(args.uid, args.feedId, args.type, args.groups)
|
245
|
+
write_result(result, oprot, 'deleteFeed', seqid)
|
246
|
+
end
|
247
|
+
|
248
|
+
def process_getTimelineMetaInfo(seqid, iprot, oprot)
|
249
|
+
args = read_args(iprot, GetTimelineMetaInfo_args)
|
250
|
+
result = GetTimelineMetaInfo_result.new()
|
251
|
+
result.success = @handler.getTimelineMetaInfo(args.uid)
|
252
|
+
write_result(result, oprot, 'getTimelineMetaInfo', seqid)
|
253
|
+
end
|
254
|
+
|
255
|
+
def process_getTimelineData(seqid, iprot, oprot)
|
256
|
+
args = read_args(iprot, GetTimelineData_args)
|
257
|
+
result = GetTimelineData_result.new()
|
258
|
+
result.success = @handler.getTimelineData(args.time, args.uid, args.pageNo, args.pageSize, args.isInit)
|
259
|
+
write_result(result, oprot, 'getTimelineData', seqid)
|
260
|
+
end
|
261
|
+
|
262
|
+
end
|
263
|
+
|
264
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
265
|
+
|
266
|
+
class GetWebUnread_args
|
267
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
268
|
+
KEY = 1
|
269
|
+
|
270
|
+
FIELDS = {
|
271
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
|
272
|
+
}
|
273
|
+
|
274
|
+
def struct_fields; FIELDS; end
|
275
|
+
|
276
|
+
def validate
|
277
|
+
end
|
278
|
+
|
279
|
+
::Thrift::Struct.generate_accessors self
|
280
|
+
end
|
281
|
+
|
282
|
+
class GetWebUnread_result
|
283
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
284
|
+
SUCCESS = 0
|
285
|
+
|
286
|
+
FIELDS = {
|
287
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::Unread}
|
288
|
+
}
|
289
|
+
|
290
|
+
def struct_fields; FIELDS; end
|
291
|
+
|
292
|
+
def validate
|
293
|
+
end
|
294
|
+
|
295
|
+
::Thrift::Struct.generate_accessors self
|
296
|
+
end
|
297
|
+
|
298
|
+
class GetMobileUnread_args
|
299
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
300
|
+
KEY = 1
|
301
|
+
|
302
|
+
FIELDS = {
|
303
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
|
304
|
+
}
|
305
|
+
|
306
|
+
def struct_fields; FIELDS; end
|
307
|
+
|
308
|
+
def validate
|
309
|
+
end
|
310
|
+
|
311
|
+
::Thrift::Struct.generate_accessors self
|
312
|
+
end
|
313
|
+
|
314
|
+
class GetMobileUnread_result
|
315
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
316
|
+
SUCCESS = 0
|
317
|
+
|
318
|
+
FIELDS = {
|
319
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::Unread}
|
320
|
+
}
|
321
|
+
|
322
|
+
def struct_fields; FIELDS; end
|
323
|
+
|
324
|
+
def validate
|
325
|
+
end
|
326
|
+
|
327
|
+
::Thrift::Struct.generate_accessors self
|
328
|
+
end
|
329
|
+
|
330
|
+
class GetWebSoundTimeline_args
|
331
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
332
|
+
KEY = 1
|
333
|
+
TIMELINE = 2
|
334
|
+
PAGESIZE = 3
|
335
|
+
TYPE = 4
|
336
|
+
|
337
|
+
FIELDS = {
|
338
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
339
|
+
TIMELINE => {:type => ::Thrift::Types::I64, :name => 'timeLine'},
|
340
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
341
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type'}
|
342
|
+
}
|
343
|
+
|
344
|
+
def struct_fields; FIELDS; end
|
345
|
+
|
346
|
+
def validate
|
347
|
+
end
|
348
|
+
|
349
|
+
::Thrift::Struct.generate_accessors self
|
350
|
+
end
|
351
|
+
|
352
|
+
class GetWebSoundTimeline_result
|
353
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
354
|
+
SUCCESS = 0
|
355
|
+
|
356
|
+
FIELDS = {
|
357
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::SoundResult}
|
358
|
+
}
|
359
|
+
|
360
|
+
def struct_fields; FIELDS; end
|
361
|
+
|
362
|
+
def validate
|
363
|
+
end
|
364
|
+
|
365
|
+
::Thrift::Struct.generate_accessors self
|
366
|
+
end
|
367
|
+
|
368
|
+
class GetWebSoundRange_args
|
369
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
370
|
+
KEY = 1
|
371
|
+
OFFSET = 2
|
372
|
+
LIMIT = 3
|
373
|
+
|
374
|
+
FIELDS = {
|
375
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
376
|
+
OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'},
|
377
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
378
|
+
}
|
379
|
+
|
380
|
+
def struct_fields; FIELDS; end
|
381
|
+
|
382
|
+
def validate
|
383
|
+
end
|
384
|
+
|
385
|
+
::Thrift::Struct.generate_accessors self
|
386
|
+
end
|
387
|
+
|
388
|
+
class GetWebSoundRange_result
|
389
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
390
|
+
SUCCESS = 0
|
391
|
+
|
392
|
+
FIELDS = {
|
393
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::SoundResult}
|
394
|
+
}
|
395
|
+
|
396
|
+
def struct_fields; FIELDS; end
|
397
|
+
|
398
|
+
def validate
|
399
|
+
end
|
400
|
+
|
401
|
+
::Thrift::Struct.generate_accessors self
|
402
|
+
end
|
403
|
+
|
404
|
+
class GetMobileSoundTimeline_args
|
405
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
406
|
+
KEY = 1
|
407
|
+
TIMELINE = 2
|
408
|
+
PAGESIZE = 3
|
409
|
+
TYPE = 4
|
410
|
+
|
411
|
+
FIELDS = {
|
412
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
413
|
+
TIMELINE => {:type => ::Thrift::Types::I64, :name => 'timeLine'},
|
414
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
415
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type'}
|
416
|
+
}
|
417
|
+
|
418
|
+
def struct_fields; FIELDS; end
|
419
|
+
|
420
|
+
def validate
|
421
|
+
end
|
422
|
+
|
423
|
+
::Thrift::Struct.generate_accessors self
|
424
|
+
end
|
425
|
+
|
426
|
+
class GetMobileSoundTimeline_result
|
427
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
428
|
+
SUCCESS = 0
|
429
|
+
|
430
|
+
FIELDS = {
|
431
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::SoundResult}
|
432
|
+
}
|
433
|
+
|
434
|
+
def struct_fields; FIELDS; end
|
435
|
+
|
436
|
+
def validate
|
437
|
+
end
|
438
|
+
|
439
|
+
::Thrift::Struct.generate_accessors self
|
440
|
+
end
|
441
|
+
|
442
|
+
class GetWebEventTimeline_args
|
443
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
444
|
+
KEY = 1
|
445
|
+
TIMELINE = 2
|
446
|
+
PAGESIZE = 3
|
447
|
+
TYPE = 4
|
448
|
+
|
449
|
+
FIELDS = {
|
450
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
451
|
+
TIMELINE => {:type => ::Thrift::Types::I64, :name => 'timeLine'},
|
452
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
453
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type'}
|
454
|
+
}
|
455
|
+
|
456
|
+
def struct_fields; FIELDS; end
|
457
|
+
|
458
|
+
def validate
|
459
|
+
end
|
460
|
+
|
461
|
+
::Thrift::Struct.generate_accessors self
|
462
|
+
end
|
463
|
+
|
464
|
+
class GetWebEventTimeline_result
|
465
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
466
|
+
SUCCESS = 0
|
467
|
+
|
468
|
+
FIELDS = {
|
469
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::EventResult}
|
470
|
+
}
|
471
|
+
|
472
|
+
def struct_fields; FIELDS; end
|
473
|
+
|
474
|
+
def validate
|
475
|
+
end
|
476
|
+
|
477
|
+
::Thrift::Struct.generate_accessors self
|
478
|
+
end
|
479
|
+
|
480
|
+
class GetWebEventRange_args
|
481
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
482
|
+
KEY = 1
|
483
|
+
OFFSET = 2
|
484
|
+
LIMIT = 3
|
485
|
+
|
486
|
+
FIELDS = {
|
487
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
488
|
+
OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'},
|
489
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
490
|
+
}
|
491
|
+
|
492
|
+
def struct_fields; FIELDS; end
|
493
|
+
|
494
|
+
def validate
|
495
|
+
end
|
496
|
+
|
497
|
+
::Thrift::Struct.generate_accessors self
|
498
|
+
end
|
499
|
+
|
500
|
+
class GetWebEventRange_result
|
501
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
502
|
+
SUCCESS = 0
|
503
|
+
|
504
|
+
FIELDS = {
|
505
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::EventResult}
|
506
|
+
}
|
507
|
+
|
508
|
+
def struct_fields; FIELDS; end
|
509
|
+
|
510
|
+
def validate
|
511
|
+
end
|
512
|
+
|
513
|
+
::Thrift::Struct.generate_accessors self
|
514
|
+
end
|
515
|
+
|
516
|
+
class GetMobileEventTimeline_args
|
517
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
518
|
+
KEY = 1
|
519
|
+
TIMELINE = 2
|
520
|
+
PAGESIZE = 3
|
521
|
+
TYPE = 4
|
522
|
+
|
523
|
+
FIELDS = {
|
524
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
|
525
|
+
TIMELINE => {:type => ::Thrift::Types::I64, :name => 'timeLine'},
|
526
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
527
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type'}
|
528
|
+
}
|
529
|
+
|
530
|
+
def struct_fields; FIELDS; end
|
531
|
+
|
532
|
+
def validate
|
533
|
+
end
|
534
|
+
|
535
|
+
::Thrift::Struct.generate_accessors self
|
536
|
+
end
|
537
|
+
|
538
|
+
class GetMobileEventTimeline_result
|
539
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
540
|
+
SUCCESS = 0
|
541
|
+
|
542
|
+
FIELDS = {
|
543
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::EventResult}
|
544
|
+
}
|
545
|
+
|
546
|
+
def struct_fields; FIELDS; end
|
547
|
+
|
548
|
+
def validate
|
549
|
+
end
|
550
|
+
|
551
|
+
::Thrift::Struct.generate_accessors self
|
552
|
+
end
|
553
|
+
|
554
|
+
class DeleteFeed_args
|
555
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
556
|
+
UID = 1
|
557
|
+
FEEDID = 2
|
558
|
+
TYPE = 3
|
559
|
+
GROUPS = 4
|
560
|
+
|
561
|
+
FIELDS = {
|
562
|
+
UID => {:type => ::Thrift::Types::STRING, :name => 'uid'},
|
563
|
+
FEEDID => {:type => ::Thrift::Types::STRING, :name => 'feedId'},
|
564
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
|
565
|
+
GROUPS => {:type => ::Thrift::Types::LIST, :name => 'groups', :element => {:type => ::Thrift::Types::STRING}}
|
566
|
+
}
|
567
|
+
|
568
|
+
def struct_fields; FIELDS; end
|
569
|
+
|
570
|
+
def validate
|
571
|
+
end
|
572
|
+
|
573
|
+
::Thrift::Struct.generate_accessors self
|
574
|
+
end
|
575
|
+
|
576
|
+
class DeleteFeed_result
|
577
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
578
|
+
SUCCESS = 0
|
579
|
+
|
580
|
+
FIELDS = {
|
581
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
582
|
+
}
|
583
|
+
|
584
|
+
def struct_fields; FIELDS; end
|
585
|
+
|
586
|
+
def validate
|
587
|
+
end
|
588
|
+
|
589
|
+
::Thrift::Struct.generate_accessors self
|
590
|
+
end
|
591
|
+
|
592
|
+
class GetTimelineMetaInfo_args
|
593
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
594
|
+
UID = 1
|
595
|
+
|
596
|
+
FIELDS = {
|
597
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
598
|
+
}
|
599
|
+
|
600
|
+
def struct_fields; FIELDS; end
|
601
|
+
|
602
|
+
def validate
|
603
|
+
end
|
604
|
+
|
605
|
+
::Thrift::Struct.generate_accessors self
|
606
|
+
end
|
607
|
+
|
608
|
+
class GetTimelineMetaInfo_result
|
609
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
610
|
+
SUCCESS = 0
|
611
|
+
|
612
|
+
FIELDS = {
|
613
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
|
614
|
+
}
|
615
|
+
|
616
|
+
def struct_fields; FIELDS; end
|
617
|
+
|
618
|
+
def validate
|
619
|
+
end
|
620
|
+
|
621
|
+
::Thrift::Struct.generate_accessors self
|
622
|
+
end
|
623
|
+
|
624
|
+
class GetTimelineData_args
|
625
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
626
|
+
TIME = 1
|
627
|
+
UID = 2
|
628
|
+
PAGENO = 3
|
629
|
+
PAGESIZE = 4
|
630
|
+
ISINIT = 5
|
631
|
+
|
632
|
+
FIELDS = {
|
633
|
+
TIME => {:type => ::Thrift::Types::STRING, :name => 'time'},
|
634
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
635
|
+
PAGENO => {:type => ::Thrift::Types::I32, :name => 'pageNo'},
|
636
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
637
|
+
ISINIT => {:type => ::Thrift::Types::STRING, :name => 'isInit'}
|
638
|
+
}
|
639
|
+
|
640
|
+
def struct_fields; FIELDS; end
|
641
|
+
|
642
|
+
def validate
|
643
|
+
end
|
644
|
+
|
645
|
+
::Thrift::Struct.generate_accessors self
|
646
|
+
end
|
647
|
+
|
648
|
+
class GetTimelineData_result
|
649
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
650
|
+
SUCCESS = 0
|
651
|
+
|
652
|
+
FIELDS = {
|
653
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Feed::TimelineResult}
|
654
|
+
}
|
655
|
+
|
656
|
+
def struct_fields; FIELDS; end
|
657
|
+
|
658
|
+
def validate
|
659
|
+
end
|
660
|
+
|
661
|
+
::Thrift::Struct.generate_accessors self
|
662
|
+
end
|
663
|
+
|
664
|
+
end
|
665
|
+
|
666
|
+
end
|
data/lib/feed_types.rb
ADDED
@@ -0,0 +1,312 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module Feed
|
10
|
+
class Sound
|
11
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
12
|
+
ID = 1
|
13
|
+
TYPE = 2
|
14
|
+
UID = 3
|
15
|
+
NICKNAME = 4
|
16
|
+
IMAGEPATH = 5
|
17
|
+
ALBUMID = 6
|
18
|
+
ALBUMNAME = 7
|
19
|
+
TOTID = 8
|
20
|
+
TITLE = 9
|
21
|
+
TOFEEDID = 10
|
22
|
+
CREATEDAT = 11
|
23
|
+
UPLOADID = 12
|
24
|
+
WTIMAGEPATH = 13
|
25
|
+
TOUID = 14
|
26
|
+
TONICKNAME = 15
|
27
|
+
TIMELINE = 16
|
28
|
+
WAVEFORM = 17
|
29
|
+
CID = 18
|
30
|
+
URL = 19
|
31
|
+
CONTENT = 20
|
32
|
+
DURATION = 21
|
33
|
+
TOFEEDCREATEDAT = 22
|
34
|
+
MURL = 23
|
35
|
+
UPLOADSOURCE = 24
|
36
|
+
USERSOURCE = 25
|
37
|
+
ALBUMIMAGE = 26
|
38
|
+
|
39
|
+
FIELDS = {
|
40
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
41
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
|
42
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
43
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickName'},
|
44
|
+
IMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'imagePath', :optional => true},
|
45
|
+
ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
|
46
|
+
ALBUMNAME => {:type => ::Thrift::Types::STRING, :name => 'albumName', :optional => true},
|
47
|
+
TOTID => {:type => ::Thrift::Types::I64, :name => 'toTid'},
|
48
|
+
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
49
|
+
TOFEEDID => {:type => ::Thrift::Types::I64, :name => 'toFeedid', :optional => true},
|
50
|
+
CREATEDAT => {:type => ::Thrift::Types::STRING, :name => 'createdAt'},
|
51
|
+
UPLOADID => {:type => ::Thrift::Types::STRING, :name => 'uploadId'},
|
52
|
+
WTIMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'wtImagePath', :optional => true},
|
53
|
+
TOUID => {:type => ::Thrift::Types::I64, :name => 'toUid', :optional => true},
|
54
|
+
TONICKNAME => {:type => ::Thrift::Types::STRING, :name => 'toNickName', :optional => true},
|
55
|
+
TIMELINE => {:type => ::Thrift::Types::DOUBLE, :name => 'timeLine'},
|
56
|
+
WAVEFORM => {:type => ::Thrift::Types::STRING, :name => 'waveform', :optional => true},
|
57
|
+
CID => {:type => ::Thrift::Types::I32, :name => 'cid', :optional => true},
|
58
|
+
URL => {:type => ::Thrift::Types::STRING, :name => 'url', :optional => true},
|
59
|
+
CONTENT => {:type => ::Thrift::Types::STRING, :name => 'content', :optional => true},
|
60
|
+
DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration'},
|
61
|
+
TOFEEDCREATEDAT => {:type => ::Thrift::Types::STRING, :name => 'toFeedCreatedAt', :optional => true},
|
62
|
+
MURL => {:type => ::Thrift::Types::STRING, :name => 'mUrl'},
|
63
|
+
UPLOADSOURCE => {:type => ::Thrift::Types::I32, :name => 'uploadSource'},
|
64
|
+
USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource'},
|
65
|
+
ALBUMIMAGE => {:type => ::Thrift::Types::STRING, :name => 'albumImage', :optional => true}
|
66
|
+
}
|
67
|
+
|
68
|
+
def struct_fields; FIELDS; end
|
69
|
+
|
70
|
+
def validate
|
71
|
+
end
|
72
|
+
|
73
|
+
::Thrift::Struct.generate_accessors self
|
74
|
+
end
|
75
|
+
|
76
|
+
class SoundResult
|
77
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
78
|
+
DELNUM = 1
|
79
|
+
UNREADNUM = 2
|
80
|
+
PAGESIZE = 3
|
81
|
+
CURRENTSIZE = 4
|
82
|
+
TOTALSIZE = 5
|
83
|
+
DATAS = 6
|
84
|
+
|
85
|
+
FIELDS = {
|
86
|
+
DELNUM => {:type => ::Thrift::Types::I32, :name => 'delNum'},
|
87
|
+
UNREADNUM => {:type => ::Thrift::Types::I32, :name => 'unreadNum'},
|
88
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
89
|
+
CURRENTSIZE => {:type => ::Thrift::Types::I32, :name => 'currentSize'},
|
90
|
+
TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
|
91
|
+
DATAS => {:type => ::Thrift::Types::LIST, :name => 'datas', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Feed::Sound}}
|
92
|
+
}
|
93
|
+
|
94
|
+
def struct_fields; FIELDS; end
|
95
|
+
|
96
|
+
def validate
|
97
|
+
end
|
98
|
+
|
99
|
+
::Thrift::Struct.generate_accessors self
|
100
|
+
end
|
101
|
+
|
102
|
+
class Event
|
103
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
104
|
+
ID = 1
|
105
|
+
CONTENT = 2
|
106
|
+
TOUID = 3
|
107
|
+
TONICKNAME = 4
|
108
|
+
TOIMAGEPATH = 5
|
109
|
+
UID = 6
|
110
|
+
NICKNAME = 7
|
111
|
+
IMAGEPATH = 8
|
112
|
+
TOTID = 9
|
113
|
+
DURATION = 10
|
114
|
+
TITLE = 11
|
115
|
+
TRACKCREATEDAT = 12
|
116
|
+
TRACKAVATARPATH = 13
|
117
|
+
WTIMAGEPATH = 14
|
118
|
+
CID = 15
|
119
|
+
ALBUMID = 16
|
120
|
+
ALBUMNAME = 17
|
121
|
+
URL = 18
|
122
|
+
MURL = 19
|
123
|
+
USERSOURCE = 20
|
124
|
+
TAGNAME = 21
|
125
|
+
|
126
|
+
FIELDS = {
|
127
|
+
ID => {:type => ::Thrift::Types::I64, :name => 'id'},
|
128
|
+
CONTENT => {:type => ::Thrift::Types::STRING, :name => 'content', :optional => true},
|
129
|
+
TOUID => {:type => ::Thrift::Types::I64, :name => 'toUid'},
|
130
|
+
TONICKNAME => {:type => ::Thrift::Types::STRING, :name => 'toNickName'},
|
131
|
+
TOIMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'toImagePath', :optional => true},
|
132
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
133
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickName'},
|
134
|
+
IMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'imagePath', :optional => true},
|
135
|
+
TOTID => {:type => ::Thrift::Types::I64, :name => 'toTid'},
|
136
|
+
DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
|
137
|
+
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
|
138
|
+
TRACKCREATEDAT => {:type => ::Thrift::Types::STRING, :name => 'trackCreatedAt', :optional => true},
|
139
|
+
TRACKAVATARPATH => {:type => ::Thrift::Types::STRING, :name => 'trackAvatarPath', :optional => true},
|
140
|
+
WTIMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'wtImagePath', :optional => true},
|
141
|
+
CID => {:type => ::Thrift::Types::I32, :name => 'cid', :optional => true},
|
142
|
+
ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
|
143
|
+
ALBUMNAME => {:type => ::Thrift::Types::STRING, :name => 'albumName', :optional => true},
|
144
|
+
URL => {:type => ::Thrift::Types::STRING, :name => 'url', :optional => true},
|
145
|
+
MURL => {:type => ::Thrift::Types::STRING, :name => 'mUrl', :optional => true},
|
146
|
+
USERSOURCE => {:type => ::Thrift::Types::STRING, :name => 'userSource'},
|
147
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName'}
|
148
|
+
}
|
149
|
+
|
150
|
+
def struct_fields; FIELDS; end
|
151
|
+
|
152
|
+
def validate
|
153
|
+
end
|
154
|
+
|
155
|
+
::Thrift::Struct.generate_accessors self
|
156
|
+
end
|
157
|
+
|
158
|
+
class MergeEvent
|
159
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
160
|
+
ID = 1
|
161
|
+
TIMELINE = 2
|
162
|
+
CREATEDAT = 3
|
163
|
+
TYPE = 4
|
164
|
+
UID = 5
|
165
|
+
EVENTS = 6
|
166
|
+
|
167
|
+
FIELDS = {
|
168
|
+
ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
|
169
|
+
TIMELINE => {:type => ::Thrift::Types::DOUBLE, :name => 'timeLine'},
|
170
|
+
CREATEDAT => {:type => ::Thrift::Types::STRING, :name => 'createdAt'},
|
171
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
|
172
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
173
|
+
EVENTS => {:type => ::Thrift::Types::LIST, :name => 'events', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Feed::Event}}
|
174
|
+
}
|
175
|
+
|
176
|
+
def struct_fields; FIELDS; end
|
177
|
+
|
178
|
+
def validate
|
179
|
+
end
|
180
|
+
|
181
|
+
::Thrift::Struct.generate_accessors self
|
182
|
+
end
|
183
|
+
|
184
|
+
class EventResult
|
185
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
186
|
+
DELNUM = 1
|
187
|
+
UNREADNUM = 2
|
188
|
+
PAGESIZE = 3
|
189
|
+
CURRENTSIZE = 4
|
190
|
+
TOTALSIZE = 5
|
191
|
+
DATAS = 6
|
192
|
+
|
193
|
+
FIELDS = {
|
194
|
+
DELNUM => {:type => ::Thrift::Types::I32, :name => 'delNum'},
|
195
|
+
UNREADNUM => {:type => ::Thrift::Types::I32, :name => 'unreadNum'},
|
196
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
197
|
+
CURRENTSIZE => {:type => ::Thrift::Types::I32, :name => 'currentSize'},
|
198
|
+
TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
|
199
|
+
DATAS => {:type => ::Thrift::Types::LIST, :name => 'datas', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Feed::MergeEvent}}
|
200
|
+
}
|
201
|
+
|
202
|
+
def struct_fields; FIELDS; end
|
203
|
+
|
204
|
+
def validate
|
205
|
+
end
|
206
|
+
|
207
|
+
::Thrift::Struct.generate_accessors self
|
208
|
+
end
|
209
|
+
|
210
|
+
class Unread
|
211
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
212
|
+
GROUPID = 1
|
213
|
+
EVENT = 2
|
214
|
+
SOUND = 3
|
215
|
+
|
216
|
+
FIELDS = {
|
217
|
+
GROUPID => {:type => ::Thrift::Types::I32, :name => 'groupId'},
|
218
|
+
EVENT => {:type => ::Thrift::Types::I32, :name => 'event'},
|
219
|
+
SOUND => {:type => ::Thrift::Types::I32, :name => 'sound'}
|
220
|
+
}
|
221
|
+
|
222
|
+
def struct_fields; FIELDS; end
|
223
|
+
|
224
|
+
def validate
|
225
|
+
end
|
226
|
+
|
227
|
+
::Thrift::Struct.generate_accessors self
|
228
|
+
end
|
229
|
+
|
230
|
+
class Timeline
|
231
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
232
|
+
TOTID = 1
|
233
|
+
TITLE = 2
|
234
|
+
CREATEDAT = 3
|
235
|
+
TOUID = 4
|
236
|
+
TONICKNAME = 5
|
237
|
+
UID = 6
|
238
|
+
ALBUMNAME = 7
|
239
|
+
ALBUMID = 8
|
240
|
+
UPLOADID = 9
|
241
|
+
WAVEFORM = 10
|
242
|
+
TOIMAGEPATH = 11
|
243
|
+
DURATION = 12
|
244
|
+
TAGNAME = 13
|
245
|
+
WTIMAGEPATH = 14
|
246
|
+
|
247
|
+
FIELDS = {
|
248
|
+
TOTID => {:type => ::Thrift::Types::I64, :name => 'toTid', :optional => true},
|
249
|
+
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
|
250
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
|
251
|
+
TOUID => {:type => ::Thrift::Types::I64, :name => 'toUid', :optional => true},
|
252
|
+
TONICKNAME => {:type => ::Thrift::Types::STRING, :name => 'toNickName', :optional => true},
|
253
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
|
254
|
+
ALBUMNAME => {:type => ::Thrift::Types::STRING, :name => 'albumName', :optional => true},
|
255
|
+
ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
|
256
|
+
UPLOADID => {:type => ::Thrift::Types::STRING, :name => 'uploadId', :optional => true},
|
257
|
+
WAVEFORM => {:type => ::Thrift::Types::STRING, :name => 'waveform', :optional => true},
|
258
|
+
TOIMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'toImagePath', :optional => true},
|
259
|
+
DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
|
260
|
+
TAGNAME => {:type => ::Thrift::Types::STRING, :name => 'tagName', :optional => true},
|
261
|
+
WTIMAGEPATH => {:type => ::Thrift::Types::STRING, :name => 'wtImagePath', :optional => true}
|
262
|
+
}
|
263
|
+
|
264
|
+
def struct_fields; FIELDS; end
|
265
|
+
|
266
|
+
def validate
|
267
|
+
end
|
268
|
+
|
269
|
+
::Thrift::Struct.generate_accessors self
|
270
|
+
end
|
271
|
+
|
272
|
+
class MergeTimeline
|
273
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
274
|
+
TYPE = 1
|
275
|
+
CREATEDAT = 2
|
276
|
+
TIMELINES = 3
|
277
|
+
|
278
|
+
FIELDS = {
|
279
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
|
280
|
+
CREATEDAT => {:type => ::Thrift::Types::STRING, :name => 'createdAt'},
|
281
|
+
TIMELINES => {:type => ::Thrift::Types::LIST, :name => 'timelines', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Feed::Timeline}}
|
282
|
+
}
|
283
|
+
|
284
|
+
def struct_fields; FIELDS; end
|
285
|
+
|
286
|
+
def validate
|
287
|
+
end
|
288
|
+
|
289
|
+
::Thrift::Struct.generate_accessors self
|
290
|
+
end
|
291
|
+
|
292
|
+
class TimelineResult
|
293
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
294
|
+
HASNEXT = 1
|
295
|
+
PAGESIZE = 2
|
296
|
+
MERGETIMELINES = 3
|
297
|
+
|
298
|
+
FIELDS = {
|
299
|
+
HASNEXT => {:type => ::Thrift::Types::BOOL, :name => 'hasNext'},
|
300
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
|
301
|
+
MERGETIMELINES => {:type => ::Thrift::Types::LIST, :name => 'mergeTimelines', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Feed::MergeTimeline}}
|
302
|
+
}
|
303
|
+
|
304
|
+
def struct_fields; FIELDS; end
|
305
|
+
|
306
|
+
def validate
|
307
|
+
end
|
308
|
+
|
309
|
+
::Thrift::Struct.generate_accessors self
|
310
|
+
end
|
311
|
+
|
312
|
+
end
|
data/lib/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: feed
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ted Wang
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thrift
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.9.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.0
|
27
|
+
description: generated feed thrift codes.
|
28
|
+
email: ted@ximalaya.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/feed.rb
|
34
|
+
- lib/feedmodel_constants.rb
|
35
|
+
- lib/feedmodel_types.rb
|
36
|
+
- lib/feed_constants.rb
|
37
|
+
- lib/feed_thrift_service.rb
|
38
|
+
- lib/feed_types.rb
|
39
|
+
- lib/version.rb
|
40
|
+
homepage: http://www.ximalaya.com
|
41
|
+
licenses:
|
42
|
+
- MIT2.0
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.0.3
|
61
|
+
signing_key:
|
62
|
+
specification_version: 4
|
63
|
+
summary: feed thrift client.
|
64
|
+
test_files: []
|