Files
Cleanuparr/code/Data/Models/Configuration/Notification/AppriseConfig.cs
2025-06-15 21:15:50 +03:00

23 lines
438 B
C#

namespace Data.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;
}
}