DataSource

interface DataSource

Interface for a data source handling messages.

Inheritors

Functions

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

Retrieves all messages from the data source.

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

Inserts a new message into the data source.