acs-api 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 51b1630ee1ab11a61f345b31af5d95b82d006d2b
4
+ data.tar.gz: ce46fdc0dbf15a4ebbd88c03bc0ca880681a6c7a
5
+ SHA512:
6
+ metadata.gz: 6351dca405f946854e4a4a33194fcdfbb66a5e8818f7fca6575f8ce7fe227d3182265d69356f0b867ee330845a0964c2a71de9d378a4df88f8035490f5fe7b24
7
+ data.tar.gz: dd053e25d0444c45f89b5fda29a8f28d5da6667604a9005dc516ef8921b9f532a4bff75e6151da57370c05232f588042216cd8e50fce20d08bd304abac5d30c6
@@ -0,0 +1,7 @@
1
+ #encoding: UTF-8
2
+ require 'album_model_constants'
3
+ require 'album_model_types'
4
+ require 'album_proxy_constants'
5
+ require 'album_proxy_types'
6
+ require 'i_album_proxy_handler'
7
+
@@ -0,0 +1,13 @@
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 'album_model_types'
9
+
10
+ module Acs
11
+ module Model
12
+ end
13
+ end
@@ -0,0 +1,312 @@
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
+
9
+ module Acs
10
+ module Model
11
+ class BriefAlbum
12
+ include ::Thrift::Struct, ::Thrift::Struct_Union
13
+ ID = 1
14
+ UID = 2
15
+ TITLE = 3
16
+ COVERPATH = 4
17
+ ISFINISHED = 5
18
+ SHORTINTRO = 6
19
+ CREATEDAT = 7
20
+ UPDATEDAT = 8
21
+ LASTUPTRACKAT = 9
22
+ ISDELETED = 10
23
+
24
+ FIELDS = {
25
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
26
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
27
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
28
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
29
+ ISFINISHED => {:type => ::Thrift::Types::I32, :name => 'isFinished', :optional => true},
30
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
31
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
32
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true},
33
+ LASTUPTRACKAT => {:type => ::Thrift::Types::I64, :name => 'lastUptrackAt', :optional => true},
34
+ ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true}
35
+ }
36
+
37
+ def struct_fields; FIELDS; end
38
+
39
+ def validate
40
+ end
41
+
42
+ ::Thrift::Struct.generate_accessors self
43
+ end
44
+
45
+ class SimpleAlbum
46
+ include ::Thrift::Struct, ::Thrift::Struct_Union
47
+ ID = 1
48
+ UID = 2
49
+ CREATEDAT = 3
50
+ UPDATEDAT = 4
51
+ ISPUBLIC = 5
52
+ ISCRAWLER = 6
53
+ ISFINISHED = 7
54
+ STATUS = 8
55
+ DIGSTATUS = 9
56
+ TITLE = 10
57
+ COVERPATH = 11
58
+ SHORTINTRO = 12
59
+ LASTUPTRACKID = 13
60
+ LASTUPTRACKTITLE = 14
61
+ LASTUPTRACKCOVERPATH = 15
62
+ LASTUPTRACKAT = 16
63
+ ISDELETED = 17
64
+
65
+ FIELDS = {
66
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
67
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
68
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
69
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true},
70
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
71
+ ISCRAWLER => {:type => ::Thrift::Types::BOOL, :name => 'isCrawler', :optional => true},
72
+ ISFINISHED => {:type => ::Thrift::Types::I32, :name => 'isFinished', :optional => true},
73
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
74
+ DIGSTATUS => {:type => ::Thrift::Types::I32, :name => 'digStatus', :optional => true},
75
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
76
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
77
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
78
+ LASTUPTRACKID => {:type => ::Thrift::Types::I64, :name => 'lastUptrackId', :optional => true},
79
+ LASTUPTRACKTITLE => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackTitle', :optional => true},
80
+ LASTUPTRACKCOVERPATH => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackCoverPath', :optional => true},
81
+ LASTUPTRACKAT => {:type => ::Thrift::Types::I64, :name => 'lastUptrackAt', :optional => true},
82
+ ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true}
83
+ }
84
+
85
+ def struct_fields; FIELDS; end
86
+
87
+ def validate
88
+ end
89
+
90
+ ::Thrift::Struct.generate_accessors self
91
+ end
92
+
93
+ class BasicAlbum
94
+ include ::Thrift::Struct, ::Thrift::Struct_Union
95
+ ID = 1
96
+ UID = 2
97
+ CREATEDAT = 3
98
+ UPDATEDAT = 4
99
+ ISPUBLIC = 5
100
+ ISCRAWLER = 6
101
+ ISFINISHED = 7
102
+ STATUS = 8
103
+ DIGSTATUS = 9
104
+ CATEGORYID = 10
105
+ TITLE = 11
106
+ COVERPATH = 12
107
+ LASTUPTRACKID = 13
108
+ LASTUPTRACKTITLE = 14
109
+ LASTUPTRACKCOVERPATH = 15
110
+ LASTUPTRACKAT = 16
111
+ USERSOURCE = 17
112
+ MUSICCATEGORY = 18
113
+ TAGS = 19
114
+ SHORTINTRO = 20
115
+ INTRO = 21
116
+ RICHINTRO = 22
117
+ RECORDSORDER = 23
118
+ ISRECORDSDESC = 24
119
+ ISDELETED = 25
120
+
121
+ FIELDS = {
122
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
123
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
124
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
125
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true},
126
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
127
+ ISCRAWLER => {:type => ::Thrift::Types::BOOL, :name => 'isCrawler', :optional => true},
128
+ ISFINISHED => {:type => ::Thrift::Types::I32, :name => 'isFinished', :optional => true},
129
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
130
+ DIGSTATUS => {:type => ::Thrift::Types::I32, :name => 'digStatus', :optional => true},
131
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
132
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
133
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
134
+ LASTUPTRACKID => {:type => ::Thrift::Types::I64, :name => 'lastUptrackId', :optional => true},
135
+ LASTUPTRACKTITLE => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackTitle', :optional => true},
136
+ LASTUPTRACKCOVERPATH => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackCoverPath', :optional => true},
137
+ LASTUPTRACKAT => {:type => ::Thrift::Types::I64, :name => 'lastUptrackAt', :optional => true},
138
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true},
139
+ MUSICCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'musicCategory', :optional => true},
140
+ TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :optional => true},
141
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
142
+ INTRO => {:type => ::Thrift::Types::STRING, :name => 'intro', :optional => true},
143
+ RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true},
144
+ RECORDSORDER => {:type => ::Thrift::Types::STRING, :name => 'recordsOrder', :optional => true},
145
+ ISRECORDSDESC => {:type => ::Thrift::Types::BOOL, :name => 'isRecordsDesc', :optional => true},
146
+ ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true}
147
+ }
148
+
149
+ def struct_fields; FIELDS; end
150
+
151
+ def validate
152
+ end
153
+
154
+ ::Thrift::Struct.generate_accessors self
155
+ end
156
+
157
+ class RichAlbum
158
+ include ::Thrift::Struct, ::Thrift::Struct_Union
159
+ ID = 1
160
+ RICHINTRO = 2
161
+ ISDELETED = 3
162
+
163
+ FIELDS = {
164
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
165
+ RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true},
166
+ ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true}
167
+ }
168
+
169
+ def struct_fields; FIELDS; end
170
+
171
+ def validate
172
+ end
173
+
174
+ ::Thrift::Struct.generate_accessors self
175
+ end
176
+
177
+ class InsertableAlbum
178
+ include ::Thrift::Struct, ::Thrift::Struct_Union
179
+ ID = 1
180
+ UID = 2
181
+ ISPUBLIC = 3
182
+ ISCRAWLER = 4
183
+ ISFINISHED = 5
184
+ STATUS = 6
185
+ DIGSTATUS = 7
186
+ TITLE = 8
187
+ COVERPATH = 9
188
+ USERSOURCE = 10
189
+ CATEGORYID = 11
190
+ MUSICCATEGORY = 12
191
+ SHORTINTRO = 13
192
+ INTRO = 14
193
+ CUTRICHINTRO = 15
194
+ RICHINTRO = 16
195
+ TAGS = 17
196
+ RECORDSORDER = 18
197
+ ISRECORDSDESC = 19
198
+ LASTUPTRACKID = 20
199
+ LASTUPTRACKTITLE = 21
200
+ LASTUPTRACKCOVERPATH = 22
201
+ LASTUPTRACKAT = 23
202
+ RICHID = 24
203
+ CREATEDAT = 25
204
+ UPDATEDAT = 26
205
+
206
+ FIELDS = {
207
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
208
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
209
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
210
+ ISCRAWLER => {:type => ::Thrift::Types::BOOL, :name => 'isCrawler', :optional => true},
211
+ ISFINISHED => {:type => ::Thrift::Types::I32, :name => 'isFinished', :optional => true},
212
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
213
+ DIGSTATUS => {:type => ::Thrift::Types::I32, :name => 'digStatus', :optional => true},
214
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
215
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
216
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true},
217
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
218
+ MUSICCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'musicCategory', :optional => true},
219
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
220
+ INTRO => {:type => ::Thrift::Types::STRING, :name => 'intro', :optional => true},
221
+ CUTRICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'cutRichIntro', :optional => true},
222
+ RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true},
223
+ TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :optional => true},
224
+ RECORDSORDER => {:type => ::Thrift::Types::STRING, :name => 'recordsOrder', :optional => true},
225
+ ISRECORDSDESC => {:type => ::Thrift::Types::BOOL, :name => 'isRecordsDesc', :optional => true},
226
+ LASTUPTRACKID => {:type => ::Thrift::Types::I64, :name => 'lastUptrackId', :optional => true},
227
+ LASTUPTRACKTITLE => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackTitle', :optional => true},
228
+ LASTUPTRACKCOVERPATH => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackCoverPath', :optional => true},
229
+ LASTUPTRACKAT => {:type => ::Thrift::Types::I64, :name => 'lastUptrackAt', :optional => true},
230
+ RICHID => {:type => ::Thrift::Types::I64, :name => 'richId', :optional => true},
231
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
232
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
233
+ }
234
+
235
+ def struct_fields; FIELDS; end
236
+
237
+ def validate
238
+ end
239
+
240
+ ::Thrift::Struct.generate_accessors self
241
+ end
242
+
243
+ class AlterableAlbum
244
+ include ::Thrift::Struct, ::Thrift::Struct_Union
245
+ ID = 1
246
+ UID = 2
247
+ TITLE = 3
248
+ COVERPATH = 4
249
+ SHORTINTRO = 5
250
+ INTRO = 6
251
+ CUTRICHINTRO = 7
252
+ RICHINTRO = 8
253
+ CATEGORYID = 9
254
+ MUSICCATEGORY = 10
255
+ ISFINISHED = 11
256
+ ISRECORDSDESC = 12
257
+ RECORDSORDER = 13
258
+ LASTUPTRACKID = 14
259
+ LASTUPTRACKTITLE = 15
260
+ LASTUPTRACKCOVERPATH = 16
261
+ LASTUPTRACKAT = 17
262
+ UPDATEDAT = 18
263
+
264
+ FIELDS = {
265
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
266
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
267
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
268
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
269
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
270
+ INTRO => {:type => ::Thrift::Types::STRING, :name => 'intro', :optional => true},
271
+ CUTRICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'cutRichIntro', :optional => true},
272
+ RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true},
273
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
274
+ MUSICCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'musicCategory', :optional => true},
275
+ ISFINISHED => {:type => ::Thrift::Types::I32, :name => 'isFinished', :optional => true},
276
+ ISRECORDSDESC => {:type => ::Thrift::Types::BOOL, :name => 'isRecordsDesc', :optional => true},
277
+ RECORDSORDER => {:type => ::Thrift::Types::STRING, :name => 'recordsOrder', :optional => true},
278
+ LASTUPTRACKID => {:type => ::Thrift::Types::I64, :name => 'lastUptrackId', :optional => true},
279
+ LASTUPTRACKTITLE => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackTitle', :optional => true},
280
+ LASTUPTRACKCOVERPATH => {:type => ::Thrift::Types::STRING, :name => 'lastUptrackCoverPath', :optional => true},
281
+ LASTUPTRACKAT => {:type => ::Thrift::Types::I64, :name => 'lastUptrackAt', :optional => true},
282
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
283
+ }
284
+
285
+ def struct_fields; FIELDS; end
286
+
287
+ def validate
288
+ end
289
+
290
+ ::Thrift::Struct.generate_accessors self
291
+ end
292
+
293
+ class DeletableAlbum
294
+ include ::Thrift::Struct, ::Thrift::Struct_Union
295
+ ID = 1
296
+ UID = 2
297
+
298
+ FIELDS = {
299
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
300
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true}
301
+ }
302
+
303
+ def struct_fields; FIELDS; end
304
+
305
+ def validate
306
+ end
307
+
308
+ ::Thrift::Struct.generate_accessors self
309
+ end
310
+
311
+ end
312
+ end
@@ -0,0 +1,13 @@
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 'album_proxy_types'
9
+
10
+ module Acs
11
+ module Proxy
12
+ end
13
+ end
@@ -0,0 +1,14 @@
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 'album_model_types'
9
+
10
+
11
+ module Acs
12
+ module Proxy
13
+ end
14
+ end
@@ -0,0 +1,568 @@
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 'album_proxy_types'
9
+
10
+ module Acs
11
+ module Proxy
12
+ module IAlbumProxyHandler
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def querySimpleAlbum(id)
17
+ send_querySimpleAlbum(id)
18
+ return recv_querySimpleAlbum()
19
+ end
20
+
21
+ def send_querySimpleAlbum(id)
22
+ send_message('querySimpleAlbum', QuerySimpleAlbum_args, :id => id)
23
+ end
24
+
25
+ def recv_querySimpleAlbum()
26
+ result = receive_message(QuerySimpleAlbum_result)
27
+ return result.success unless result.success.nil?
28
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'querySimpleAlbum failed: unknown result')
29
+ end
30
+
31
+ def queryBriefAlbum(id)
32
+ send_queryBriefAlbum(id)
33
+ return recv_queryBriefAlbum()
34
+ end
35
+
36
+ def send_queryBriefAlbum(id)
37
+ send_message('queryBriefAlbum', QueryBriefAlbum_args, :id => id)
38
+ end
39
+
40
+ def recv_queryBriefAlbum()
41
+ result = receive_message(QueryBriefAlbum_result)
42
+ return result.success unless result.success.nil?
43
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryBriefAlbum failed: unknown result')
44
+ end
45
+
46
+ def queryBasicAlbum(id)
47
+ send_queryBasicAlbum(id)
48
+ return recv_queryBasicAlbum()
49
+ end
50
+
51
+ def send_queryBasicAlbum(id)
52
+ send_message('queryBasicAlbum', QueryBasicAlbum_args, :id => id)
53
+ end
54
+
55
+ def recv_queryBasicAlbum()
56
+ result = receive_message(QueryBasicAlbum_result)
57
+ return result.success unless result.success.nil?
58
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryBasicAlbum failed: unknown result')
59
+ end
60
+
61
+ def queryRichAlbum(id)
62
+ send_queryRichAlbum(id)
63
+ return recv_queryRichAlbum()
64
+ end
65
+
66
+ def send_queryRichAlbum(id)
67
+ send_message('queryRichAlbum', QueryRichAlbum_args, :id => id)
68
+ end
69
+
70
+ def recv_queryRichAlbum()
71
+ result = receive_message(QueryRichAlbum_result)
72
+ return result.success unless result.success.nil?
73
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryRichAlbum failed: unknown result')
74
+ end
75
+
76
+ def querySimpleAlbums(ids)
77
+ send_querySimpleAlbums(ids)
78
+ return recv_querySimpleAlbums()
79
+ end
80
+
81
+ def send_querySimpleAlbums(ids)
82
+ send_message('querySimpleAlbums', QuerySimpleAlbums_args, :ids => ids)
83
+ end
84
+
85
+ def recv_querySimpleAlbums()
86
+ result = receive_message(QuerySimpleAlbums_result)
87
+ return result.success unless result.success.nil?
88
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'querySimpleAlbums failed: unknown result')
89
+ end
90
+
91
+ def queryBriefAlbums(ids)
92
+ send_queryBriefAlbums(ids)
93
+ return recv_queryBriefAlbums()
94
+ end
95
+
96
+ def send_queryBriefAlbums(ids)
97
+ send_message('queryBriefAlbums', QueryBriefAlbums_args, :ids => ids)
98
+ end
99
+
100
+ def recv_queryBriefAlbums()
101
+ result = receive_message(QueryBriefAlbums_result)
102
+ return result.success unless result.success.nil?
103
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryBriefAlbums failed: unknown result')
104
+ end
105
+
106
+ def queryBasicAlbums(ids)
107
+ send_queryBasicAlbums(ids)
108
+ return recv_queryBasicAlbums()
109
+ end
110
+
111
+ def send_queryBasicAlbums(ids)
112
+ send_message('queryBasicAlbums', QueryBasicAlbums_args, :ids => ids)
113
+ end
114
+
115
+ def recv_queryBasicAlbums()
116
+ result = receive_message(QueryBasicAlbums_result)
117
+ return result.success unless result.success.nil?
118
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryBasicAlbums failed: unknown result')
119
+ end
120
+
121
+ def createAlbum(album, extraParams)
122
+ send_createAlbum(album, extraParams)
123
+ recv_createAlbum()
124
+ end
125
+
126
+ def send_createAlbum(album, extraParams)
127
+ send_message('createAlbum', CreateAlbum_args, :album => album, :extraParams => extraParams)
128
+ end
129
+
130
+ def recv_createAlbum()
131
+ result = receive_message(CreateAlbum_result)
132
+ return
133
+ end
134
+
135
+ def updateAlbum(album, extraParams)
136
+ send_updateAlbum(album, extraParams)
137
+ recv_updateAlbum()
138
+ end
139
+
140
+ def send_updateAlbum(album, extraParams)
141
+ send_message('updateAlbum', UpdateAlbum_args, :album => album, :extraParams => extraParams)
142
+ end
143
+
144
+ def recv_updateAlbum()
145
+ result = receive_message(UpdateAlbum_result)
146
+ return
147
+ end
148
+
149
+ def deleteAlbum(album, extraParams)
150
+ send_deleteAlbum(album, extraParams)
151
+ recv_deleteAlbum()
152
+ end
153
+
154
+ def send_deleteAlbum(album, extraParams)
155
+ send_message('deleteAlbum', DeleteAlbum_args, :album => album, :extraParams => extraParams)
156
+ end
157
+
158
+ def recv_deleteAlbum()
159
+ result = receive_message(DeleteAlbum_result)
160
+ return
161
+ end
162
+
163
+ end
164
+
165
+ class Processor
166
+ include ::Thrift::Processor
167
+
168
+ def process_querySimpleAlbum(seqid, iprot, oprot)
169
+ args = read_args(iprot, QuerySimpleAlbum_args)
170
+ result = QuerySimpleAlbum_result.new()
171
+ result.success = @handler.querySimpleAlbum(args.id)
172
+ write_result(result, oprot, 'querySimpleAlbum', seqid)
173
+ end
174
+
175
+ def process_queryBriefAlbum(seqid, iprot, oprot)
176
+ args = read_args(iprot, QueryBriefAlbum_args)
177
+ result = QueryBriefAlbum_result.new()
178
+ result.success = @handler.queryBriefAlbum(args.id)
179
+ write_result(result, oprot, 'queryBriefAlbum', seqid)
180
+ end
181
+
182
+ def process_queryBasicAlbum(seqid, iprot, oprot)
183
+ args = read_args(iprot, QueryBasicAlbum_args)
184
+ result = QueryBasicAlbum_result.new()
185
+ result.success = @handler.queryBasicAlbum(args.id)
186
+ write_result(result, oprot, 'queryBasicAlbum', seqid)
187
+ end
188
+
189
+ def process_queryRichAlbum(seqid, iprot, oprot)
190
+ args = read_args(iprot, QueryRichAlbum_args)
191
+ result = QueryRichAlbum_result.new()
192
+ result.success = @handler.queryRichAlbum(args.id)
193
+ write_result(result, oprot, 'queryRichAlbum', seqid)
194
+ end
195
+
196
+ def process_querySimpleAlbums(seqid, iprot, oprot)
197
+ args = read_args(iprot, QuerySimpleAlbums_args)
198
+ result = QuerySimpleAlbums_result.new()
199
+ result.success = @handler.querySimpleAlbums(args.ids)
200
+ write_result(result, oprot, 'querySimpleAlbums', seqid)
201
+ end
202
+
203
+ def process_queryBriefAlbums(seqid, iprot, oprot)
204
+ args = read_args(iprot, QueryBriefAlbums_args)
205
+ result = QueryBriefAlbums_result.new()
206
+ result.success = @handler.queryBriefAlbums(args.ids)
207
+ write_result(result, oprot, 'queryBriefAlbums', seqid)
208
+ end
209
+
210
+ def process_queryBasicAlbums(seqid, iprot, oprot)
211
+ args = read_args(iprot, QueryBasicAlbums_args)
212
+ result = QueryBasicAlbums_result.new()
213
+ result.success = @handler.queryBasicAlbums(args.ids)
214
+ write_result(result, oprot, 'queryBasicAlbums', seqid)
215
+ end
216
+
217
+ def process_createAlbum(seqid, iprot, oprot)
218
+ args = read_args(iprot, CreateAlbum_args)
219
+ result = CreateAlbum_result.new()
220
+ @handler.createAlbum(args.album, args.extraParams)
221
+ write_result(result, oprot, 'createAlbum', seqid)
222
+ end
223
+
224
+ def process_updateAlbum(seqid, iprot, oprot)
225
+ args = read_args(iprot, UpdateAlbum_args)
226
+ result = UpdateAlbum_result.new()
227
+ @handler.updateAlbum(args.album, args.extraParams)
228
+ write_result(result, oprot, 'updateAlbum', seqid)
229
+ end
230
+
231
+ def process_deleteAlbum(seqid, iprot, oprot)
232
+ args = read_args(iprot, DeleteAlbum_args)
233
+ result = DeleteAlbum_result.new()
234
+ @handler.deleteAlbum(args.album, args.extraParams)
235
+ write_result(result, oprot, 'deleteAlbum', seqid)
236
+ end
237
+
238
+ end
239
+
240
+ # HELPER FUNCTIONS AND STRUCTURES
241
+
242
+ class QuerySimpleAlbum_args
243
+ include ::Thrift::Struct, ::Thrift::Struct_Union
244
+ ID = 1
245
+
246
+ FIELDS = {
247
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'}
248
+ }
249
+
250
+ def struct_fields; FIELDS; end
251
+
252
+ def validate
253
+ end
254
+
255
+ ::Thrift::Struct.generate_accessors self
256
+ end
257
+
258
+ class QuerySimpleAlbum_result
259
+ include ::Thrift::Struct, ::Thrift::Struct_Union
260
+ SUCCESS = 0
261
+
262
+ FIELDS = {
263
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Acs::Model::SimpleAlbum}
264
+ }
265
+
266
+ def struct_fields; FIELDS; end
267
+
268
+ def validate
269
+ end
270
+
271
+ ::Thrift::Struct.generate_accessors self
272
+ end
273
+
274
+ class QueryBriefAlbum_args
275
+ include ::Thrift::Struct, ::Thrift::Struct_Union
276
+ ID = 1
277
+
278
+ FIELDS = {
279
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'}
280
+ }
281
+
282
+ def struct_fields; FIELDS; end
283
+
284
+ def validate
285
+ end
286
+
287
+ ::Thrift::Struct.generate_accessors self
288
+ end
289
+
290
+ class QueryBriefAlbum_result
291
+ include ::Thrift::Struct, ::Thrift::Struct_Union
292
+ SUCCESS = 0
293
+
294
+ FIELDS = {
295
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Acs::Model::BriefAlbum}
296
+ }
297
+
298
+ def struct_fields; FIELDS; end
299
+
300
+ def validate
301
+ end
302
+
303
+ ::Thrift::Struct.generate_accessors self
304
+ end
305
+
306
+ class QueryBasicAlbum_args
307
+ include ::Thrift::Struct, ::Thrift::Struct_Union
308
+ ID = 1
309
+
310
+ FIELDS = {
311
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'}
312
+ }
313
+
314
+ def struct_fields; FIELDS; end
315
+
316
+ def validate
317
+ end
318
+
319
+ ::Thrift::Struct.generate_accessors self
320
+ end
321
+
322
+ class QueryBasicAlbum_result
323
+ include ::Thrift::Struct, ::Thrift::Struct_Union
324
+ SUCCESS = 0
325
+
326
+ FIELDS = {
327
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Acs::Model::BasicAlbum}
328
+ }
329
+
330
+ def struct_fields; FIELDS; end
331
+
332
+ def validate
333
+ end
334
+
335
+ ::Thrift::Struct.generate_accessors self
336
+ end
337
+
338
+ class QueryRichAlbum_args
339
+ include ::Thrift::Struct, ::Thrift::Struct_Union
340
+ ID = 1
341
+
342
+ FIELDS = {
343
+ ID => {:type => ::Thrift::Types::I64, :name => 'id'}
344
+ }
345
+
346
+ def struct_fields; FIELDS; end
347
+
348
+ def validate
349
+ end
350
+
351
+ ::Thrift::Struct.generate_accessors self
352
+ end
353
+
354
+ class QueryRichAlbum_result
355
+ include ::Thrift::Struct, ::Thrift::Struct_Union
356
+ SUCCESS = 0
357
+
358
+ FIELDS = {
359
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Acs::Model::RichAlbum}
360
+ }
361
+
362
+ def struct_fields; FIELDS; end
363
+
364
+ def validate
365
+ end
366
+
367
+ ::Thrift::Struct.generate_accessors self
368
+ end
369
+
370
+ class QuerySimpleAlbums_args
371
+ include ::Thrift::Struct, ::Thrift::Struct_Union
372
+ IDS = 1
373
+
374
+ FIELDS = {
375
+ IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::I64}}
376
+ }
377
+
378
+ def struct_fields; FIELDS; end
379
+
380
+ def validate
381
+ end
382
+
383
+ ::Thrift::Struct.generate_accessors self
384
+ end
385
+
386
+ class QuerySimpleAlbums_result
387
+ include ::Thrift::Struct, ::Thrift::Struct_Union
388
+ SUCCESS = 0
389
+
390
+ FIELDS = {
391
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Acs::Model::SimpleAlbum}}
392
+ }
393
+
394
+ def struct_fields; FIELDS; end
395
+
396
+ def validate
397
+ end
398
+
399
+ ::Thrift::Struct.generate_accessors self
400
+ end
401
+
402
+ class QueryBriefAlbums_args
403
+ include ::Thrift::Struct, ::Thrift::Struct_Union
404
+ IDS = 1
405
+
406
+ FIELDS = {
407
+ IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::I64}}
408
+ }
409
+
410
+ def struct_fields; FIELDS; end
411
+
412
+ def validate
413
+ end
414
+
415
+ ::Thrift::Struct.generate_accessors self
416
+ end
417
+
418
+ class QueryBriefAlbums_result
419
+ include ::Thrift::Struct, ::Thrift::Struct_Union
420
+ SUCCESS = 0
421
+
422
+ FIELDS = {
423
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Acs::Model::BriefAlbum}}
424
+ }
425
+
426
+ def struct_fields; FIELDS; end
427
+
428
+ def validate
429
+ end
430
+
431
+ ::Thrift::Struct.generate_accessors self
432
+ end
433
+
434
+ class QueryBasicAlbums_args
435
+ include ::Thrift::Struct, ::Thrift::Struct_Union
436
+ IDS = 1
437
+
438
+ FIELDS = {
439
+ IDS => {:type => ::Thrift::Types::LIST, :name => 'ids', :element => {:type => ::Thrift::Types::I64}}
440
+ }
441
+
442
+ def struct_fields; FIELDS; end
443
+
444
+ def validate
445
+ end
446
+
447
+ ::Thrift::Struct.generate_accessors self
448
+ end
449
+
450
+ class QueryBasicAlbums_result
451
+ include ::Thrift::Struct, ::Thrift::Struct_Union
452
+ SUCCESS = 0
453
+
454
+ FIELDS = {
455
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Acs::Model::BasicAlbum}}
456
+ }
457
+
458
+ def struct_fields; FIELDS; end
459
+
460
+ def validate
461
+ end
462
+
463
+ ::Thrift::Struct.generate_accessors self
464
+ end
465
+
466
+ class CreateAlbum_args
467
+ include ::Thrift::Struct, ::Thrift::Struct_Union
468
+ ALBUM = 1
469
+ EXTRAPARAMS = 2
470
+
471
+ FIELDS = {
472
+ ALBUM => {:type => ::Thrift::Types::STRUCT, :name => 'album', :class => ::Acs::Model::InsertableAlbum},
473
+ EXTRAPARAMS => {:type => ::Thrift::Types::MAP, :name => 'extraParams', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
474
+ }
475
+
476
+ def struct_fields; FIELDS; end
477
+
478
+ def validate
479
+ end
480
+
481
+ ::Thrift::Struct.generate_accessors self
482
+ end
483
+
484
+ class CreateAlbum_result
485
+ include ::Thrift::Struct, ::Thrift::Struct_Union
486
+
487
+ FIELDS = {
488
+
489
+ }
490
+
491
+ def struct_fields; FIELDS; end
492
+
493
+ def validate
494
+ end
495
+
496
+ ::Thrift::Struct.generate_accessors self
497
+ end
498
+
499
+ class UpdateAlbum_args
500
+ include ::Thrift::Struct, ::Thrift::Struct_Union
501
+ ALBUM = 1
502
+ EXTRAPARAMS = 2
503
+
504
+ FIELDS = {
505
+ ALBUM => {:type => ::Thrift::Types::STRUCT, :name => 'album', :class => ::Acs::Model::AlterableAlbum},
506
+ EXTRAPARAMS => {:type => ::Thrift::Types::MAP, :name => 'extraParams', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
507
+ }
508
+
509
+ def struct_fields; FIELDS; end
510
+
511
+ def validate
512
+ end
513
+
514
+ ::Thrift::Struct.generate_accessors self
515
+ end
516
+
517
+ class UpdateAlbum_result
518
+ include ::Thrift::Struct, ::Thrift::Struct_Union
519
+
520
+ FIELDS = {
521
+
522
+ }
523
+
524
+ def struct_fields; FIELDS; end
525
+
526
+ def validate
527
+ end
528
+
529
+ ::Thrift::Struct.generate_accessors self
530
+ end
531
+
532
+ class DeleteAlbum_args
533
+ include ::Thrift::Struct, ::Thrift::Struct_Union
534
+ ALBUM = 1
535
+ EXTRAPARAMS = 2
536
+
537
+ FIELDS = {
538
+ ALBUM => {:type => ::Thrift::Types::STRUCT, :name => 'album', :class => ::Acs::Model::DeletableAlbum},
539
+ EXTRAPARAMS => {:type => ::Thrift::Types::MAP, :name => 'extraParams', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
540
+ }
541
+
542
+ def struct_fields; FIELDS; end
543
+
544
+ def validate
545
+ end
546
+
547
+ ::Thrift::Struct.generate_accessors self
548
+ end
549
+
550
+ class DeleteAlbum_result
551
+ include ::Thrift::Struct, ::Thrift::Struct_Union
552
+
553
+ FIELDS = {
554
+
555
+ }
556
+
557
+ def struct_fields; FIELDS; end
558
+
559
+ def validate
560
+ end
561
+
562
+ ::Thrift::Struct.generate_accessors self
563
+ end
564
+
565
+ end
566
+
567
+ end
568
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: acs-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Ted Wang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thrift
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Album base service api
28
+ email: ted@ximalaya.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/acs-api.rb
34
+ - lib/album_model_constants.rb
35
+ - lib/album_model_types.rb
36
+ - lib/album_proxy_constants.rb
37
+ - lib/album_proxy_types.rb
38
+ - lib/i_album_proxy_handler.rb
39
+ homepage: http://www.ximalaya.com
40
+ licenses:
41
+ - MIT2.0
42
+ metadata: {}
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 2.2.2
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: Generated album base service api ruby code
63
+ test_files: []