namespace IWS5.Core.DTO.IAdmin.Schedules;

public class ScheduleListItemDTO(
    int scheduleId,
    string name,
    string serverHost,
    string? description,
    bool enabled,
    int priority,
    string scheduleType,
    int scheduleTypeId,
    string status,
    DateTime? lastRun,
    DateTime? nextRun,
    string? lastRunStatus
)
{
    public int ScheduleId { get; private set; } = scheduleId;
    public string Name { get; private set; } = name;
    public string ServerHost { get; private set; } = serverHost;
    public string? Description { get; private set; } = description;
    public bool Enabled { get; private set; } = enabled;
    public int Priority { get; private set; } = priority;
    public string ScheduleType { get; private set; } = scheduleType;
    public int ScheduleTypeId { get; private set; } = scheduleTypeId;
    public string Status { get; private set; } = status;
    public DateTime? LastRun { get; private set; } = lastRun;
    public DateTime? NextRun { get; private set; } = nextRun;
    public string? LastRunStatus { get; private set; } = lastRunStatus;
}
