getIngredientQuantity

abstract suspend fun getIngredientQuantity(name: String): RepositoryResponse<Int?>

Return

the quantity of that ingredient and WarehouseMessage.OK if it's present in the warehouse, otherwise it returns null and WarehouseMessage.ERROR_INGREDIENT_NOT_FOUND

Parameters

name

of the ingredient