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,3 +7,9 @@
7
7
  require 'thrift'
8
8
  require 'uts_model_types'
9
9
 
10
+ module Service
11
+ module Uts
12
+ module Model
13
+ end
14
+ end
15
+ end
@@ -6,179 +6,185 @@
6
6
 
7
7
  require 'thrift'
8
8
 
9
- class BasicTrackRecord
10
- include ::Thrift::Struct, ::Thrift::Struct_Union
11
- ID = 1
12
- TRACKID = 2
13
- UID = 3
14
- TRACKUID = 4
15
- OPTYPE = 5
16
- ISPUBLIC = 6
17
- CREATEDAT = 7
18
- COVERPATH = 8
19
- ISDELETED = 9
20
- STATUS = 10
21
- CATEGORYID = 11
22
- DURATION = 12
23
- TITLE = 13
24
- USERSOURCE = 14
25
- ALBUMID = 15
26
- ALBUMTITLE = 16
27
- DOWNLOADSIZE = 17
28
- PLAYPATH = 18
29
- PLAYPATH32 = 19
30
- PLAYPATH64 = 20
31
- PLAYPATH128 = 21
32
- MP3SIZE32 = 22
33
- MP3SIZE64 = 23
34
- WAVEFORM = 24
35
- UPLOADID = 25
36
- TRANSCODESTATE = 26
37
- ORIGINSIZE = 28
38
- COMMENTID = 29
39
- COMMENTCONTENT = 30
40
-
41
- FIELDS = {
42
- ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
43
- TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
44
- UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
45
- TRACKUID => {:type => ::Thrift::Types::I64, :name => 'trackUid', :optional => true},
46
- OPTYPE => {:type => ::Thrift::Types::I32, :name => 'opType', :optional => true},
47
- ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
48
- CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
49
- COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
50
- ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true},
51
- STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
52
- CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
53
- DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
54
- TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
55
- USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true},
56
- ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
57
- ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle', :optional => true},
58
- DOWNLOADSIZE => {:type => ::Thrift::Types::I32, :name => 'downloadSize', :optional => true},
59
- PLAYPATH => {:type => ::Thrift::Types::STRING, :name => 'playPath', :optional => true},
60
- PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
61
- PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
62
- PLAYPATH128 => {:type => ::Thrift::Types::STRING, :name => 'playPath128', :optional => true},
63
- MP3SIZE32 => {:type => ::Thrift::Types::I32, :name => 'mp3size32', :optional => true},
64
- MP3SIZE64 => {:type => ::Thrift::Types::I32, :name => 'mp3size64', :optional => true},
65
- WAVEFORM => {:type => ::Thrift::Types::STRING, :name => 'waveform', :optional => true},
66
- UPLOADID => {:type => ::Thrift::Types::STRING, :name => 'uploadId', :optional => true},
67
- TRANSCODESTATE => {:type => ::Thrift::Types::I32, :name => 'transcodeState', :optional => true},
68
- ORIGINSIZE => {:type => ::Thrift::Types::I32, :name => 'originSize', :optional => true},
69
- COMMENTID => {:type => ::Thrift::Types::I64, :name => 'commentId', :optional => true},
70
- COMMENTCONTENT => {:type => ::Thrift::Types::STRING, :name => 'commentContent', :optional => true}
71
- }
72
-
73
- def struct_fields; FIELDS; end
74
-
75
- def validate
9
+ module Service
10
+ module Uts
11
+ module Model
12
+ class BasicTrackRecord
13
+ include ::Thrift::Struct, ::Thrift::Struct_Union
14
+ ID = 1
15
+ TRACKID = 2
16
+ UID = 3
17
+ TRACKUID = 4
18
+ OPTYPE = 5
19
+ ISPUBLIC = 6
20
+ CREATEDAT = 7
21
+ COVERPATH = 8
22
+ ISDELETED = 9
23
+ STATUS = 10
24
+ CATEGORYID = 11
25
+ DURATION = 12
26
+ TITLE = 13
27
+ USERSOURCE = 14
28
+ ALBUMID = 15
29
+ ALBUMTITLE = 16
30
+ DOWNLOADSIZE = 17
31
+ PLAYPATH = 18
32
+ PLAYPATH32 = 19
33
+ PLAYPATH64 = 20
34
+ PLAYPATH128 = 21
35
+ MP3SIZE32 = 22
36
+ MP3SIZE64 = 23
37
+ WAVEFORM = 24
38
+ UPLOADID = 25
39
+ TRANSCODESTATE = 26
40
+ ORIGINSIZE = 28
41
+ COMMENTID = 29
42
+ COMMENTCONTENT = 30
43
+
44
+ FIELDS = {
45
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
46
+ TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
47
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
48
+ TRACKUID => {:type => ::Thrift::Types::I64, :name => 'trackUid', :optional => true},
49
+ OPTYPE => {:type => ::Thrift::Types::I32, :name => 'opType', :optional => true},
50
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
51
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
52
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true},
53
+ ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true},
54
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
55
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
56
+ DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
57
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
58
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true},
59
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
60
+ ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle', :optional => true},
61
+ DOWNLOADSIZE => {:type => ::Thrift::Types::I32, :name => 'downloadSize', :optional => true},
62
+ PLAYPATH => {:type => ::Thrift::Types::STRING, :name => 'playPath', :optional => true},
63
+ PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
64
+ PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
65
+ PLAYPATH128 => {:type => ::Thrift::Types::STRING, :name => 'playPath128', :optional => true},
66
+ MP3SIZE32 => {:type => ::Thrift::Types::I32, :name => 'mp3size32', :optional => true},
67
+ MP3SIZE64 => {:type => ::Thrift::Types::I32, :name => 'mp3size64', :optional => true},
68
+ WAVEFORM => {:type => ::Thrift::Types::STRING, :name => 'waveform', :optional => true},
69
+ UPLOADID => {:type => ::Thrift::Types::STRING, :name => 'uploadId', :optional => true},
70
+ TRANSCODESTATE => {:type => ::Thrift::Types::I32, :name => 'transcodeState', :optional => true},
71
+ ORIGINSIZE => {:type => ::Thrift::Types::I32, :name => 'originSize', :optional => true},
72
+ COMMENTID => {:type => ::Thrift::Types::I64, :name => 'commentId', :optional => true},
73
+ COMMENTCONTENT => {:type => ::Thrift::Types::STRING, :name => 'commentContent', :optional => true}
74
+ }
75
+
76
+ def struct_fields; FIELDS; end
77
+
78
+ def validate
79
+ end
80
+
81
+ ::Thrift::Struct.generate_accessors self
82
+ end
83
+
84
+ class SimpleTrackRecord
85
+ include ::Thrift::Struct, ::Thrift::Struct_Union
86
+ ID = 1
87
+ TRACKID = 2
88
+ UID = 3
89
+ TRACKUID = 4
90
+ OPTYPE = 5
91
+ ISPUBLIC = 6
92
+ CREATEDAT = 7
93
+ ISDELETED = 8
94
+ STATUS = 9
95
+ CATEGORYID = 10
96
+ DURATION = 11
97
+ TITLE = 12
98
+ USERSOURCE = 13
99
+ ALBUMID = 14
100
+ ALBUMTITLE = 15
101
+ PLAYPATH = 16
102
+ PLAYPATH32 = 17
103
+ PLAYPATH64 = 18
104
+ PLAYPATH128 = 19
105
+ COVERPATH = 20
106
+
107
+ FIELDS = {
108
+ ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
109
+ TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
110
+ UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
111
+ TRACKUID => {:type => ::Thrift::Types::I64, :name => 'trackUid', :optional => true},
112
+ OPTYPE => {:type => ::Thrift::Types::I32, :name => 'opType', :optional => true},
113
+ ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
114
+ CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
115
+ ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true},
116
+ STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
117
+ CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
118
+ DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
119
+ TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
120
+ USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true},
121
+ ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
122
+ ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle', :optional => true},
123
+ PLAYPATH => {:type => ::Thrift::Types::STRING, :name => 'playPath', :optional => true},
124
+ PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
125
+ PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
126
+ PLAYPATH128 => {:type => ::Thrift::Types::STRING, :name => 'playPath128', :optional => true},
127
+ COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true}
128
+ }
129
+
130
+ def struct_fields; FIELDS; end
131
+
132
+ def validate
133
+ end
134
+
135
+ ::Thrift::Struct.generate_accessors self
136
+ end
137
+
138
+ class SimpleTrackRecordPageResult
139
+ include ::Thrift::Struct, ::Thrift::Struct_Union
140
+ TOTALSIZE = 1
141
+ CURRENTPAGE = 2
142
+ PAGESIZE = 3
143
+ TRACKRECORDS = 4
144
+
145
+ FIELDS = {
146
+ TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
147
+ CURRENTPAGE => {:type => ::Thrift::Types::I32, :name => 'currentPage'},
148
+ PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
149
+ TRACKRECORDS => {:type => ::Thrift::Types::LIST, :name => 'trackRecords', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Service::Uts::Model::SimpleTrackRecord}, :optional => true}
150
+ }
151
+
152
+ def struct_fields; FIELDS; end
153
+
154
+ def validate
155
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalSize is unset!') unless @totalSize
156
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentPage is unset!') unless @currentPage
157
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pageSize is unset!') unless @pageSize
158
+ end
159
+
160
+ ::Thrift::Struct.generate_accessors self
161
+ end
162
+
163
+ class BasicTrackRecordPageResult
164
+ include ::Thrift::Struct, ::Thrift::Struct_Union
165
+ TOTALSIZE = 1
166
+ CURRENTPAGE = 2
167
+ PAGESIZE = 3
168
+ TRACKRECORDS = 4
169
+
170
+ FIELDS = {
171
+ TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
172
+ CURRENTPAGE => {:type => ::Thrift::Types::I32, :name => 'currentPage'},
173
+ PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
174
+ TRACKRECORDS => {:type => ::Thrift::Types::LIST, :name => 'trackRecords', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Service::Uts::Model::BasicTrackRecord}, :optional => true}
175
+ }
176
+
177
+ def struct_fields; FIELDS; end
178
+
179
+ def validate
180
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalSize is unset!') unless @totalSize
181
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentPage is unset!') unless @currentPage
182
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pageSize is unset!') unless @pageSize
183
+ end
184
+
185
+ ::Thrift::Struct.generate_accessors self
186
+ end
187
+
188
+ end
76
189
  end
