Class: WiMP::Gen::FavoriteArtist
- Inherits:
-
Object
- Object
- WiMP::Gen::FavoriteArtist
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- DATEADDED =
1
- ARTIST =
2
- ALBUMS =
3
- PROFILEID =
4
- FIELDS =
{ DATEADDED => {:type => ::Thrift::Types::I64, :name => 'dateAdded'}, ARTIST => {:type => ::Thrift::Types::STRUCT, :name => 'artist', :class => ::WiMP::Gen::Artist}, ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::Album}}, PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
889 |
# File 'lib/gen/services_types.rb', line 889 def struct_fields; FIELDS; end |
#validate ⇒ Object
891 892 893 894 895 896 |
# File 'lib/gen/services_types.rb', line 891 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 artist is unset!') unless @artist raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albums is unset!') unless @albums raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profileId is unset!') unless @profileId end |