MessageDataSourceImpl

class MessageDataSourceImpl(db: CoroutineDatabase) : DataSource

Implementation of the DataSource interface for handling messages.

Parameters

db

the CoroutineDatabase instance representing the database.

Constructors

Link copied to clipboard
constructor(db: CoroutineDatabase)

Functions

Link copied to clipboard
open suspend override fun getAllMessages(from: String?): List<Message>

Retrieves all messages from the data source.

Link copied to clipboard
open suspend override fun insertMessages(message: Message)

Inserts a new message into the data source.