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