Item

data class Item(val index: Long, 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 index in SyncList.

Constructors

Link copied to clipboard
constructor(index: Long, 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 index: Long

Index of the Item.

Functions

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

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