PNDataSyncMembership

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

DataSync Membership resource returned by pubnub.dataSync.getMembership, createMembership and referenced by remove operations. A Membership is a specialized DataSync relationship linking a Channel (entity A) and a User (entity B), re-exposed under the domain-friendly names channelId / userId.

Constructors

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

Properties

Link copied to clipboard

Identifier of the Channel (entity A) this membership links.

Link copied to clipboard

Relationship class identifier (always Membership).

Link copied to clipboard

Version of the relationship class.

Link copied to clipboard

Date and time the membership was created.

Link copied to clipboard

The membership's content fingerprint used in conditional requests.

Link copied to clipboard

Date and time when the membership expires (will be deleted automatically). Always present: server-computed on every response, never client-settable.

Link copied to clipboard
val id: String

Membership identifier.

Link copied to clipboard

Arbitrary user-defined JSON object.

Link copied to clipboard

Membership status.

Link copied to clipboard

Date and time the membership was last updated.

Link copied to clipboard

Identifier of the User (entity B) this membership links.