diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-25 16:15:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-25 16:15:50 -0400 |
| commit | 547291f04865f23090986667b5a802cd89ea003d (patch) | |
| tree | ff2e4c105979fea94390af6c3614193a0d2a9dc5 /MediaBrowser.Controller/Notifications/INotificationsRepository.cs | |
| parent | eda8159b4408c4b33cbdd56e3e6ed2f82757bb0c (diff) | |
rework notifications infrastructure
Diffstat (limited to 'MediaBrowser.Controller/Notifications/INotificationsRepository.cs')
| -rw-r--r-- | MediaBrowser.Controller/Notifications/INotificationsRepository.cs | 19 |
1 files changed, 5 insertions, 14 deletions
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 /// <param name="id">The id.</param> /// <param name="userId">The user id.</param> /// <returns>Notification.</returns> - Notification GetNotification(Guid id, Guid userId); + Notification GetNotification(string id, string userId); /// <summary> /// Adds the notification. @@ -55,14 +54,6 @@ namespace MediaBrowser.Controller.Notifications Task AddNotification(Notification notification, CancellationToken cancellationToken); /// <summary> - /// Updates the notification. - /// </summary> - /// <param name="notification">The notification.</param> - /// <param name="cancellationToken">The cancellation token.</param> - /// <returns>Task.</returns> - Task UpdateNotification(Notification notification, CancellationToken cancellationToken); - - /// <summary> /// Marks the read. /// </summary> /// <param name="notificationIdList">The notification id list.</param> @@ -70,13 +61,13 @@ namespace MediaBrowser.Controller.Notifications /// <param name="isRead">if set to <c>true</c> [is read].</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task.</returns> - Task MarkRead(IEnumerable<Guid> notificationIdList, Guid userId, bool isRead, CancellationToken cancellationToken); + Task MarkRead(IEnumerable<string> notificationIdList, string userId, bool isRead, CancellationToken cancellationToken); /// <summary> /// Gets the notifications summary. /// </summary> /// <param name="userId">The user id.</param> /// <returns>NotificationsSummary.</returns> - NotificationsSummary GetNotificationsSummary(Guid userId); + NotificationsSummary GetNotificationsSummary(string userId); } } |
