Class: WiMP::Gen::ClientApiService::GetFavoriteTracksByProfileId_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
SESSONID =
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},
  SESSONID => {:type => ::Thrift::Types::STRING, :name => 'sessonId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



2172
2173
2174
2175
2176
2177
2178
2179
# File 'lib/gen/client_api_service.rb', line 2172

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