Class WeeklyMenuService
java.lang.Object
ntnu.idatt2016.v233.SmartMat.service.group.WeeklyMenuService
Service class for weekly menu
- Version:
- 1.0
- Author:
- Stian Lyng
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetWeeklyMenu
(long fridgeId) Retrieves the top 5 recipes with products that have a match with items in the given fridge.
-
Constructor Details
-
WeeklyMenuService
public WeeklyMenuService()
-
-
Method Details
-
getWeeklyMenu
Retrieves the top 5 recipes with products that have a match with items in the given fridge. Returns a list of RecipeWithProductsDTO objects with recipe details and product information.- Parameters:
fridgeId
- the ID of the fridge to use for matching products- Returns:
- a list of RecipeWithProductsDTO objects with recipe and product details
-