PNPresenceEventResult

class PNPresenceEventResult(val event: String? = null, val uuid: String? = null, val timestamp: Long? = null, val occupancy: Int? = null, val state: JsonElement? = null, val channel: String, val subscription: String? = null, val timetoken: Long? = null, val join: List<String>? = null, val leave: List<String>? = null, val timeout: List<String>? = null, val hereNowRefresh: Boolean? = null, val userMetadata: Any? = null) : PNEvent

Wrapper around a presence event.

Constructors

Link copied to clipboard
constructor(event: String? = null, uuid: String? = null, timestamp: Long? = null, occupancy: Int? = null, state: JsonElement? = null, channel: String, subscription: String? = null, timetoken: Long? = null, join: List<String>? = null, leave: List<String>? = null, timeout: List<String>? = null, hereNowRefresh: Boolean? = null, userMetadata: Any? = null)

Properties

Link copied to clipboard
open override val channel: String

The channel which the event is performed on.

Link copied to clipboard

The presence event. Could be join, leave, state-change or interval.

Link copied to clipboard

Indicates to the user that a manual HereNow should be called to get the complete list of users present in the channel.

Link copied to clipboard

List of users that have joined the channel if the event is an interval. This needs to be enabled under presence_deltas at the Admin Dashboard.

Link copied to clipboard

List of users that have left the channel if the event is an interval. This needs to be enabled under presence_deltas at the Admin Dashboard.

Link copied to clipboard

Total number of users currently present in the channel in question.

Link copied to clipboard

Presence state of the related UUID, if any.

Link copied to clipboard
open override val subscription: String?

The related subscriptions.

Link copied to clipboard

List of users that have timed out of the channel if the event is an interval. This needs to be enabled under presence_deltas at the Admin Dashboard.

Link copied to clipboard

The timestamp of the event.

Link copied to clipboard
open override val timetoken: Long?

The timetoken of the event.

Link copied to clipboard

User metadata if any.

Link copied to clipboard
val uuid: String?

The UUID which the presence event is related to.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int