Class: WiMP::Gen::FavoriteAlbum
- Inherits:
-
Object
- Object
- WiMP::Gen::FavoriteAlbum
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- DATEADDED =
1
- ALBUM =
2
- PROFILEID =
3
- FIELDS =
{ DATEADDED => {:type => ::Thrift::Types::I32, :name => 'dateAdded', :optional => true}, ALBUM => {:type => ::Thrift::Types::STRUCT, :name => 'album', :class => ::WiMP::Gen::Album}, PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
865 |
# File 'lib/gen/services_types.rb', line 865 def struct_fields; FIELDS; end |
#validate ⇒ Object
867 868 869 870 |
# File 'lib/gen/services_types.rb', line 867 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field album is unset!') unless @album raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profileId is unset!') unless @profileId end |