TypeResponse

data class TypeResponse<T : Any>(val value: T, val awaitableId: String, val id: String = UUID.randomUUID().toString(), val timestamp: Instant = Instant.now(), persistent: Boolean = false) : AwaitableResponse

Response providing a value of the requested type.

Parameters

T

The type of value provided

value

The value provided by the user

awaitableId

The ID of the TypeRequest this responds to

Constructors

Link copied to clipboard
constructor(value: T, awaitableId: String, id: String = UUID.randomUUID().toString(), timestamp: Instant = Instant.now(), persistent: Boolean = false)

Properties

Link copied to clipboard
open override val awaitableId: String
Link copied to clipboard
open val id: String
Link copied to clipboard
open val timestamp: Instant
Link copied to clipboard
val value: T

Functions

Link copied to clipboard
open fun persistent(): Boolean