MessageRepository

Handle the data in the Firestore database for the Message class.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Cached messages synchronized with Firestore.

Functions

Link copied to clipboard
fun addMessage(message: Message)

Adds a new message to the Firestore database.

Link copied to clipboard
fun deleteMessage(message: Message)

Deletes a message from the Firestore database.

Link copied to clipboard
fun updateMessage(updatedMessage: Message)

Saves a message to Firestore, creating it if absent.