mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2025-12-28 08:28:03 -05:00
29 lines
860 B
C#
29 lines
860 B
C#
using Cleanuparr.Persistence.Models.Configuration.Notification;
|
|
using Infrastructure.Verticals.Notifications.Models;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.Notifications;
|
|
|
|
public interface INotificationProvider<T> : INotificationProvider
|
|
where T : NotificationConfig
|
|
{
|
|
new T Config { get; }
|
|
}
|
|
|
|
public interface INotificationProvider
|
|
{
|
|
NotificationConfig Config { get; }
|
|
|
|
string Name { get; }
|
|
|
|
Task OnFailedImportStrike(FailedImportStrikeNotification notification);
|
|
|
|
Task OnStalledStrike(StalledStrikeNotification notification);
|
|
|
|
Task OnSlowStrike(SlowStrikeNotification notification);
|
|
|
|
Task OnQueueItemDeleted(QueueItemDeletedNotification notification);
|
|
|
|
Task OnDownloadCleaned(DownloadCleanedNotification notification);
|
|
|
|
Task OnCategoryChanged(CategoryChangedNotification notification);
|
|
} |