Message

data class Message(val sender: String = "", val content: String = "", val timestamp: Long = 0, val group: Boolean = false, val message: String = "")

Data class representing a message.

Constructors

Link copied to clipboard
constructor(sender: String = "", content: String = "", timestamp: Long = 0, group: Boolean = false, message: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The content/text of the message

Link copied to clipboard
val group: Boolean = false
Link copied to clipboard
Link copied to clipboard

The sender of the message

Link copied to clipboard
val timestamp: Long = 0

The timestamp when the message was sent