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.
17 lines
436 B
17 lines
436 B
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Models
|
|
{
|
|
/// <summary>
|
|
/// The rate of a recipe, usually, the instances are bound with an account.
|
|
/// </summary>
|
|
/// <param name="IsFavorite"></param>
|
|
/// <param name="Rate">a rate between 0 and 5</param>
|
|
[DataContract]
|
|
public record RecipeRate(
|
|
[property: DataMember] bool IsFavorite = false,
|
|
[property: DataMember] uint Rate = 0
|
|
);
|
|
}
|