// Copyright © Selmo Technology GmbH. All Rights Reserved

using SelmoStudio.Hmi.Server.Alarms.Model.Dto;

namespace SelmoStudio.Hmi.Server.Alarms.Model;

/// <summary>
/// Basic alarm item representation
/// </summary>
public class Alarm
{
    /// <summary>
    /// Id of the alarm item
    /// </summary>
    public Guid Id { get; set; }

    /// <summary>
    /// Shot description of the alarm item
    /// </summary>
    public string? Title { get; set; }

    /// <summary>
    /// Creation date of the alarm
    /// </summary>
    public DateTimeOffset Created { get; set; }

    /// <summary>
    /// Detailed description of the alarm
    /// </summary>
    public string? Message { get; set; }

    /// <summary>
    /// The severity of the alarm
    /// </summary>
    public Severity Severity { get; set; }

    public AlarmType AlarmType { get; init; }
    public string NavigateUrl { get; set; }

}