Message

data class Message(messageId: MsgId, time: Instant, type: MessageTypes, flag: MessageFlags, bufferInfo: BufferInfo, sender: String, senderPrefixes: String, realName: String, avatarUrl: String, content: String)

Model representing a chat message

Constructors

Link copied to clipboard
fun Message(messageId: MsgId, time: Instant, type: MessageTypes, flag: MessageFlags, bufferInfo: BufferInfo, sender: String, senderPrefixes: String, realName: String, avatarUrl: String, content: String)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val avatarUrl: String

Avatar of the sender

Link copied to clipboard
val bufferInfo: BufferInfo

Metadata of the buffer the message was received in

Link copied to clipboard
val content: String

Message content

Link copied to clipboard
val flag: MessageFlags

Set flags on the message

Link copied to clipboard
val messageId: MsgId

Id of the message

Link copied to clipboard
val realName: String

Realname of the sender

Link copied to clipboard
val sender: String

nick!ident@host of the sender

Link copied to clipboard
val senderPrefixes: String

Channel role prefixes of the sender

Link copied to clipboard
val time: Instant

Timestamp at which the message was sent

Link copied to clipboard
val type: MessageTypes

Message type