Class: Sfeed::TrackInfo
- Inherits:
-
Object
- Object
- Sfeed::TrackInfo
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/sfeed_types.rb
Constant Summary collapse
- ID =
1
- UID =
2
- PLAYPATH32 =
3
- PLAYPATH64 =
4
- TITLE =
5
- COVERPATH =
6
- FIELDS =
{ ID => {:type => ::Thrift::Types::I64, :name => 'id'}, UID => {:type => ::Thrift::Types::I64, :name => 'uid'}, PLAYPATH32 => {:type => ::Thrift::Types::STRING, :name => 'playPath32', :optional => true}, PLAYPATH64 => {:type => ::Thrift::Types::STRING, :name => 'playPath64', :optional => true}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true}, COVERPATH => {:type => ::Thrift::Types::STRING, :name => 'coverPath', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
239 |
# File 'lib/sfeed_types.rb', line 239 def struct_fields; FIELDS; end |
#validate ⇒ Object
241 242 243 244 |
# File 'lib/sfeed_types.rb', line 241 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uid is unset!') unless @uid end |