Files
Cleanuparr/code/Common/Configuration/Notification/AppriseConfig.cs
Flaminel 96b9a54b64 fix #14
2025-05-17 21:03:14 +03:00

23 lines
437 B
C#

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