PNFetchMessageItem

data class PNFetchMessageItem(val uuid: String?, val message: JsonElement, val meta: JsonElement?, val timetoken: Long?, val actions: Map<String, Map<String, List<PNFetchMessageItem.Action>>>? = null, val messageType: HistoryMessageType?, val error: PubNubError? = null, val customMessageType: String? = null)

Encapsulates a message in terms of a batch history entry.

See also

Constructors

Link copied to clipboard
constructor(uuid: String?, message: JsonElement, meta: JsonElement?, timetoken: Long?, actions: Map<String, Map<String, List<PNFetchMessageItem.Action>>>? = null, messageType: HistoryMessageType?, error: PubNubError? = null, customMessageType: String? = null)

Types

Link copied to clipboard
class Action(uuid: String, actionTimetoken: Long) : Action

Properties

Link copied to clipboard

The message actions associated with the message. Is null if not requested via includeMessageActions. The key of the map is the action type. The value is another map, which key is the actual value of the message action, and the key being a list of actions, i.e. a list of UUIDs which have posted such a message action.

Link copied to clipboard
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

The actual message content.

Link copied to clipboard

The message type associated with the item.

Link copied to clipboard

Metadata of the message, if requested via 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.

Link copied to clipboard
val uuid: String?

Publisher uuid. Is null if not requested.