Class: WiMP::Gen::RelatedArtistList

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/services_types.rb

Constant Summary collapse

RELATEDARTISTLIST =
1
SOURCENAME =
2
FIELDS =
{
  RELATEDARTISTLIST => {:type => ::Thrift::Types::LIST, :name => 'relatedArtistList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::RelatedArtist}},
  SOURCENAME => {:type => ::Thrift::Types::STRING, :name => 'sourceName'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



701
# File 'lib/gen/services_types.rb', line 701

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


703
704
705
706
# File 'lib/gen/services_types.rb', line 703

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field relatedArtistList is unset!') unless @relatedArtistList
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sourceName is unset!') unless @sourceName
end