mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-05 12:27:45 -05:00
25 lines
820 B
C#
25 lines
820 B
C#
using Common.Configuration.Notification;
|
|
using Infrastructure.Verticals.Notifications.Models;
|
|
using Microsoft.Extensions.Options;
|
|
|
|
namespace Infrastructure.Verticals.Notifications;
|
|
|
|
public abstract class NotificationProvider : INotificationProvider
|
|
{
|
|
protected NotificationProvider(IOptions<NotificationConfig> config)
|
|
{
|
|
Config = config.Value;
|
|
}
|
|
|
|
public abstract string Name { get; }
|
|
|
|
public NotificationConfig Config { get; }
|
|
|
|
public abstract Task OnFailedImportStrike(FailedImportStrikeNotification notification);
|
|
|
|
public abstract Task OnStalledStrike(StalledStrikeNotification notification);
|
|
|
|
public abstract Task OnQueueItemDeleted(QueueItemDeletedNotification notification);
|
|
|
|
public abstract Task OnDownloadCleaned(DownloadCleanedNotification notification);
|
|
} |