Class WeeklyMenuService

java.lang.Object
ntnu.idatt2016.v233.SmartMat.service.group.WeeklyMenuService

@Service public class WeeklyMenuService extends Object
Service class for weekly menu
Version:
1.0
Author:
Stian Lyng
  • Constructor Details

    • WeeklyMenuService

      public WeeklyMenuService()
  • Method Details

    • getWeeklyMenu

      public List<WeeklyMenuResponse> getWeeklyMenu(long fridgeId)
      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