From fadda8ef5663beea338f65ef9c69cd96ec1c5858 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 26 Apr 2014 23:42:05 -0400 Subject: add new notification features --- .../Notifications/INotificationService.cs | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 MediaBrowser.Controller/Notifications/INotificationService.cs (limited to 'MediaBrowser.Controller/Notifications/INotificationService.cs') diff --git a/MediaBrowser.Controller/Notifications/INotificationService.cs b/MediaBrowser.Controller/Notifications/INotificationService.cs new file mode 100644 index 000000000..b1e313b87 --- /dev/null +++ b/MediaBrowser.Controller/Notifications/INotificationService.cs @@ -0,0 +1,30 @@ +using MediaBrowser.Controller.Entities; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Controller.Notifications +{ + public interface INotificationService + { + /// + /// Gets the name. + /// + /// The name. + string Name { get; } + + /// + /// Sends the notification. + /// + /// The request. + /// The cancellation token. + /// Task. + Task SendNotification(UserNotification request, CancellationToken cancellationToken); + + /// + /// Determines whether [is enabled for user] [the specified user identifier]. + /// + /// The user. + /// true if [is enabled for user] [the specified user identifier]; otherwise, false. + bool IsEnabledForUser(User user); + } +} -- cgit v1.2.3