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

23 lines
468 B
C#

namespace Data.Models.Configuration.Notification;
public sealed record NotifiarrConfig : NotificationConfig
{
public string? ApiKey { get; init; }
public string? ChannelId { get; init; }
public override bool IsValid()
{
if (string.IsNullOrEmpty(ApiKey?.Trim()))
{
return false;
}
if (string.IsNullOrEmpty(ChannelId?.Trim()))
{
return false;
}
return true;
}
}