Package-level declarations

Types

Link copied to clipboard
abstract class DelegateSerializer<SERIALIZED, DESERIALIZED>(delegate: KSerializer<SERIALIZED>) : KSerializer<DESERIALIZED>

Delegates kotlin serialization to a backing type for simpler encoding.

Link copied to clipboard

Convert a mired color temperature to/from an int value

Link copied to clipboard

Serialize a percentage as a fraction of of a decimal (0.0-1.0)

Link copied to clipboard
data class HueError(val description: String)

Error from the hue API

Link copied to clipboard
abstract class HueResponse<T>

Wrapper around responses from the Hue API

Link copied to clipboard

Serialize a Duration as a Long in milliseconds.

Link copied to clipboard
object MiredSerializer : DelegateSerializer<Int, ColorTemperature>

Convert standard ColorTemperatures to/from Mireds

Link copied to clipboard
data class V1HueError(val type: Int, val address: String, val description: String)

Errors returned by V1 Endpoints.

Link copied to clipboard
abstract class V1HueResponse<out T>

Wrapper around responses from V1 endpoints in the Hue API

Link copied to clipboard

Serialize a percentage value as an integer.