using PARR.Domain.Cache.Models.Base;
using PARR.Domain.Enums;

namespace PARR.Domain.Cache.Models
{
    /// <summary>
    /// КЭШ модель, состояние matching`a
    /// </summary>
    public class MatchingStatusItem : IBaseCache<MatchingStatusItemDto>
    {
        public required MatchingStatusItemDto Data { get; set; }

        public DateTimeOffset Timestamp { get; set; }

        public required string Source { get; set; }
    }


    public class MatchingStatusItemDto
    {
        public DateTimeOffset DateStart { get; set; }

        public required TemplateMatcherActionEnum Action { get; set; }

        public string? Comment { get; set; }
    }
}