77
-
78
- ::Thrift::Struct.generate_accessors self
79
- end
80
-
81
- class SimpleTrackRecord
82
- include ::Thrift::Struct, ::Thrift::Struct_Union
83
- ID = 1
84
- TRACKID = 2
85
- UID = 3
86
- TRACKUID = 4
87
- OPTYPE = 5
88
- ISPUBLIC = 6
89
- CREATEDAT = 7
90
- ISDELETED = 8
91
- STATUS = 9
92
- CATEGORYID = 10
93
- DURATION = 11
94
- TITLE = 12
95
- USERSOURCE = 13
96
- ALBUMID = 14
97
- ALBUMTITLE = 15
98
- PLAYPATH = 16
99
- PLAYPATH32 = 17
100
- PLAYPATH64 = 18
101
- PLAYPATH128 = 19
102
- COVERPATH = 20
103
-
104
- FIELDS = {
105
- ID => {:type => ::Thrift::Types::I64, :name => 'id', :optional => true},
106
- TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId', :optional => true},
107
- UID => {:type => ::Thrift::Types::I64, :name => 'uid', :optional => true},
108
- TRACKUID => {:type => ::Thrift::Types::I64, :name => 'trackUid', :optional => true},
109
- OPTYPE => {:type => ::Thrift::Types::I32, :name => 'opType', :optional => true},
110
- ISPUBLIC => {:type => ::Thrift::Types::BOOL, :name => 'isPublic', :optional => true},
111
- CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
112
- ISDELETED => {:type => ::Thrift::Types::BOOL, :name => 'isDeleted', :optional => true},
113
- STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true},
114
- CATEGORYID => {:type => ::Thrift::Types::I32, :name => 'categoryId', :optional => true},
115
- DURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'duration', :optional => true},
116
- TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
117
- USERSOURCE => {:type => ::Thrift::Types::I32, :name => 'userSource', :optional => true},
118
- ALBUMID => {:type => ::Thrift::Types::I64, :name => 'albumId', :optional => true},
119
- ALBUMTITLE => {:type => ::Thrift::Types::STRING, :name => 'albumTitle', :optional => true},
120
- PLAYPATH => {:type => ::Thrift::Types::STRING, :name => 'playPath', :optional => true},
121
- PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true},
122
- PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true},
123
- PLAYPATH128 => {:type => ::Thrift::Types::STRING, :name => 'playPath128', :optional => true},
124
- COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true}
125
- }
126
-
127
- def struct_fields; FIELDS; end
128
-
129
- def validate
130
- end
131
-
132
- ::Thrift::Struct.generate_accessors self
133
- end
134
-
135
- class SimpleTrackRecordPageResult
136
- include ::Thrift::Struct, ::Thrift::Struct_Union
137
- TOTALSIZE = 1
138
- CURRENTPAGE = 2
139
- PAGESIZE = 3
140
- TRACKRECORDS = 4
141
-
142
- FIELDS = {
143
- TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
144
- CURRENTPAGE => {:type => ::Thrift::Types::I32, :name => 'currentPage'},
145
- PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
146
- TRACKRECORDS => {:type => ::Thrift::Types::LIST, :name => 'trackRecords', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SimpleTrackRecord}, :optional => true}
147
- }
148
-
149
- def struct_fields; FIELDS; end
150
-
151
- def validate
152
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalSize is unset!') unless @totalSize
153
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentPage is unset!') unless @currentPage
154
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pageSize is unset!') unless @pageSize
155
- end
156
-
157
- ::Thrift::Struct.generate_accessors self
158
190
  end
159
-
160
- class BasicTrackRecordPageResult
161
- include ::Thrift::Struct, ::Thrift::Struct_Union
162
- TOTALSIZE = 1
163
- CURRENTPAGE = 2
164
- PAGESIZE = 3
165
- TRACKRECORDS = 4
166
-
167
- FIELDS = {
168
- TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
169
- CURRENTPAGE => {:type => ::Thrift::Types::I32, :name => 'currentPage'},
170
- PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
171
- TRACKRECORDS => {:type => ::Thrift::Types::LIST, :name => 'trackRecords', :element => {:type => ::Thrift::Types::STRUCT, :class => ::BasicTrackRecord}, :optional => true}
172
- }
173
-
174
- def struct_fields; FIELDS; end
175
-
176
- def validate
177
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalSize is unset!') unless @totalSize
178
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentPage is unset!') unless @currentPage
179
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pageSize is unset!') unless @pageSize
180
- end
181
-
182
- ::Thrift::Struct.generate_accessors self
183
- end
184
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: track_service_thrift_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rick