Unit

enum Unit : Enum<Unit>

Represents units of distance used in the Ticketmaster Discovery API.

This enum defines the supported units for measuring distances, such as kilometers or miles, used in API requests or responses.

Entries

Link copied to clipboard

Kilometers unit, represented as "km".

Link copied to clipboard

Miles unit, represented as "miles".

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The string representation of the unit (e.g., "km" for kilometers).

Functions

Link copied to clipboard
fun valueOf(value: String): Unit

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
fun values(): Array<Unit>

Returns an array containing the constants of this enum type, in the order they're declared.