Files
mixtape/zero.Backoffice/Sections/Section.cs
T
2021-11-22 14:29:22 +01:00

36 lines
773 B
C#

namespace zero.Backoffice.Sections;
/// <summary>
/// A section is a main part of the backoffice application
/// </summary>
public class Section : ISection, IChildSection
{
/// <inheritdoc />
public string Alias { get; set; }
/// <inheritdoc />
public string Name { get; set; }
/// <inheritdoc />
public string Icon { get; set; }
/// <summary>
/// HEX color (#aabbcc or #abc). Defaults to a neutral color
/// </summary>
public string Color { get; set; }
/// <inheritdoc />
public IList<IChildSection> Children { get; } = new List<IChildSection>();
public Section() { }
public Section(string alias, string name, string icon = null, string color = null)
{
Alias = alias;
Name = name;
Icon = icon;
Color = color;
}
}