Class: WiMP::Gen::Playlist
- Inherits:
-
Object
- Object
- WiMP::Gen::Playlist
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- COUNT =
1- CREATEDBYARTISTID =
2- DURATION =
3- IMGPATH =
4- LASTUPDATED =
5- PLAYLISTNAME =
6- PROFILEID =
7- REGISTEREDDATE =
8- TRACKS =
9- UUID =
10- TYPE =
11- DESC =
12- ID =
13- CREATEDBYNICKNAME =
14- FIELDS =
{ COUNT => {:type => ::Thrift::Types::I32, :name => 'count'}, CREATEDBYARTISTID => {:type => ::Thrift::Types::I32, :name => 'createdByArtistId'}, DURATION => {:type => ::Thrift::Types::I32, :name => 'duration'}, IMGPATH => {:type => ::Thrift::Types::STRING, :name => 'imgPath', :optional => true}, LASTUPDATED => {:type => ::Thrift::Types::I64, :name => 'lastUpdated'}, PLAYLISTNAME => {:type => ::Thrift::Types::STRING, :name => 'playlistName'}, PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'}, REGISTEREDDATE => {:type => ::Thrift::Types::I64, :name => 'registeredDate'}, TRACKS => {:type => ::Thrift::Types::LIST, :name => 'tracks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Track}, :optional => true}, UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :optional => true}, DESC => {:type => ::Thrift::Types::STRING, :name => 'desc', :optional => true}, ID => {:type => ::Thrift::Types::I32, :name => 'id'}, CREATEDBYNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'createdByNickName', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
491 |
# File 'lib/gen/services_types.rb', line 491 def struct_fields; FIELDS; end |
#validate ⇒ Object
493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/gen/services_types.rb', line 493 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field count is unset!') unless @count raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field createdByArtistId is unset!') unless @createdByArtistId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field duration is unset!') unless @duration raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field lastUpdated is unset!') unless @lastUpdated raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field playlistName is unset!') unless @playlistName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profileId is unset!') unless @profileId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field registeredDate is unset!') unless @registeredDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field uuid is unset!') unless @uuid raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id end |