diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-07-27 20:40:21 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-07-27 20:40:21 -0400 |
| commit | 68a185fd02844698ac5ecd5618d590ae254d95cf (patch) | |
| tree | c4efd898494ba80674d75c9c834ffe848927eb11 /MediaBrowser.Controller/IDisplayPreferencesManager.cs | |
| parent | 592d2480ca9c424c7b8b8f4be2bdfa81b4476f0c (diff) | |
Serialize/deserialize new entities properly.
Diffstat (limited to 'MediaBrowser.Controller/IDisplayPreferencesManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/IDisplayPreferencesManager.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/IDisplayPreferencesManager.cs b/MediaBrowser.Controller/IDisplayPreferencesManager.cs index e27b0ec7c..b6bfed3e5 100644 --- a/MediaBrowser.Controller/IDisplayPreferencesManager.cs +++ b/MediaBrowser.Controller/IDisplayPreferencesManager.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using Jellyfin.Data.Entities; namespace MediaBrowser.Controller @@ -17,9 +18,32 @@ namespace MediaBrowser.Controller DisplayPreferences GetDisplayPreferences(Guid userId, string client); /// <summary> + /// Gets the default item display preferences for the user and client. + /// </summary> + /// <param name="userId">The user id.</param> + /// <param name="itemId">The item id.</param> + /// <param name="client">The client string.</param> + /// <returns>The item display preferences.</returns> + ItemDisplayPreferences GetItemDisplayPreferences(Guid userId, Guid itemId, string client); + + /// <summary> + /// Gets all of the item display preferences for the user and client. + /// </summary> + /// <param name="userId">The user id.</param> + /// <param name="client">The client string.</param> + /// <returns>A list of item display preferences.</returns> + IList<ItemDisplayPreferences> ListItemDisplayPreferences(Guid userId, string client); + + /// <summary> /// Saves changes to the provided display preferences. /// </summary> /// <param name="preferences">The display preferences to save.</param> void SaveChanges(DisplayPreferences preferences); + + /// <summary> + /// Saves changes to the provided item display preferences. + /// </summary> + /// <param name="preferences">The item display preferences to save.</param> + void SaveChanges(ItemDisplayPreferences preferences); } } |
