PNDataSyncChannel

data class PNDataSyncChannel(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 Channel resource returned by pubnub.dataSync.getChannel, createChannel and referenced by remove operations. A Channel is a specialized DataSync entity of class Channel.

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 (a Channel subclass, defaults to Channel).

Link copied to clipboard

Version of the entity class.

Link copied to clipboard

Date and time the channel was created.

Link copied to clipboard

The channel's content fingerprint used in conditional requests.

Link copied to clipboard

Date and time when the channel 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

Channel identifier.

Link copied to clipboard

Arbitrary user-defined JSON object.

Link copied to clipboard

Channel status.

Link copied to clipboard

Date and time the channel was last updated.