Files
DailyMeals/MealPlan.Api/DTOs/MealPlan/MealPlanDtos.cs
Piotr Kus f15bb7a916 * Extended functionalities
* Added different UIs
2026-06-24 21:43:40 +02:00

30 lines
882 B
C#

namespace MealPlan.Api.DTOs.MealPlan;
public class MealPlanEntryDto
{
public int Id { get; set; }
public DateOnly PlanDate { get; set; }
public int MealCategory { get; set; }
public int RecipeId { get; set; }
public string RecipeName { get; set; } = string.Empty;
public decimal Portions { get; set; }
public int? Calories { get; set; }
}
public class UpsertMealPlanEntryDto
{
public DateOnly PlanDate { get; set; }
public int MealCategory { get; set; }
public int RecipeId { get; set; }
public decimal Portions { get; set; } = 1m;
}
public class ShoppingListItemDto
{
public string Name { get; set; } = string.Empty;
public string? Unit { get; set; }
public decimal? TotalGrams { get; set; }
public decimal? TotalAmount { get; set; }
public IReadOnlyList<string> Breakdown { get; set; } = Array.Empty<string>();
}