track_service_thrift_client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,240 @@
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 'track_types'
9
+
10
+ module RemoteTrackQueryService
11
+ class Client
12
+ include ::Thrift::Client
13
+
14
+ def queryBaseTrackInfo(trackId)
15
+ send_queryBaseTrackInfo(trackId)
16
+ return recv_queryBaseTrackInfo()
17
+ end
18
+
19
+ def send_queryBaseTrackInfo(trackId)
20
+ send_message('queryBaseTrackInfo', QueryBaseTrackInfo_args, :trackId => trackId)
21
+ end
22
+
23
+ def recv_queryBaseTrackInfo()
24
+ result = receive_message(QueryBaseTrackInfo_result)
25
+ return result.success unless result.success.nil?
26
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryBaseTrackInfo failed: unknown result')
27
+ end
28
+
29
+ def multiQueryBaseTrackInfos(trackIds)
30
+ send_multiQueryBaseTrackInfos(trackIds)
31
+ return recv_multiQueryBaseTrackInfos()
32
+ end
33
+
34
+ def send_multiQueryBaseTrackInfos(trackIds)
35
+ send_message('multiQueryBaseTrackInfos', MultiQueryBaseTrackInfos_args, :trackIds => trackIds)
36
+ end
37
+
38
+ def recv_multiQueryBaseTrackInfos()
39
+ result = receive_message(MultiQueryBaseTrackInfos_result)
40
+ return result.success unless result.success.nil?
41
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiQueryBaseTrackInfos failed: unknown result')
42
+ end
43
+
44
+ def queryDetailTrackInfo(trackId)
45
+ send_queryDetailTrackInfo(trackId)
46
+ return recv_queryDetailTrackInfo()
47
+ end
48
+
49
+ def send_queryDetailTrackInfo(trackId)
50
+ send_message('queryDetailTrackInfo', QueryDetailTrackInfo_args, :trackId => trackId)
51
+ end
52
+
53
+ def recv_queryDetailTrackInfo()
54
+ result = receive_message(QueryDetailTrackInfo_result)
55
+ return result.success unless result.success.nil?
56
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryDetailTrackInfo failed: unknown result')
57
+ end
58
+
59
+ def multiQueryDetailTrackInfos(trackIds)
60
+ send_multiQueryDetailTrackInfos(trackIds)
61
+ return recv_multiQueryDetailTrackInfos()
62
+ end
63
+
64
+ def send_multiQueryDetailTrackInfos(trackIds)
65
+ send_message('multiQueryDetailTrackInfos', MultiQueryDetailTrackInfos_args, :trackIds => trackIds)
66
+ end
67
+
68
+ def recv_multiQueryDetailTrackInfos()
69
+ result = receive_message(MultiQueryDetailTrackInfos_result)
70
+ return result.success unless result.success.nil?
71
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiQueryDetailTrackInfos failed: unknown result')
72
+ end
73
+
74
+ end
75
+
76
+ class Processor
77
+ include ::Thrift::Processor
78
+
79
+ def process_queryBaseTrackInfo(seqid, iprot, oprot)
80
+ args = read_args(iprot, QueryBaseTrackInfo_args)
81
+ result = QueryBaseTrackInfo_result.new()
82
+ result.success = @handler.queryBaseTrackInfo(args.trackId)
83
+ write_result(result, oprot, 'queryBaseTrackInfo', seqid)
84
+ end
85
+
86
+ def process_multiQueryBaseTrackInfos(seqid, iprot, oprot)
87
+ args = read_args(iprot, MultiQueryBaseTrackInfos_args)
88
+ result = MultiQueryBaseTrackInfos_result.new()
89
+ result.success = @handler.multiQueryBaseTrackInfos(args.trackIds)
90
+ write_result(result, oprot, 'multiQueryBaseTrackInfos', seqid)
91
+ end
92
+
93
+ def process_queryDetailTrackInfo(seqid, iprot, oprot)
94
+ args = read_args(iprot, QueryDetailTrackInfo_args)
95
+ result = QueryDetailTrackInfo_result.new()
96
+ result.success = @handler.queryDetailTrackInfo(args.trackId)
97
+ write_result(result, oprot, 'queryDetailTrackInfo', seqid)
98
+ end
99
+
100
+ def process_multiQueryDetailTrackInfos(seqid, iprot, oprot)
101
+ args = read_args(iprot, MultiQueryDetailTrackInfos_args)
102
+ result = MultiQueryDetailTrackInfos_result.new()
103
+ result.success = @handler.multiQueryDetailTrackInfos(args.trackIds)
104
+ write_result(result, oprot, 'multiQueryDetailTrackInfos', seqid)
105
+ end
106
+
107
+ end
108
+
109
+ # HELPER FUNCTIONS AND STRUCTURES
110
+
111
+ class QueryBaseTrackInfo_args
112
+ include ::Thrift::Struct, ::Thrift::Struct_Union
113
+ TRACKID = 1
114
+
115
+ FIELDS = {
116
+ TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId'}
117
+ }
118
+
119
+ def struct_fields; FIELDS; end
120
+
121
+ def validate
122
+ end
123
+
124
+ ::Thrift::Struct.generate_accessors self
125
+ end
126
+
127
+ class QueryBaseTrackInfo_result
128
+ include ::Thrift::Struct, ::Thrift::Struct_Union
129
+ SUCCESS = 0
130
+
131
+ FIELDS = {
132
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::BaseTrackInfo}
133
+ }
134
+
135
+ def struct_fields; FIELDS; end
136
+
137
+ def validate
138
+ end
139
+
140
+ ::Thrift::Struct.generate_accessors self
141
+ end
142
+
143
+ class MultiQueryBaseTrackInfos_args
144
+ include ::Thrift::Struct, ::Thrift::Struct_Union
145
+ TRACKIDS = 1
146
+
147
+ FIELDS = {
148
+ TRACKIDS => {:type => ::Thrift::Types::LIST, :name => 'trackIds', :element => {:type => ::Thrift::Types::I64}}
149
+ }
150
+
151
+ def struct_fields; FIELDS; end
152
+
153
+ def validate
154
+ end
155
+
156
+ ::Thrift::Struct.generate_accessors self
157
+ end
158
+
159
+ class MultiQueryBaseTrackInfos_result
160
+ include ::Thrift::Struct, ::Thrift::Struct_Union
161
+ SUCCESS = 0
162
+
163
+ FIELDS = {
164
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::BaseTrackInfo}}
165
+ }
166
+
167
+ def struct_fields; FIELDS; end
168
+
169
+ def validate
170
+ end
171
+
172
+ ::Thrift::Struct.generate_accessors self
173
+ end
174
+
175
+ class QueryDetailTrackInfo_args
176
+ include ::Thrift::Struct, ::Thrift::Struct_Union
177
+ TRACKID = 1
178
+
179
+ FIELDS = {
180
+ TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId'}
181
+ }
182
+
183
+ def struct_fields; FIELDS; end
184
+
185
+ def validate
186
+ end
187
+
188
+ ::Thrift::Struct.generate_accessors self
189
+ end
190
+
191
+ class QueryDetailTrackInfo_result
192
+ include ::Thrift::Struct, ::Thrift::Struct_Union
193
+ SUCCESS = 0
194
+
195
+ FIELDS = {
196
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::DetailTrackInfo}
197
+ }
198
+
199
+ def struct_fields; FIELDS; end
200
+
201
+ def validate
202
+ end
203
+
204
+ ::Thrift::Struct.generate_accessors self
205
+ end
206
+
207
+ class MultiQueryDetailTrackInfos_args
208
+ include ::Thrift::Struct, ::Thrift::Struct_Union
209
+ TRACKIDS = 1
210
+
211
+ FIELDS = {
212
+ TRACKIDS => {:type => ::Thrift::Types::LIST, :name => 'trackIds', :element => {:type => ::Thrift::Types::I64}}
213
+ }
214
+
215
+ def struct_fields; FIELDS; end
216
+
217
+ def validate
218
+ end
219
+
220
+ ::Thrift::Struct.generate_accessors self
221
+ end
222
+
223
+ class MultiQueryDetailTrackInfos_result
224
+ include ::Thrift::Struct, ::Thrift::Struct_Union
225
+ SUCCESS = 0
226
+
227
+ FIELDS = {
228
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::I64}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::DetailTrackInfo}}
229
+ }
230
+
231
+ def struct_fields; FIELDS; end
232
+
233
+ def validate
234
+ end
235
+
236
+ ::Thrift::Struct.generate_accessors self
237
+ end
238
+
239
+ end
240
+
@@ -0,0 +1,9 @@
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 'track_types'
9
+
@@ -0,0 +1,8 @@
1
+ require 'content_constants'
2
+ require 'content_types'
3
+ require 'remote_track_facade_service'
4
+ require 'remote_track_query_service'
5
+ require 'track_constants'
6
+ require 'track_types'
7
+ require 'uts_model_constatns'
8
+ require 'uts_model_type'
@@ -0,0 +1,339 @@
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 'content_types'
9
+ require 'uts_model_types'
10
+
11
+
12
+ module ApproveStatus
13
+ Init = 0
14
+ Approved = 1
15
+ Reject = 2
16
+ VALUE_MAP = {0 => "Init", 1 => "Approved", 2 => "Reject"}
17
+ VALID_VALUES = Set.new([Init, Approved, Reject]).freeze
18
+ end
19
+
20
+ module UploadSource
21
+ Ios = 1
22
+ Pc = 2
23
+ Android = 3
24
+ Desktop = 4
25
+ VALUE_MAP = {1 => "Ios", 2 => "Pc", 3 => "Android", 4 => "Desktop"}
26
+ VALID_VALUES = Set.new([Ios, Pc, Android, Desktop]).freeze
27
+ end
28
+
29
+ module UserSource
30
+ Originate = 1
31
+ Collect = 2
32
+ VALUE_MAP = {1 => "Originate", 2 => "Collect"}
33
+ VALID_VALUES = Set.new([Originate, Collect]).freeze
34
+ end
35
+
36
+ module CRUDOperation
37
+ C = 0
38
+ R = 1
39
+ U = 2
40
+ D = 3
41
+ VALUE_MAP = {0 => "C", 1 => "R", 2 => "U", 3 => "D"}
42
+ VALID_VALUES = Set.new([C, R, U, D]).freeze
43
+ end
44
+
45
+ class BaseTrackInfo
46
+ include ::Thrift::Struct, ::Thrift::Struct_Union
47
+ TRACKID = 1
48
+ TITLE = 2
49
+ COVERPATH = 3
50
+ COVERSMALL = 4
51
+ COVERMIDDLE = 5
52
+ COVERLARGE = 6
53
+ SHORTINTRO = 7
54
+ TAGS = 8
55
+ PLAYPATH32 = 9
56
+ PLAYPATH64 = 10
57
+ DOWNLOADPATH = 11
58
+ DOWNLOADSIZE = 12
59
+ DURATION = 13
60
+ TRANSCODESTATE = 14
61
+ ISPUBLIC = 15
62
+ STATUS = 16
63
+ USERSOURCE = 17
64
+ UPLOADSOURCE = 18
65
+ UID = 19
66
+ ALBUMID = 20
67
+ CATEGORYID = 21
68
+ ACTIVITYID = 22
69
+ CREATEDAT = 23
70
+ UPDATEDAT = 24
71
+ SUCCESS = 25
72
+ MSG = 26
73
+
74
+ FIELDS = {
75
+ TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
76
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
77
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
78
+ COVERSMALL => {:type => ::Thrift::Types::STRING, :name => 'coverSmall', :optional => true},
79
+ COVERMIDDLE => {:type => ::Thrift::Types::STRING, :name => 'coverMiddle', :optional => true},
80
+ COVERLARGE => {:type => ::Thrift::Types::STRING, :name => 'coverLarge', :optional => true},
81
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
82
+ TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :optional => true},
83
+ PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
84
+ PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
85
+ DOWNLOADPATH => {:type => ::Thrift::Types::STRING, :name => 'downloadPath', :optional => true},
86
+ DOWNLOADSIZE => {:type => ::Thrift::Types::I32, :name => 'downloadSize', :optional => true},
87
+ DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
88
+ TRANSCODESTATE => {:type => ::Thrift::Types::I32, :name => 'transcodeState', :optional => true},
89
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
90
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true, :enum_class => ::ApproveStatus},
91
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true, :enum_class => ::UserSource},
92
+ UPLOADSOURCE => {:type => ::Thrift::Types::I32, :name => 'uploadSource', :optional => true, :enum_class => ::UploadSource},
93
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
94
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
95
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
96
+ ACTIVITYID => {:type => ::Thrift::Types::I32, :name => 'activityId', :optional => true},
97
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
98
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true},
99
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success', :optional => true},
100
+ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg', :optional => true}
101
+ }
102
+
103
+ def struct_fields; FIELDS; end
104
+
105
+ def validate
106
+ unless @status.nil? || ::ApproveStatus::VALID_VALUES.include?(@status)
107
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
108
+ end
109
+ unless @userSource.nil? || ::UserSource::VALID_VALUES.include?(@userSource)
110
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field userSource!')
111
+ end
112
+ unless @uploadSource.nil? || ::UploadSource::VALID_VALUES.include?(@uploadSource)
113
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field uploadSource!')
114
+ end
115
+ end
116
+
117
+ ::Thrift::Struct.generate_accessors self
118
+ end
119
+
120
+ class DetailTrackInfo
121
+ include ::Thrift::Struct, ::Thrift::Struct_Union
122
+ TRACKID = 1
123
+ TITLE = 2
124
+ COVERPATH = 3
125
+ COVERSMALL = 4
126
+ COVERMIDDLE = 5
127
+ COVERLARGE = 6
128
+ SHORTINTRO = 7
129
+ TAGS = 8
130
+ PLAYPATH32 = 9
131
+ PLAYPATH64 = 10
132
+ DOWNLOADPATH = 11
133
+ DOWNLOADSIZE = 12
134
+ DURATION = 13
135
+ TRANSCODESTATE = 14
136
+ ISPUBLIC = 15
137
+ STATUS = 16
138
+ USERSOURCE = 17
139
+ UPLOADSOURCE = 18
140
+ UID = 19
141
+ ALBUMID = 20
142
+ CATEGORYID = 21
143
+ ACTIVITYID = 22
144
+ CREATEDAT = 23
145
+ UPDATEDAT = 24
146
+ SHORTRICHINTRO = 25
147
+ RICHINTRO = 26
148
+ LYRIC = 27
149
+ SUCCESS = 28
150
+ MSG = 29
151
+
152
+ FIELDS = {
153
+ TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
154
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
155
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
156
+ COVERSMALL => {:type => ::Thrift::Types::STRING, :name => 'coverSmall', :optional => true},
157
+ COVERMIDDLE => {:type => ::Thrift::Types::STRING, :name => 'coverMiddle', :optional => true},
158
+ COVERLARGE => {:type => ::Thrift::Types::STRING, :name => 'coverLarge', :optional => true},
159
+ SHORTINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortIntro', :optional => true},
160
+ TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :optional => true},
161
+ PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
162
+ PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
163
+ DOWNLOADPATH => {:type => ::Thrift::Types::STRING, :name => 'downloadPath', :optional => true},
164
+ DOWNLOADSIZE => {:type => ::Thrift::Types::I32, :name => 'downloadSize', :optional => true},
165
+ DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
166
+ TRANSCODESTATE => {:type => ::Thrift::Types::I32, :name => 'transcodeState', :optional => true},
167
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
168
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true, :enum_class => ::ApproveStatus},
169
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true, :enum_class => ::UserSource},
170
+ UPLOADSOURCE => {:type => ::Thrift::Types::I32, :name => 'uploadSource', :optional => true, :enum_class => ::UploadSource},
171
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
172
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
173
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
174
+ ACTIVITYID => {:type => ::Thrift::Types::I32, :name => 'activityId', :optional => true},
175
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
176
+ UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true},
177
+ SHORTRICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'shortRichIntro', :optional => true},
178
+ RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true},
179
+ LYRIC => {:type => ::Thrift::Types::STRING, :name => 'lyric', :optional => true},
180
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success', :optional => true},
181
+ MSG => {:type => ::Thrift::Types::STRING, :name => 'msg', :optional => true}
182
+ }
183
+
184
+ def struct_fields; FIELDS; end
185
+
186
+ def validate
187
+ unless @status.nil? || ::ApproveStatus::VALID_VALUES.include?(@status)
188
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
189
+ end
190
+ unless @userSource.nil? || ::UserSource::VALID_VALUES.include?(@userSource)
191
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field userSource!')
192
+ end
193
+ unless @uploadSource.nil? || ::UploadSource::VALID_VALUES.include?(@uploadSource)
194
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field uploadSource!')
195
+ end
196
+ end
197
+
198
+ ::Thrift::Struct.generate_accessors self
199
+ end
200
+
201
+ class TrackPicForm
202
+ include ::Thrift::Struct, ::Thrift::Struct_Union
203
+ ID = 1
204
+ CRUD = 2
205
+
206
+ FIELDS = {
207
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
208
+ CRUD => {:type => ::Thrift::Types::I32, :name => 'crud', :optional => true, :enum_class => ::CRUDOperation}
209
+ }
210
+
211
+ def struct_fields; FIELDS; end
212
+
213
+ def validate
214
+ unless @crud.nil? || ::CRUDOperation::VALID_VALUES.include?(@crud)
215
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field crud!')
216
+ end
217
+ end
218
+
219
+ ::Thrift::Struct.generate_accessors self
220
+ end
221
+
222
+ class TrackForm
223
+ include ::Thrift::Struct, ::Thrift::Struct_Union
224
+ ID = 1
225
+ TITLE = 2
226
+ IMAGES = 3
227
+ AUDIOID = 4
228
+ ALBUMID = 5
229
+ UID = 6
230
+ UPLOADSOURCE = 7
231
+ USERSOURCE = 8
232
+ CATEGORYID = 9
233
+ MUSICCATEGORY = 10
234
+ INTRO = 11
235
+ RICHINTRO = 12
236
+ LYRIC = 13
237
+ TAGS = 14
238
+ LANGUAGE = 15
239
+ AUTHOR = 16
240
+ ANNOUNCER = 17
241
+ SIGNER = 18
242
+ RESIGNER = 19
243
+ SINGERCATEGORY = 20
244
+ COMPOSER = 21
245
+ ARRANGEMENT = 22
246
+ POSTPRODUCTION = 23
247
+ ACTIVITYID = 24
248
+ ISCRAWLER = 25
249
+ THIRDPARTYS = 26
250
+ SHARECONTENT = 27
251
+ CLIENTINFO = 28
252
+
253
+ FIELDS = {
254
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
255
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
256
+ IMAGES => {:type => ::Thrift::Types::LIST, :name => 'images', :element => {:type => ::Thrift::Types::STRUCT, :class => ::TrackPicForm}, :optional => true},
257
+ AUDIOID => {:type => ::Thrift::Types::I64, :name => 'audioId', :optional => true},
258
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
259
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
260
+ UPLOADSOURCE => {:type => ::Thrift::Types::I32, :name => 'uploadSource', :optional => true, :enum_class => ::UploadSource},
261
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true, :enum_class => ::UserSource},
262
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
263
+ MUSICCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'musicCategory', :optional => true},
264
+ INTRO => {:type => ::Thrift::Types::STRING, :name => 'intro', :optional => true},
265
+ RICHINTRO => {:type => ::Thrift::Types::STRING, :name => 'richIntro', :optional => true},
266
+ LYRIC => {:type => ::Thrift::Types::STRING, :name => 'lyric', :optional => true},
267
+ TAGS => {:type => ::Thrift::Types::STRING, :name => 'tags', :optional => true},
268
+ LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language', :optional => true},
269
+ AUTHOR => {:type => ::Thrift::Types::STRING, :name => 'author', :optional => true},
270
+ ANNOUNCER => {:type => ::Thrift::Types::STRING, :name => 'announcer', :optional => true},
271
+ SIGNER => {:type => ::Thrift::Types::STRING, :name => 'signer', :optional => true},
272
+ RESIGNER => {:type => ::Thrift::Types::STRING, :name => 'reSigner', :optional => true},
273
+ SINGERCATEGORY => {:type => ::Thrift::Types::STRING, :name => 'singerCategory', :optional => true},
274
+ COMPOSER => {:type => ::Thrift::Types::STRING, :name => 'composer', :optional => true},
275
+ ARRANGEMENT => {:type => ::Thrift::Types::STRING, :name => 'arrangement', :optional => true},
276
+ POSTPRODUCTION => {:type => ::Thrift::Types::STRING, :name => 'postProduction', :optional => true},
277
+ ACTIVITYID => {:type => ::Thrift::Types::I64, :name => 'activityId', :optional => true},
278
+ ISCRAWLER => {:type => ::Thrift::Types::BOOL, :name => 'isCrawler', :optional => true},
279
+ THIRDPARTYS => {:type => ::Thrift::Types::STRING, :name => 'thirdpartys', :optional => true},
280
+ SHARECONTENT => {:type => ::Thrift::Types::STRING, :name => 'shareContent', :optional => true},
281
+ CLIENTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'clientInfo', :class => ::ClientInfo, :optional => true}
282
+ }
283
+
284
+ def struct_fields; FIELDS; end
285
+
286
+ def validate
287
+ unless @uploadSource.nil? || ::UploadSource::VALID_VALUES.include?(@uploadSource)
288
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field uploadSource!')
289
+ end
290
+ unless @userSource.nil? || ::UserSource::VALID_VALUES.include?(@userSource)
291
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field userSource!')
292
+ end
293
+ end
294
+
295
+ ::Thrift::Struct.generate_accessors self
296
+ end
297
+
298
+ class TrackDeleteForm
299
+ include ::Thrift::Struct, ::Thrift::Struct_Union
300
+ ID = 1
301
+ UID = 2
302
+ CLIENTINFO = 3
303
+
304
+ FIELDS = {
305
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
306
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
307
+ CLIENTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'clientInfo', :class => ::ClientInfo, :optional => true}
308
+ }
309
+
310
+ def struct_fields; FIELDS; end
311
+
312
+ def validate
313
+ end
314
+
315
+ ::Thrift::Struct.generate_accessors self
316
+ end
317
+
318
+ class TrackRepostForm
319
+ include ::Thrift::Struct, ::Thrift::Struct_Union
320
+ ID = 1
321
+ ALBUMID = 2
322
+ UID = 3
323
+ CLIENTINFO = 4
324
+
325
+ FIELDS = {
326
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
327
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
328
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
329
+ CLIENTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'clientInfo', :class => ::ClientInfo, :optional => true}
330
+ }
331
+
332
+ def struct_fields; FIELDS; end
333
+
334
+ def validate
335
+ end
336
+
337
+ ::Thrift::Struct.generate_accessors self
338
+ end
339
+