jellyfin/MediaBrowser.Controller/Persistence/IDisplayPreferencesRepository.cs

30 lines
1.0 KiB
C#
Raw Normal View History

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
{
/// <summary>
/// Saves display preferences for an item
/// </summary>
/// <param name="displayPreferences">The display preferences.</param>
2013-02-21 01:33:05 +00:00
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task SaveDisplayPreferences(DisplayPreferences displayPreferences,
CancellationToken cancellationToken);
2013-02-21 01:33:05 +00:00
/// <summary>
/// Gets the display preferences.
2013-02-21 01:33:05 +00:00
/// </summary>
/// <param name="displayPreferencesId">The display preferences id.</param>
/// <returns>Task{DisplayPreferences}.</returns>
2013-06-18 19:16:27 +00:00
DisplayPreferences GetDisplayPreferences(Guid displayPreferencesId);
2013-02-21 01:33:05 +00:00
}
}