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