wimp 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +154 -0
- data/Rakefile +6 -0
- data/lib/gen/README.md +6 -0
- data/lib/gen/client_api_login_service.rb +270 -0
- data/lib/gen/client_api_service.rb +3016 -0
- data/lib/gen/services_constants.rb +13 -0
- data/lib/gen/services_types.rb +1035 -0
- data/lib/wimp.rb +66 -0
- data/lib/wimp/base.rb +30 -0
- data/lib/wimp/error.rb +4 -0
- data/lib/wimp/playlist.rb +93 -0
- data/lib/wimp/simple_artist.rb +10 -0
- data/lib/wimp/track.rb +91 -0
- data/lib/wimp/version.rb +3 -0
- data/resources/skipped-methods.md +44 -0
- data/resources/thrift/services.thrift +396 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Playlist/should_add_my_track_id.yml +263 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Playlist/should_be_able_to_add_tracks_to_playlist.yml +445 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Playlist/should_be_able_to_remove_tracks.yml +452 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Playlist/should_create_a_playlist.yml +98 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Playlist/should_find_by_uuid.yml +49 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Playlist/should_not_crash_on_invalid_pos.yml +372 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Track/.yml +169 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Track/should_be_searchable.yml +169 -0
- data/spec/fixtures/vcr_cassettes/WiMP_Track/should_paginate.yml +61 -0
- data/spec/fixtures/vcr_cassettes/login/should_raise_error_using_invalid_credentials.yml +47 -0
- data/spec/fixtures/vcr_cassettes/login/should_return_sesson_id_on_successfull_login.yml +53 -0
- data/spec/login_spec.rb +21 -0
- data/spec/playlist_spec.rb +37 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/track_spec.rb +26 -0
- data/wimp.gemspec +30 -0
- metadata +207 -0
@@ -0,0 +1,3016 @@
|
|
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 'services_types'
|
9
|
+
|
10
|
+
module WiMP
|
11
|
+
module Gen
|
12
|
+
module ClientApiService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def search(term, limitArtists, limitAlbums, limitTracks, sessionId, limitPlaylists)
|
17
|
+
send_search(term, limitArtists, limitAlbums, limitTracks, sessionId, limitPlaylists)
|
18
|
+
return recv_search()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_search(term, limitArtists, limitAlbums, limitTracks, sessionId, limitPlaylists)
|
22
|
+
send_message('search', Search_args, :term => term, :limitArtists => limitArtists, :limitAlbums => limitAlbums, :limitTracks => limitTracks, :sessionId => sessionId, :limitPlaylists => limitPlaylists)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_search()
|
26
|
+
result = receive_message(Search_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'search failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
def addAlbumToFavorites(albumId, sessionId)
|
32
|
+
send_addAlbumToFavorites(albumId, sessionId)
|
33
|
+
end
|
34
|
+
|
35
|
+
def send_addAlbumToFavorites(albumId, sessionId)
|
36
|
+
send_message('addAlbumToFavorites', AddAlbumToFavorites_args, :albumId => albumId, :sessionId => sessionId)
|
37
|
+
end
|
38
|
+
def addArtistToFavorites(artistId, sessionId)
|
39
|
+
send_addArtistToFavorites(artistId, sessionId)
|
40
|
+
end
|
41
|
+
|
42
|
+
def send_addArtistToFavorites(artistId, sessionId)
|
43
|
+
send_message('addArtistToFavorites', AddArtistToFavorites_args, :artistId => artistId, :sessionId => sessionId)
|
44
|
+
end
|
45
|
+
def addFriend(userId, sessionId)
|
46
|
+
send_addFriend(userId, sessionId)
|
47
|
+
end
|
48
|
+
|
49
|
+
def send_addFriend(userId, sessionId)
|
50
|
+
send_message('addFriend', AddFriend_args, :userId => userId, :sessionId => sessionId)
|
51
|
+
end
|
52
|
+
def addPlaylistToFavorites(playlistUUID, sessionId)
|
53
|
+
send_addPlaylistToFavorites(playlistUUID, sessionId)
|
54
|
+
end
|
55
|
+
|
56
|
+
def send_addPlaylistToFavorites(playlistUUID, sessionId)
|
57
|
+
send_message('addPlaylistToFavorites', AddPlaylistToFavorites_args, :playlistUUID => playlistUUID, :sessionId => sessionId)
|
58
|
+
end
|
59
|
+
def addTrackToFavorites(trackId, sessionId)
|
60
|
+
send_addTrackToFavorites(trackId, sessionId)
|
61
|
+
end
|
62
|
+
|
63
|
+
def send_addTrackToFavorites(trackId, sessionId)
|
64
|
+
send_message('addTrackToFavorites', AddTrackToFavorites_args, :trackId => trackId, :sessionId => sessionId)
|
65
|
+
end
|
66
|
+
def addTracksToUserPlaylist(playlistUUID, tracks, position, sessionId)
|
67
|
+
send_addTracksToUserPlaylist(playlistUUID, tracks, position, sessionId)
|
68
|
+
return recv_addTracksToUserPlaylist()
|
69
|
+
end
|
70
|
+
|
71
|
+
def send_addTracksToUserPlaylist(playlistUUID, tracks, position, sessionId)
|
72
|
+
send_message('addTracksToUserPlaylist', AddTracksToUserPlaylist_args, :playlistUUID => playlistUUID, :tracks => tracks, :position => position, :sessionId => sessionId)
|
73
|
+
end
|
74
|
+
|
75
|
+
def recv_addTracksToUserPlaylist()
|
76
|
+
result = receive_message(AddTracksToUserPlaylist_result)
|
77
|
+
return result.success unless result.success.nil?
|
78
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'addTracksToUserPlaylist failed: unknown result')
|
79
|
+
end
|
80
|
+
|
81
|
+
def addUserPlaylist(title, sessionId)
|
82
|
+
send_addUserPlaylist(title, sessionId)
|
83
|
+
return recv_addUserPlaylist()
|
84
|
+
end
|
85
|
+
|
86
|
+
def send_addUserPlaylist(title, sessionId)
|
87
|
+
send_message('addUserPlaylist', AddUserPlaylist_args, :title => title, :sessionId => sessionId)
|
88
|
+
end
|
89
|
+
|
90
|
+
def recv_addUserPlaylist()
|
91
|
+
result = receive_message(AddUserPlaylist_result)
|
92
|
+
return result.success unless result.success.nil?
|
93
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'addUserPlaylist failed: unknown result')
|
94
|
+
end
|
95
|
+
|
96
|
+
def getAlbumById(albumId, sessionId)
|
97
|
+
send_getAlbumById(albumId, sessionId)
|
98
|
+
return recv_getAlbumById()
|
99
|
+
end
|
100
|
+
|
101
|
+
def send_getAlbumById(albumId, sessionId)
|
102
|
+
send_message('getAlbumById', GetAlbumById_args, :albumId => albumId, :sessionId => sessionId)
|
103
|
+
end
|
104
|
+
|
105
|
+
def recv_getAlbumById()
|
106
|
+
result = receive_message(GetAlbumById_result)
|
107
|
+
return result.success unless result.success.nil?
|
108
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumById failed: unknown result')
|
109
|
+
end
|
110
|
+
|
111
|
+
def getAlbumMetaData(albumId, sessionId)
|
112
|
+
send_getAlbumMetaData(albumId, sessionId)
|
113
|
+
return recv_getAlbumMetaData()
|
114
|
+
end
|
115
|
+
|
116
|
+
def send_getAlbumMetaData(albumId, sessionId)
|
117
|
+
send_message('getAlbumMetaData', GetAlbumMetaData_args, :albumId => albumId, :sessionId => sessionId)
|
118
|
+
end
|
119
|
+
|
120
|
+
def recv_getAlbumMetaData()
|
121
|
+
result = receive_message(GetAlbumMetaData_result)
|
122
|
+
return result.success unless result.success.nil?
|
123
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumMetaData failed: unknown result')
|
124
|
+
end
|
125
|
+
|
126
|
+
def getAlbumsByArtistId(artistId, limit, order, sessionId, filter)
|
127
|
+
send_getAlbumsByArtistId(artistId, limit, order, sessionId, filter)
|
128
|
+
return recv_getAlbumsByArtistId()
|
129
|
+
end
|
130
|
+
|
131
|
+
def send_getAlbumsByArtistId(artistId, limit, order, sessionId, filter)
|
132
|
+
send_message('getAlbumsByArtistId', GetAlbumsByArtistId_args, :artistId => artistId, :limit => limit, :order => order, :sessionId => sessionId, :filter => filter)
|
133
|
+
end
|
134
|
+
|
135
|
+
def recv_getAlbumsByArtistId()
|
136
|
+
result = receive_message(GetAlbumsByArtistId_result)
|
137
|
+
return result.success unless result.success.nil?
|
138
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumsByArtistId failed: unknown result')
|
139
|
+
end
|
140
|
+
|
141
|
+
def getAlbumsByArtistIdWithPaging(artistId, startIndex, limit, includeSingles, order, sessionId)
|
142
|
+
send_getAlbumsByArtistIdWithPaging(artistId, startIndex, limit, includeSingles, order, sessionId)
|
143
|
+
return recv_getAlbumsByArtistIdWithPaging()
|
144
|
+
end
|
145
|
+
|
146
|
+
def send_getAlbumsByArtistIdWithPaging(artistId, startIndex, limit, includeSingles, order, sessionId)
|
147
|
+
send_message('getAlbumsByArtistIdWithPaging', GetAlbumsByArtistIdWithPaging_args, :artistId => artistId, :startIndex => startIndex, :limit => limit, :includeSingles => includeSingles, :order => order, :sessionId => sessionId)
|
148
|
+
end
|
149
|
+
|
150
|
+
def recv_getAlbumsByArtistIdWithPaging()
|
151
|
+
result = receive_message(GetAlbumsByArtistIdWithPaging_result)
|
152
|
+
return result.success unless result.success.nil?
|
153
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumsByArtistIdWithPaging failed: unknown result')
|
154
|
+
end
|
155
|
+
|
156
|
+
def getAlbumsByCategoryId(categoryId, startIndex, limit, sessionId)
|
157
|
+
send_getAlbumsByCategoryId(categoryId, startIndex, limit, sessionId)
|
158
|
+
return recv_getAlbumsByCategoryId()
|
159
|
+
end
|
160
|
+
|
161
|
+
def send_getAlbumsByCategoryId(categoryId, startIndex, limit, sessionId)
|
162
|
+
send_message('getAlbumsByCategoryId', GetAlbumsByCategoryId_args, :categoryId => categoryId, :startIndex => startIndex, :limit => limit, :sessionId => sessionId)
|
163
|
+
end
|
164
|
+
|
165
|
+
def recv_getAlbumsByCategoryId()
|
166
|
+
result = receive_message(GetAlbumsByCategoryId_result)
|
167
|
+
return result.success unless result.success.nil?
|
168
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumsByCategoryId failed: unknown result')
|
169
|
+
end
|
170
|
+
|
171
|
+
def getAlbumsByIds(albumIds, sessionId)
|
172
|
+
send_getAlbumsByIds(albumIds, sessionId)
|
173
|
+
return recv_getAlbumsByIds()
|
174
|
+
end
|
175
|
+
|
176
|
+
def send_getAlbumsByIds(albumIds, sessionId)
|
177
|
+
send_message('getAlbumsByIds', GetAlbumsByIds_args, :albumIds => albumIds, :sessionId => sessionId)
|
178
|
+
end
|
179
|
+
|
180
|
+
def recv_getAlbumsByIds()
|
181
|
+
result = receive_message(GetAlbumsByIds_result)
|
182
|
+
return result.success unless result.success.nil?
|
183
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAlbumsByIds failed: unknown result')
|
184
|
+
end
|
185
|
+
|
186
|
+
def getAllUserPlaylists(sessionId)
|
187
|
+
send_getAllUserPlaylists(sessionId)
|
188
|
+
return recv_getAllUserPlaylists()
|
189
|
+
end
|
190
|
+
|
191
|
+
def send_getAllUserPlaylists(sessionId)
|
192
|
+
send_message('getAllUserPlaylists', GetAllUserPlaylists_args, :sessionId => sessionId)
|
193
|
+
end
|
194
|
+
|
195
|
+
def recv_getAllUserPlaylists()
|
196
|
+
result = receive_message(GetAllUserPlaylists_result)
|
197
|
+
return result.success unless result.success.nil?
|
198
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getAllUserPlaylists failed: unknown result')
|
199
|
+
end
|
200
|
+
|
201
|
+
def getArtistById(artistId, sessionId)
|
202
|
+
send_getArtistById(artistId, sessionId)
|
203
|
+
return recv_getArtistById()
|
204
|
+
end
|
205
|
+
|
206
|
+
def send_getArtistById(artistId, sessionId)
|
207
|
+
send_message('getArtistById', GetArtistById_args, :artistId => artistId, :sessionId => sessionId)
|
208
|
+
end
|
209
|
+
|
210
|
+
def recv_getArtistById()
|
211
|
+
result = receive_message(GetArtistById_result)
|
212
|
+
return result.success unless result.success.nil?
|
213
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getArtistById failed: unknown result')
|
214
|
+
end
|
215
|
+
|
216
|
+
def getArtistMetaData(artistId, sessionId)
|
217
|
+
send_getArtistMetaData(artistId, sessionId)
|
218
|
+
return recv_getArtistMetaData()
|
219
|
+
end
|
220
|
+
|
221
|
+
def send_getArtistMetaData(artistId, sessionId)
|
222
|
+
send_message('getArtistMetaData', GetArtistMetaData_args, :artistId => artistId, :sessionId => sessionId)
|
223
|
+
end
|
224
|
+
|
225
|
+
def recv_getArtistMetaData()
|
226
|
+
result = receive_message(GetArtistMetaData_result)
|
227
|
+
return result.success unless result.success.nil?
|
228
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getArtistMetaData failed: unknown result')
|
229
|
+
end
|
230
|
+
|
231
|
+
def getBookletURL(albumId, sessionId)
|
232
|
+
send_getBookletURL(albumId, sessionId)
|
233
|
+
return recv_getBookletURL()
|
234
|
+
end
|
235
|
+
|
236
|
+
def send_getBookletURL(albumId, sessionId)
|
237
|
+
send_message('getBookletURL', GetBookletURL_args, :albumId => albumId, :sessionId => sessionId)
|
238
|
+
end
|
239
|
+
|
240
|
+
def recv_getBookletURL()
|
241
|
+
result = receive_message(GetBookletURL_result)
|
242
|
+
return result.success unless result.success.nil?
|
243
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBookletURL failed: unknown result')
|
244
|
+
end
|
245
|
+
|
246
|
+
def getCategories(categoryId, sessionId, startIndex, limit)
|
247
|
+
send_getCategories(categoryId, sessionId, startIndex, limit)
|
248
|
+
return recv_getCategories()
|
249
|
+
end
|
250
|
+
|
251
|
+
def send_getCategories(categoryId, sessionId, startIndex, limit)
|
252
|
+
send_message('getCategories', GetCategories_args, :categoryId => categoryId, :sessionId => sessionId, :startIndex => startIndex, :limit => limit)
|
253
|
+
end
|
254
|
+
|
255
|
+
def recv_getCategories()
|
256
|
+
result = receive_message(GetCategories_result)
|
257
|
+
return result.success unless result.success.nil?
|
258
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCategories failed: unknown result')
|
259
|
+
end
|
260
|
+
|
261
|
+
def getCategoryAndSubCategories(categoryId, depth, sessionId)
|
262
|
+
send_getCategoryAndSubCategories(categoryId, depth, sessionId)
|
263
|
+
return recv_getCategoryAndSubCategories()
|
264
|
+
end
|
265
|
+
|
266
|
+
def send_getCategoryAndSubCategories(categoryId, depth, sessionId)
|
267
|
+
send_message('getCategoryAndSubCategories', GetCategoryAndSubCategories_args, :categoryId => categoryId, :depth => depth, :sessionId => sessionId)
|
268
|
+
end
|
269
|
+
|
270
|
+
def recv_getCategoryAndSubCategories()
|
271
|
+
result = receive_message(GetCategoryAndSubCategories_result)
|
272
|
+
return result.success unless result.success.nil?
|
273
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCategoryAndSubCategories failed: unknown result')
|
274
|
+
end
|
275
|
+
|
276
|
+
def getCategoryById(categoryId, sessionId)
|
277
|
+
send_getCategoryById(categoryId, sessionId)
|
278
|
+
return recv_getCategoryById()
|
279
|
+
end
|
280
|
+
|
281
|
+
def send_getCategoryById(categoryId, sessionId)
|
282
|
+
send_message('getCategoryById', GetCategoryById_args, :categoryId => categoryId, :sessionId => sessionId)
|
283
|
+
end
|
284
|
+
|
285
|
+
def recv_getCategoryById()
|
286
|
+
result = receive_message(GetCategoryById_result)
|
287
|
+
return result.success unless result.success.nil?
|
288
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getCategoryById failed: unknown result')
|
289
|
+
end
|
290
|
+
|
291
|
+
def getFavoriteAlbums(order, sessionId)
|
292
|
+
send_getFavoriteAlbums(order, sessionId)
|
293
|
+
return recv_getFavoriteAlbums()
|
294
|
+
end
|
295
|
+
|
296
|
+
def send_getFavoriteAlbums(order, sessionId)
|
297
|
+
send_message('getFavoriteAlbums', GetFavoriteAlbums_args, :order => order, :sessionId => sessionId)
|
298
|
+
end
|
299
|
+
|
300
|
+
def recv_getFavoriteAlbums()
|
301
|
+
result = receive_message(GetFavoriteAlbums_result)
|
302
|
+
return result.success unless result.success.nil?
|
303
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoriteAlbums failed: unknown result')
|
304
|
+
end
|
305
|
+
|
306
|
+
def getFavoriteAlbumsByProfileId(profileId, paramPrivacyLevel, order, sessionId)
|
307
|
+
send_getFavoriteAlbumsByProfileId(profileId, paramPrivacyLevel, order, sessionId)
|
308
|
+
return recv_getFavoriteAlbumsByProfileId()
|
309
|
+
end
|
310
|
+
|
311
|
+
def send_getFavoriteAlbumsByProfileId(profileId, paramPrivacyLevel, order, sessionId)
|
312
|
+
send_message('getFavoriteAlbumsByProfileId', GetFavoriteAlbumsByProfileId_args, :profileId => profileId, :paramPrivacyLevel => paramPrivacyLevel, :order => order, :sessionId => sessionId)
|
313
|
+
end
|
314
|
+
|
315
|
+
def recv_getFavoriteAlbumsByProfileId()
|
316
|
+
result = receive_message(GetFavoriteAlbumsByProfileId_result)
|
317
|
+
return result.success unless result.success.nil?
|
318
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoriteAlbumsByProfileId failed: unknown result')
|
319
|
+
end
|
320
|
+
|
321
|
+
def getFavoriteArtists(order, sessionId)
|
322
|
+
send_getFavoriteArtists(order, sessionId)
|
323
|
+
return recv_getFavoriteArtists()
|
324
|
+
end
|
325
|
+
|
326
|
+
def send_getFavoriteArtists(order, sessionId)
|
327
|
+
send_message('getFavoriteArtists', GetFavoriteArtists_args, :order => order, :sessionId => sessionId)
|
328
|
+
end
|
329
|
+
|
330
|
+
def recv_getFavoriteArtists()
|
331
|
+
result = receive_message(GetFavoriteArtists_result)
|
332
|
+
return result.success unless result.success.nil?
|
333
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoriteArtists failed: unknown result')
|
334
|
+
end
|
335
|
+
|
336
|
+
def getFavoriteArtistsByProfileId(profileId, paramPrivacyLevel, order, sessionId)
|
337
|
+
send_getFavoriteArtistsByProfileId(profileId, paramPrivacyLevel, order, sessionId)
|
338
|
+
return recv_getFavoriteArtistsByProfileId()
|
339
|
+
end
|
340
|
+
|
341
|
+
def send_getFavoriteArtistsByProfileId(profileId, paramPrivacyLevel, order, sessionId)
|
342
|
+
send_message('getFavoriteArtistsByProfileId', GetFavoriteArtistsByProfileId_args, :profileId => profileId, :paramPrivacyLevel => paramPrivacyLevel, :order => order, :sessionId => sessionId)
|
343
|
+
end
|
344
|
+
|
345
|
+
def recv_getFavoriteArtistsByProfileId()
|
346
|
+
result = receive_message(GetFavoriteArtistsByProfileId_result)
|
347
|
+
return result.success unless result.success.nil?
|
348
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoriteArtistsByProfileId failed: unknown result')
|
349
|
+
end
|
350
|
+
|
351
|
+
def getFavoritePlaylists(order, sessionId)
|
352
|
+
send_getFavoritePlaylists(order, sessionId)
|
353
|
+
return recv_getFavoritePlaylists()
|
354
|
+
end
|
355
|
+
|
356
|
+
def send_getFavoritePlaylists(order, sessionId)
|
357
|
+
send_message('getFavoritePlaylists', GetFavoritePlaylists_args, :order => order, :sessionId => sessionId)
|
358
|
+
end
|
359
|
+
|
360
|
+
def recv_getFavoritePlaylists()
|
361
|
+
result = receive_message(GetFavoritePlaylists_result)
|
362
|
+
return result.success unless result.success.nil?
|
363
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoritePlaylists failed: unknown result')
|
364
|
+
end
|
365
|
+
|
366
|
+
def getFavoritePlaylistsByProfileId(profileId, paramPrivacyLevel, order, sessonId)
|
367
|
+
send_getFavoritePlaylistsByProfileId(profileId, paramPrivacyLevel, order, sessonId)
|
368
|
+
return recv_getFavoritePlaylistsByProfileId()
|
369
|
+
end
|
370
|
+
|
371
|
+
def send_getFavoritePlaylistsByProfileId(profileId, paramPrivacyLevel, order, sessonId)
|
372
|
+
send_message('getFavoritePlaylistsByProfileId', GetFavoritePlaylistsByProfileId_args, :profileId => profileId, :paramPrivacyLevel => paramPrivacyLevel, :order => order, :sessonId => sessonId)
|
373
|
+
end
|
374
|
+
|
375
|
+
def recv_getFavoritePlaylistsByProfileId()
|
376
|
+
result = receive_message(GetFavoritePlaylistsByProfileId_result)
|
377
|
+
return result.success unless result.success.nil?
|
378
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoritePlaylistsByProfileId failed: unknown result')
|
379
|
+
end
|
380
|
+
|
381
|
+
def getFavoriteTracks(order, sessonId)
|
382
|
+
send_getFavoriteTracks(order, sessonId)
|
383
|
+
return recv_getFavoriteTracks()
|
384
|
+
end
|
385
|
+
|
386
|
+
def send_getFavoriteTracks(order, sessonId)
|
387
|
+
send_message('getFavoriteTracks', GetFavoriteTracks_args, :order => order, :sessonId => sessonId)
|
388
|
+
end
|
389
|
+
|
390
|
+
def recv_getFavoriteTracks()
|
391
|
+
result = receive_message(GetFavoriteTracks_result)
|
392
|
+
return result.success unless result.success.nil?
|
393
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoriteTracks failed: unknown result')
|
394
|
+
end
|
395
|
+
|
396
|
+
def getFavoriteTracksByProfileId(profileId, paramPrivacyLevel, order, sessonId)
|
397
|
+
send_getFavoriteTracksByProfileId(profileId, paramPrivacyLevel, order, sessonId)
|
398
|
+
return recv_getFavoriteTracksByProfileId()
|
399
|
+
end
|
400
|
+
|
401
|
+
def send_getFavoriteTracksByProfileId(profileId, paramPrivacyLevel, order, sessonId)
|
402
|
+
send_message('getFavoriteTracksByProfileId', GetFavoriteTracksByProfileId_args, :profileId => profileId, :paramPrivacyLevel => paramPrivacyLevel, :order => order, :sessonId => sessonId)
|
403
|
+
end
|
404
|
+
|
405
|
+
def recv_getFavoriteTracksByProfileId()
|
406
|
+
result = receive_message(GetFavoriteTracksByProfileId_result)
|
407
|
+
return result.success unless result.success.nil?
|
408
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFavoriteTracksByProfileId failed: unknown result')
|
409
|
+
end
|
410
|
+
|
411
|
+
def getWallPosts(profileId, startIndex, offset, sessonId)
|
412
|
+
send_getWallPosts(profileId, startIndex, offset, sessonId)
|
413
|
+
return recv_getWallPosts()
|
414
|
+
end
|
415
|
+
|
416
|
+
def send_getWallPosts(profileId, startIndex, offset, sessonId)
|
417
|
+
send_message('getWallPosts', GetWallPosts_args, :profileId => profileId, :startIndex => startIndex, :offset => offset, :sessonId => sessonId)
|
418
|
+
end
|
419
|
+
|
420
|
+
def recv_getWallPosts()
|
421
|
+
result = receive_message(GetWallPosts_result)
|
422
|
+
return result.success unless result.success.nil?
|
423
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getWallPosts failed: unknown result')
|
424
|
+
end
|
425
|
+
|
426
|
+
def getFriends(sessonId)
|
427
|
+
send_getFriends(sessonId)
|
428
|
+
return recv_getFriends()
|
429
|
+
end
|
430
|
+
|
431
|
+
def send_getFriends(sessonId)
|
432
|
+
send_message('getFriends', GetFriends_args, :sessonId => sessonId)
|
433
|
+
end
|
434
|
+
|
435
|
+
def recv_getFriends()
|
436
|
+
result = receive_message(GetFriends_result)
|
437
|
+
return result.success unless result.success.nil?
|
438
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getFriends failed: unknown result')
|
439
|
+
end
|
440
|
+
|
441
|
+
def getLastUpdatedFavAlbum(sessonId)
|
442
|
+
send_getLastUpdatedFavAlbum(sessonId)
|
443
|
+
return recv_getLastUpdatedFavAlbum()
|
444
|
+
end
|
445
|
+
|
446
|
+
def send_getLastUpdatedFavAlbum(sessonId)
|
447
|
+
send_message('getLastUpdatedFavAlbum', GetLastUpdatedFavAlbum_args, :sessonId => sessonId)
|
448
|
+
end
|
449
|
+
|
450
|
+
def recv_getLastUpdatedFavAlbum()
|
451
|
+
result = receive_message(GetLastUpdatedFavAlbum_result)
|
452
|
+
return result.success unless result.success.nil?
|
453
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastUpdatedFavAlbum failed: unknown result')
|
454
|
+
end
|
455
|
+
|
456
|
+
def getLastUpdatedFavArtist(sessonId)
|
457
|
+
send_getLastUpdatedFavArtist(sessonId)
|
458
|
+
return recv_getLastUpdatedFavArtist()
|
459
|
+
end
|
460
|
+
|
461
|
+
def send_getLastUpdatedFavArtist(sessonId)
|
462
|
+
send_message('getLastUpdatedFavArtist', GetLastUpdatedFavArtist_args, :sessonId => sessonId)
|
463
|
+
end
|
464
|
+
|
465
|
+
def recv_getLastUpdatedFavArtist()
|
466
|
+
result = receive_message(GetLastUpdatedFavArtist_result)
|
467
|
+
return result.success unless result.success.nil?
|
468
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastUpdatedFavArtist failed: unknown result')
|
469
|
+
end
|
470
|
+
|
471
|
+
def getLastUpdatedFavPlaylist(sessonId)
|
472
|
+
send_getLastUpdatedFavPlaylist(sessonId)
|
473
|
+
return recv_getLastUpdatedFavPlaylist()
|
474
|
+
end
|
475
|
+
|
476
|
+
def send_getLastUpdatedFavPlaylist(sessonId)
|
477
|
+
send_message('getLastUpdatedFavPlaylist', GetLastUpdatedFavPlaylist_args, :sessonId => sessonId)
|
478
|
+
end
|
479
|
+
|
480
|
+
def recv_getLastUpdatedFavPlaylist()
|
481
|
+
result = receive_message(GetLastUpdatedFavPlaylist_result)
|
482
|
+
return result.success unless result.success.nil?
|
483
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastUpdatedFavPlaylist failed: unknown result')
|
484
|
+
end
|
485
|
+
|
486
|
+
def getLastUpdatedFavTrack(sessonId)
|
487
|
+
send_getLastUpdatedFavTrack(sessonId)
|
488
|
+
return recv_getLastUpdatedFavTrack()
|
489
|
+
end
|
490
|
+
|
491
|
+
def send_getLastUpdatedFavTrack(sessonId)
|
492
|
+
send_message('getLastUpdatedFavTrack', GetLastUpdatedFavTrack_args, :sessonId => sessonId)
|
493
|
+
end
|
494
|
+
|
495
|
+
def recv_getLastUpdatedFavTrack()
|
496
|
+
result = receive_message(GetLastUpdatedFavTrack_result)
|
497
|
+
return result.success unless result.success.nil?
|
498
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastUpdatedFavTrack failed: unknown result')
|
499
|
+
end
|
500
|
+
|
501
|
+
def getLastUpdatedPlaylist(sessonId)
|
502
|
+
send_getLastUpdatedPlaylist(sessonId)
|
503
|
+
return recv_getLastUpdatedPlaylist()
|
504
|
+
end
|
505
|
+
|
506
|
+
def send_getLastUpdatedPlaylist(sessonId)
|
507
|
+
send_message('getLastUpdatedPlaylist', GetLastUpdatedPlaylist_args, :sessonId => sessonId)
|
508
|
+
end
|
509
|
+
|
510
|
+
def recv_getLastUpdatedPlaylist()
|
511
|
+
result = receive_message(GetLastUpdatedPlaylist_result)
|
512
|
+
return result.success unless result.success.nil?
|
513
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastUpdatedPlaylist failed: unknown result')
|
514
|
+
end
|
515
|
+
|
516
|
+
def getPlaylistsByCategoryId(categoryId, startIndex, limit, sessonId)
|
517
|
+
send_getPlaylistsByCategoryId(categoryId, startIndex, limit, sessonId)
|
518
|
+
return recv_getPlaylistsByCategoryId()
|
519
|
+
end
|
520
|
+
|
521
|
+
def send_getPlaylistsByCategoryId(categoryId, startIndex, limit, sessonId)
|
522
|
+
send_message('getPlaylistsByCategoryId', GetPlaylistsByCategoryId_args, :categoryId => categoryId, :startIndex => startIndex, :limit => limit, :sessonId => sessonId)
|
523
|
+
end
|
524
|
+
|
525
|
+
def recv_getPlaylistsByCategoryId()
|
526
|
+
result = receive_message(GetPlaylistsByCategoryId_result)
|
527
|
+
return result.success unless result.success.nil?
|
528
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPlaylistsByCategoryId failed: unknown result')
|
529
|
+
end
|
530
|
+
|
531
|
+
def getProfileTrackPlayListsByArtistId(artistId, startIndex, limit, sessonId)
|
532
|
+
send_getProfileTrackPlayListsByArtistId(artistId, startIndex, limit, sessonId)
|
533
|
+
return recv_getProfileTrackPlayListsByArtistId()
|
534
|
+
end
|
535
|
+
|
536
|
+
def send_getProfileTrackPlayListsByArtistId(artistId, startIndex, limit, sessonId)
|
537
|
+
send_message('getProfileTrackPlayListsByArtistId', GetProfileTrackPlayListsByArtistId_args, :artistId => artistId, :startIndex => startIndex, :limit => limit, :sessonId => sessonId)
|
538
|
+
end
|
539
|
+
|
540
|
+
def recv_getProfileTrackPlayListsByArtistId()
|
541
|
+
result = receive_message(GetProfileTrackPlayListsByArtistId_result)
|
542
|
+
return result.success unless result.success.nil?
|
543
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getProfileTrackPlayListsByArtistId failed: unknown result')
|
544
|
+
end
|
545
|
+
|
546
|
+
def getProfileTrackPlayListsInclidingArtistId(artistId, startIndex, limit, sessonId)
|
547
|
+
send_getProfileTrackPlayListsInclidingArtistId(artistId, startIndex, limit, sessonId)
|
548
|
+
return recv_getProfileTrackPlayListsInclidingArtistId()
|
549
|
+
end
|
550
|
+
|
551
|
+
def send_getProfileTrackPlayListsInclidingArtistId(artistId, startIndex, limit, sessonId)
|
552
|
+
send_message('getProfileTrackPlayListsInclidingArtistId', GetProfileTrackPlayListsInclidingArtistId_args, :artistId => artistId, :startIndex => startIndex, :limit => limit, :sessonId => sessonId)
|
553
|
+
end
|
554
|
+
|
555
|
+
def recv_getProfileTrackPlayListsInclidingArtistId()
|
556
|
+
result = receive_message(GetProfileTrackPlayListsInclidingArtistId_result)
|
557
|
+
return result.success unless result.success.nil?
|
558
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getProfileTrackPlayListsInclidingArtistId failed: unknown result')
|
559
|
+
end
|
560
|
+
|
561
|
+
def getTopTracksByArtistId(artistId, limit, onlyAsMainArtist, sessonId)
|
562
|
+
send_getTopTracksByArtistId(artistId, limit, onlyAsMainArtist, sessonId)
|
563
|
+
return recv_getTopTracksByArtistId()
|
564
|
+
end
|
565
|
+
|
566
|
+
def send_getTopTracksByArtistId(artistId, limit, onlyAsMainArtist, sessonId)
|
567
|
+
send_message('getTopTracksByArtistId', GetTopTracksByArtistId_args, :artistId => artistId, :limit => limit, :onlyAsMainArtist => onlyAsMainArtist, :sessonId => sessonId)
|
568
|
+
end
|
569
|
+
|
570
|
+
def recv_getTopTracksByArtistId()
|
571
|
+
result = receive_message(GetTopTracksByArtistId_result)
|
572
|
+
return result.success unless result.success.nil?
|
573
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTopTracksByArtistId failed: unknown result')
|
574
|
+
end
|
575
|
+
|
576
|
+
def getTrackById(trackId, sessonId)
|
577
|
+
send_getTrackById(trackId, sessonId)
|
578
|
+
return recv_getTrackById()
|
579
|
+
end
|
580
|
+
|
581
|
+
def send_getTrackById(trackId, sessonId)
|
582
|
+
send_message('getTrackById', GetTrackById_args, :trackId => trackId, :sessonId => sessonId)
|
583
|
+
end
|
584
|
+
|
585
|
+
def recv_getTrackById()
|
586
|
+
result = receive_message(GetTrackById_result)
|
587
|
+
return result.success unless result.success.nil?
|
588
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTrackById failed: unknown result')
|
589
|
+
end
|
590
|
+
|
591
|
+
def getTracksByAlbumId(albumId, sessonId)
|
592
|
+
send_getTracksByAlbumId(albumId, sessonId)
|
593
|
+
return recv_getTracksByAlbumId()
|
594
|
+
end
|
595
|
+
|
596
|
+
def send_getTracksByAlbumId(albumId, sessonId)
|
597
|
+
send_message('getTracksByAlbumId', GetTracksByAlbumId_args, :albumId => albumId, :sessonId => sessonId)
|
598
|
+
end
|
599
|
+
|
600
|
+
def recv_getTracksByAlbumId()
|
601
|
+
result = receive_message(GetTracksByAlbumId_result)
|
602
|
+
return result.success unless result.success.nil?
|
603
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTracksByAlbumId failed: unknown result')
|
604
|
+
end
|
605
|
+
|
606
|
+
def getTracksByCategoryId(categoryId, startIndex, limit, sessonId)
|
607
|
+
send_getTracksByCategoryId(categoryId, startIndex, limit, sessonId)
|
608
|
+
return recv_getTracksByCategoryId()
|
609
|
+
end
|
610
|
+
|
611
|
+
def send_getTracksByCategoryId(categoryId, startIndex, limit, sessonId)
|
612
|
+
send_message('getTracksByCategoryId', GetTracksByCategoryId_args, :categoryId => categoryId, :startIndex => startIndex, :limit => limit, :sessonId => sessonId)
|
613
|
+
end
|
614
|
+
|
615
|
+
def recv_getTracksByCategoryId()
|
616
|
+
result = receive_message(GetTracksByCategoryId_result)
|
617
|
+
return result.success unless result.success.nil?
|
618
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTracksByCategoryId failed: unknown result')
|
619
|
+
end
|
620
|
+
|
621
|
+
def getUserPlaylistByUuid(uuid, sessonId)
|
622
|
+
send_getUserPlaylistByUuid(uuid, sessonId)
|
623
|
+
return recv_getUserPlaylistByUuid()
|
624
|
+
end
|
625
|
+
|
626
|
+
def send_getUserPlaylistByUuid(uuid, sessonId)
|
627
|
+
send_message('getUserPlaylistByUuid', GetUserPlaylistByUuid_args, :uuid => uuid, :sessonId => sessonId)
|
628
|
+
end
|
629
|
+
|
630
|
+
def recv_getUserPlaylistByUuid()
|
631
|
+
result = receive_message(GetUserPlaylistByUuid_result)
|
632
|
+
return result.success unless result.success.nil?
|
633
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUserPlaylistByUuid failed: unknown result')
|
634
|
+
end
|
635
|
+
|
636
|
+
def getUserPlaylistsByType(type, startIndex, limit, sessonId)
|
637
|
+
send_getUserPlaylistsByType(type, startIndex, limit, sessonId)
|
638
|
+
return recv_getUserPlaylistsByType()
|
639
|
+
end
|
640
|
+
|
641
|
+
def send_getUserPlaylistsByType(type, startIndex, limit, sessonId)
|
642
|
+
send_message('getUserPlaylistsByType', GetUserPlaylistsByType_args, :type => type, :startIndex => startIndex, :limit => limit, :sessonId => sessonId)
|
643
|
+
end
|
644
|
+
|
645
|
+
def recv_getUserPlaylistsByType()
|
646
|
+
result = receive_message(GetUserPlaylistsByType_result)
|
647
|
+
return result.success unless result.success.nil?
|
648
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUserPlaylistsByType failed: unknown result')
|
649
|
+
end
|
650
|
+
|
651
|
+
def getUserPlaylistsByUuids(uuids, sessonId)
|
652
|
+
send_getUserPlaylistsByUuids(uuids, sessonId)
|
653
|
+
return recv_getUserPlaylistsByUuids()
|
654
|
+
end
|
655
|
+
|
656
|
+
def send_getUserPlaylistsByUuids(uuids, sessonId)
|
657
|
+
send_message('getUserPlaylistsByUuids', GetUserPlaylistsByUuids_args, :uuids => uuids, :sessonId => sessonId)
|
658
|
+
end
|
659
|
+
|
660
|
+
def recv_getUserPlaylistsByUuids()
|
661
|
+
result = receive_message(GetUserPlaylistsByUuids_result)
|
662
|
+
return result.success unless result.success.nil?
|
663
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUserPlaylistsByUuids failed: unknown result')
|
664
|
+
end
|
665
|
+
|
666
|
+
def moveUserPlaylistTracks(uuid, fromIndex, toIndex, sessonId)
|
667
|
+
send_moveUserPlaylistTracks(uuid, fromIndex, toIndex, sessonId)
|
668
|
+
return recv_moveUserPlaylistTracks()
|
669
|
+
end
|
670
|
+
|
671
|
+
def send_moveUserPlaylistTracks(uuid, fromIndex, toIndex, sessonId)
|
672
|
+
send_message('moveUserPlaylistTracks', MoveUserPlaylistTracks_args, :uuid => uuid, :fromIndex => fromIndex, :toIndex => toIndex, :sessonId => sessonId)
|
673
|
+
end
|
674
|
+
|
675
|
+
def recv_moveUserPlaylistTracks()
|
676
|
+
result = receive_message(MoveUserPlaylistTracks_result)
|
677
|
+
return result.success unless result.success.nil?
|
678
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'moveUserPlaylistTracks failed: unknown result')
|
679
|
+
end
|
680
|
+
|
681
|
+
def removeUserPlaylistByUuid(uuid, sessonId)
|
682
|
+
send_removeUserPlaylistByUuid(uuid, sessonId)
|
683
|
+
return recv_removeUserPlaylistByUuid()
|
684
|
+
end
|
685
|
+
|
686
|
+
def send_removeUserPlaylistByUuid(uuid, sessonId)
|
687
|
+
send_message('removeUserPlaylistByUuid', RemoveUserPlaylistByUuid_args, :uuid => uuid, :sessonId => sessonId)
|
688
|
+
end
|
689
|
+
|
690
|
+
def recv_removeUserPlaylistByUuid()
|
691
|
+
result = receive_message(RemoveUserPlaylistByUuid_result)
|
692
|
+
return result.success unless result.success.nil?
|
693
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'removeUserPlaylistByUuid failed: unknown result')
|
694
|
+
end
|
695
|
+
|
696
|
+
def removeUserPlaylistTracks(uuid, indices, sessonId)
|
697
|
+
send_removeUserPlaylistTracks(uuid, indices, sessonId)
|
698
|
+
return recv_removeUserPlaylistTracks()
|
699
|
+
end
|
700
|
+
|
701
|
+
def send_removeUserPlaylistTracks(uuid, indices, sessonId)
|
702
|
+
send_message('removeUserPlaylistTracks', RemoveUserPlaylistTracks_args, :uuid => uuid, :indices => indices, :sessonId => sessonId)
|
703
|
+
end
|
704
|
+
|
705
|
+
def recv_removeUserPlaylistTracks()
|
706
|
+
result = receive_message(RemoveUserPlaylistTracks_result)
|
707
|
+
return result.success unless result.success.nil?
|
708
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'removeUserPlaylistTracks failed: unknown result')
|
709
|
+
end
|
710
|
+
|
711
|
+
def renameUserPlaylistByUuid(uuid, title, sessonId)
|
712
|
+
send_renameUserPlaylistByUuid(uuid, title, sessonId)
|
713
|
+
return recv_renameUserPlaylistByUuid()
|
714
|
+
end
|
715
|
+
|
716
|
+
def send_renameUserPlaylistByUuid(uuid, title, sessonId)
|
717
|
+
send_message('renameUserPlaylistByUuid', RenameUserPlaylistByUuid_args, :uuid => uuid, :title => title, :sessonId => sessonId)
|
718
|
+
end
|
719
|
+
|
720
|
+
def recv_renameUserPlaylistByUuid()
|
721
|
+
result = receive_message(RenameUserPlaylistByUuid_result)
|
722
|
+
return result.success unless result.success.nil?
|
723
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'renameUserPlaylistByUuid failed: unknown result')
|
724
|
+
end
|
725
|
+
|
726
|
+
def suggestTracksByArtistIds(artistIds, limit, sessonId)
|
727
|
+
send_suggestTracksByArtistIds(artistIds, limit, sessonId)
|
728
|
+
return recv_suggestTracksByArtistIds()
|
729
|
+
end
|
730
|
+
|
731
|
+
def send_suggestTracksByArtistIds(artistIds, limit, sessonId)
|
732
|
+
send_message('suggestTracksByArtistIds', SuggestTracksByArtistIds_args, :artistIds => artistIds, :limit => limit, :sessonId => sessonId)
|
733
|
+
end
|
734
|
+
|
735
|
+
def recv_suggestTracksByArtistIds()
|
736
|
+
result = receive_message(SuggestTracksByArtistIds_result)
|
737
|
+
return result.success unless result.success.nil?
|
738
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'suggestTracksByArtistIds failed: unknown result')
|
739
|
+
end
|
740
|
+
|
741
|
+
def suggestTracksByTrackIds(trackIds, limit, sessonId)
|
742
|
+
send_suggestTracksByTrackIds(trackIds, limit, sessonId)
|
743
|
+
return recv_suggestTracksByTrackIds()
|
744
|
+
end
|
745
|
+
|
746
|
+
def send_suggestTracksByTrackIds(trackIds, limit, sessonId)
|
747
|
+
send_message('suggestTracksByTrackIds', SuggestTracksByTrackIds_args, :trackIds => trackIds, :limit => limit, :sessonId => sessonId)
|
748
|
+
end
|
749
|
+
|
750
|
+
def recv_suggestTracksByTrackIds()
|
751
|
+
result = receive_message(SuggestTracksByTrackIds_result)
|
752
|
+
return result.success unless result.success.nil?
|
753
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'suggestTracksByTrackIds failed: unknown result')
|
754
|
+
end
|
755
|
+
|
756
|
+
end
|
757
|
+
|
758
|
+
class Processor
|
759
|
+
include ::Thrift::Processor
|
760
|
+
|
761
|
+
def process_search(seqid, iprot, oprot)
|
762
|
+
args = read_args(iprot, Search_args)
|
763
|
+
result = Search_result.new()
|
764
|
+
result.success = @handler.search(args.term, args.limitArtists, args.limitAlbums, args.limitTracks, args.sessionId, args.limitPlaylists)
|
765
|
+
write_result(result, oprot, 'search', seqid)
|
766
|
+
end
|
767
|
+
|
768
|
+
def process_addAlbumToFavorites(seqid, iprot, oprot)
|
769
|
+
args = read_args(iprot, AddAlbumToFavorites_args)
|
770
|
+
@handler.addAlbumToFavorites(args.albumId, args.sessionId)
|
771
|
+
return
|
772
|
+
end
|
773
|
+
|
774
|
+
def process_addArtistToFavorites(seqid, iprot, oprot)
|
775
|
+
args = read_args(iprot, AddArtistToFavorites_args)
|
776
|
+
@handler.addArtistToFavorites(args.artistId, args.sessionId)
|
777
|
+
return
|
778
|
+
end
|
779
|
+
|
780
|
+
def process_addFriend(seqid, iprot, oprot)
|
781
|
+
args = read_args(iprot, AddFriend_args)
|
782
|
+
@handler.addFriend(args.userId, args.sessionId)
|
783
|
+
return
|
784
|
+
end
|
785
|
+
|
786
|
+
def process_addPlaylistToFavorites(seqid, iprot, oprot)
|
787
|
+
args = read_args(iprot, AddPlaylistToFavorites_args)
|
788
|
+
@handler.addPlaylistToFavorites(args.playlistUUID, args.sessionId)
|
789
|
+
return
|
790
|
+
end
|
791
|
+
|
792
|
+
def process_addTrackToFavorites(seqid, iprot, oprot)
|
793
|
+
args = read_args(iprot, AddTrackToFavorites_args)
|
794
|
+
@handler.addTrackToFavorites(args.trackId, args.sessionId)
|
795
|
+
return
|
796
|
+
end
|
797
|
+
|
798
|
+
def process_addTracksToUserPlaylist(seqid, iprot, oprot)
|
799
|
+
args = read_args(iprot, AddTracksToUserPlaylist_args)
|
800
|
+
result = AddTracksToUserPlaylist_result.new()
|
801
|
+
result.success = @handler.addTracksToUserPlaylist(args.playlistUUID, args.tracks, args.position, args.sessionId)
|
802
|
+
write_result(result, oprot, 'addTracksToUserPlaylist', seqid)
|
803
|
+
end
|
804
|
+
|
805
|
+
def process_addUserPlaylist(seqid, iprot, oprot)
|
806
|
+
args = read_args(iprot, AddUserPlaylist_args)
|
807
|
+
result = AddUserPlaylist_result.new()
|
808
|
+
result.success = @handler.addUserPlaylist(args.title, args.sessionId)
|
809
|
+
write_result(result, oprot, 'addUserPlaylist', seqid)
|
810
|
+
end
|
811
|
+
|
812
|
+
def process_getAlbumById(seqid, iprot, oprot)
|
813
|
+
args = read_args(iprot, GetAlbumById_args)
|
814
|
+
result = GetAlbumById_result.new()
|
815
|
+
result.success = @handler.getAlbumById(args.albumId, args.sessionId)
|
816
|
+
write_result(result, oprot, 'getAlbumById', seqid)
|
817
|
+
end
|
818
|
+
|
819
|
+
def process_getAlbumMetaData(seqid, iprot, oprot)
|
820
|
+
args = read_args(iprot, GetAlbumMetaData_args)
|
821
|
+
result = GetAlbumMetaData_result.new()
|
822
|
+
result.success = @handler.getAlbumMetaData(args.albumId, args.sessionId)
|
823
|
+
write_result(result, oprot, 'getAlbumMetaData', seqid)
|
824
|
+
end
|
825
|
+
|
826
|
+
def process_getAlbumsByArtistId(seqid, iprot, oprot)
|
827
|
+
args = read_args(iprot, GetAlbumsByArtistId_args)
|
828
|
+
result = GetAlbumsByArtistId_result.new()
|
829
|
+
result.success = @handler.getAlbumsByArtistId(args.artistId, args.limit, args.order, args.sessionId, args.filter)
|
830
|
+
write_result(result, oprot, 'getAlbumsByArtistId', seqid)
|
831
|
+
end
|
832
|
+
|
833
|
+
def process_getAlbumsByArtistIdWithPaging(seqid, iprot, oprot)
|
834
|
+
args = read_args(iprot, GetAlbumsByArtistIdWithPaging_args)
|
835
|
+
result = GetAlbumsByArtistIdWithPaging_result.new()
|
836
|
+
result.success = @handler.getAlbumsByArtistIdWithPaging(args.artistId, args.startIndex, args.limit, args.includeSingles, args.order, args.sessionId)
|
837
|
+
write_result(result, oprot, 'getAlbumsByArtistIdWithPaging', seqid)
|
838
|
+
end
|
839
|
+
|
840
|
+
def process_getAlbumsByCategoryId(seqid, iprot, oprot)
|
841
|
+
args = read_args(iprot, GetAlbumsByCategoryId_args)
|
842
|
+
result = GetAlbumsByCategoryId_result.new()
|
843
|
+
result.success = @handler.getAlbumsByCategoryId(args.categoryId, args.startIndex, args.limit, args.sessionId)
|
844
|
+
write_result(result, oprot, 'getAlbumsByCategoryId', seqid)
|
845
|
+
end
|
846
|
+
|
847
|
+
def process_getAlbumsByIds(seqid, iprot, oprot)
|
848
|
+
args = read_args(iprot, GetAlbumsByIds_args)
|
849
|
+
result = GetAlbumsByIds_result.new()
|
850
|
+
result.success = @handler.getAlbumsByIds(args.albumIds, args.sessionId)
|
851
|
+
write_result(result, oprot, 'getAlbumsByIds', seqid)
|
852
|
+
end
|
853
|
+
|
854
|
+
def process_getAllUserPlaylists(seqid, iprot, oprot)
|
855
|
+
args = read_args(iprot, GetAllUserPlaylists_args)
|
856
|
+
result = GetAllUserPlaylists_result.new()
|
857
|
+
result.success = @handler.getAllUserPlaylists(args.sessionId)
|
858
|
+
write_result(result, oprot, 'getAllUserPlaylists', seqid)
|
859
|
+
end
|
860
|
+
|
861
|
+
def process_getArtistById(seqid, iprot, oprot)
|
862
|
+
args = read_args(iprot, GetArtistById_args)
|
863
|
+
result = GetArtistById_result.new()
|
864
|
+
result.success = @handler.getArtistById(args.artistId, args.sessionId)
|
865
|
+
write_result(result, oprot, 'getArtistById', seqid)
|
866
|
+
end
|
867
|
+
|
868
|
+
def process_getArtistMetaData(seqid, iprot, oprot)
|
869
|
+
args = read_args(iprot, GetArtistMetaData_args)
|
870
|
+
result = GetArtistMetaData_result.new()
|
871
|
+
result.success = @handler.getArtistMetaData(args.artistId, args.sessionId)
|
872
|
+
write_result(result, oprot, 'getArtistMetaData', seqid)
|
873
|
+
end
|
874
|
+
|
875
|
+
def process_getBookletURL(seqid, iprot, oprot)
|
876
|
+
args = read_args(iprot, GetBookletURL_args)
|
877
|
+
result = GetBookletURL_result.new()
|
878
|
+
result.success = @handler.getBookletURL(args.albumId, args.sessionId)
|
879
|
+
write_result(result, oprot, 'getBookletURL', seqid)
|
880
|
+
end
|
881
|
+
|
882
|
+
def process_getCategories(seqid, iprot, oprot)
|
883
|
+
args = read_args(iprot, GetCategories_args)
|
884
|
+
result = GetCategories_result.new()
|
885
|
+
result.success = @handler.getCategories(args.categoryId, args.sessionId, args.startIndex, args.limit)
|
886
|
+
write_result(result, oprot, 'getCategories', seqid)
|
887
|
+
end
|
888
|
+
|
889
|
+
def process_getCategoryAndSubCategories(seqid, iprot, oprot)
|
890
|
+
args = read_args(iprot, GetCategoryAndSubCategories_args)
|
891
|
+
result = GetCategoryAndSubCategories_result.new()
|
892
|
+
result.success = @handler.getCategoryAndSubCategories(args.categoryId, args.depth, args.sessionId)
|
893
|
+
write_result(result, oprot, 'getCategoryAndSubCategories', seqid)
|
894
|
+
end
|
895
|
+
|
896
|
+
def process_getCategoryById(seqid, iprot, oprot)
|
897
|
+
args = read_args(iprot, GetCategoryById_args)
|
898
|
+
result = GetCategoryById_result.new()
|
899
|
+
result.success = @handler.getCategoryById(args.categoryId, args.sessionId)
|
900
|
+
write_result(result, oprot, 'getCategoryById', seqid)
|
901
|
+
end
|
902
|
+
|
903
|
+
def process_getFavoriteAlbums(seqid, iprot, oprot)
|
904
|
+
args = read_args(iprot, GetFavoriteAlbums_args)
|
905
|
+
result = GetFavoriteAlbums_result.new()
|
906
|
+
result.success = @handler.getFavoriteAlbums(args.order, args.sessionId)
|
907
|
+
write_result(result, oprot, 'getFavoriteAlbums', seqid)
|
908
|
+
end
|
909
|
+
|
910
|
+
def process_getFavoriteAlbumsByProfileId(seqid, iprot, oprot)
|
911
|
+
args = read_args(iprot, GetFavoriteAlbumsByProfileId_args)
|
912
|
+
result = GetFavoriteAlbumsByProfileId_result.new()
|
913
|
+
result.success = @handler.getFavoriteAlbumsByProfileId(args.profileId, args.paramPrivacyLevel, args.order, args.sessionId)
|
914
|
+
write_result(result, oprot, 'getFavoriteAlbumsByProfileId', seqid)
|
915
|
+
end
|
916
|
+
|
917
|
+
def process_getFavoriteArtists(seqid, iprot, oprot)
|
918
|
+
args = read_args(iprot, GetFavoriteArtists_args)
|
919
|
+
result = GetFavoriteArtists_result.new()
|
920
|
+
result.success = @handler.getFavoriteArtists(args.order, args.sessionId)
|
921
|
+
write_result(result, oprot, 'getFavoriteArtists', seqid)
|
922
|
+
end
|
923
|
+
|
924
|
+
def process_getFavoriteArtistsByProfileId(seqid, iprot, oprot)
|
925
|
+
args = read_args(iprot, GetFavoriteArtistsByProfileId_args)
|
926
|
+
result = GetFavoriteArtistsByProfileId_result.new()
|
927
|
+
result.success = @handler.getFavoriteArtistsByProfileId(args.profileId, args.paramPrivacyLevel, args.order, args.sessionId)
|
928
|
+
write_result(result, oprot, 'getFavoriteArtistsByProfileId', seqid)
|
929
|
+
end
|
930
|
+
|
931
|
+
def process_getFavoritePlaylists(seqid, iprot, oprot)
|
932
|
+
args = read_args(iprot, GetFavoritePlaylists_args)
|
933
|
+
result = GetFavoritePlaylists_result.new()
|
934
|
+
result.success = @handler.getFavoritePlaylists(args.order, args.sessionId)
|
935
|
+
write_result(result, oprot, 'getFavoritePlaylists', seqid)
|
936
|
+
end
|
937
|
+
|
938
|
+
def process_getFavoritePlaylistsByProfileId(seqid, iprot, oprot)
|
939
|
+
args = read_args(iprot, GetFavoritePlaylistsByProfileId_args)
|
940
|
+
result = GetFavoritePlaylistsByProfileId_result.new()
|
941
|
+
result.success = @handler.getFavoritePlaylistsByProfileId(args.profileId, args.paramPrivacyLevel, args.order, args.sessonId)
|
942
|
+
write_result(result, oprot, 'getFavoritePlaylistsByProfileId', seqid)
|
943
|
+
end
|
944
|
+
|
945
|
+
def process_getFavoriteTracks(seqid, iprot, oprot)
|
946
|
+
args = read_args(iprot, GetFavoriteTracks_args)
|
947
|
+
result = GetFavoriteTracks_result.new()
|
948
|
+
result.success = @handler.getFavoriteTracks(args.order, args.sessonId)
|
949
|
+
write_result(result, oprot, 'getFavoriteTracks', seqid)
|
950
|
+
end
|
951
|
+
|
952
|
+
def process_getFavoriteTracksByProfileId(seqid, iprot, oprot)
|
953
|
+
args = read_args(iprot, GetFavoriteTracksByProfileId_args)
|
954
|
+
result = GetFavoriteTracksByProfileId_result.new()
|
955
|
+
result.success = @handler.getFavoriteTracksByProfileId(args.profileId, args.paramPrivacyLevel, args.order, args.sessonId)
|
956
|
+
write_result(result, oprot, 'getFavoriteTracksByProfileId', seqid)
|
957
|
+
end
|
958
|
+
|
959
|
+
def process_getWallPosts(seqid, iprot, oprot)
|
960
|
+
args = read_args(iprot, GetWallPosts_args)
|
961
|
+
result = GetWallPosts_result.new()
|
962
|
+
result.success = @handler.getWallPosts(args.profileId, args.startIndex, args.offset, args.sessonId)
|
963
|
+
write_result(result, oprot, 'getWallPosts', seqid)
|
964
|
+
end
|
965
|
+
|
966
|
+
def process_getFriends(seqid, iprot, oprot)
|
967
|
+
args = read_args(iprot, GetFriends_args)
|
968
|
+
result = GetFriends_result.new()
|
969
|
+
result.success = @handler.getFriends(args.sessonId)
|
970
|
+
write_result(result, oprot, 'getFriends', seqid)
|
971
|
+
end
|
972
|
+
|
973
|
+
def process_getLastUpdatedFavAlbum(seqid, iprot, oprot)
|
974
|
+
args = read_args(iprot, GetLastUpdatedFavAlbum_args)
|
975
|
+
result = GetLastUpdatedFavAlbum_result.new()
|
976
|
+
result.success = @handler.getLastUpdatedFavAlbum(args.sessonId)
|
977
|
+
write_result(result, oprot, 'getLastUpdatedFavAlbum', seqid)
|
978
|
+
end
|
979
|
+
|
980
|
+
def process_getLastUpdatedFavArtist(seqid, iprot, oprot)
|
981
|
+
args = read_args(iprot, GetLastUpdatedFavArtist_args)
|
982
|
+
result = GetLastUpdatedFavArtist_result.new()
|
983
|
+
result.success = @handler.getLastUpdatedFavArtist(args.sessonId)
|
984
|
+
write_result(result, oprot, 'getLastUpdatedFavArtist', seqid)
|
985
|
+
end
|
986
|
+
|
987
|
+
def process_getLastUpdatedFavPlaylist(seqid, iprot, oprot)
|
988
|
+
args = read_args(iprot, GetLastUpdatedFavPlaylist_args)
|
989
|
+
result = GetLastUpdatedFavPlaylist_result.new()
|
990
|
+
result.success = @handler.getLastUpdatedFavPlaylist(args.sessonId)
|
991
|
+
write_result(result, oprot, 'getLastUpdatedFavPlaylist', seqid)
|
992
|
+
end
|
993
|
+
|
994
|
+
def process_getLastUpdatedFavTrack(seqid, iprot, oprot)
|
995
|
+
args = read_args(iprot, GetLastUpdatedFavTrack_args)
|
996
|
+
result = GetLastUpdatedFavTrack_result.new()
|
997
|
+
result.success = @handler.getLastUpdatedFavTrack(args.sessonId)
|
998
|
+
write_result(result, oprot, 'getLastUpdatedFavTrack', seqid)
|
999
|
+
end
|
1000
|
+
|
1001
|
+
def process_getLastUpdatedPlaylist(seqid, iprot, oprot)
|
1002
|
+
args = read_args(iprot, GetLastUpdatedPlaylist_args)
|
1003
|
+
result = GetLastUpdatedPlaylist_result.new()
|
1004
|
+
result.success = @handler.getLastUpdatedPlaylist(args.sessonId)
|
1005
|
+
write_result(result, oprot, 'getLastUpdatedPlaylist', seqid)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
def process_getPlaylistsByCategoryId(seqid, iprot, oprot)
|
1009
|
+
args = read_args(iprot, GetPlaylistsByCategoryId_args)
|
1010
|
+
result = GetPlaylistsByCategoryId_result.new()
|
1011
|
+
result.success = @handler.getPlaylistsByCategoryId(args.categoryId, args.startIndex, args.limit, args.sessonId)
|
1012
|
+
write_result(result, oprot, 'getPlaylistsByCategoryId', seqid)
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
def process_getProfileTrackPlayListsByArtistId(seqid, iprot, oprot)
|
1016
|
+
args = read_args(iprot, GetProfileTrackPlayListsByArtistId_args)
|
1017
|
+
result = GetProfileTrackPlayListsByArtistId_result.new()
|
1018
|
+
result.success = @handler.getProfileTrackPlayListsByArtistId(args.artistId, args.startIndex, args.limit, args.sessonId)
|
1019
|
+
write_result(result, oprot, 'getProfileTrackPlayListsByArtistId', seqid)
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
def process_getProfileTrackPlayListsInclidingArtistId(seqid, iprot, oprot)
|
1023
|
+
args = read_args(iprot, GetProfileTrackPlayListsInclidingArtistId_args)
|
1024
|
+
result = GetProfileTrackPlayListsInclidingArtistId_result.new()
|
1025
|
+
result.success = @handler.getProfileTrackPlayListsInclidingArtistId(args.artistId, args.startIndex, args.limit, args.sessonId)
|
1026
|
+
write_result(result, oprot, 'getProfileTrackPlayListsInclidingArtistId', seqid)
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
def process_getTopTracksByArtistId(seqid, iprot, oprot)
|
1030
|
+
args = read_args(iprot, GetTopTracksByArtistId_args)
|
1031
|
+
result = GetTopTracksByArtistId_result.new()
|
1032
|
+
result.success = @handler.getTopTracksByArtistId(args.artistId, args.limit, args.onlyAsMainArtist, args.sessonId)
|
1033
|
+
write_result(result, oprot, 'getTopTracksByArtistId', seqid)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
def process_getTrackById(seqid, iprot, oprot)
|
1037
|
+
args = read_args(iprot, GetTrackById_args)
|
1038
|
+
result = GetTrackById_result.new()
|
1039
|
+
result.success = @handler.getTrackById(args.trackId, args.sessonId)
|
1040
|
+
write_result(result, oprot, 'getTrackById', seqid)
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
def process_getTracksByAlbumId(seqid, iprot, oprot)
|
1044
|
+
args = read_args(iprot, GetTracksByAlbumId_args)
|
1045
|
+
result = GetTracksByAlbumId_result.new()
|
1046
|
+
result.success = @handler.getTracksByAlbumId(args.albumId, args.sessonId)
|
1047
|
+
write_result(result, oprot, 'getTracksByAlbumId', seqid)
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
def process_getTracksByCategoryId(seqid, iprot, oprot)
|
1051
|
+
args = read_args(iprot, GetTracksByCategoryId_args)
|
1052
|
+
result = GetTracksByCategoryId_result.new()
|
1053
|
+
result.success = @handler.getTracksByCategoryId(args.categoryId, args.startIndex, args.limit, args.sessonId)
|
1054
|
+
write_result(result, oprot, 'getTracksByCategoryId', seqid)
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
def process_getUserPlaylistByUuid(seqid, iprot, oprot)
|
1058
|
+
args = read_args(iprot, GetUserPlaylistByUuid_args)
|
1059
|
+
result = GetUserPlaylistByUuid_result.new()
|
1060
|
+
result.success = @handler.getUserPlaylistByUuid(args.uuid, args.sessonId)
|
1061
|
+
write_result(result, oprot, 'getUserPlaylistByUuid', seqid)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
def process_getUserPlaylistsByType(seqid, iprot, oprot)
|
1065
|
+
args = read_args(iprot, GetUserPlaylistsByType_args)
|
1066
|
+
result = GetUserPlaylistsByType_result.new()
|
1067
|
+
result.success = @handler.getUserPlaylistsByType(args.type, args.startIndex, args.limit, args.sessonId)
|
1068
|
+
write_result(result, oprot, 'getUserPlaylistsByType', seqid)
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
def process_getUserPlaylistsByUuids(seqid, iprot, oprot)
|
1072
|
+
args = read_args(iprot, GetUserPlaylistsByUuids_args)
|
1073
|
+
result = GetUserPlaylistsByUuids_result.new()
|
1074
|
+
result.success = @handler.getUserPlaylistsByUuids(args.uuids, args.sessonId)
|
1075
|
+
write_result(result, oprot, 'getUserPlaylistsByUuids', seqid)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
def process_moveUserPlaylistTracks(seqid, iprot, oprot)
|
1079
|
+
args = read_args(iprot, MoveUserPlaylistTracks_args)
|
1080
|
+
result = MoveUserPlaylistTracks_result.new()
|
1081
|
+
result.success = @handler.moveUserPlaylistTracks(args.uuid, args.fromIndex, args.toIndex, args.sessonId)
|
1082
|
+
write_result(result, oprot, 'moveUserPlaylistTracks', seqid)
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
def process_removeUserPlaylistByUuid(seqid, iprot, oprot)
|
1086
|
+
args = read_args(iprot, RemoveUserPlaylistByUuid_args)
|
1087
|
+
result = RemoveUserPlaylistByUuid_result.new()
|
1088
|
+
result.success = @handler.removeUserPlaylistByUuid(args.uuid, args.sessonId)
|
1089
|
+
write_result(result, oprot, 'removeUserPlaylistByUuid', seqid)
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
def process_removeUserPlaylistTracks(seqid, iprot, oprot)
|
1093
|
+
args = read_args(iprot, RemoveUserPlaylistTracks_args)
|
1094
|
+
result = RemoveUserPlaylistTracks_result.new()
|
1095
|
+
result.success = @handler.removeUserPlaylistTracks(args.uuid, args.indices, args.sessonId)
|
1096
|
+
write_result(result, oprot, 'removeUserPlaylistTracks', seqid)
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
def process_renameUserPlaylistByUuid(seqid, iprot, oprot)
|
1100
|
+
args = read_args(iprot, RenameUserPlaylistByUuid_args)
|
1101
|
+
result = RenameUserPlaylistByUuid_result.new()
|
1102
|
+
result.success = @handler.renameUserPlaylistByUuid(args.uuid, args.title, args.sessonId)
|
1103
|
+
write_result(result, oprot, 'renameUserPlaylistByUuid', seqid)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
def process_suggestTracksByArtistIds(seqid, iprot, oprot)
|
1107
|
+
args = read_args(iprot, SuggestTracksByArtistIds_args)
|
1108
|
+
result = SuggestTracksByArtistIds_result.new()
|
1109
|
+
result.success = @handler.suggestTracksByArtistIds(args.artistIds, args.limit, args.sessonId)
|
1110
|
+
write_result(result, oprot, 'suggestTracksByArtistIds', seqid)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
def process_suggestTracksByTrackIds(seqid, iprot, oprot)
|
1114
|
+
args = read_args(iprot, SuggestTracksByTrackIds_args)
|
1115
|
+
result = SuggestTracksByTrackIds_result.new()
|
1116
|
+
result.success = @handler.suggestTracksByTrackIds(args.trackIds, args.limit, args.sessonId)
|
1117
|
+
write_result(result, oprot, 'suggestTracksByTrackIds', seqid)
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
1123
|
+
|
1124
|
+
class Search_args
|
1125
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1126
|
+
TERM = 1
|
1127
|
+
LIMITARTISTS = 2
|
1128
|
+
LIMITALBUMS = 3
|
1129
|
+
LIMITTRACKS = 4
|
1130
|
+
SESSIONID = 5
|
1131
|
+
LIMITPLAYLISTS = 6
|
1132
|
+
|
1133
|
+
FIELDS = {
|
1134
|
+
TERM => {:type => ::Thrift::Types::STRING, :name => 'term'},
|
1135
|
+
LIMITARTISTS => {:type => ::Thrift::Types::I32, :name => 'limitArtists'},
|
1136
|
+
LIMITALBUMS => {:type => ::Thrift::Types::I32, :name => 'limitAlbums'},
|
1137
|
+
LIMITTRACKS => {:type => ::Thrift::Types::I32, :name => 'limitTracks'},
|
1138
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'},
|
1139
|
+
LIMITPLAYLISTS => {:type => ::Thrift::Types::I32, :name => 'limitPlaylists'}
|
1140
|
+
}
|
1141
|
+
|
1142
|
+
def struct_fields; FIELDS; end
|
1143
|
+
|
1144
|
+
def validate
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
::Thrift::Struct.generate_accessors self
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
class Search_result
|
1151
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1152
|
+
SUCCESS = 0
|
1153
|
+
|
1154
|
+
FIELDS = {
|
1155
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::SearchResult}
|
1156
|
+
}
|
1157
|
+
|
1158
|
+
def struct_fields; FIELDS; end
|
1159
|
+
|
1160
|
+
def validate
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
::Thrift::Struct.generate_accessors self
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
class AddAlbumToFavorites_args
|
1167
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1168
|
+
ALBUMID = 1
|
1169
|
+
SESSIONID = 2
|
1170
|
+
|
1171
|
+
FIELDS = {
|
1172
|
+
ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'},
|
1173
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
def struct_fields; FIELDS; end
|
1177
|
+
|
1178
|
+
def validate
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
::Thrift::Struct.generate_accessors self
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
class AddAlbumToFavorites_result
|
1185
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1186
|
+
|
1187
|
+
FIELDS = {
|
1188
|
+
|
1189
|
+
}
|
1190
|
+
|
1191
|
+
def struct_fields; FIELDS; end
|
1192
|
+
|
1193
|
+
def validate
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
::Thrift::Struct.generate_accessors self
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
class AddArtistToFavorites_args
|
1200
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1201
|
+
ARTISTID = 1
|
1202
|
+
SESSIONID = 2
|
1203
|
+
|
1204
|
+
FIELDS = {
|
1205
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
1206
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1207
|
+
}
|
1208
|
+
|
1209
|
+
def struct_fields; FIELDS; end
|
1210
|
+
|
1211
|
+
def validate
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
::Thrift::Struct.generate_accessors self
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
class AddArtistToFavorites_result
|
1218
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1219
|
+
|
1220
|
+
FIELDS = {
|
1221
|
+
|
1222
|
+
}
|
1223
|
+
|
1224
|
+
def struct_fields; FIELDS; end
|
1225
|
+
|
1226
|
+
def validate
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
::Thrift::Struct.generate_accessors self
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
class AddFriend_args
|
1233
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1234
|
+
USERID = 1
|
1235
|
+
SESSIONID = 2
|
1236
|
+
|
1237
|
+
FIELDS = {
|
1238
|
+
USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
|
1239
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1240
|
+
}
|
1241
|
+
|
1242
|
+
def struct_fields; FIELDS; end
|
1243
|
+
|
1244
|
+
def validate
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
::Thrift::Struct.generate_accessors self
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
class AddFriend_result
|
1251
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1252
|
+
|
1253
|
+
FIELDS = {
|
1254
|
+
|
1255
|
+
}
|
1256
|
+
|
1257
|
+
def struct_fields; FIELDS; end
|
1258
|
+
|
1259
|
+
def validate
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
::Thrift::Struct.generate_accessors self
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
class AddPlaylistToFavorites_args
|
1266
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1267
|
+
PLAYLISTUUID = 1
|
1268
|
+
SESSIONID = 2
|
1269
|
+
|
1270
|
+
FIELDS = {
|
1271
|
+
PLAYLISTUUID => {:type => ::Thrift::Types::STRING, :name => 'playlistUUID'},
|
1272
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
def struct_fields; FIELDS; end
|
1276
|
+
|
1277
|
+
def validate
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
::Thrift::Struct.generate_accessors self
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
class AddPlaylistToFavorites_result
|
1284
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1285
|
+
|
1286
|
+
FIELDS = {
|
1287
|
+
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
def struct_fields; FIELDS; end
|
1291
|
+
|
1292
|
+
def validate
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
::Thrift::Struct.generate_accessors self
|
1296
|
+
end
|
1297
|
+
|
1298
|
+
class AddTrackToFavorites_args
|
1299
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1300
|
+
TRACKID = 1
|
1301
|
+
SESSIONID = 2
|
1302
|
+
|
1303
|
+
FIELDS = {
|
1304
|
+
TRACKID => {:type => ::Thrift::Types::I32, :name => 'trackId'},
|
1305
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
def struct_fields; FIELDS; end
|
1309
|
+
|
1310
|
+
def validate
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
::Thrift::Struct.generate_accessors self
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
class AddTrackToFavorites_result
|
1317
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1318
|
+
|
1319
|
+
FIELDS = {
|
1320
|
+
|
1321
|
+
}
|
1322
|
+
|
1323
|
+
def struct_fields; FIELDS; end
|
1324
|
+
|
1325
|
+
def validate
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
::Thrift::Struct.generate_accessors self
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
class AddTracksToUserPlaylist_args
|
1332
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1333
|
+
PLAYLISTUUID = 1
|
1334
|
+
TRACKS = 2
|
1335
|
+
POSITION = 3
|
1336
|
+
SESSIONID = 4
|
1337
|
+
|
1338
|
+
FIELDS = {
|
1339
|
+
PLAYLISTUUID => {:type => ::Thrift::Types::STRING, :name => 'playlistUUID'},
|
1340
|
+
TRACKS => {:type => ::Thrift::Types::LIST, :name => 'tracks', :element => {:type => ::Thrift::Types::I32}},
|
1341
|
+
POSITION => {:type => ::Thrift::Types::I32, :name => 'position'},
|
1342
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1343
|
+
}
|
1344
|
+
|
1345
|
+
def struct_fields; FIELDS; end
|
1346
|
+
|
1347
|
+
def validate
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
::Thrift::Struct.generate_accessors self
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
class AddTracksToUserPlaylist_result
|
1354
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1355
|
+
SUCCESS = 0
|
1356
|
+
|
1357
|
+
FIELDS = {
|
1358
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
def struct_fields; FIELDS; end
|
1362
|
+
|
1363
|
+
def validate
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
::Thrift::Struct.generate_accessors self
|
1367
|
+
end
|
1368
|
+
|
1369
|
+
class AddUserPlaylist_args
|
1370
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1371
|
+
TITLE = 1
|
1372
|
+
SESSIONID = 2
|
1373
|
+
|
1374
|
+
FIELDS = {
|
1375
|
+
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
1376
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
def struct_fields; FIELDS; end
|
1380
|
+
|
1381
|
+
def validate
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
::Thrift::Struct.generate_accessors self
|
1385
|
+
end
|
1386
|
+
|
1387
|
+
class AddUserPlaylist_result
|
1388
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1389
|
+
SUCCESS = 0
|
1390
|
+
|
1391
|
+
FIELDS = {
|
1392
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::Playlist}
|
1393
|
+
}
|
1394
|
+
|
1395
|
+
def struct_fields; FIELDS; end
|
1396
|
+
|
1397
|
+
def validate
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
::Thrift::Struct.generate_accessors self
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
class GetAlbumById_args
|
1404
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1405
|
+
ALBUMID = 1
|
1406
|
+
SESSIONID = 2
|
1407
|
+
|
1408
|
+
FIELDS = {
|
1409
|
+
ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'},
|
1410
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
def struct_fields; FIELDS; end
|
1414
|
+
|
1415
|
+
def validate
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
::Thrift::Struct.generate_accessors self
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
class GetAlbumById_result
|
1422
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1423
|
+
SUCCESS = 0
|
1424
|
+
|
1425
|
+
FIELDS = {
|
1426
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::Album}
|
1427
|
+
}
|
1428
|
+
|
1429
|
+
def struct_fields; FIELDS; end
|
1430
|
+
|
1431
|
+
def validate
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
::Thrift::Struct.generate_accessors self
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
class GetAlbumMetaData_args
|
1438
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1439
|
+
ALBUMID = 1
|
1440
|
+
SESSIONID = 2
|
1441
|
+
|
1442
|
+
FIELDS = {
|
1443
|
+
ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'},
|
1444
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
def struct_fields; FIELDS; end
|
1448
|
+
|
1449
|
+
def validate
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
::Thrift::Struct.generate_accessors self
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
class GetAlbumMetaData_result
|
1456
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1457
|
+
SUCCESS = 0
|
1458
|
+
|
1459
|
+
FIELDS = {
|
1460
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::AlbumMetadata}
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
def struct_fields; FIELDS; end
|
1464
|
+
|
1465
|
+
def validate
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
::Thrift::Struct.generate_accessors self
|
1469
|
+
end
|
1470
|
+
|
1471
|
+
class GetAlbumsByArtistId_args
|
1472
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1473
|
+
ARTISTID = 1
|
1474
|
+
LIMIT = 2
|
1475
|
+
ORDER = 3
|
1476
|
+
SESSIONID = 4
|
1477
|
+
FILTER = 5
|
1478
|
+
|
1479
|
+
FIELDS = {
|
1480
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
1481
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
1482
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::AlbumOrderBy},
|
1483
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'},
|
1484
|
+
FILTER => {:type => ::Thrift::Types::I32, :name => 'filter', :enum_class => ::WiMP::Gen::AlbumFilter}
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
def struct_fields; FIELDS; end
|
1488
|
+
|
1489
|
+
def validate
|
1490
|
+
unless @order.nil? || ::WiMP::Gen::AlbumOrderBy::VALID_VALUES.include?(@order)
|
1491
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
1492
|
+
end
|
1493
|
+
unless @filter.nil? || ::WiMP::Gen::AlbumFilter::VALID_VALUES.include?(@filter)
|
1494
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field filter!')
|
1495
|
+
end
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
::Thrift::Struct.generate_accessors self
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
class GetAlbumsByArtistId_result
|
1502
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1503
|
+
SUCCESS = 0
|
1504
|
+
|
1505
|
+
FIELDS = {
|
1506
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Album}}
|
1507
|
+
}
|
1508
|
+
|
1509
|
+
def struct_fields; FIELDS; end
|
1510
|
+
|
1511
|
+
def validate
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
::Thrift::Struct.generate_accessors self
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
class GetAlbumsByArtistIdWithPaging_args
|
1518
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1519
|
+
ARTISTID = 1
|
1520
|
+
STARTINDEX = 2
|
1521
|
+
LIMIT = 3
|
1522
|
+
INCLUDESINGLES = 4
|
1523
|
+
ORDER = 5
|
1524
|
+
SESSIONID = 6
|
1525
|
+
|
1526
|
+
FIELDS = {
|
1527
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
1528
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
1529
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
1530
|
+
INCLUDESINGLES => {:type => ::Thrift::Types::BOOL, :name => 'includeSingles'},
|
1531
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::AlbumOrderBy},
|
1532
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
def struct_fields; FIELDS; end
|
1536
|
+
|
1537
|
+
def validate
|
1538
|
+
unless @order.nil? || ::WiMP::Gen::AlbumOrderBy::VALID_VALUES.include?(@order)
|
1539
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
1540
|
+
end
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
::Thrift::Struct.generate_accessors self
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
class GetAlbumsByArtistIdWithPaging_result
|
1547
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1548
|
+
SUCCESS = 0
|
1549
|
+
|
1550
|
+
FIELDS = {
|
1551
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Album}}
|
1552
|
+
}
|
1553
|
+
|
1554
|
+
def struct_fields; FIELDS; end
|
1555
|
+
|
1556
|
+
def validate
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
::Thrift::Struct.generate_accessors self
|
1560
|
+
end
|
1561
|
+
|
1562
|
+
class GetAlbumsByCategoryId_args
|
1563
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1564
|
+
CATEGORYID = 1
|
1565
|
+
STARTINDEX = 2
|
1566
|
+
LIMIT = 3
|
1567
|
+
SESSIONID = 4
|
1568
|
+
|
1569
|
+
FIELDS = {
|
1570
|
+
CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
|
1571
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
1572
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
1573
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1574
|
+
}
|
1575
|
+
|
1576
|
+
def struct_fields; FIELDS; end
|
1577
|
+
|
1578
|
+
def validate
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
::Thrift::Struct.generate_accessors self
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
class GetAlbumsByCategoryId_result
|
1585
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1586
|
+
SUCCESS = 0
|
1587
|
+
|
1588
|
+
FIELDS = {
|
1589
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Album}}
|
1590
|
+
}
|
1591
|
+
|
1592
|
+
def struct_fields; FIELDS; end
|
1593
|
+
|
1594
|
+
def validate
|
1595
|
+
end
|
1596
|
+
|
1597
|
+
::Thrift::Struct.generate_accessors self
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
class GetAlbumsByIds_args
|
1601
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1602
|
+
ALBUMIDS = 1
|
1603
|
+
SESSIONID = 2
|
1604
|
+
|
1605
|
+
FIELDS = {
|
1606
|
+
ALBUMIDS => {:type => ::Thrift::Types::LIST, :name => 'albumIds', :element => {:type => ::Thrift::Types::I32}},
|
1607
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1608
|
+
}
|
1609
|
+
|
1610
|
+
def struct_fields; FIELDS; end
|
1611
|
+
|
1612
|
+
def validate
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
::Thrift::Struct.generate_accessors self
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
class GetAlbumsByIds_result
|
1619
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1620
|
+
SUCCESS = 0
|
1621
|
+
|
1622
|
+
FIELDS = {
|
1623
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Album}}
|
1624
|
+
}
|
1625
|
+
|
1626
|
+
def struct_fields; FIELDS; end
|
1627
|
+
|
1628
|
+
def validate
|
1629
|
+
end
|
1630
|
+
|
1631
|
+
::Thrift::Struct.generate_accessors self
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
class GetAllUserPlaylists_args
|
1635
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1636
|
+
SESSIONID = 1
|
1637
|
+
|
1638
|
+
FIELDS = {
|
1639
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
def struct_fields; FIELDS; end
|
1643
|
+
|
1644
|
+
def validate
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
::Thrift::Struct.generate_accessors self
|
1648
|
+
end
|
1649
|
+
|
1650
|
+
class GetAllUserPlaylists_result
|
1651
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1652
|
+
SUCCESS = 0
|
1653
|
+
|
1654
|
+
FIELDS = {
|
1655
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Playlist}}
|
1656
|
+
}
|
1657
|
+
|
1658
|
+
def struct_fields; FIELDS; end
|
1659
|
+
|
1660
|
+
def validate
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
::Thrift::Struct.generate_accessors self
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
class GetArtistById_args
|
1667
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1668
|
+
ARTISTID = 1
|
1669
|
+
SESSIONID = 2
|
1670
|
+
|
1671
|
+
FIELDS = {
|
1672
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
1673
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1674
|
+
}
|
1675
|
+
|
1676
|
+
def struct_fields; FIELDS; end
|
1677
|
+
|
1678
|
+
def validate
|
1679
|
+
end
|
1680
|
+
|
1681
|
+
::Thrift::Struct.generate_accessors self
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
class GetArtistById_result
|
1685
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1686
|
+
SUCCESS = 0
|
1687
|
+
|
1688
|
+
FIELDS = {
|
1689
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::Artist}
|
1690
|
+
}
|
1691
|
+
|
1692
|
+
def struct_fields; FIELDS; end
|
1693
|
+
|
1694
|
+
def validate
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
::Thrift::Struct.generate_accessors self
|
1698
|
+
end
|
1699
|
+
|
1700
|
+
class GetArtistMetaData_args
|
1701
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1702
|
+
ARTISTID = 1
|
1703
|
+
SESSIONID = 2
|
1704
|
+
|
1705
|
+
FIELDS = {
|
1706
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
1707
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1708
|
+
}
|
1709
|
+
|
1710
|
+
def struct_fields; FIELDS; end
|
1711
|
+
|
1712
|
+
def validate
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
::Thrift::Struct.generate_accessors self
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
class GetArtistMetaData_result
|
1719
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1720
|
+
SUCCESS = 0
|
1721
|
+
|
1722
|
+
FIELDS = {
|
1723
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::ArtistMetaData}
|
1724
|
+
}
|
1725
|
+
|
1726
|
+
def struct_fields; FIELDS; end
|
1727
|
+
|
1728
|
+
def validate
|
1729
|
+
end
|
1730
|
+
|
1731
|
+
::Thrift::Struct.generate_accessors self
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
class GetBookletURL_args
|
1735
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1736
|
+
ALBUMID = 1
|
1737
|
+
SESSIONID = 2
|
1738
|
+
|
1739
|
+
FIELDS = {
|
1740
|
+
ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'},
|
1741
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1742
|
+
}
|
1743
|
+
|
1744
|
+
def struct_fields; FIELDS; end
|
1745
|
+
|
1746
|
+
def validate
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
::Thrift::Struct.generate_accessors self
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
class GetBookletURL_result
|
1753
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1754
|
+
SUCCESS = 0
|
1755
|
+
|
1756
|
+
FIELDS = {
|
1757
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
|
1758
|
+
}
|
1759
|
+
|
1760
|
+
def struct_fields; FIELDS; end
|
1761
|
+
|
1762
|
+
def validate
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
::Thrift::Struct.generate_accessors self
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
class GetCategories_args
|
1769
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1770
|
+
CATEGORYID = 1
|
1771
|
+
SESSIONID = 2
|
1772
|
+
STARTINDEX = 3
|
1773
|
+
LIMIT = 4
|
1774
|
+
|
1775
|
+
FIELDS = {
|
1776
|
+
CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
|
1777
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'},
|
1778
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
1779
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
def struct_fields; FIELDS; end
|
1783
|
+
|
1784
|
+
def validate
|
1785
|
+
end
|
1786
|
+
|
1787
|
+
::Thrift::Struct.generate_accessors self
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
class GetCategories_result
|
1791
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1792
|
+
SUCCESS = 0
|
1793
|
+
|
1794
|
+
FIELDS = {
|
1795
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Category}}
|
1796
|
+
}
|
1797
|
+
|
1798
|
+
def struct_fields; FIELDS; end
|
1799
|
+
|
1800
|
+
def validate
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
::Thrift::Struct.generate_accessors self
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
class GetCategoryAndSubCategories_args
|
1807
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1808
|
+
CATEGORYID = 1
|
1809
|
+
DEPTH = 2
|
1810
|
+
SESSIONID = 3
|
1811
|
+
|
1812
|
+
FIELDS = {
|
1813
|
+
CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
|
1814
|
+
DEPTH => {:type => ::Thrift::Types::I32, :name => 'depth'},
|
1815
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1816
|
+
}
|
1817
|
+
|
1818
|
+
def struct_fields; FIELDS; end
|
1819
|
+
|
1820
|
+
def validate
|
1821
|
+
end
|
1822
|
+
|
1823
|
+
::Thrift::Struct.generate_accessors self
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
class GetCategoryAndSubCategories_result
|
1827
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1828
|
+
SUCCESS = 0
|
1829
|
+
|
1830
|
+
FIELDS = {
|
1831
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::CategoryTree}
|
1832
|
+
}
|
1833
|
+
|
1834
|
+
def struct_fields; FIELDS; end
|
1835
|
+
|
1836
|
+
def validate
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
::Thrift::Struct.generate_accessors self
|
1840
|
+
end
|
1841
|
+
|
1842
|
+
class GetCategoryById_args
|
1843
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1844
|
+
CATEGORYID = 1
|
1845
|
+
SESSIONID = 2
|
1846
|
+
|
1847
|
+
FIELDS = {
|
1848
|
+
CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
|
1849
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1850
|
+
}
|
1851
|
+
|
1852
|
+
def struct_fields; FIELDS; end
|
1853
|
+
|
1854
|
+
def validate
|
1855
|
+
end
|
1856
|
+
|
1857
|
+
::Thrift::Struct.generate_accessors self
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
class GetCategoryById_result
|
1861
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1862
|
+
SUCCESS = 0
|
1863
|
+
|
1864
|
+
FIELDS = {
|
1865
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::Category}
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
def struct_fields; FIELDS; end
|
1869
|
+
|
1870
|
+
def validate
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
::Thrift::Struct.generate_accessors self
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
class GetFavoriteAlbums_args
|
1877
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1878
|
+
ORDER = 1
|
1879
|
+
SESSIONID = 2
|
1880
|
+
|
1881
|
+
FIELDS = {
|
1882
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
1883
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1884
|
+
}
|
1885
|
+
|
1886
|
+
def struct_fields; FIELDS; end
|
1887
|
+
|
1888
|
+
def validate
|
1889
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
1890
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
1891
|
+
end
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
::Thrift::Struct.generate_accessors self
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
class GetFavoriteAlbums_result
|
1898
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1899
|
+
SUCCESS = 0
|
1900
|
+
|
1901
|
+
FIELDS = {
|
1902
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoriteAlbum}}
|
1903
|
+
}
|
1904
|
+
|
1905
|
+
def struct_fields; FIELDS; end
|
1906
|
+
|
1907
|
+
def validate
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
::Thrift::Struct.generate_accessors self
|
1911
|
+
end
|
1912
|
+
|
1913
|
+
class GetFavoriteAlbumsByProfileId_args
|
1914
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1915
|
+
PROFILEID = 1
|
1916
|
+
PARAMPRIVACYLEVEL = 2
|
1917
|
+
ORDER = 3
|
1918
|
+
SESSIONID = 4
|
1919
|
+
|
1920
|
+
FIELDS = {
|
1921
|
+
PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'},
|
1922
|
+
PARAMPRIVACYLEVEL => {:type => ::Thrift::Types::I32, :name => 'paramPrivacyLevel', :enum_class => ::WiMP::Gen::PrivacyLevel},
|
1923
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
1924
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1925
|
+
}
|
1926
|
+
|
1927
|
+
def struct_fields; FIELDS; end
|
1928
|
+
|
1929
|
+
def validate
|
1930
|
+
unless @paramPrivacyLevel.nil? || ::WiMP::Gen::PrivacyLevel::VALID_VALUES.include?(@paramPrivacyLevel)
|
1931
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paramPrivacyLevel!')
|
1932
|
+
end
|
1933
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
1934
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
1935
|
+
end
|
1936
|
+
end
|
1937
|
+
|
1938
|
+
::Thrift::Struct.generate_accessors self
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
class GetFavoriteAlbumsByProfileId_result
|
1942
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1943
|
+
SUCCESS = 0
|
1944
|
+
|
1945
|
+
FIELDS = {
|
1946
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoriteAlbum}}
|
1947
|
+
}
|
1948
|
+
|
1949
|
+
def struct_fields; FIELDS; end
|
1950
|
+
|
1951
|
+
def validate
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
::Thrift::Struct.generate_accessors self
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
class GetFavoriteArtists_args
|
1958
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1959
|
+
ORDER = 1
|
1960
|
+
SESSIONID = 2
|
1961
|
+
|
1962
|
+
FIELDS = {
|
1963
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
1964
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
1965
|
+
}
|
1966
|
+
|
1967
|
+
def struct_fields; FIELDS; end
|
1968
|
+
|
1969
|
+
def validate
|
1970
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
1971
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
1972
|
+
end
|
1973
|
+
end
|
1974
|
+
|
1975
|
+
::Thrift::Struct.generate_accessors self
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
class GetFavoriteArtists_result
|
1979
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1980
|
+
SUCCESS = 0
|
1981
|
+
|
1982
|
+
FIELDS = {
|
1983
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoriteArtist}}
|
1984
|
+
}
|
1985
|
+
|
1986
|
+
def struct_fields; FIELDS; end
|
1987
|
+
|
1988
|
+
def validate
|
1989
|
+
end
|
1990
|
+
|
1991
|
+
::Thrift::Struct.generate_accessors self
|
1992
|
+
end
|
1993
|
+
|
1994
|
+
class GetFavoriteArtistsByProfileId_args
|
1995
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1996
|
+
PROFILEID = 1
|
1997
|
+
PARAMPRIVACYLEVEL = 2
|
1998
|
+
ORDER = 3
|
1999
|
+
SESSIONID = 4
|
2000
|
+
|
2001
|
+
FIELDS = {
|
2002
|
+
PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'},
|
2003
|
+
PARAMPRIVACYLEVEL => {:type => ::Thrift::Types::I32, :name => 'paramPrivacyLevel', :enum_class => ::WiMP::Gen::PrivacyLevel},
|
2004
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
2005
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
2006
|
+
}
|
2007
|
+
|
2008
|
+
def struct_fields; FIELDS; end
|
2009
|
+
|
2010
|
+
def validate
|
2011
|
+
unless @paramPrivacyLevel.nil? || ::WiMP::Gen::PrivacyLevel::VALID_VALUES.include?(@paramPrivacyLevel)
|
2012
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paramPrivacyLevel!')
|
2013
|
+
end
|
2014
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
2015
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
2016
|
+
end
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
::Thrift::Struct.generate_accessors self
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
class GetFavoriteArtistsByProfileId_result
|
2023
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2024
|
+
SUCCESS = 0
|
2025
|
+
|
2026
|
+
FIELDS = {
|
2027
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoriteArtist}}
|
2028
|
+
}
|
2029
|
+
|
2030
|
+
def struct_fields; FIELDS; end
|
2031
|
+
|
2032
|
+
def validate
|
2033
|
+
end
|
2034
|
+
|
2035
|
+
::Thrift::Struct.generate_accessors self
|
2036
|
+
end
|
2037
|
+
|
2038
|
+
class GetFavoritePlaylists_args
|
2039
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2040
|
+
ORDER = 1
|
2041
|
+
SESSIONID = 2
|
2042
|
+
|
2043
|
+
FIELDS = {
|
2044
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
2045
|
+
SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
|
2046
|
+
}
|
2047
|
+
|
2048
|
+
def struct_fields; FIELDS; end
|
2049
|
+
|
2050
|
+
def validate
|
2051
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
2052
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
2053
|
+
end
|
2054
|
+
end
|
2055
|
+
|
2056
|
+
::Thrift::Struct.generate_accessors self
|
2057
|
+
end
|
2058
|
+
|
2059
|
+
class GetFavoritePlaylists_result
|
2060
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2061
|
+
SUCCESS = 0
|
2062
|
+
|
2063
|
+
FIELDS = {
|
2064
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoritePlaylist}}
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
def struct_fields; FIELDS; end
|
2068
|
+
|
2069
|
+
def validate
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
::Thrift::Struct.generate_accessors self
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
class GetFavoritePlaylistsByProfileId_args
|
2076
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2077
|
+
PROFILEID = 1
|
2078
|
+
PARAMPRIVACYLEVEL = 2
|
2079
|
+
ORDER = 3
|
2080
|
+
SESSONID = 4
|
2081
|
+
|
2082
|
+
FIELDS = {
|
2083
|
+
PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'},
|
2084
|
+
PARAMPRIVACYLEVEL => {:type => ::Thrift::Types::I32, :name => 'paramPrivacyLevel', :enum_class => ::WiMP::Gen::PrivacyLevel},
|
2085
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
2086
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2087
|
+
}
|
2088
|
+
|
2089
|
+
def struct_fields; FIELDS; end
|
2090
|
+
|
2091
|
+
def validate
|
2092
|
+
unless @paramPrivacyLevel.nil? || ::WiMP::Gen::PrivacyLevel::VALID_VALUES.include?(@paramPrivacyLevel)
|
2093
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paramPrivacyLevel!')
|
2094
|
+
end
|
2095
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
2096
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
2097
|
+
end
|
2098
|
+
end
|
2099
|
+
|
2100
|
+
::Thrift::Struct.generate_accessors self
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
class GetFavoritePlaylistsByProfileId_result
|
2104
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2105
|
+
SUCCESS = 0
|
2106
|
+
|
2107
|
+
FIELDS = {
|
2108
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoritePlaylist}}
|
2109
|
+
}
|
2110
|
+
|
2111
|
+
def struct_fields; FIELDS; end
|
2112
|
+
|
2113
|
+
def validate
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
::Thrift::Struct.generate_accessors self
|
2117
|
+
end
|
2118
|
+
|
2119
|
+
class GetFavoriteTracks_args
|
2120
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2121
|
+
ORDER = 1
|
2122
|
+
SESSONID = 2
|
2123
|
+
|
2124
|
+
FIELDS = {
|
2125
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
2126
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
def struct_fields; FIELDS; end
|
2130
|
+
|
2131
|
+
def validate
|
2132
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
2133
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
2134
|
+
end
|
2135
|
+
end
|
2136
|
+
|
2137
|
+
::Thrift::Struct.generate_accessors self
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
class GetFavoriteTracks_result
|
2141
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2142
|
+
SUCCESS = 0
|
2143
|
+
|
2144
|
+
FIELDS = {
|
2145
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoriteTrack}}
|
2146
|
+
}
|
2147
|
+
|
2148
|
+
def struct_fields; FIELDS; end
|
2149
|
+
|
2150
|
+
def validate
|
2151
|
+
end
|
2152
|
+
|
2153
|
+
::Thrift::Struct.generate_accessors self
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
class GetFavoriteTracksByProfileId_args
|
2157
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2158
|
+
PROFILEID = 1
|
2159
|
+
PARAMPRIVACYLEVEL = 2
|
2160
|
+
ORDER = 3
|
2161
|
+
SESSONID = 4
|
2162
|
+
|
2163
|
+
FIELDS = {
|
2164
|
+
PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'},
|
2165
|
+
PARAMPRIVACYLEVEL => {:type => ::Thrift::Types::I32, :name => 'paramPrivacyLevel', :enum_class => ::WiMP::Gen::PrivacyLevel},
|
2166
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
|
2167
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2168
|
+
}
|
2169
|
+
|
2170
|
+
def struct_fields; FIELDS; end
|
2171
|
+
|
2172
|
+
def validate
|
2173
|
+
unless @paramPrivacyLevel.nil? || ::WiMP::Gen::PrivacyLevel::VALID_VALUES.include?(@paramPrivacyLevel)
|
2174
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paramPrivacyLevel!')
|
2175
|
+
end
|
2176
|
+
unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
|
2177
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
|
2178
|
+
end
|
2179
|
+
end
|
2180
|
+
|
2181
|
+
::Thrift::Struct.generate_accessors self
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
class GetFavoriteTracksByProfileId_result
|
2185
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2186
|
+
SUCCESS = 0
|
2187
|
+
|
2188
|
+
FIELDS = {
|
2189
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::FavoriteTrack}}
|
2190
|
+
}
|
2191
|
+
|
2192
|
+
def struct_fields; FIELDS; end
|
2193
|
+
|
2194
|
+
def validate
|
2195
|
+
end
|
2196
|
+
|
2197
|
+
::Thrift::Struct.generate_accessors self
|
2198
|
+
end
|
2199
|
+
|
2200
|
+
class GetWallPosts_args
|
2201
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2202
|
+
PROFILEID = 1
|
2203
|
+
STARTINDEX = 2
|
2204
|
+
OFFSET = 3
|
2205
|
+
SESSONID = 4
|
2206
|
+
|
2207
|
+
FIELDS = {
|
2208
|
+
PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'},
|
2209
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
2210
|
+
OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'},
|
2211
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2212
|
+
}
|
2213
|
+
|
2214
|
+
def struct_fields; FIELDS; end
|
2215
|
+
|
2216
|
+
def validate
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
::Thrift::Struct.generate_accessors self
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
class GetWallPosts_result
|
2223
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2224
|
+
SUCCESS = 0
|
2225
|
+
|
2226
|
+
FIELDS = {
|
2227
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::WallPost}}
|
2228
|
+
}
|
2229
|
+
|
2230
|
+
def struct_fields; FIELDS; end
|
2231
|
+
|
2232
|
+
def validate
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
::Thrift::Struct.generate_accessors self
|
2236
|
+
end
|
2237
|
+
|
2238
|
+
class GetFriends_args
|
2239
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2240
|
+
SESSONID = 1
|
2241
|
+
|
2242
|
+
FIELDS = {
|
2243
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2244
|
+
}
|
2245
|
+
|
2246
|
+
def struct_fields; FIELDS; end
|
2247
|
+
|
2248
|
+
def validate
|
2249
|
+
end
|
2250
|
+
|
2251
|
+
::Thrift::Struct.generate_accessors self
|
2252
|
+
end
|
2253
|
+
|
2254
|
+
class GetFriends_result
|
2255
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2256
|
+
SUCCESS = 0
|
2257
|
+
|
2258
|
+
FIELDS = {
|
2259
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Friend}}
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
def struct_fields; FIELDS; end
|
2263
|
+
|
2264
|
+
def validate
|
2265
|
+
end
|
2266
|
+
|
2267
|
+
::Thrift::Struct.generate_accessors self
|
2268
|
+
end
|
2269
|
+
|
2270
|
+
class GetLastUpdatedFavAlbum_args
|
2271
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2272
|
+
SESSONID = 1
|
2273
|
+
|
2274
|
+
FIELDS = {
|
2275
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2276
|
+
}
|
2277
|
+
|
2278
|
+
def struct_fields; FIELDS; end
|
2279
|
+
|
2280
|
+
def validate
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
::Thrift::Struct.generate_accessors self
|
2284
|
+
end
|
2285
|
+
|
2286
|
+
class GetLastUpdatedFavAlbum_result
|
2287
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2288
|
+
SUCCESS = 0
|
2289
|
+
|
2290
|
+
FIELDS = {
|
2291
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
2292
|
+
}
|
2293
|
+
|
2294
|
+
def struct_fields; FIELDS; end
|
2295
|
+
|
2296
|
+
def validate
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
::Thrift::Struct.generate_accessors self
|
2300
|
+
end
|
2301
|
+
|
2302
|
+
class GetLastUpdatedFavArtist_args
|
2303
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2304
|
+
SESSONID = 1
|
2305
|
+
|
2306
|
+
FIELDS = {
|
2307
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2308
|
+
}
|
2309
|
+
|
2310
|
+
def struct_fields; FIELDS; end
|
2311
|
+
|
2312
|
+
def validate
|
2313
|
+
end
|
2314
|
+
|
2315
|
+
::Thrift::Struct.generate_accessors self
|
2316
|
+
end
|
2317
|
+
|
2318
|
+
class GetLastUpdatedFavArtist_result
|
2319
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2320
|
+
SUCCESS = 0
|
2321
|
+
|
2322
|
+
FIELDS = {
|
2323
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
2324
|
+
}
|
2325
|
+
|
2326
|
+
def struct_fields; FIELDS; end
|
2327
|
+
|
2328
|
+
def validate
|
2329
|
+
end
|
2330
|
+
|
2331
|
+
::Thrift::Struct.generate_accessors self
|
2332
|
+
end
|
2333
|
+
|
2334
|
+
class GetLastUpdatedFavPlaylist_args
|
2335
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2336
|
+
SESSONID = 1
|
2337
|
+
|
2338
|
+
FIELDS = {
|
2339
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2340
|
+
}
|
2341
|
+
|
2342
|
+
def struct_fields; FIELDS; end
|
2343
|
+
|
2344
|
+
def validate
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
::Thrift::Struct.generate_accessors self
|
2348
|
+
end
|
2349
|
+
|
2350
|
+
class GetLastUpdatedFavPlaylist_result
|
2351
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2352
|
+
SUCCESS = 0
|
2353
|
+
|
2354
|
+
FIELDS = {
|
2355
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
2356
|
+
}
|
2357
|
+
|
2358
|
+
def struct_fields; FIELDS; end
|
2359
|
+
|
2360
|
+
def validate
|
2361
|
+
end
|
2362
|
+
|
2363
|
+
::Thrift::Struct.generate_accessors self
|
2364
|
+
end
|
2365
|
+
|
2366
|
+
class GetLastUpdatedFavTrack_args
|
2367
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2368
|
+
SESSONID = 1
|
2369
|
+
|
2370
|
+
FIELDS = {
|
2371
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2372
|
+
}
|
2373
|
+
|
2374
|
+
def struct_fields; FIELDS; end
|
2375
|
+
|
2376
|
+
def validate
|
2377
|
+
end
|
2378
|
+
|
2379
|
+
::Thrift::Struct.generate_accessors self
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
class GetLastUpdatedFavTrack_result
|
2383
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2384
|
+
SUCCESS = 0
|
2385
|
+
|
2386
|
+
FIELDS = {
|
2387
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
2388
|
+
}
|
2389
|
+
|
2390
|
+
def struct_fields; FIELDS; end
|
2391
|
+
|
2392
|
+
def validate
|
2393
|
+
end
|
2394
|
+
|
2395
|
+
::Thrift::Struct.generate_accessors self
|
2396
|
+
end
|
2397
|
+
|
2398
|
+
class GetLastUpdatedPlaylist_args
|
2399
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2400
|
+
SESSONID = 1
|
2401
|
+
|
2402
|
+
FIELDS = {
|
2403
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2404
|
+
}
|
2405
|
+
|
2406
|
+
def struct_fields; FIELDS; end
|
2407
|
+
|
2408
|
+
def validate
|
2409
|
+
end
|
2410
|
+
|
2411
|
+
::Thrift::Struct.generate_accessors self
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
class GetLastUpdatedPlaylist_result
|
2415
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2416
|
+
SUCCESS = 0
|
2417
|
+
|
2418
|
+
FIELDS = {
|
2419
|
+
SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
|
2420
|
+
}
|
2421
|
+
|
2422
|
+
def struct_fields; FIELDS; end
|
2423
|
+
|
2424
|
+
def validate
|
2425
|
+
end
|
2426
|
+
|
2427
|
+
::Thrift::Struct.generate_accessors self
|
2428
|
+
end
|
2429
|
+
|
2430
|
+
class GetPlaylistsByCategoryId_args
|
2431
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2432
|
+
CATEGORYID = 1
|
2433
|
+
STARTINDEX = 2
|
2434
|
+
LIMIT = 3
|
2435
|
+
SESSONID = 4
|
2436
|
+
|
2437
|
+
FIELDS = {
|
2438
|
+
CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
|
2439
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
2440
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2441
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2442
|
+
}
|
2443
|
+
|
2444
|
+
def struct_fields; FIELDS; end
|
2445
|
+
|
2446
|
+
def validate
|
2447
|
+
end
|
2448
|
+
|
2449
|
+
::Thrift::Struct.generate_accessors self
|
2450
|
+
end
|
2451
|
+
|
2452
|
+
class GetPlaylistsByCategoryId_result
|
2453
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2454
|
+
SUCCESS = 0
|
2455
|
+
|
2456
|
+
FIELDS = {
|
2457
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Playlist}}
|
2458
|
+
}
|
2459
|
+
|
2460
|
+
def struct_fields; FIELDS; end
|
2461
|
+
|
2462
|
+
def validate
|
2463
|
+
end
|
2464
|
+
|
2465
|
+
::Thrift::Struct.generate_accessors self
|
2466
|
+
end
|
2467
|
+
|
2468
|
+
class GetProfileTrackPlayListsByArtistId_args
|
2469
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2470
|
+
ARTISTID = 1
|
2471
|
+
STARTINDEX = 2
|
2472
|
+
LIMIT = 3
|
2473
|
+
SESSONID = 4
|
2474
|
+
|
2475
|
+
FIELDS = {
|
2476
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
2477
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
2478
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2479
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2480
|
+
}
|
2481
|
+
|
2482
|
+
def struct_fields; FIELDS; end
|
2483
|
+
|
2484
|
+
def validate
|
2485
|
+
end
|
2486
|
+
|
2487
|
+
::Thrift::Struct.generate_accessors self
|
2488
|
+
end
|
2489
|
+
|
2490
|
+
class GetProfileTrackPlayListsByArtistId_result
|
2491
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2492
|
+
SUCCESS = 0
|
2493
|
+
|
2494
|
+
FIELDS = {
|
2495
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Playlist}}
|
2496
|
+
}
|
2497
|
+
|
2498
|
+
def struct_fields; FIELDS; end
|
2499
|
+
|
2500
|
+
def validate
|
2501
|
+
end
|
2502
|
+
|
2503
|
+
::Thrift::Struct.generate_accessors self
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
class GetProfileTrackPlayListsInclidingArtistId_args
|
2507
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2508
|
+
ARTISTID = 1
|
2509
|
+
STARTINDEX = 2
|
2510
|
+
LIMIT = 3
|
2511
|
+
SESSONID = 4
|
2512
|
+
|
2513
|
+
FIELDS = {
|
2514
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
2515
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
2516
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2517
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2518
|
+
}
|
2519
|
+
|
2520
|
+
def struct_fields; FIELDS; end
|
2521
|
+
|
2522
|
+
def validate
|
2523
|
+
end
|
2524
|
+
|
2525
|
+
::Thrift::Struct.generate_accessors self
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
class GetProfileTrackPlayListsInclidingArtistId_result
|
2529
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2530
|
+
SUCCESS = 0
|
2531
|
+
|
2532
|
+
FIELDS = {
|
2533
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Playlist}}
|
2534
|
+
}
|
2535
|
+
|
2536
|
+
def struct_fields; FIELDS; end
|
2537
|
+
|
2538
|
+
def validate
|
2539
|
+
end
|
2540
|
+
|
2541
|
+
::Thrift::Struct.generate_accessors self
|
2542
|
+
end
|
2543
|
+
|
2544
|
+
class GetTopTracksByArtistId_args
|
2545
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2546
|
+
ARTISTID = 1
|
2547
|
+
LIMIT = 2
|
2548
|
+
ONLYASMAINARTIST = 3
|
2549
|
+
SESSONID = 4
|
2550
|
+
|
2551
|
+
FIELDS = {
|
2552
|
+
ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
|
2553
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2554
|
+
ONLYASMAINARTIST => {:type => ::Thrift::Types::BOOL, :name => 'onlyAsMainArtist'},
|
2555
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2556
|
+
}
|
2557
|
+
|
2558
|
+
def struct_fields; FIELDS; end
|
2559
|
+
|
2560
|
+
def validate
|
2561
|
+
end
|
2562
|
+
|
2563
|
+
::Thrift::Struct.generate_accessors self
|
2564
|
+
end
|
2565
|
+
|
2566
|
+
class GetTopTracksByArtistId_result
|
2567
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2568
|
+
SUCCESS = 0
|
2569
|
+
|
2570
|
+
FIELDS = {
|
2571
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Track}}
|
2572
|
+
}
|
2573
|
+
|
2574
|
+
def struct_fields; FIELDS; end
|
2575
|
+
|
2576
|
+
def validate
|
2577
|
+
end
|
2578
|
+
|
2579
|
+
::Thrift::Struct.generate_accessors self
|
2580
|
+
end
|
2581
|
+
|
2582
|
+
class GetTrackById_args
|
2583
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2584
|
+
TRACKID = 1
|
2585
|
+
SESSONID = 2
|
2586
|
+
|
2587
|
+
FIELDS = {
|
2588
|
+
TRACKID => {:type => ::Thrift::Types::I32, :name => 'trackId'},
|
2589
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2590
|
+
}
|
2591
|
+
|
2592
|
+
def struct_fields; FIELDS; end
|
2593
|
+
|
2594
|
+
def validate
|
2595
|
+
end
|
2596
|
+
|
2597
|
+
::Thrift::Struct.generate_accessors self
|
2598
|
+
end
|
2599
|
+
|
2600
|
+
class GetTrackById_result
|
2601
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2602
|
+
SUCCESS = 0
|
2603
|
+
|
2604
|
+
FIELDS = {
|
2605
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::Track}
|
2606
|
+
}
|
2607
|
+
|
2608
|
+
def struct_fields; FIELDS; end
|
2609
|
+
|
2610
|
+
def validate
|
2611
|
+
end
|
2612
|
+
|
2613
|
+
::Thrift::Struct.generate_accessors self
|
2614
|
+
end
|
2615
|
+
|
2616
|
+
class GetTracksByAlbumId_args
|
2617
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2618
|
+
ALBUMID = 1
|
2619
|
+
SESSONID = 2
|
2620
|
+
|
2621
|
+
FIELDS = {
|
2622
|
+
ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'},
|
2623
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2624
|
+
}
|
2625
|
+
|
2626
|
+
def struct_fields; FIELDS; end
|
2627
|
+
|
2628
|
+
def validate
|
2629
|
+
end
|
2630
|
+
|
2631
|
+
::Thrift::Struct.generate_accessors self
|
2632
|
+
end
|
2633
|
+
|
2634
|
+
class GetTracksByAlbumId_result
|
2635
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2636
|
+
SUCCESS = 0
|
2637
|
+
|
2638
|
+
FIELDS = {
|
2639
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Track}}
|
2640
|
+
}
|
2641
|
+
|
2642
|
+
def struct_fields; FIELDS; end
|
2643
|
+
|
2644
|
+
def validate
|
2645
|
+
end
|
2646
|
+
|
2647
|
+
::Thrift::Struct.generate_accessors self
|
2648
|
+
end
|
2649
|
+
|
2650
|
+
class GetTracksByCategoryId_args
|
2651
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2652
|
+
CATEGORYID = 1
|
2653
|
+
STARTINDEX = 2
|
2654
|
+
LIMIT = 3
|
2655
|
+
SESSONID = 4
|
2656
|
+
|
2657
|
+
FIELDS = {
|
2658
|
+
CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId'},
|
2659
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
2660
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2661
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2662
|
+
}
|
2663
|
+
|
2664
|
+
def struct_fields; FIELDS; end
|
2665
|
+
|
2666
|
+
def validate
|
2667
|
+
end
|
2668
|
+
|
2669
|
+
::Thrift::Struct.generate_accessors self
|
2670
|
+
end
|
2671
|
+
|
2672
|
+
class GetTracksByCategoryId_result
|
2673
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2674
|
+
SUCCESS = 0
|
2675
|
+
|
2676
|
+
FIELDS = {
|
2677
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Track}}
|
2678
|
+
}
|
2679
|
+
|
2680
|
+
def struct_fields; FIELDS; end
|
2681
|
+
|
2682
|
+
def validate
|
2683
|
+
end
|
2684
|
+
|
2685
|
+
::Thrift::Struct.generate_accessors self
|
2686
|
+
end
|
2687
|
+
|
2688
|
+
class GetUserPlaylistByUuid_args
|
2689
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2690
|
+
UUID = 1
|
2691
|
+
SESSONID = 2
|
2692
|
+
|
2693
|
+
FIELDS = {
|
2694
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid'},
|
2695
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2696
|
+
}
|
2697
|
+
|
2698
|
+
def struct_fields; FIELDS; end
|
2699
|
+
|
2700
|
+
def validate
|
2701
|
+
end
|
2702
|
+
|
2703
|
+
::Thrift::Struct.generate_accessors self
|
2704
|
+
end
|
2705
|
+
|
2706
|
+
class GetUserPlaylistByUuid_result
|
2707
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2708
|
+
SUCCESS = 0
|
2709
|
+
|
2710
|
+
FIELDS = {
|
2711
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::WiMP::Gen::Playlist}
|
2712
|
+
}
|
2713
|
+
|
2714
|
+
def struct_fields; FIELDS; end
|
2715
|
+
|
2716
|
+
def validate
|
2717
|
+
end
|
2718
|
+
|
2719
|
+
::Thrift::Struct.generate_accessors self
|
2720
|
+
end
|
2721
|
+
|
2722
|
+
class GetUserPlaylistsByType_args
|
2723
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2724
|
+
TYPE = 1
|
2725
|
+
STARTINDEX = 2
|
2726
|
+
LIMIT = 3
|
2727
|
+
SESSONID = 4
|
2728
|
+
|
2729
|
+
FIELDS = {
|
2730
|
+
TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::WiMP::Gen::PlaylistType},
|
2731
|
+
STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
|
2732
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2733
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2734
|
+
}
|
2735
|
+
|
2736
|
+
def struct_fields; FIELDS; end
|
2737
|
+
|
2738
|
+
def validate
|
2739
|
+
unless @type.nil? || ::WiMP::Gen::PlaylistType::VALID_VALUES.include?(@type)
|
2740
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
|
2741
|
+
end
|
2742
|
+
end
|
2743
|
+
|
2744
|
+
::Thrift::Struct.generate_accessors self
|
2745
|
+
end
|
2746
|
+
|
2747
|
+
class GetUserPlaylistsByType_result
|
2748
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2749
|
+
SUCCESS = 0
|
2750
|
+
|
2751
|
+
FIELDS = {
|
2752
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Playlist}}
|
2753
|
+
}
|
2754
|
+
|
2755
|
+
def struct_fields; FIELDS; end
|
2756
|
+
|
2757
|
+
def validate
|
2758
|
+
end
|
2759
|
+
|
2760
|
+
::Thrift::Struct.generate_accessors self
|
2761
|
+
end
|
2762
|
+
|
2763
|
+
class GetUserPlaylistsByUuids_args
|
2764
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2765
|
+
UUIDS = 1
|
2766
|
+
SESSONID = 2
|
2767
|
+
|
2768
|
+
FIELDS = {
|
2769
|
+
UUIDS => {:type => ::Thrift::Types::LIST, :name => 'uuids', :element => {:type => ::Thrift::Types::STRING}},
|
2770
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2771
|
+
}
|
2772
|
+
|
2773
|
+
def struct_fields; FIELDS; end
|
2774
|
+
|
2775
|
+
def validate
|
2776
|
+
end
|
2777
|
+
|
2778
|
+
::Thrift::Struct.generate_accessors self
|
2779
|
+
end
|
2780
|
+
|
2781
|
+
class GetUserPlaylistsByUuids_result
|
2782
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2783
|
+
SUCCESS = 0
|
2784
|
+
|
2785
|
+
FIELDS = {
|
2786
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Playlist}}
|
2787
|
+
}
|
2788
|
+
|
2789
|
+
def struct_fields; FIELDS; end
|
2790
|
+
|
2791
|
+
def validate
|
2792
|
+
end
|
2793
|
+
|
2794
|
+
::Thrift::Struct.generate_accessors self
|
2795
|
+
end
|
2796
|
+
|
2797
|
+
class MoveUserPlaylistTracks_args
|
2798
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2799
|
+
UUID = 1
|
2800
|
+
FROMINDEX = 2
|
2801
|
+
TOINDEX = 3
|
2802
|
+
SESSONID = 4
|
2803
|
+
|
2804
|
+
FIELDS = {
|
2805
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid'},
|
2806
|
+
FROMINDEX => {:type => ::Thrift::Types::LIST, :name => 'fromIndex', :element => {:type => ::Thrift::Types::I32}},
|
2807
|
+
TOINDEX => {:type => ::Thrift::Types::I32, :name => 'toIndex'},
|
2808
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2809
|
+
}
|
2810
|
+
|
2811
|
+
def struct_fields; FIELDS; end
|
2812
|
+
|
2813
|
+
def validate
|
2814
|
+
end
|
2815
|
+
|
2816
|
+
::Thrift::Struct.generate_accessors self
|
2817
|
+
end
|
2818
|
+
|
2819
|
+
class MoveUserPlaylistTracks_result
|
2820
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2821
|
+
SUCCESS = 0
|
2822
|
+
|
2823
|
+
FIELDS = {
|
2824
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
2825
|
+
}
|
2826
|
+
|
2827
|
+
def struct_fields; FIELDS; end
|
2828
|
+
|
2829
|
+
def validate
|
2830
|
+
end
|
2831
|
+
|
2832
|
+
::Thrift::Struct.generate_accessors self
|
2833
|
+
end
|
2834
|
+
|
2835
|
+
class RemoveUserPlaylistByUuid_args
|
2836
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2837
|
+
UUID = 1
|
2838
|
+
SESSONID = 2
|
2839
|
+
|
2840
|
+
FIELDS = {
|
2841
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid'},
|
2842
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2843
|
+
}
|
2844
|
+
|
2845
|
+
def struct_fields; FIELDS; end
|
2846
|
+
|
2847
|
+
def validate
|
2848
|
+
end
|
2849
|
+
|
2850
|
+
::Thrift::Struct.generate_accessors self
|
2851
|
+
end
|
2852
|
+
|
2853
|
+
class RemoveUserPlaylistByUuid_result
|
2854
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2855
|
+
SUCCESS = 0
|
2856
|
+
|
2857
|
+
FIELDS = {
|
2858
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
2859
|
+
}
|
2860
|
+
|
2861
|
+
def struct_fields; FIELDS; end
|
2862
|
+
|
2863
|
+
def validate
|
2864
|
+
end
|
2865
|
+
|
2866
|
+
::Thrift::Struct.generate_accessors self
|
2867
|
+
end
|
2868
|
+
|
2869
|
+
class RemoveUserPlaylistTracks_args
|
2870
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2871
|
+
UUID = 1
|
2872
|
+
INDICES = 2
|
2873
|
+
SESSONID = 3
|
2874
|
+
|
2875
|
+
FIELDS = {
|
2876
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid'},
|
2877
|
+
INDICES => {:type => ::Thrift::Types::LIST, :name => 'indices', :element => {:type => ::Thrift::Types::I32}},
|
2878
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2879
|
+
}
|
2880
|
+
|
2881
|
+
def struct_fields; FIELDS; end
|
2882
|
+
|
2883
|
+
def validate
|
2884
|
+
end
|
2885
|
+
|
2886
|
+
::Thrift::Struct.generate_accessors self
|
2887
|
+
end
|
2888
|
+
|
2889
|
+
class RemoveUserPlaylistTracks_result
|
2890
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2891
|
+
SUCCESS = 0
|
2892
|
+
|
2893
|
+
FIELDS = {
|
2894
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
2895
|
+
}
|
2896
|
+
|
2897
|
+
def struct_fields; FIELDS; end
|
2898
|
+
|
2899
|
+
def validate
|
2900
|
+
end
|
2901
|
+
|
2902
|
+
::Thrift::Struct.generate_accessors self
|
2903
|
+
end
|
2904
|
+
|
2905
|
+
class RenameUserPlaylistByUuid_args
|
2906
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2907
|
+
UUID = 1
|
2908
|
+
TITLE = 2
|
2909
|
+
SESSONID = 3
|
2910
|
+
|
2911
|
+
FIELDS = {
|
2912
|
+
UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid'},
|
2913
|
+
TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'},
|
2914
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2915
|
+
}
|
2916
|
+
|
2917
|
+
def struct_fields; FIELDS; end
|
2918
|
+
|
2919
|
+
def validate
|
2920
|
+
end
|
2921
|
+
|
2922
|
+
::Thrift::Struct.generate_accessors self
|
2923
|
+
end
|
2924
|
+
|
2925
|
+
class RenameUserPlaylistByUuid_result
|
2926
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2927
|
+
SUCCESS = 0
|
2928
|
+
|
2929
|
+
FIELDS = {
|
2930
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
2931
|
+
}
|
2932
|
+
|
2933
|
+
def struct_fields; FIELDS; end
|
2934
|
+
|
2935
|
+
def validate
|
2936
|
+
end
|
2937
|
+
|
2938
|
+
::Thrift::Struct.generate_accessors self
|
2939
|
+
end
|
2940
|
+
|
2941
|
+
class SuggestTracksByArtistIds_args
|
2942
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2943
|
+
ARTISTIDS = 1
|
2944
|
+
LIMIT = 2
|
2945
|
+
SESSONID = 3
|
2946
|
+
|
2947
|
+
FIELDS = {
|
2948
|
+
ARTISTIDS => {:type => ::Thrift::Types::LIST, :name => 'artistIds', :element => {:type => ::Thrift::Types::I32}},
|
2949
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2950
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2951
|
+
}
|
2952
|
+
|
2953
|
+
def struct_fields; FIELDS; end
|
2954
|
+
|
2955
|
+
def validate
|
2956
|
+
end
|
2957
|
+
|
2958
|
+
::Thrift::Struct.generate_accessors self
|
2959
|
+
end
|
2960
|
+
|
2961
|
+
class SuggestTracksByArtistIds_result
|
2962
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2963
|
+
SUCCESS = 0
|
2964
|
+
|
2965
|
+
FIELDS = {
|
2966
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Track}}
|
2967
|
+
}
|
2968
|
+
|
2969
|
+
def struct_fields; FIELDS; end
|
2970
|
+
|
2971
|
+
def validate
|
2972
|
+
end
|
2973
|
+
|
2974
|
+
::Thrift::Struct.generate_accessors self
|
2975
|
+
end
|
2976
|
+
|
2977
|
+
class SuggestTracksByTrackIds_args
|
2978
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2979
|
+
TRACKIDS = 1
|
2980
|
+
LIMIT = 2
|
2981
|
+
SESSONID = 3
|
2982
|
+
|
2983
|
+
FIELDS = {
|
2984
|
+
TRACKIDS => {:type => ::Thrift::Types::LIST, :name => 'trackIds', :element => {:type => ::Thrift::Types::I32}},
|
2985
|
+
LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
|
2986
|
+
SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
|
2987
|
+
}
|
2988
|
+
|
2989
|
+
def struct_fields; FIELDS; end
|
2990
|
+
|
2991
|
+
def validate
|
2992
|
+
end
|
2993
|
+
|
2994
|
+
::Thrift::Struct.generate_accessors self
|
2995
|
+
end
|
2996
|
+
|
2997
|
+
class SuggestTracksByTrackIds_result
|
2998
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
2999
|
+
SUCCESS = 0
|
3000
|
+
|
3001
|
+
FIELDS = {
|
3002
|
+
SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Track}}
|
3003
|
+
}
|
3004
|
+
|
3005
|
+
def struct_fields; FIELDS; end
|
3006
|
+
|
3007
|
+
def validate
|
3008
|
+
end
|
3009
|
+
|
3010
|
+
::Thrift::Struct.generate_accessors self
|
3011
|
+
end
|
3012
|
+
|
3013
|
+
end
|
3014
|
+
|
3015
|
+
end
|
3016
|
+
end
|