Repository

interface Repository

Repository between the domain and the database

Inheritors

Functions

Link copied to clipboard
abstract suspend fun createIngredient(name: String, quantity: Int): RepositoryResponse<Ingredient>
Link copied to clipboard
abstract suspend fun decreaseIngredientQuantity(name: String, quantity: Int): RepositoryResponse<Ingredient>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getIngredientQuantity(name: String): RepositoryResponse<Int?>
Link copied to clipboard
abstract suspend fun isIngredientPresent(name: String): Message
Link copied to clipboard
abstract suspend fun restock(name: String, quantity: Int): RepositoryResponse<Ingredient>