Message

data class Message(val at: Instant, val participantId: ParticipantId, val participantName: String, val type: String, val payload: String, val direct: Boolean)

A message that can be received from Messenger.

Constructors

Link copied to clipboard
constructor(at: Instant, participantId: ParticipantId, participantName: String, type: String, payload: String, direct: Boolean)

Properties

Link copied to clipboard
val at: Instant

a timestamp in milliseconds

Link copied to clipboard

true if this is a direct message, false otherwise

Link copied to clipboard

a unique identifier of the sender

Link copied to clipboard

a display name of the sender

Link copied to clipboard

actual contents of this Message

Link copied to clipboard

a payload's MIME type (e.g. "text/plain")