LocalChange

data class LocalChange(val resourceType: String, val resourceId: String, val versionId: String? = null, val timestamp: Instant, val type: LocalChange.Type, val payload: String, var token: LocalChangeToken)

Data class for squashed local changes for resource

Constructors

Link copied to clipboard
constructor(resourceType: String, resourceId: String, versionId: String? = null, timestamp: Instant, type: LocalChange.Type, payload: String, token: LocalChangeToken)

Types

Link copied to clipboard

Properties

Link copied to clipboard

json string with local changes

Link copied to clipboard

The resource id Resource.id

Link copied to clipboard

The ResourceType

Link copied to clipboard

The time instant the app user performed a CUD operation on the resource.

Link copied to clipboard

This token value must be explicitly applied when list of local changes are squashed and LocalChange class instance is created.

Link copied to clipboard

Type of local change like insert, delete, etc

Link copied to clipboard
val versionId: String? = null

This is the id of the version of the resource that this local change is based of