PNDataSyncEntity

data class PNDataSyncEntity(val id: String, val className: String, val classVersion: Int, val classLevel: String? = null, val createdAt: String, val updatedAt: String, val eTag: String, val expiresAt: String, val status: String? = null, val payload: Map<String, Any?>? = null)

DataSync Entity resource returned by pubnub.dataSync.getEntity, createEntity and referenced by remove operations.

Constructors

Link copied to clipboard
constructor(id: String, className: String, classVersion: Int, classLevel: String? = null, createdAt: String, updatedAt: String, eTag: String, expiresAt: String, status: String? = null, payload: Map<String, Any?>? = null)

Properties

Link copied to clipboard

The level at which the entity class is defined (e.g. SubKey / Global). Modeled as a nullable String rather than an enum to stay source-compatible with future values.

Link copied to clipboard

Entity class identifier.

Link copied to clipboard

Version of the entity class.

Link copied to clipboard

Date and time the entity was created.

Link copied to clipboard

The entity's content fingerprint used in conditional requests.

Link copied to clipboard

Date and time when the entity expires (will be deleted automatically). Always present — server-computed from the entity class TTL and never client-settable.

Link copied to clipboard
val id: String

Entity identifier.

Link copied to clipboard

Arbitrary user-defined JSON object.

Link copied to clipboard

Entity status.

Link copied to clipboard

Date and time the entity was last updated.