profile_service_thrift_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/profile_constants.rb +15 -0
- data/lib/profile_types.rb +338 -0
- data/lib/remote_backend_profile_service.rb +482 -0
- data/lib/remote_nickname_service.rb +352 -0
- data/lib/remote_profile_modify_service.rb +784 -0
- data/lib/remote_user_info_query_service.rb +356 -0
- data/lib/remote_user_track_service.rb +360 -0
- metadata +49 -0
@@ -0,0 +1,356 @@
|
|
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 'profile_types'
|
9
|
+
|
10
|
+
module Service
|
11
|
+
module Profile
|
12
|
+
module Thrift
|
13
|
+
module RemoteUserInfoQueryService
|
14
|
+
class Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def getBasicUserInfo(uid)
|
18
|
+
send_getBasicUserInfo(uid)
|
19
|
+
return recv_getBasicUserInfo()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_getBasicUserInfo(uid)
|
23
|
+
send_message('getBasicUserInfo', GetBasicUserInfo_args, :uid => uid)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_getBasicUserInfo()
|
27
|
+
result = receive_message(GetBasicUserInfo_result)
|
28
|
+
return result.success unless result.success.nil?
|
29
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBasicUserInfo failed: unknown result')
|
30
|
+
end
|
31
|
+
|
32
|
+
def multiGetBasicUserInfo(uids)
|
33
|
+
send_multiGetBasicUserInfo(uids)
|
34
|
+
return recv_multiGetBasicUserInfo()
|
35
|
+
end
|
36
|
+
|
37
|
+
def send_multiGetBasicUserInfo(uids)
|
38
|
+
send_message('multiGetBasicUserInfo', MultiGetBasicUserInfo_args, :uids => uids)
|
39
|
+
end
|
40
|
+
|
41
|
+
def recv_multiGetBasicUserInfo()
|
42
|
+
result = receive_message(MultiGetBasicUserInfo_result)
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetBasicUserInfo failed: unknown result')
|
45
|
+
end
|
46
|
+
|
47
|
+
def getDetailUserInfo(uid)
|
48
|
+
send_getDetailUserInfo(uid)
|
49
|
+
return recv_getDetailUserInfo()
|
50
|
+
end
|
51
|
+
|
52
|
+
def send_getDetailUserInfo(uid)
|
53
|
+
send_message('getDetailUserInfo', GetDetailUserInfo_args, :uid => uid)
|
54
|
+
end
|
55
|
+
|
56
|
+
def recv_getDetailUserInfo()
|
57
|
+
result = receive_message(GetDetailUserInfo_result)
|
58
|
+
return result.success unless result.success.nil?
|
59
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getDetailUserInfo failed: unknown result')
|
60
|
+
end
|
61
|
+
|
62
|
+
def multiGetDetailUserInfo(uids)
|
63
|
+
send_multiGetDetailUserInfo(uids)
|
64
|
+
return recv_multiGetDetailUserInfo()
|
65
|
+
end
|
66
|
+
|
67
|
+
def send_multiGetDetailUserInfo(uids)
|
68
|
+
send_message('multiGetDetailUserInfo', MultiGetDetailUserInfo_args, :uids => uids)
|
69
|
+
end
|
70
|
+
|
71
|
+
def recv_multiGetDetailUserInfo()
|
72
|
+
result = receive_message(MultiGetDetailUserInfo_result)
|
73
|
+
return result.success unless result.success.nil?
|
74
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetDetailUserInfo failed: unknown result')
|
75
|
+
end
|
76
|
+
|
77
|
+
def getUserRegisteredInfo(uid)
|
78
|
+
send_getUserRegisteredInfo(uid)
|
79
|
+
return recv_getUserRegisteredInfo()
|
80
|
+
end
|
81
|
+
|
82
|
+
def send_getUserRegisteredInfo(uid)
|
83
|
+
send_message('getUserRegisteredInfo', GetUserRegisteredInfo_args, :uid => uid)
|
84
|
+
end
|
85
|
+
|
86
|
+
def recv_getUserRegisteredInfo()
|
87
|
+
result = receive_message(GetUserRegisteredInfo_result)
|
88
|
+
return result.success unless result.success.nil?
|
89
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUserRegisteredInfo failed: unknown result')
|
90
|
+
end
|
91
|
+
|
92
|
+
def queryVerifiedUid(pageId, pageSize)
|
93
|
+
send_queryVerifiedUid(pageId, pageSize)
|
94
|
+
return recv_queryVerifiedUid()
|
95
|
+
end
|
96
|
+
|
97
|
+
def send_queryVerifiedUid(pageId, pageSize)
|
98
|
+
send_message('queryVerifiedUid', QueryVerifiedUid_args, :pageId => pageId, :pageSize => pageSize)
|
99
|
+
end
|
100
|
+
|
101
|
+
def recv_queryVerifiedUid()
|
102
|
+
result = receive_message(QueryVerifiedUid_result)
|
103
|
+
return result.success unless result.success.nil?
|
104
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryVerifiedUid failed: unknown result')
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
class Processor
|
110
|
+
include ::Thrift::Processor
|
111
|
+
|
112
|
+
def process_getBasicUserInfo(seqid, iprot, oprot)
|
113
|
+
args = read_args(iprot, GetBasicUserInfo_args)
|
114
|
+
result = GetBasicUserInfo_result.new()
|
115
|
+
result.success = @handler.getBasicUserInfo(args.uid)
|
116
|
+
write_result(result, oprot, 'getBasicUserInfo', seqid)
|
117
|
+
end
|
118
|
+
|
119
|
+
def process_multiGetBasicUserInfo(seqid, iprot, oprot)
|
120
|
+
args = read_args(iprot, MultiGetBasicUserInfo_args)
|
121
|
+
result = MultiGetBasicUserInfo_result.new()
|
122
|
+
result.success = @handler.multiGetBasicUserInfo(args.uids)
|
123
|
+
write_result(result, oprot, 'multiGetBasicUserInfo', seqid)
|
124
|
+
end
|
125
|
+
|
126
|
+
def process_getDetailUserInfo(seqid, iprot, oprot)
|
127
|
+
args = read_args(iprot, GetDetailUserInfo_args)
|
128
|
+
result = GetDetailUserInfo_result.new()
|
129
|
+
result.success = @handler.getDetailUserInfo(args.uid)
|
130
|
+
write_result(result, oprot, 'getDetailUserInfo', seqid)
|
131
|
+
end
|
132
|
+
|
133
|
+
def process_multiGetDetailUserInfo(seqid, iprot, oprot)
|
134
|
+
args = read_args(iprot, MultiGetDetailUserInfo_args)
|
135
|
+
result = MultiGetDetailUserInfo_result.new()
|
136
|
+
result.success = @handler.multiGetDetailUserInfo(args.uids)
|
137
|
+
write_result(result, oprot, 'multiGetDetailUserInfo', seqid)
|
138
|
+
end
|
139
|
+
|
140
|
+
def process_getUserRegisteredInfo(seqid, iprot, oprot)
|
141
|
+
args = read_args(iprot, GetUserRegisteredInfo_args)
|
142
|
+
result = GetUserRegisteredInfo_result.new()
|
143
|
+
result.success = @handler.getUserRegisteredInfo(args.uid)
|
144
|
+
write_result(result, oprot, 'getUserRegisteredInfo', seqid)
|
145
|
+
end
|
146
|
+
|
147
|
+
def process_queryVerifiedUid(seqid, iprot, oprot)
|
148
|
+
args = read_args(iprot, QueryVerifiedUid_args)
|
149
|
+
result = QueryVerifiedUid_result.new()
|
150
|
+
result.success = @handler.queryVerifiedUid(args.pageId, args.pageSize)
|
151
|
+
write_result(result, oprot, 'queryVerifiedUid', seqid)
|
152
|
+
end
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
157
|
+
|
158
|
+
class GetBasicUserInfo_args
|
159
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
160
|
+
UID = 1
|
161
|
+
|
162
|
+
FIELDS = {
|
163
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
164
|
+
}
|
165
|
+
|
166
|
+
def struct_fields; FIELDS; end
|
167
|
+
|
168
|
+
def validate
|
169
|
+
end
|
170
|
+
|
171
|
+
::Thrift::Struct.generate_accessors self
|
172
|
+
end
|
173
|
+
|
174
|
+
class GetBasicUserInfo_result
|
175
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
176
|
+
SUCCESS = 0
|
177
|
+
|
178
|
+
FIELDS = {
|
179
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Profile::Thrift::BasicUserInfo}
|
180
|
+
}
|
181
|
+
|
182
|
+
def struct_fields; FIELDS; end
|
183
|
+
|
184
|
+
def validate
|
185
|
+
end
|
186
|
+
|
187
|
+
::Thrift::Struct.generate_accessors self
|
188
|
+
end
|
189
|
+
|
190
|
+
class MultiGetBasicUserInfo_args
|
191
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
192
|
+
UIDS = 1
|
193
|
+
|
194
|
+
FIELDS = {
|
195
|
+
UIDS => {:type => ::Thrift::Types::LIST, :name => 'uids', :element => {:type => ::Thrift::Types::I64}}
|
196
|
+
}
|
197
|
+
|
198
|
+
def struct_fields; FIELDS; end
|
199
|
+
|
200
|
+
def validate
|
201
|
+
end
|
202
|
+
|
203
|
+
::Thrift::Struct.generate_accessors self
|
204
|
+
end
|
205
|
+
|
206
|
+
class MultiGetBasicUserInfo_result
|
207
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
208
|
+
SUCCESS = 0
|
209
|
+
|
210
|
+
FIELDS = {
|
211
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Service::Profile::Thrift::BasicUserInfo}}
|
212
|
+
}
|
213
|
+
|
214
|
+
def struct_fields; FIELDS; end
|
215
|
+
|
216
|
+
def validate
|
217
|
+
end
|
218
|
+
|
219
|
+
::Thrift::Struct.generate_accessors self
|
220
|
+
end
|
221
|
+
|
222
|
+
class GetDetailUserInfo_args
|
223
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
224
|
+
UID = 1
|
225
|
+
|
226
|
+
FIELDS = {
|
227
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
228
|
+
}
|
229
|
+
|
230
|
+
def struct_fields; FIELDS; end
|
231
|
+
|
232
|
+
def validate
|
233
|
+
end
|
234
|
+
|
235
|
+
::Thrift::Struct.generate_accessors self
|
236
|
+
end
|
237
|
+
|
238
|
+
class GetDetailUserInfo_result
|
239
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
240
|
+
SUCCESS = 0
|
241
|
+
|
242
|
+
FIELDS = {
|
243
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Profile::Thrift::DetailUserInfo}
|
244
|
+
}
|
245
|
+
|
246
|
+
def struct_fields; FIELDS; end
|
247
|
+
|
248
|
+
def validate
|
249
|
+
end
|
250
|
+
|
251
|
+
::Thrift::Struct.generate_accessors self
|
252
|
+
end
|
253
|
+
|
254
|
+
class MultiGetDetailUserInfo_args
|
255
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
256
|
+
UIDS = 1
|
257
|
+
|
258
|
+
FIELDS = {
|
259
|
+
UIDS => {:type => ::Thrift::Types::LIST, :name => 'uids', :element => {:type => ::Thrift::Types::I64}}
|
260
|
+
}
|
261
|
+
|
262
|
+
def struct_fields; FIELDS; end
|
263
|
+
|
264
|
+
def validate
|
265
|
+
end
|
266
|
+
|
267
|
+
::Thrift::Struct.generate_accessors self
|
268
|
+
end
|
269
|
+
|
270
|
+
class MultiGetDetailUserInfo_result
|
271
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
272
|
+
SUCCESS = 0
|
273
|
+
|
274
|
+
FIELDS = {
|
275
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Service::Profile::Thrift::DetailUserInfo}}
|
276
|
+
}
|
277
|
+
|
278
|
+
def struct_fields; FIELDS; end
|
279
|
+
|
280
|
+
def validate
|
281
|
+
end
|
282
|
+
|
283
|
+
::Thrift::Struct.generate_accessors self
|
284
|
+
end
|
285
|
+
|
286
|
+
class GetUserRegisteredInfo_args
|
287
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
288
|
+
UID = 1
|
289
|
+
|
290
|
+
FIELDS = {
|
291
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
292
|
+
}
|
293
|
+
|
294
|
+
def struct_fields; FIELDS; end
|
295
|
+
|
296
|
+
def validate
|
297
|
+
end
|
298
|
+
|
299
|
+
::Thrift::Struct.generate_accessors self
|
300
|
+
end
|
301
|
+
|
302
|
+
class GetUserRegisteredInfo_result
|
303
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
304
|
+
SUCCESS = 0
|
305
|
+
|
306
|
+
FIELDS = {
|
307
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Profile::Thrift::RegisteredUserInfo}
|
308
|
+
}
|
309
|
+
|
310
|
+
def struct_fields; FIELDS; end
|
311
|
+
|
312
|
+
def validate
|
313
|
+
end
|
314
|
+
|
315
|
+
::Thrift::Struct.generate_accessors self
|
316
|
+
end
|
317
|
+
|
318
|
+
class QueryVerifiedUid_args
|
319
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
320
|
+
PAGEID = 1
|
321
|
+
PAGESIZE = 2
|
322
|
+
|
323
|
+
FIELDS = {
|
324
|
+
PAGEID => {:type => ::Thrift::Types::I32, :name => 'pageId'},
|
325
|
+
PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'}
|
326
|
+
}
|
327
|
+
|
328
|
+
def struct_fields; FIELDS; end
|
329
|
+
|
330
|
+
def validate
|
331
|
+
end
|
332
|
+
|
333
|
+
::Thrift::Struct.generate_accessors self
|
334
|
+
end
|
335
|
+
|
336
|
+
class QueryVerifiedUid_result
|
337
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
338
|
+
SUCCESS = 0
|
339
|
+
|
340
|
+
FIELDS = {
|
341
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}}
|
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
|
+
end
|
353
|
+
|
354
|
+
end
|
355
|
+
end
|
356
|
+
end
|
@@ -0,0 +1,360 @@
|
|
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 'profile_types'
|
9
|
+
|
10
|
+
module Service
|
11
|
+
module Profile
|
12
|
+
module Thrift
|
13
|
+
module RemoteUserTrackService
|
14
|
+
class Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def getLastTrackId(uid)
|
18
|
+
send_getLastTrackId(uid)
|
19
|
+
return recv_getLastTrackId()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_getLastTrackId(uid)
|
23
|
+
send_message('getLastTrackId', GetLastTrackId_args, :uid => uid)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_getLastTrackId()
|
27
|
+
result = receive_message(GetLastTrackId_result)
|
28
|
+
return result.success unless result.success.nil?
|
29
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastTrackId failed: unknown result')
|
30
|
+
end
|
31
|
+
|
32
|
+
def multiGetLastTrackIds(uids)
|
33
|
+
send_multiGetLastTrackIds(uids)
|
34
|
+
return recv_multiGetLastTrackIds()
|
35
|
+
end
|
36
|
+
|
37
|
+
def send_multiGetLastTrackIds(uids)
|
38
|
+
send_message('multiGetLastTrackIds', MultiGetLastTrackIds_args, :uids => uids)
|
39
|
+
end
|
40
|
+
|
41
|
+
def recv_multiGetLastTrackIds()
|
42
|
+
result = receive_message(MultiGetLastTrackIds_result)
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiGetLastTrackIds failed: unknown result')
|
45
|
+
end
|
46
|
+
|
47
|
+
def getUploadedTrackDuration(uid)
|
48
|
+
send_getUploadedTrackDuration(uid)
|
49
|
+
return recv_getUploadedTrackDuration()
|
50
|
+
end
|
51
|
+
|
52
|
+
def send_getUploadedTrackDuration(uid)
|
53
|
+
send_message('getUploadedTrackDuration', GetUploadedTrackDuration_args, :uid => uid)
|
54
|
+
end
|
55
|
+
|
56
|
+
def recv_getUploadedTrackDuration()
|
57
|
+
result = receive_message(GetUploadedTrackDuration_result)
|
58
|
+
return result.success unless result.success.nil?
|
59
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUploadedTrackDuration failed: unknown result')
|
60
|
+
end
|
61
|
+
|
62
|
+
def createTrack(uid, userTrackInfo)
|
63
|
+
send_createTrack(uid, userTrackInfo)
|
64
|
+
return recv_createTrack()
|
65
|
+
end
|
66
|
+
|
67
|
+
def send_createTrack(uid, userTrackInfo)
|
68
|
+
send_message('createTrack', CreateTrack_args, :uid => uid, :userTrackInfo => userTrackInfo)
|
69
|
+
end
|
70
|
+
|
71
|
+
def recv_createTrack()
|
72
|
+
result = receive_message(CreateTrack_result)
|
73
|
+
return result.success unless result.success.nil?
|
74
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'createTrack failed: unknown result')
|
75
|
+
end
|
76
|
+
|
77
|
+
def updateTrack(uid, userTrackInfo)
|
78
|
+
send_updateTrack(uid, userTrackInfo)
|
79
|
+
return recv_updateTrack()
|
80
|
+
end
|
81
|
+
|
82
|
+
def send_updateTrack(uid, userTrackInfo)
|
83
|
+
send_message('updateTrack', UpdateTrack_args, :uid => uid, :userTrackInfo => userTrackInfo)
|
84
|
+
end
|
85
|
+
|
86
|
+
def recv_updateTrack()
|
87
|
+
result = receive_message(UpdateTrack_result)
|
88
|
+
return result.success unless result.success.nil?
|
89
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'updateTrack failed: unknown result')
|
90
|
+
end
|
91
|
+
|
92
|
+
def destroyTrack(uid, userTrackInfo)
|
93
|
+
send_destroyTrack(uid, userTrackInfo)
|
94
|
+
return recv_destroyTrack()
|
95
|
+
end
|
96
|
+
|
97
|
+
def send_destroyTrack(uid, userTrackInfo)
|
98
|
+
send_message('destroyTrack', DestroyTrack_args, :uid => uid, :userTrackInfo => userTrackInfo)
|
99
|
+
end
|
100
|
+
|
101
|
+
def recv_destroyTrack()
|
102
|
+
result = receive_message(DestroyTrack_result)
|
103
|
+
return result.success unless result.success.nil?
|
104
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'destroyTrack failed: unknown result')
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
class Processor
|
110
|
+
include ::Thrift::Processor
|
111
|
+
|
112
|
+
def process_getLastTrackId(seqid, iprot, oprot)
|
113
|
+
args = read_args(iprot, GetLastTrackId_args)
|
114
|
+
result = GetLastTrackId_result.new()
|
115
|
+
result.success = @handler.getLastTrackId(args.uid)
|
116
|
+
write_result(result, oprot, 'getLastTrackId', seqid)
|
117
|
+
end
|
118
|
+
|
119
|
+
def process_multiGetLastTrackIds(seqid, iprot, oprot)
|
120
|
+
args = read_args(iprot, MultiGetLastTrackIds_args)
|
121
|
+
result = MultiGetLastTrackIds_result.new()
|
122
|
+
result.success = @handler.multiGetLastTrackIds(args.uids)
|
123
|
+
write_result(result, oprot, 'multiGetLastTrackIds', seqid)
|
124
|
+
end
|
125
|
+
|
126
|
+
def process_getUploadedTrackDuration(seqid, iprot, oprot)
|
127
|
+
args = read_args(iprot, GetUploadedTrackDuration_args)
|
128
|
+
result = GetUploadedTrackDuration_result.new()
|
129
|
+
result.success = @handler.getUploadedTrackDuration(args.uid)
|
130
|
+
write_result(result, oprot, 'getUploadedTrackDuration', seqid)
|
131
|
+
end
|
132
|
+
|
133
|
+
def process_createTrack(seqid, iprot, oprot)
|
134
|
+
args = read_args(iprot, CreateTrack_args)
|
135
|
+
result = CreateTrack_result.new()
|
136
|
+
result.success = @handler.createTrack(args.uid, args.userTrackInfo)
|
137
|
+
write_result(result, oprot, 'createTrack', seqid)
|
138
|
+
end
|
139
|
+
|
140
|
+
def process_updateTrack(seqid, iprot, oprot)
|
141
|
+
args = read_args(iprot, UpdateTrack_args)
|
142
|
+
result = UpdateTrack_result.new()
|
143
|
+
result.success = @handler.updateTrack(args.uid, args.userTrackInfo)
|
144
|
+
write_result(result, oprot, 'updateTrack', seqid)
|
145
|
+
end
|
146
|
+
|
147
|
+
def process_destroyTrack(seqid, iprot, oprot)
|
148
|
+
args = read_args(iprot, DestroyTrack_args)
|
149
|
+
result = DestroyTrack_result.new()
|
150
|
+
result.success = @handler.destroyTrack(args.uid, args.userTrackInfo)
|
151
|
+
write_result(result, oprot, 'destroyTrack', seqid)
|
152
|
+
end
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
157
|
+
|
158
|
+
class GetLastTrackId_args
|
159
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
160
|
+
UID = 1
|
161
|
+
|
162
|
+
FIELDS = {
|
163
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
164
|
+
}
|
165
|
+
|
166
|
+
def struct_fields; FIELDS; end
|
167
|
+
|
168
|
+
def validate
|
169
|
+
end
|
170
|
+
|
171
|
+
::Thrift::Struct.generate_accessors self
|
172
|
+
end
|
173
|
+
|
174
|
+
class GetLastTrackId_result
|
175
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
176
|
+
SUCCESS = 0
|
177
|
+
|
178
|
+
FIELDS = {
|
179
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
180
|
+
}
|
181
|
+
|
182
|
+
def struct_fields; FIELDS; end
|
183
|
+
|
184
|
+
def validate
|
185
|
+
end
|
186
|
+
|
187
|
+
::Thrift::Struct.generate_accessors self
|
188
|
+
end
|
189
|
+
|
190
|
+
class MultiGetLastTrackIds_args
|
191
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
192
|
+
UIDS = 1
|
193
|
+
|
194
|
+
FIELDS = {
|
195
|
+
UIDS => {:type => ::Thrift::Types::LIST, :name => 'uids', :element => {:type => ::Thrift::Types::I64}}
|
196
|
+
}
|
197
|
+
|
198
|
+
def struct_fields; FIELDS; end
|
199
|
+
|
200
|
+
def validate
|
201
|
+
end
|
202
|
+
|
203
|
+
::Thrift::Struct.generate_accessors self
|
204
|
+
end
|
205
|
+
|
206
|
+
class MultiGetLastTrackIds_result
|
207
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
208
|
+
SUCCESS = 0
|
209
|
+
|
210
|
+
FIELDS = {
|
211
|
+
SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::I64}}
|
212
|
+
}
|
213
|
+
|
214
|
+
def struct_fields; FIELDS; end
|
215
|
+
|
216
|
+
def validate
|
217
|
+
end
|
218
|
+
|
219
|
+
::Thrift::Struct.generate_accessors self
|
220
|
+
end
|
221
|
+
|
222
|
+
class GetUploadedTrackDuration_args
|
223
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
224
|
+
UID = 1
|
225
|
+
|
226
|
+
FIELDS = {
|
227
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'}
|
228
|
+
}
|
229
|
+
|
230
|
+
def struct_fields; FIELDS; end
|
231
|
+
|
232
|
+
def validate
|
233
|
+
end
|
234
|
+
|
235
|
+
::Thrift::Struct.generate_accessors self
|
236
|
+
end
|
237
|
+
|
238
|
+
class GetUploadedTrackDuration_result
|
239
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
240
|
+
SUCCESS = 0
|
241
|
+
|
242
|
+
FIELDS = {
|
243
|
+
SUCCESS => {:type => ::Thrift::Types::DOUBLE, :name => 'success'}
|
244
|
+
}
|
245
|
+
|
246
|
+
def struct_fields; FIELDS; end
|
247
|
+
|
248
|
+
def validate
|
249
|
+
end
|
250
|
+
|
251
|
+
::Thrift::Struct.generate_accessors self
|
252
|
+
end
|
253
|
+
|
254
|
+
class CreateTrack_args
|
255
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
256
|
+
UID = 1
|
257
|
+
USERTRACKINFO = 2
|
258
|
+
|
259
|
+
FIELDS = {
|
260
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
261
|
+
USERTRACKINFO => {:type => ::Thrift::Types::STRUCT, :name => 'userTrackInfo', :class => ::Service::Profile::Thrift::UserTrackInfo}
|
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 CreateTrack_result
|
273
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
274
|
+
SUCCESS = 0
|
275
|
+
|
276
|
+
FIELDS = {
|
277
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Profile::Thrift::VoidResponse}
|
278
|
+
}
|
279
|
+
|
280
|
+
def struct_fields; FIELDS; end
|
281
|
+
|
282
|
+
def validate
|
283
|
+
end
|
284
|
+
|
285
|
+
::Thrift::Struct.generate_accessors self
|
286
|
+
end
|
287
|
+
|
288
|
+
class UpdateTrack_args
|
289
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
290
|
+
UID = 1
|
291
|
+
USERTRACKINFO = 2
|
292
|
+
|
293
|
+
FIELDS = {
|
294
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
295
|
+
USERTRACKINFO => {:type => ::Thrift::Types::STRUCT, :name => 'userTrackInfo', :class => ::Service::Profile::Thrift::UserTrackInfo}
|
296
|
+
}
|
297
|
+
|
298
|
+
def struct_fields; FIELDS; end
|
299
|
+
|
300
|
+
def validate
|
301
|
+
end
|
302
|
+
|
303
|
+
::Thrift::Struct.generate_accessors self
|
304
|
+
end
|
305
|
+
|
306
|
+
class UpdateTrack_result
|
307
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
308
|
+
SUCCESS = 0
|
309
|
+
|
310
|
+
FIELDS = {
|
311
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Profile::Thrift::VoidResponse}
|
312
|
+
}
|
313
|
+
|
314
|
+
def struct_fields; FIELDS; end
|
315
|
+
|
316
|
+
def validate
|
317
|
+
end
|
318
|
+
|
319
|
+
::Thrift::Struct.generate_accessors self
|
320
|
+
end
|
321
|
+
|
322
|
+
class DestroyTrack_args
|
323
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
324
|
+
UID = 1
|
325
|
+
USERTRACKINFO = 2
|
326
|
+
|
327
|
+
FIELDS = {
|
328
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
329
|
+
USERTRACKINFO => {:type => ::Thrift::Types::STRUCT, :name => 'userTrackInfo', :class => ::Service::Profile::Thrift::UserTrackInfo}
|
330
|
+
}
|
331
|
+
|
332
|
+
def struct_fields; FIELDS; end
|
333
|
+
|
334
|
+
def validate
|
335
|
+
end
|
336
|
+
|
337
|
+
::Thrift::Struct.generate_accessors self
|
338
|
+
end
|
339
|
+
|
340
|
+
class DestroyTrack_result
|
341
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
342
|
+
SUCCESS = 0
|
343
|
+
|
344
|
+
FIELDS = {
|
345
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Profile::Thrift::VoidResponse}
|
346
|
+
}
|
347
|
+
|
348
|
+
def struct_fields; FIELDS; end
|
349
|
+
|
350
|
+
def validate
|
351
|
+
end
|
352
|
+
|
353
|
+
::Thrift::Struct.generate_accessors self
|
354
|
+
end
|
355
|
+
|
356
|
+
end
|
357
|
+
|
358
|
+
end
|
359
|
+
end
|
360
|
+
end
|