PNDataSyncRelationship

data class PNDataSyncRelationship(val id: String, val entityAId: String, val entityBId: 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 Relationship resource returned by pubnub.dataSync.getRelationship, createRelationship and referenced by remove operations. A Relationship is a typed link between two entities (side A and side B) under an arbitrary relationship class, exposed under the generic two-end names entityAId / entityBId.

Constructors

Link copied to clipboard
constructor(id: String, entityAId: String, entityBId: 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

Relationship class identifier.

Link copied to clipboard

Version of the relationship class.

Link copied to clipboard

Date and time the relationship was created.

Link copied to clipboard

Identifier of entity A this relationship links.

Link copied to clipboard

Identifier of entity B this relationship links.

Link copied to clipboard

The relationship's content fingerprint used in conditional requests.

Link copied to clipboard

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

Link copied to clipboard
val id: String

Relationship identifier.

Link copied to clipboard

Arbitrary user-defined JSON object.

Link copied to clipboard

Relationship status.

Link copied to clipboard

Date and time the relationship was last updated.