Class: WiMP::Gen::ClientApiService::GetFavoriteArtistsByProfileId_args

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

Constant Summary collapse

PROFILEID =
1
PARAMPRIVACYLEVEL =
2
ORDER =
3
SESSIONID =
4
FIELDS =
{
  PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'},
  PARAMPRIVACYLEVEL => {:type => ::Thrift::Types::I32, :name => 'paramPrivacyLevel', :enum_class => ::WiMP::Gen::PrivacyLevel},
  ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::FavoriteOrderBy},
  SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



2008
# File 'lib/gen/client_api_service.rb', line 2008

def struct_fields; FIELDS; end

#validateObject



2010
2011
2012
2013
2014
2015
2016
2017
# File 'lib/gen/client_api_service.rb', line 2010

def validate
  unless @paramPrivacyLevel.nil? || ::WiMP::Gen::PrivacyLevel::VALID_VALUES.include?(@paramPrivacyLevel)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field paramPrivacyLevel!')
  end
  unless @order.nil? || ::WiMP::Gen::FavoriteOrderBy::VALID_VALUES.include?(@order)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field order!')
  end
end