using System.Runtime.Serialization; namespace Models { /// /// The rate of a recipe, usually, the instances are bound with an account. /// /// /// a rate between 0 and 5 [DataContract] public record RecipeRate( [property: DataMember] bool IsFavorite = false, [property: DataMember] uint Rate = 0 ); }