ModelRepository

interface ModelRepository

The repository interface for accessing the model data.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deleteModel(model: Model)

Delete the given Model from the database.

Link copied to clipboard
abstract fun getAllModelsStream(): Flow<List<Model>>

Get the stream of all Models in the database.

Link copied to clipboard
abstract fun getModelStream(uid: Int): Flow<Model?>

Get the stream of Models by uid from the database.

Link copied to clipboard
abstract suspend fun insertModel(model: Model)

Insert a Model into the database.

Link copied to clipboard
abstract suspend fun updateModel(model: Model)

Update the given Model in the database.