RepositoryImpl

class RepositoryImpl(mongoInfo: MongoInfo) : Repository

Constructors

Link copied to clipboard
constructor(mongoInfo: MongoInfo)

Functions

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