Class: WiMP::Gen::ClientApiService::GetAlbumsByArtistIdWithPaging_args

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

Constant Summary collapse

ARTISTID =
1
STARTINDEX =
2
LIMIT =
3
INCLUDESINGLES =
4
ORDER =
5
SESSIONID =
6
FIELDS =
{
  ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
  STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'},
  LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
  INCLUDESINGLES => {:type => ::Thrift::Types::BOOL, :name => 'includeSingles'},
  ORDER => {:type => ::Thrift::Types::I32, :name => 'order', :enum_class => ::WiMP::Gen::AlbumOrderBy},
  SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



1537
1538
1539
1540
1541
# File 'lib/gen/client_api_service.rb', line 1537

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