mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-28 10:48:49 -04:00
25 lines
985 B
C#
25 lines
985 B
C#
using Cleanuparr.Domain.Enums;
|
|
|
|
namespace Cleanuparr.Infrastructure.Features.Notifications;
|
|
|
|
public interface INotificationPublisher
|
|
{
|
|
Task NotifyStrike(StrikeType strikeType, int strikeCount);
|
|
|
|
Task NotifyQueueItemDeleted(bool removeFromClient, DeleteReason reason);
|
|
|
|
/// <summary>
|
|
/// Reports that an arr was made to import a download it had blocked.
|
|
/// </summary>
|
|
Task NotifyForceImported();
|
|
|
|
Task NotifyDownloadCleaned(double ratio, TimeSpan seedingTime, string categoryName, CleanReason reason);
|
|
|
|
Task NotifyDownloadStopped(double ratio, TimeSpan seedingTime, string categoryName, CleanReason reason);
|
|
|
|
Task NotifyCategoryChanged(string oldCategory, string newCategory, bool isTag = false);
|
|
|
|
Task NotifySearchTriggered(string itemTitle, SeekerSearchType searchType, SeekerSearchReason searchReason);
|
|
|
|
Task NotifySearchItemGrabbed(string itemTitle, List<string> grabbedItems, InstanceType instanceType, string instanceUrl);
|
|
} |