2020-08-22 19:56:24 +00:00
|
|
|
using System;
|
2020-07-28 00:40:21 +00:00
|
|
|
using System.Collections.Generic;
|
2020-07-01 01:44:41 +00:00
|
|
|
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);
|
|
|
|
|
2020-07-28 00:40:21 +00:00
|
|
|
/// <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);
|
|
|
|
|
2020-07-01 01:44:41 +00:00
|
|
|
/// <summary>
|
2020-08-08 17:39:49 +00:00
|
|
|
/// Saves changes made to the database.
|
2020-07-01 01:44:41 +00:00
|
|
|
/// </summary>
|
2020-08-08 17:39:49 +00:00
|
|
|
void SaveChanges();
|
2020-07-01 01:44:41 +00:00
|
|
|
}
|
|
|
|
}
|