track_service_thrift_client 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/content_constants.rb +6 -0
- data/lib/content_types.rb +678 -672
- data/lib/remote_track_facade_service.rb +642 -636
- data/lib/remote_track_query_service.rb +187 -181
- data/lib/track_constants.rb +6 -0
- data/lib/track_types.rb +330 -324
- data/lib/uts_model_constants.rb +6 -0
- data/lib/uts_model_types.rb +180 -174
- metadata +1 -1
@@ -7,234 +7,240 @@
|
|
7
7
|
require 'thrift'
|
8
8
|
require 'track_types'
|
9
9
|
|
10
|
-
module
|
11
|
-
|
12
|
-
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
30
|
-
send_multiQueryBaseTrackInfos(trackIds)
|
31
|
-
return recv_multiQueryBaseTrackInfos()
|
32
|
-
end
|
110
|
+
end
|
33
111
|
|
34
|
-
|
35
|
-
send_message('multiQueryBaseTrackInfos', MultiQueryBaseTrackInfos_args, :trackIds => trackIds)
|
36
|
-
end
|
112
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
37
113
|
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
118
|
+
FIELDS = {
|
119
|
+
TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId'}
|
120
|
+
}
|
48
121
|
|
49
|
-
|
50
|
-
send_message('queryDetailTrackInfo', QueryDetailTrackInfo_args, :trackId => trackId)
|
51
|
-
end
|
122
|
+
def struct_fields; FIELDS; end
|
52
123
|
|
53
|
-
|
54
|
-
|
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
|
-
|
60
|
-
|
61
|
-
return recv_multiQueryDetailTrackInfos()
|
62
|
-
end
|
127
|
+
::Thrift::Struct.generate_accessors self
|
128
|
+
end
|
63
129
|
|
64
|
-
|
65
|
-
|
66
|
-
|
130
|
+
class QueryBaseTrackInfo_result
|
131
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
132
|
+
SUCCESS = 0
|
67
133
|
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
138
|
+
def struct_fields; FIELDS; end
|
75
139
|
|
76
|
-
|
77
|
-
|
140
|
+
def validate
|
141
|
+
end
|
78
142
|
|
79
|
-
|
80
|
-
|
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
|
-
|
87
|
-
|
88
|
-
|
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
|
-
|
94
|
-
|
95
|
-
|
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
|
-
|
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
|
-
|
156
|
+
def validate
|
157
|
+
end
|
108
158
|
|
109
|
-
|
159
|
+
::Thrift::Struct.generate_accessors self
|
160
|
+
end
|
110
161
|
|
111
|
-
|
112
|
-
|
113
|
-
|
162
|
+
class MultiQueryBaseTrackInfos_result
|
163
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
164
|
+
SUCCESS = 0
|
114
165
|
|
115
|
-
|
116
|
-
|
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
|
-
|
170
|
+
def struct_fields; FIELDS; end
|
120
171
|
|
121
|
-
|
122
|
-
|
172
|
+
def validate
|
173
|
+
end
|
123
174
|
|
124
|
-
|
125
|
-
|
175
|
+
::Thrift::Struct.generate_accessors self
|
176
|
+
end
|
126
177
|
|
127
|
-
|
128
|
-
|
129
|
-
|
178
|
+
class QueryDetailTrackInfo_args
|
179
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
180
|
+
TRACKID = 1
|
130
181
|
|
131
|
-
|
132
|
-
|
133
|
-
|
182
|
+
FIELDS = {
|
183
|
+
TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId'}
|
184
|
+
}
|
134
185
|
|
135
|
-
|
186
|
+
def struct_fields; FIELDS; end
|
136
187
|
|
137
|
-
|
138
|
-
|
188
|
+
def validate
|
189
|
+
end
|
139
190
|
|
140
|
-
|
141
|
-
|
191
|
+
::Thrift::Struct.generate_accessors self
|
192
|
+
end
|
142
193
|
|
143
|
-
|
144
|
-
|
145
|
-
|
194
|
+
class QueryDetailTrackInfo_result
|
195
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
196
|
+
SUCCESS = 0
|
146
197
|
|
147
|
-
|
148
|
-
|
149
|
-
|
198
|
+
FIELDS = {
|
199
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Service::Track::Api::DetailTrackInfo}
|
200
|
+
}
|
150
201
|
|
151
|
-
|
202
|
+
def struct_fields; FIELDS; end
|
152
203
|
|
153
|
-
|
154
|
-
|
204
|
+
def validate
|
205
|
+
end
|
155
206
|
|
156
|
-
|
157
|
-
|
207
|
+
::Thrift::Struct.generate_accessors self
|
208
|
+
end
|
158
209
|
|
159
|
-
|
160
|
-
|
161
|
-
|
210
|
+
class MultiQueryDetailTrackInfos_args
|
211
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
212
|
+
TRACKIDS = 1
|
162
213
|
|
163
|
-
|
164
|
-
|
165
|
-
|
214
|
+
FIELDS = {
|
215
|
+
TRACKIDS => {:type => ::Thrift::Types::LIST, :name => 'trackIds', :element => {:type => ::Thrift::Types::I64}}
|
216
|
+
}
|
166
217
|
|
167
|
-
|
218
|
+
def struct_fields; FIELDS; end
|
168
219
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
::Thrift::Struct.generate_accessors self
|
173
|
-
end
|
220
|
+
def validate
|
221
|
+
end
|
174
222
|
|
175
|
-
|
176
|
-
|
177
|
-
TRACKID = 1
|
223
|
+
::Thrift::Struct.generate_accessors self
|
224
|
+
end
|
178
225
|
|
179
|
-
|
180
|
-
|
181
|
-
|
226
|
+
class MultiQueryDetailTrackInfos_result
|
227
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
228
|
+
SUCCESS = 0
|
182
229
|
|
183
|
-
|
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
|
-
|
186
|
-
end
|
187
|
-
|
188
|
-
::Thrift::Struct.generate_accessors self
|
189
|
-
end
|
234
|
+
def struct_fields; FIELDS; end
|
190
235
|
|
191
|
-
|
192
|
-
|
193
|
-
SUCCESS = 0
|
236
|
+
def validate
|
237
|
+
end
|
194
238
|
|
195
|
-
|
196
|
-
|
197
|
-
}
|
239
|
+
::Thrift::Struct.generate_accessors self
|
240
|
+
end
|
198
241
|
|
199
|
-
|
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
|
-
|
data/lib/track_constants.rb
CHANGED
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
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
end
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
end
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
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
|
-
|