mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2025-12-28 08:28:03 -05:00
23 lines
456 B
C#
23 lines
456 B
C#
namespace Cleanuparr.Persistence.Models.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;
|
|
}
|
|
} |