| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | using System;using System.Collections.Generic;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>        /// <remarks>        /// This will create the display preferences if it does not exist, but it will not save automatically.        /// </remarks>        /// <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>        /// Gets the default item display preferences for the user and client.        /// </summary>        /// <remarks>        /// This will create the item display preferences if it does not exist, but it will not save automatically.        /// </remarks>        /// <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 made to the database.        /// </summary>        void SaveChanges();    }}
 |