RecipeRepository

Interface for the RecipeRepository. It contains the methods for managing Recipe data.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deleteRecipe(recipe: Recipe)
Link copied to clipboard
abstract fun getRecipe(id: Long): Flow<Recipe?>
Link copied to clipboard
abstract fun getRecipes(): Flow<List<Recipe>>
Link copied to clipboard
abstract suspend fun insertRecipe(recipe: Recipe)
Link copied to clipboard
abstract suspend fun refresh()
Link copied to clipboard
abstract suspend fun saveRecipe(recipe: Recipe): Recipe
Link copied to clipboard
abstract suspend fun updateRecipe(recipe: Recipe)