Item

data class Item(val key: String, val data: <Error class: unknown class>, val dateCreated: <Error class: unknown class>, val dateUpdated: <Error class: unknown class>, val dateExpires: <Error class: unknown class>?)

Represents a value associated with each key in SyncMap.

Constructors

Link copied to clipboard
constructor(key: String, data: <Error class: unknown class>, dateCreated: <Error class: unknown class>, dateUpdated: <Error class: unknown class>, dateExpires: <Error class: unknown class>?)

Properties

Link copied to clipboard
val data: <Error class: unknown class>

Value of the Item as a JSON object.

Link copied to clipboard
val dateCreated: <Error class: unknown class>

A date when this Item was created.

Link copied to clipboard
val dateExpires: <Error class: unknown class>?

A date this Item will expire, null means will not expire.

Link copied to clipboard
val dateUpdated: <Error class: unknown class>

A date when this Item was last updated.

Link copied to clipboard
val key: String

Key of the Item.

Functions

Link copied to clipboard
inline fun <T : Any> SyncMap.Item.data(): T

Deserializes the SyncMap.Item.data into a value of type T using a deserializer retrieved from reified type parameter.