Parameter

class Parameter<T>(val name: String, val defaultValue: T?)(source)

A declared query parameter in an API schema.

See Parameters.

Constructors

Link copied to clipboard
constructor(name: String, defaultValue: T?)

Properties

Link copied to clipboard

The value that is substituted in if the URL does not contain this parameter.

Link copied to clipboard

Name of the parameter as it appears in the URL.

Functions

Link copied to clipboard
inline operator fun <T> Parameters.Parameter<T>.getValue(thisRef: Parameters, property: KProperty<*>): T

Internal method used by the parameter declaration syntax.

Link copied to clipboard
inline operator fun <T> Parameters.Parameter<T>.setValue(thisRef: Parameters, property: KProperty<*>, value: T)

Internal method used by the parameter declaration syntax.