using System;
using System.Collections.Generic;
using System.Threading;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Persistence
{
///
/// Interface IDisplayPreferencesRepository.
///
public interface IDisplayPreferencesRepository : IRepository
{
///
/// Saves display preferences for an item.
///
/// The display preferences.
/// The user id.
/// The client.
/// The cancellation token.
void SaveDisplayPreferences(
DisplayPreferences displayPreferences,
string userId,
string client,
CancellationToken cancellationToken);
///
/// Saves all display preferences for a user.
///
/// The display preferences.
/// The user id.
/// The cancellation token.
void SaveAllDisplayPreferences(
IEnumerable displayPreferences,
Guid userId,
CancellationToken cancellationToken);
///
/// Gets the display preferences.
///
/// The display preferences id.
/// The user id.
/// The client.
/// Task{DisplayPreferences}.
DisplayPreferences GetDisplayPreferences(string displayPreferencesId, string userId, string client);
///
/// Gets all display preferences for the given user.
///
/// The user id.
/// Task{DisplayPreferences}.
IEnumerable GetAllDisplayPreferences(Guid userId);
}
}