Class: WiMP::Gen::RelatedArtist

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

Constant Summary collapse

ARTISTID =
1
ARTISTNAME =
2
RELATIONTYPE =
3
FIELDS =
{
  ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
  ARTISTNAME => {:type => ::Thrift::Types::STRING, :name => 'artistName'},
  RELATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'relationType'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


682
683
684
685
686
# File 'lib/gen/services_types.rb', line 682

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