using Infrastructure.Utilities; namespace Infrastructure.Models; /// /// Represents the unit of time for job scheduling intervals /// public enum ScheduleUnit { Seconds, Minutes, Hours } /// /// Represents a user-friendly job schedule format /// public class JobSchedule { /// /// The numeric interval value /// public int Every { get; set; } /// /// The unit of time for the interval (seconds, minutes, or hours) /// public ScheduleUnit Type { get; set; } /// /// Converts the JobSchedule to a Quartz cron expression string /// /// A valid cron expression string public string ToCronExpression() { return CronExpressionConverter.ConvertToCronExpression(this); } }