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.
24 lines
893 B
24 lines
893 B
using System.Runtime.Serialization;
|
|
|
|
namespace Models
|
|
{
|
|
/// <summary>
|
|
/// The essential information about a recipe
|
|
/// </summary>
|
|
/// <param name="Name">The recipe's name</param>
|
|
/// <param name="CalPerPers">The energy input</param>
|
|
/// <param name="CookTimeMins">Estimated time of preparation in minutes</param>
|
|
/// <param name="Image">An illustrative image of the recipe</param>
|
|
/// <param name="AverageNote">The average rate of the recipe</param>
|
|
/// <param name="Id">An unique identifier</param>
|
|
[DataContract]
|
|
public record RecipeInfo(
|
|
[property: DataMember] string Name,
|
|
[property: DataMember] uint CalPerPers,
|
|
[property: DataMember] uint CookTimeMins,
|
|
[property: DataMember] Uri Image,
|
|
[property: DataMember] float AverageNote,
|
|
[property: DataMember] Guid Id
|
|
);
|
|
}
|