jellyfin/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs

40 lines
1.5 KiB
C#
Raw Normal View History

using MediaBrowser.Model.Entities;
using System;
2013-02-20 18:33:05 -07:00
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Persistence
{
/// <summary>
/// Interface IDisplayPreferencesRepository
/// </summary>
public interface IDisplayPreferencesRepository : IRepository
{
2013-06-20 09:44:24 -07:00
/// <summary>
/// Opens the connection to the repository
/// </summary>
/// <returns>Task.</returns>
Task Initialize();
2013-02-20 18:33:05 -07:00
/// <summary>
/// Saves display preferences for an item
/// </summary>
/// <param name="displayPreferences">The display preferences.</param>
/// <param name="userId">The user id.</param>
/// <param name="client">The client.</param>
2013-02-20 18:33:05 -07:00
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task SaveDisplayPreferences(DisplayPreferences displayPreferences, Guid userId, string client,
CancellationToken cancellationToken);
2013-02-20 18:33:05 -07:00
/// <summary>
/// Gets the display preferences.
2013-02-20 18:33:05 -07:00
/// </summary>
/// <param name="displayPreferencesId">The display preferences id.</param>
/// <param name="userId">The user id.</param>
/// <param name="client">The client.</param>
/// <returns>Task{DisplayPreferences}.</returns>
2014-05-08 13:09:53 -07:00
DisplayPreferences GetDisplayPreferences(string displayPreferencesId, Guid userId, string client);
2013-02-20 18:33:05 -07:00
}
}