namespace Common.Configuration.DTOs.Notification; /// /// Base DTO for notification configuration /// public abstract class BaseNotificationConfigDto { /// /// Whether to notify on failed import strikes /// public bool OnFailedImportStrike { get; set; } /// /// Whether to notify on stalled download strikes /// public bool OnStalledStrike { get; set; } /// /// Whether to notify on slow download strikes /// public bool OnSlowStrike { get; set; } /// /// Whether to notify on queue item deletion /// public bool OnQueueItemDeleted { get; set; } /// /// Whether to notify on download cleaning /// public bool OnDownloadCleaned { get; set; } /// /// Whether to notify on category changes /// public bool OnCategoryChanged { get; set; } /// /// Whether any notification option is enabled /// public bool IsEnabled => OnFailedImportStrike || OnStalledStrike || OnSlowStrike || OnQueueItemDeleted || OnDownloadCleaned || OnCategoryChanged; }