HueResponse

abstract class HueResponse<T>

Wrapper around responses from the Hue API

Types

Link copied to clipboard
data class Error(val errors: List<HueError>) : HueResponse<Nothing>

Response with no data, and potentially errors.

Link copied to clipboard
data class Success<T>(val errors: List<HueError>, val data: T) : HueResponse<T>

Response that successfully retrieved data.

Inheritors

Link copied to clipboard
Link copied to clipboard