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

26 lines
650 B
C#

namespace Common.Configuration.Notification;
public abstract record BaseNotificationConfig
{
public bool OnFailedImportStrike { get; init; }
public bool OnStalledStrike { get; init; }
public bool OnSlowStrike { get; init; }
public bool OnQueueItemDeleted { get; init; }
public bool OnDownloadCleaned { get; init; }
public bool OnCategoryChanged { get; init; }
public bool IsEnabled =>
OnFailedImportStrike ||
OnStalledStrike ||
OnSlowStrike ||
OnQueueItemDeleted ||
OnDownloadCleaned ||
OnCategoryChanged;
public abstract bool IsValid();
}