using ScadaLink.Commons.Types.Enums;

namespace ScadaLink.Commons.Entities.Templates;

public class TemplateAlarm
{
    public int Id { get; set; }
    public int TemplateId { get; set; }
    public string Name { get; set; }
    public string? Description { get; set; }
    public int PriorityLevel { get; set; }
    public bool IsLocked { get; set; }
    public AlarmTriggerType TriggerType { get; set; }
    public string? TriggerConfiguration { get; set; }
    public int? OnTriggerScriptId { get; set; }

    public TemplateAlarm(string name)
    {
        Name = name ?? throw new ArgumentNullException(nameof(name));
    }
}
