track_service_thrift_client 0.0.1 → 0.0.2

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