Class: WiMP::Gen::ClientApiService::GetFavoriteAlbums_args

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

Constant Summary collapse

ORDER =
1
SESSIONID =
2
FIELDS =
{
  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



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

def struct_fields; FIELDS; end

#validateObject



1888
1889
1890
1891
1892
# File 'lib/gen/client_api_service.rb', line 1888

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