2019-11-14 16:19:24 +11:00
|
|
|
|
using System.Runtime.Serialization;
|
2019-10-23 17:31:18 +02:00
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Core.Models.ContentEditing
|
2019-11-14 16:19:24 +11:00
|
|
|
|
{
|
2019-10-23 17:31:18 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents a content app badge
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataContract(Name = "badge", Namespace = "")]
|
|
|
|
|
|
public class ContentAppBadge
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="ContentAppBadge"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ContentAppBadge()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Type = ContentAppBadgeType.Default;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the number displayed in the badge
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataMember(Name = "count")]
|
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the type of badge to display
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// <para>This controls the background color of the badge.</para>
|
|
|
|
|
|
/// <para>Warning will display a dark yellow badge</para>
|
|
|
|
|
|
/// <para>Alert will display a red badge</para>
|
|
|
|
|
|
/// <para>Default will display a turquoise badge</para>
|
|
|
|
|
|
/// </remarks>
|
|
|
|
|
|
[DataMember(Name = "type")]
|
|
|
|
|
|
public ContentAppBadgeType Type { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|