aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Notifications/INotificationService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-26 23:42:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-26 23:42:05 -0400
commitfadda8ef5663beea338f65ef9c69cd96ec1c5858 (patch)
tree911b8d1d86af4452ab93487a2243f0d3197fc7a3 /MediaBrowser.Controller/Notifications/INotificationService.cs
parentbdffaf22c99a114d33a7485f9a9c5766e0fbbcaa (diff)
add new notification features
Diffstat (limited to 'MediaBrowser.Controller/Notifications/INotificationService.cs')
-rw-r--r--MediaBrowser.Controller/Notifications/INotificationService.cs30
1 files changed, 30 insertions, 0 deletions
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
+ {
+ /// <summary>
+ /// Gets the name.
+ /// </summary>
+ /// <value>The name.</value>
+ string Name { get; }
+
+ /// <summary>
+ /// Sends the notification.
+ /// </summary>
+ /// <param name="request">The request.</param>
+ /// <param name="cancellationToken">The cancellation token.</param>
+ /// <returns>Task.</returns>
+ Task SendNotification(UserNotification request, CancellationToken cancellationToken);
+
+ /// <summary>
+ /// Determines whether [is enabled for user] [the specified user identifier].
+ /// </summary>
+ /// <param name="user">The user.</param>
+ /// <returns><c>true</c> if [is enabled for user] [the specified user identifier]; otherwise, <c>false</c>.</returns>
+ bool IsEnabledForUser(User user);
+ }
+}