PNHistoryItemResult

data class PNHistoryItemResult(val entry: JsonElement, val timetoken: Long? = null, val meta: JsonElement? = null, val error: PubNubError? = null, val customMessageType: String? = null)

Encapsulates a message in terms of a history entry.

Constructors

Link copied to clipboard
constructor(entry: JsonElement, timetoken: Long? = null, meta: JsonElement? = null, error: PubNubError? = null, customMessageType: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard

The actual message content.

Link copied to clipboard

The error associated with message retrieval, if any. e.g. a message is unencrypted but PubNub instance is configured with the Crypto so PubNub can't decrypt the unencrypted message and return the message.

Link copied to clipboard

Metadata of the message, if requested via History.includeMeta. Is null if not requested, otherwise an empty string if requested but no associated metadata.

Link copied to clipboard

Publish timetoken of the message, if requested via History.includeTimetoken