mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-04-21 22:50:02 -04:00
27 lines
538 B
C#
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;
|
|
}
|
|
} |