namespace HRM.BO.Configuration { /// /// "Calendar" section of appsettings.json. Bound through the normal ASP.NET configuration, so /// appsettings.Development.json can override it (for example to stop real e-mails on a developer PC). /// Each client deployment has its own appsettings.json, so per-client choices live here too. /// public class CalendarSettings { /// Runs the per-minute Hangfire job that sends reminders. False stops all reminders. public bool RemindersEnabled { get; set; } = true; /// Sends calendar e-mails. False keeps in-app (bell) notifications only. public bool SendMail { get; set; } = true; /// /// For testing: when set, every calendar e-mail goes to this address instead of the real person. /// In the Development environment e-mails are sent only when this is set. /// public string RedirectAllMailTo { get; set; } = string.Empty; /// A reminder that is older than this (for example after the server was down) is skipped, not sent late. public int ReminderGraceMinutes { get; set; } = 60; /// /// Time zone written into Outlook invitations, as an IANA id (e.g. "Asia/Dhaka") or Windows id /// (e.g. "Bangladesh Standard Time"). Empty = the server's own time zone. /// public string TimeZoneId { get; set; } = string.Empty; /// /// Domain part of the invitation's unique id (UID = "hrm-calendar-{id}@{domain}"), so Outlook recognises later /// updates and cancellations of the same item. Empty = the domain of EmailSettings.FromAddress. /// public string IcsDomain { get; set; } = string.Empty; /// How items reach Outlook: "None", "Ics" (e-mail meeting invitation) or "Graph" (Microsoft 365, later phase). public EnumOutlookSyncMode OutlookSync { get; set; } = EnumOutlookSyncMode.Ics; // Fixed rules, not settings: every employee may create events and invite anyone; line managers may assign tasks to // their own team (HR / admin to anyone); everyone sees only their own birthday and work anniversary. /// /// Runs HR's schedule jobs (tasks created by themselves on set dates) from the per-minute job. False stops all runs; /// runs that fall due meanwhile are not made up later. /// public bool ScheduleJobsEnabled { get; set; } = true; /// /// Sends HR's schedule emails (an e-mail that goes out by itself on set dates, logged in the central e-mail log) /// from the per-minute job. False stops all of them; runs that fall due meanwhile are not made up later. /// public bool ScheduleEmailsEnabled { get; set; } = true; /// Most people one calendar item can have. public int MaxAttendees { get; set; } = 500; } }