Class: WiMP::Gen::FavoriteTrack
- Inherits:
-
Object
- Object
- WiMP::Gen::FavoriteTrack
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- DATEADDED =
1
- TRACK =
2
- PROFILEID =
3
- FIELDS =
{ DATEADDED => {:type => ::Thrift::Types::I64, :name => 'dateAdded'}, TRACK => {:type => ::Thrift::Types::STRUCT, :name => 'track', :class => ::WiMP::Gen::Track}, PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
936 |
# File 'lib/gen/services_types.rb', line 936 def struct_fields; FIELDS; end |
#validate ⇒ Object
938 939 940 941 942 |
# File 'lib/gen/services_types.rb', line 938 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 track is unset!') unless @track raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profileId is unset!') unless @profileId end |