Package-level declarations

Types

Link copied to clipboard
class CachedProperty<KEY : Any, VALUE>(val keyProperty: () -> KEY, lazy: Boolean = false, val factory: (KEY) -> VALUE) : ReadOnlyProperty<Any?, VALUE>

Caches a property value until a key changes.

Link copied to clipboard

An empty implementation of the configuration container.

Link copied to clipboard
interface HueHttpClient

Internal client used for making authenticated requests to the Hue bridge.

Link copied to clipboard

A stubbed out client used for testing delegation

Link copied to clipboard
class InternalsModule(val configurationContainer: HueConfigurationContainer, logger: KimchiLogger = EmptyLogger)

Provides access to services in the internals module.

Link copied to clipboard
expect class PlatformModule(configurationContainer: HueConfigurationContainer, json: Json, logger: KimchiLogger = EmptyLogger)

Provides platform-specific dependencies for the SDK.

actual class PlatformModule(configurationContainer: HueConfigurationContainer, json: Json, logger: KimchiLogger)
actual class PlatformModule(configurationContainer: HueConfigurationContainer, json: Json, logger: KimchiLogger)
actual class PlatformModule(configurationContainer: HueConfigurationContainer, json: Json, logger: KimchiLogger)
actual class PlatformModule(configurationContainer: HueConfigurationContainer, json: Json, logger: KimchiLogger)
actual class PlatformModule(configurationContainer: HueConfigurationContainer, json: Json, logger: KimchiLogger)
Link copied to clipboard
interface SseClient

Internal client used for listening to event streams from the Hue bridge.

Functions

Link copied to clipboard
inline suspend fun <T> HueHttpClient.deleteData(vararg pathSegments: String): T

Make a DELETE request to the hue bridge.@author

Link copied to clipboard
inline suspend fun <T> HueHttpClient.getData(vararg pathSegments: String): T

Make a GET request to the hue bridge.

Link copied to clipboard
inline suspend fun <REQUEST, RESPONSE> HueHttpClient.postData(body: REQUEST, vararg pathSegments: String): RESPONSE

Make a POST request to the hue bridge.

Link copied to clipboard
inline suspend fun <REQUEST, RESPONSE> HueHttpClient.putData(body: REQUEST, vararg pathSegments: String): RESPONSE

Make a PUT request to the hue bridge.