Class: WiMP::Gen::FavoritePlaylist
- Inherits:
-
Object
- Object
- WiMP::Gen::FavoritePlaylist
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- DATEADDED =
1
- PLAYLIST =
2
- PROFILEID =
3
- FIELDS =
{ DATEADDED => {:type => ::Thrift::Types::I64, :name => 'dateAdded'}, PLAYLIST => {:type => ::Thrift::Types::STRUCT, :name => 'playlist', :class => ::WiMP::Gen::Playlist}, PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
913 |
# File 'lib/gen/services_types.rb', line 913 def struct_fields; FIELDS; end |
#validate ⇒ Object
915 916 917 918 919 |
# File 'lib/gen/services_types.rb', line 915 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dateAdded is unset!') unless @dateAdded raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field playlist is unset!') unless @playlist raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profileId is unset!') unless @profileId end |