track_service_thrift_client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'uts_model_types'
9
+
@@ -0,0 +1,184 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.1)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ 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
76
+ 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
+ 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 ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: track_service_thrift_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - rick
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/content_constants.rb
20
+ - lib/content_types.rb
21
+ - lib/remote_track_facade_service.rb
22
+ - lib/remote_track_query_service.rb
23
+ - lib/track_constants.rb
24
+ - lib/track_types.rb
25
+ - lib/uts_model_constants.rb
26
+ - lib/uts_model_types.rb
27
+ - lib/track_service.rb
28
+ homepage:
29
+ licenses: []
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.0.14
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: track_service_thrift_client is a thrift client of track service
51
+ test_files: []