Class: WiMP::Gen::AlbumMetadata
- Inherits:
-
Object
- Object
- WiMP::Gen::AlbumMetadata
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ALBUMID =
1
- TITLE =
2
- ARTISTID =
3
- ALBUMREVIEW =
4
- SIMILARALBUMLIST =
5
- FIELDS =
{ ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'}, ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'}, ALBUMREVIEW => {:type => ::Thrift::Types::STRUCT, :name => 'albumReview', :class => ::WiMP::Gen::AlbumReview}, SIMILARALBUMLIST => {:type => ::Thrift::Types::STRUCT, :name => 'similarAlbumList', :class => ::WiMP::Gen::SimilarAlbumList} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
615 |
# File 'lib/gen/services_types.rb', line 615 def struct_fields; FIELDS; end |
#validate ⇒ Object
617 618 619 620 621 622 623 |
# File 'lib/gen/services_types.rb', line 617 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumId is unset!') unless @albumId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistId is unset!') unless @artistId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumReview is unset!') unless @albumReview raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field similarAlbumList is unset!') unless @similarAlbumList end |