32 lines
668 B
C#
32 lines
668 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 class ItemTitle
|
|
: Item
|
|
{
|
|
|
|
}
|
|
|
|
public class ItemVerification
|
|
: Item
|
|
{
|
|
public enum VerificationForce
|
|
{
|
|
Optionnal,
|
|
Recommandation,
|
|
Mandatory
|
|
}
|
|
|
|
public VerificationForce Force { get; set; } = VerificationForce.Mandatory;
|
|
} |