Files
Cleanuparr/code/Common/Configuration/Notification/AppriseConfig.cs
2025-06-14 01:20:37 +03:00

23 lines
433 B
C#

namespace Common.Configuration.Notification;
public sealed record AppriseConfig : NotificationConfig
{
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;
}
}