diff --git a/API/ROLAC.API/ROLAC.API.csproj b/API/ROLAC.API/ROLAC.API.csproj index 239c488..322deb9 100644 --- a/API/ROLAC.API/ROLAC.API.csproj +++ b/API/ROLAC.API/ROLAC.API.csproj @@ -12,6 +12,7 @@ Provides DevExpress.Drawing.v24.1.Skia.dll; without it RichEditDocumentServer throws DllNotFoundException at runtime on Linux (Windows falls back to GDI+). --> + diff --git a/API/ROLAC.API/Services/Notifications/NotificationOptions.cs b/API/ROLAC.API/Services/Notifications/NotificationOptions.cs new file mode 100644 index 0000000..ab6e8f0 --- /dev/null +++ b/API/ROLAC.API/Services/Notifications/NotificationOptions.cs @@ -0,0 +1,20 @@ +namespace ROLAC.API.Services.Notifications; + +/// SMTP transport settings (bound from the "Smtp" config section). +public sealed class SmtpOptions +{ + public string Host { get; set; } = ""; + public int Port { get; set; } = 587; + public bool UseSsl { get; set; } = true; // true → STARTTLS + public string User { get; set; } = ""; + public string Password { get; set; } = ""; + public string FromAddress { get; set; } = ""; + public string FromName { get; set; } = ""; +} + +/// Line Messaging API settings (bound from the "Line" config section). +public sealed class LineOptions +{ + public string ChannelAccessToken { get; set; } = ""; + public string ChannelSecret { get; set; } = ""; +}