mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-16 09:48:13 -05:00
26 lines
650 B
C#
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();
|
|
} |