PNMessageAction

open class PNMessageAction(var type: String, var value: String, var messageTimetoken: Long)

Concrete implementation of a message action.

Add or remove actions on published messages to build features like receipts, reactions or to associate custom metadata to messages.

Clients can subscribe to a channel to receive message action events on that channel. They can also fetch past message actions from PubNub Storage independently or when they fetch original messages.

Inheritors

Constructors

Link copied to clipboard
constructor(type: String, value: String, messageTimetoken: Long)
constructor()
constructor(pnMessageAction: PNMessageAction)

Properties

Link copied to clipboard

Timestamp when the message action was created.

Link copied to clipboard

Timestamp when the actual message was created the message action belongs to.

Link copied to clipboard

Message action's type.

Link copied to clipboard

Message action's author.

Link copied to clipboard

Message action's value.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getUuid(): String?
Link copied to clipboard
Link copied to clipboard
fun setActionTimetoken(actionTimetoken: Long): PNMessageAction
Link copied to clipboard
fun setMessageTimetoken(messageTimetoken: Long): PNMessageAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard