// Copyright © Selmo Technology GmbH. All Rights Reserved

using Novus.Shared.Dto;
using Novus.Shared.Id;
using SelmoStudio.Hmi.Server.Alarms.Model.Ids;

namespace SelmoStudio.Hmi.Server.Alarms.Model.Dto

{
    public record AlarmDto : IStorageDto
    {
        IGuidBasedId IDto.Id => Id;

        public AlarmId Id { get; init; }

        public string Name { get; init; }

        public string Title { get; init; }

        public string Message { get; init; }

        public int ErrorNo { get; init; }

        public Severity Severity { get; init; }

        public DateTimeOffset Created { get; init; }
        public AlarmType AlarmType { get; init; }
    }
}