Message

class Message(val messageId: String = "", val content: String = "", val senderId: String = "", val recipientId: String = "", var timestamp: Timestamp = Timestamp.now())

Represents a message sent between users.

Constructors

Link copied to clipboard
constructor(messageId: String = "", content: String = "", senderId: String = "", recipientId: String = "", timestamp: Timestamp = Timestamp.now())

Properties

Link copied to clipboard

The message's text content.

Link copied to clipboard

The unique ID of the message.

Link copied to clipboard

The device ID of the recipient.

Link copied to clipboard

The device ID of the sender.

Link copied to clipboard
var timestamp: Timestamp

The timestamp associated with the message.