mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-21 04:08:37 -05:00
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using Common.Configuration.Notification;
|
|
using Infrastructure.Configuration;
|
|
using Infrastructure.Verticals.Notifications.Models;
|
|
using Microsoft.Extensions.Options;
|
|
|
|
namespace Infrastructure.Verticals.Notifications;
|
|
|
|
public abstract class NotificationProvider : INotificationProvider
|
|
{
|
|
private readonly IConfigManager _configManager;
|
|
protected readonly NotificationsConfig _config;
|
|
|
|
public abstract BaseNotificationConfig Config { get; }
|
|
|
|
protected NotificationProvider(IConfigManager configManager)
|
|
{
|
|
_configManager = configManager;
|
|
_config = configManager.GetNotificationsConfig();
|
|
}
|
|
|
|
public abstract string Name { get; }
|
|
|
|
public abstract Task OnFailedImportStrike(FailedImportStrikeNotification notification);
|
|
|
|
public abstract Task OnStalledStrike(StalledStrikeNotification notification);
|
|
|
|
public abstract Task OnSlowStrike(SlowStrikeNotification notification);
|
|
|
|
public abstract Task OnQueueItemDeleted(QueueItemDeletedNotification notification);
|
|
|
|
public abstract Task OnDownloadCleaned(DownloadCleanedNotification notification);
|
|
|
|
public abstract Task OnCategoryChanged(CategoryChangedNotification notification);
|
|
} |