diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-06-30 21:44:41 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-07-17 16:11:53 -0400 |
| commit | ab396225eaf486932fdb2f23eefa1cbfecbb27f4 (patch) | |
| tree | b225cd9617e14ae1f0386f9ff8aa85a8a433e424 /MediaBrowser.Controller/IDisplayPreferencesManager.cs | |
| parent | 175e7b45e56fb97b0f9bdddd99c195af3ecabcc6 (diff) | |
Migrate Display Preferences to EF Core
Diffstat (limited to 'MediaBrowser.Controller/IDisplayPreferencesManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/IDisplayPreferencesManager.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/IDisplayPreferencesManager.cs b/MediaBrowser.Controller/IDisplayPreferencesManager.cs new file mode 100644 index 000000000..e27b0ec7c --- /dev/null +++ b/MediaBrowser.Controller/IDisplayPreferencesManager.cs @@ -0,0 +1,25 @@ +using System; +using Jellyfin.Data.Entities; + +namespace MediaBrowser.Controller +{ + /// <summary> + /// Manages the storage and retrieval of display preferences. + /// </summary> + public interface IDisplayPreferencesManager + { + /// <summary> + /// Gets the display preferences for the user and client. + /// </summary> + /// <param name="userId">The user's id.</param> + /// <param name="client">The client string.</param> + /// <returns>The associated display preferences.</returns> + DisplayPreferences GetDisplayPreferences(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); + } +} |
