From 547291f04865f23090986667b5a802cd89ea003d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 25 Apr 2014 16:15:50 -0400 Subject: rework notifications infrastructure --- .../Notifications/INotificationsRepository.cs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'MediaBrowser.Controller/Notifications/INotificationsRepository.cs') diff --git a/MediaBrowser.Controller/Notifications/INotificationsRepository.cs b/MediaBrowser.Controller/Notifications/INotificationsRepository.cs index 7a4b69b52..87b89e79c 100644 --- a/MediaBrowser.Controller/Notifications/INotificationsRepository.cs +++ b/MediaBrowser.Controller/Notifications/INotificationsRepository.cs @@ -1,8 +1,7 @@ -using System.Threading; -using MediaBrowser.Controller.Persistence; -using MediaBrowser.Model.Notifications; +using MediaBrowser.Model.Notifications; using System; using System.Collections.Generic; +using System.Threading; using System.Threading.Tasks; namespace MediaBrowser.Controller.Notifications @@ -44,7 +43,7 @@ namespace MediaBrowser.Controller.Notifications /// The id. /// The user id. /// Notification. - Notification GetNotification(Guid id, Guid userId); + Notification GetNotification(string id, string userId); /// /// Adds the notification. @@ -54,14 +53,6 @@ namespace MediaBrowser.Controller.Notifications /// Task. Task AddNotification(Notification notification, CancellationToken cancellationToken); - /// - /// Updates the notification. - /// - /// The notification. - /// The cancellation token. - /// Task. - Task UpdateNotification(Notification notification, CancellationToken cancellationToken); - /// /// Marks the read. /// @@ -70,13 +61,13 @@ namespace MediaBrowser.Controller.Notifications /// if set to true [is read]. /// The cancellation token. /// Task. - Task MarkRead(IEnumerable notificationIdList, Guid userId, bool isRead, CancellationToken cancellationToken); + Task MarkRead(IEnumerable notificationIdList, string userId, bool isRead, CancellationToken cancellationToken); /// /// Gets the notifications summary. /// /// The user id. /// NotificationsSummary. - NotificationsSummary GetNotificationsSummary(Guid userId); + NotificationsSummary GetNotificationsSummary(string userId); } } -- cgit v1.2.3