Class: WiMP::Gen::ArtistLinkList

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

Constant Summary collapse

1
SOURCENAME =
2
FIELDS =
{
  ARTISTLINKS => {:type => ::Thrift::Types::LIST, :name => 'artistLinks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::ArtistLink}},
  SOURCENAME => {:type => ::Thrift::Types::STRING, :name => 'sourceName'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


740
741
742
743
# File 'lib/gen/services_types.rb', line 740

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