using Recepie.Models;

namespace Recepie.ViewModels
{
    public class WeekPlannerViewModel
    {
        public WeekPlan? CurrentWeekPlan { get; set; }
        public List<string> AvailableMainIngredients { get; set; } = new List<string>();
        public Dictionary<DayOfWeek, List<Recipe>> SuggestedRecipes { get; set; } = new Dictionary<DayOfWeek, List<Recipe>>();
        public DateTime StartDate { get; set; } = DateTime.Today.AddDays(-(int)DateTime.Today.DayOfWeek + 1); // Monday
    }

    public class DayPlanConfigViewModel
    {
        public int DayPlanId { get; set; }
        public DayOfWeek DayOfWeek { get; set; }
        public DateTime Date { get; set; }
        public string? SelectedMainIngredient { get; set; }
        public string? BannedIngredients { get; set; }
        public string? RequiredIngredients { get; set; }
        public List<string> AvailableMainIngredients { get; set; } = new List<string>();
        public List<Recipe> SuggestedRecipes { get; set; } = new List<Recipe>();
        public int? SelectedRecipeId { get; set; }
    }
}