using System;
using System.Collections.Generic;

namespace UnshackleGUI
{
    public class SchedulerJob
    {
        public string Id { get; set; } = Guid.NewGuid().ToString();
        public string Name { get; set; } = "New Task";
        public string Url { get; set; } = "";
        public string ProfileName { get; set; } = "Default";

        // Scheduling
        public DateTime ScheduledTime { get; set; } = DateTime.Now;
        public bool Enabled { get; set; } = false; // Default disabled until added
        public string Status { get; set; } = "Draft";

        // Recurrence
        public string Recurrence { get; set; } = "OneTime";
        public int RepeatInterval { get; set; } = 1;
        public List<string> WeeklyDays { get; set; } = new List<string>();

        // Retry Logic
        public int MaxRetries { get; set; } = 3;
        public int CurrentRetries { get; set; } = 0;
        public int RetryDelayInMinutes { get; set; } = 15; // <--- NEW PROPERTY

        public string PostRunCommand { get; set; } = "";
    }
}