Files
Cleanuparr/code/Infrastructure/Verticals/Notifications/Apprise/AppriseConfig.cs
2025-05-01 21:00:01 +03:00

27 lines
538 B
C#

using Common.Configuration.Notification;
namespace Infrastructure.Verticals.Notifications.Apprise;
public sealed record AppriseConfig : NotificationConfig
{
public const string SectionName = "Apprise";
public Uri? Url { get; init; }
public string? Key { get; init; }
public override bool IsValid()
{
if (Url is null)
{
return false;
}
if (string.IsNullOrEmpty(Key?.Trim()))
{
return false;
}
return true;
}
}