26 lines
893 B
C#
26 lines
893 B
C#
namespace MealPlan.Api.DTOs.Recipe;
|
|
|
|
public class RecalculateRecipeCaloriesRequestDto
|
|
{
|
|
public int TargetCalories { get; set; }
|
|
public int CalorieToleranceKcal { get; set; } = 10;
|
|
public bool Apply { get; set; }
|
|
}
|
|
|
|
public class RecalculateRecipeCaloriesResultDto
|
|
{
|
|
public int RecipeId { get; set; }
|
|
public int? PreviousCalories { get; set; }
|
|
public int TargetCalories { get; set; }
|
|
public int? NewCalories { get; set; }
|
|
public decimal? NewProtein { get; set; }
|
|
public decimal? NewFat { get; set; }
|
|
public decimal? NewCarbs { get; set; }
|
|
public bool Applied { get; set; }
|
|
/// <summary>catalog | ai | catalog+ai</summary>
|
|
public string Method { get; set; } = string.Empty;
|
|
public int UnlinkedIngredientCount { get; set; }
|
|
public List<IngredientDto> Ingredients { get; set; } = new();
|
|
public RecipeDetailDto? Recipe { get; set; }
|
|
}
|