2013-04-02 10:37:49 -07:00
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Saves display preferences for an item
|
|
|
|
|
/// </summary>
|
2013-04-02 10:37:49 -07:00
|
|
|
|
/// <param name="userId">The user id.</param>
|
|
|
|
|
/// <param name="displayPreferencesId">The display preferences id.</param>
|
|
|
|
|
/// <param name="displayPreferences">The display preferences.</param>
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-04-02 10:37:49 -07:00
|
|
|
|
Task SaveDisplayPreferences(Guid userId, Guid displayPreferencesId, DisplayPreferences displayPreferences,
|
|
|
|
|
CancellationToken cancellationToken);
|
2013-02-20 18:33:05 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-04-02 10:37:49 -07:00
|
|
|
|
/// Gets the display preferences.
|
2013-02-20 18:33:05 -07:00
|
|
|
|
/// </summary>
|
2013-04-02 10:37:49 -07:00
|
|
|
|
/// <param name="userId">The user id.</param>
|
|
|
|
|
/// <param name="displayPreferencesId">The display preferences id.</param>
|
|
|
|
|
/// <returns>Task{DisplayPreferences}.</returns>
|
|
|
|
|
Task<DisplayPreferences> GetDisplayPreferences(Guid userId, Guid displayPreferencesId);
|
2013-02-20 18:33:05 -07:00
|
|
|
|
}
|
|
|
|
|
}
|