using System.Collections.Generic; using System.Runtime.Serialization; namespace Umbraco.Web.Models.ContentEditing { /// /// The macro display model /// [DataContract(Name = "dictionary", Namespace = "")] public class MacroDisplay : EntityBasic, INotificationModel { /// /// Initializes a new instance of the class. /// public MacroDisplay() { this.Notifications = new List(); this.Parameters = new List(); } /// [DataMember(Name = "notifications")] public List Notifications { get; } /// /// Gets or sets a value indicating whether the macro can be used in a rich text editor. /// [DataMember(Name = "useInEditor")] public bool UseInEditor { get; set; } /// /// Gets or sets a value indicating whether the macro should be rendered a rich text editor. /// [DataMember(Name = "renderInEditor")] public bool RenderInEditor { get; set; } /// /// Gets or sets the cache period. /// [DataMember(Name = "cachePeriod")] public int CachePeriod { get; set; } /// /// Gets or sets a value indicating whether the macro should be cached by page /// [DataMember(Name = "cacheByPage")] public bool CacheByPage { get; set; } /// /// Gets or sets a value indicating whether the macro should be cached by user /// [DataMember(Name = "cacheByUser")] public bool CacheByUser { get; set; } /// /// Gets or sets the view. /// [DataMember(Name = "view")] public string View { get; set; } /// /// Gets or sets the parameters. /// [DataMember(Name = "parameters")] public IEnumerable Parameters { get; set; } } }