LocalChange

data class LocalChange(resourceType: String, resourceId: String, versionId: String?, timestamp: String, type: LocalChange.Type, payload: String, token: LocalChangeToken)

Data class for squashed local changes for resource

Constructors

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

Types

Type
Link copied to clipboard
enum Type : Enum<LocalChange.Type>

Properties

payload
Link copied to clipboard
val payload: String
json string with local changes
resourceId
Link copied to clipboard
val resourceId: String
The resource id Resource.id
resourceType
Link copied to clipboard
val resourceType: String
The ResourceType
timestamp
Link copied to clipboard
val timestamp: String
last updated timestamp on server when this local changes are sync with server
token
Link copied to clipboard
var token: LocalChangeToken
This token value must be explicitly applied when list of local changes are squashed and LocalChange class instance is created.
type
Link copied to clipboard
val type: LocalChange.Type
Type of local change like insert, delete, etc
versionId
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

Sources

androidJvm source
Link copied to clipboard