using System.Runtime.Serialization; namespace Umbraco.Cms.Core.Models.ContentEditing; /// /// Represents a content app badge /// [DataContract(Name = "badge", Namespace = "")] public class ContentAppBadge { /// /// Initializes a new instance of the class. /// public ContentAppBadge() => Type = ContentAppBadgeType.Default; /// /// Gets or sets the number displayed in the badge /// [DataMember(Name = "count")] public int Count { get; set; } /// /// Gets or sets the type of badge to display /// /// /// This controls the background color of the badge. /// Warning will display a dark yellow badge /// Alert will display a red badge /// Default will display a turquoise badge /// [DataMember(Name = "type")] public ContentAppBadgeType Type { get; set; } }