// Copyright (c) Umbraco. // See LICENSE for more details. using System.Runtime.Serialization; namespace Umbraco.Cms.Core.Models.Blocks; [DataContract(Name = "area", Namespace = "")] public class BlockGridArea : BlockModelCollection { /// /// Initializes a new instance of the class. /// /// The list to wrap. /// The area alias /// The number of rows this area should span /// The number of columns this area should span public BlockGridArea(IList list, string alias, int rowSpan, int columnSpan) : base(list) { Alias = alias; RowSpan = rowSpan; ColumnSpan = columnSpan; } /// /// The area alias /// [DataMember(Name = "alias")] public string Alias { get; } /// /// The number of rows this area should span. /// [DataMember(Name = "rowSpan")] public int RowSpan { get; } /// /// The number of columns this area should span. /// [DataMember(Name = "columnSpan")] public int ColumnSpan { get; } }