using MediaBrowser.Model.Entities;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Persistence
{
///
/// Interface IDisplayPreferencesRepository
///
public interface IDisplayPreferencesRepository : IRepository
{
///
/// Opens the connection to the repository
///
/// Task.
Task Initialize();
///
/// Saves display preferences for an item
///
/// The display preferences.
/// The user id.
/// The client.
/// The cancellation token.
/// Task.
Task SaveDisplayPreferences(DisplayPreferences displayPreferences, Guid userId, string client,
CancellationToken cancellationToken);
///
/// Gets the display preferences.
///
/// The display preferences id.
/// The user id.
/// The client.
/// Task{DisplayPreferences}.
DisplayPreferences GetDisplayPreferences(string displayPreferencesId, Guid userId, string client);
}
}