namespace Application.Features.Api.Popup.GetAll
{
    public sealed class Response
    {
        public int Total { get; init; }
        public required IReadOnlyList<Row> List { get; init; }

        public sealed class Row
        {
            public int ID { get; init; }
            public int PositionID { get; init; }
            public required string Subject { get; init; }
            public string? Content { get; init; }
            public string? Link { get; init; }
            public DateTime? StartAt { get; init; }
            public DateTime? EndAt { get; init; }
            public short Order { get; init; }
            public bool IsActive { get; init; }
            public DateTime? UpdatedAt { get; init; }
            public required DateTime CreatedAt { get; init; }
        }
    }
}
