LiveQueryAction

@Serializable(with = LiveQueryActionSerializer::class)
sealed class LiveQueryAction<out T>

LiveQueryAction

A live query action. Can be a Create, Update or Delete. Holds the id of the record and the result if relevant.

Parameters

T

The type of the result

Inheritors

Types

Link copied to clipboard
data class Create<T>(val id: String, val result: T) : LiveQueryAction<T>
Link copied to clipboard
data class Delete(val id: String, val deletedId: String) : LiveQueryAction<Nothing>
Link copied to clipboard
data class Update<T>(val id: String, val result: T) : LiveQueryAction<T>

Properties

Link copied to clipboard
abstract val id: String

Functions

Link copied to clipboard
inline fun <T> LiveQueryAction<JsonElement>.asType(): LiveQueryAction<T>

As type