You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
724 B
20 lines
724 B
using System.Collections.Immutable;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Models
|
|
{
|
|
/// <summary>
|
|
/// A Recipe
|
|
/// </summary>
|
|
/// <param name="Info">The essential information of the recipe</param>
|
|
/// <param name="Owner">The creator of the recipe</param>
|
|
/// <param name="Ingredients">The needed ingredients of the recipe</param>
|
|
/// <param name="Steps">The preparation steps</param>
|
|
[DataContract]
|
|
public record Recipe(
|
|
[property: DataMember] RecipeInfo Info,
|
|
[property: DataMember] User Owner,
|
|
[property: DataMember] ImmutableList<Ingredient> Ingredients,
|
|
[property: DataMember] ImmutableList<PreparationStep> Steps
|
|
);
|
|
} |