|
|
|
@ -40,6 +40,8 @@ namespace Model
|
|
|
|
|
[DataMember(Name = "authorMail")]
|
|
|
|
|
public string? AuthorMail { get; private set; }
|
|
|
|
|
|
|
|
|
|
public string Toto { get; set; } = "Coucou";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The Title of the recipe. <br/>
|
|
|
|
|
/// Set to "No title." when the value passed is null, empty or contain white spaces.
|
|
|
|
@ -144,17 +146,17 @@ namespace Model
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// <inheritdoc cref="Recipe.Recipe(string, int?, List{Review}, PreparationStep[])"/>
|
|
|
|
|
///// </summary>
|
|
|
|
|
///// <param _name="title">The title of the recipe.</param>
|
|
|
|
|
///// <param _name="id">The id of the recipe. If not given, get a new id.</param>
|
|
|
|
|
///// <param _name="picture">Image that reppresent the recipe.</param>
|
|
|
|
|
///// <param _name="preparationSteps">The steps of the preparation of the meal.</param>
|
|
|
|
|
//public Recipe(string title, int? id, string picture, params PreparationStep[] preparationSteps)
|
|
|
|
|
// : this(title, id, null, picture, new List<Review>(), new List<Ingredient>(), preparationSteps)
|
|
|
|
|
//{
|
|
|
|
|
//}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <inheritdoc cref="Recipe.Recipe(string, int?, List{Review}, PreparationStep[])"/>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param _name="title">The title of the recipe.</param>
|
|
|
|
|
/// <param _name="id">The id of the recipe. If not given, get a new id.</param>
|
|
|
|
|
/// <param _name="picture">Image that reppresent the recipe.</param>
|
|
|
|
|
/// <param _name="preparationSteps">The steps of the preparation of the meal.</param>
|
|
|
|
|
public Recipe()
|
|
|
|
|
: this("", null, null, null, new List<Review>(), new List<Ingredient>(),new PreparationStep[0])
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|