Thor/Thor.Shared/Item.cs
2025-03-21 07:19:48 +01:00

34 lines
706 B
C#

namespace Thor.Shared;
public abstract class Item
{
public string Identifier { get; set; }
public string? ParentId { get; set; }
public string OrderId { get; set; }
public string Label { get; set; }
public string Description { get; set; } = string.Empty;
public string References { get; set; } = string.Empty;
public int Order => OrderId.Count(x => x == '.');
public bool Hidden { get; set; }
}
public class ItemTitle
: Item
{
}
public class ItemVerification
: Item
{
public enum VerificationForce
{
Optionnal,
Recommandation,
Mandatory
}
public VerificationForce Force { get; set; } = VerificationForce.Mandatory;
}