aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2014-09-25 16:20:17 -0400
committerEric Reed <ebr@mediabrowser3.com>2014-09-25 16:20:17 -0400
commit08c6b9a42b067af6e538f3cd65f93976ad2cd524 (patch)
treebea29c900ca9b3c4e4c2b77633f8ed862eb2929d /MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs
parent8e2d244749d7aaec08ff10149674bbb75833b130 (diff)
Add retrieve and save all display prefs
Diffstat (limited to 'MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs')
-rw-r--r--MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs b/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs
index 84fedebce..66fac3462 100644
--- a/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs
+++ b/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs
@@ -1,4 +1,5 @@
-using MediaBrowser.Model.Entities;
+using System.Collections.Generic;
+using MediaBrowser.Model.Entities;
using System;
using System.Threading;
using System.Threading.Tasks;
@@ -28,6 +29,15 @@ namespace MediaBrowser.Controller.Persistence
CancellationToken cancellationToken);
/// <summary>
+ /// Saves all display preferences for a user
+ /// </summary>
+ /// <param name="displayPreferences">The display preferences.</param>
+ /// <param name="userId">The user id.</param>
+ /// <param name="cancellationToken">The cancellation token.</param>
+ /// <returns>Task.</returns>
+ Task SaveAllDisplayPreferences(IEnumerable<DisplayPreferences> displayPreferences, Guid userId,
+ CancellationToken cancellationToken);
+ /// <summary>
/// Gets the display preferences.
/// </summary>
/// <param name="displayPreferencesId">The display preferences id.</param>
@@ -35,5 +45,12 @@ namespace MediaBrowser.Controller.Persistence
/// <param name="client">The client.</param>
/// <returns>Task{DisplayPreferences}.</returns>
DisplayPreferences GetDisplayPreferences(string displayPreferencesId, Guid userId, string client);
+
+ /// <summary>
+ /// Gets all display preferences for the given user.
+ /// </summary>
+ /// <param name="userId">The user id.</param>
+ /// <returns>Task{DisplayPreferences}.</returns>
+ IEnumerable<DisplayPreferences> GetAllDisplayPreferences(Guid userId);
}
}