Files
mixtape/zero.Core/Entities/Sections/ISection.cs
T
2021-05-04 17:23:52 +02:00

41 lines
932 B
C#

using System.Collections.Generic;
namespace zero.Core.Entities
{
/// <summary>
/// Internal section
/// </summary>
public interface IInternalSection : ISection { }
/// <summary>
/// A section is a main part of the backoffice application
/// </summary>
public interface ISection
{
/// <summary>
/// The section alias which acts as the url slug for navigation
/// </summary>
string Alias { get; }
/// <summary>
/// The name of the section (either a string or a translation key with @ prefix)
/// </summary>
string Name { get; }
/// <summary>
/// Icon of the section
/// </summary>
string Icon { get; }
/// <summary>
/// HEX color (#aabbcc or #abc)
/// </summary>
string Color { get; }
/// <summary>
/// Children are displayed as a sub-navigation in the main nav area
/// </summary>
IList<IChildSection> Children { get; }
}
}