2
0

IDisplayPreferencesRepository.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Threading;
  4. using System.Threading.Tasks;
  5. namespace MediaBrowser.Controller.Persistence
  6. {
  7. /// <summary>
  8. /// Interface IDisplayPreferencesRepository
  9. /// </summary>
  10. public interface IDisplayPreferencesRepository : IRepository
  11. {
  12. /// <summary>
  13. /// Opens the connection to the repository
  14. /// </summary>
  15. /// <returns>Task.</returns>
  16. Task Initialize();
  17. /// <summary>
  18. /// Saves display preferences for an item
  19. /// </summary>
  20. /// <param name="displayPreferences">The display preferences.</param>
  21. /// <param name="userId">The user id.</param>
  22. /// <param name="client">The client.</param>
  23. /// <param name="cancellationToken">The cancellation token.</param>
  24. /// <returns>Task.</returns>
  25. Task SaveDisplayPreferences(DisplayPreferences displayPreferences, Guid userId, string client,
  26. CancellationToken cancellationToken);
  27. /// <summary>
  28. /// Gets the display preferences.
  29. /// </summary>
  30. /// <param name="displayPreferencesId">The display preferences id.</param>
  31. /// <param name="userId">The user id.</param>
  32. /// <param name="client">The client.</param>
  33. /// <returns>Task{DisplayPreferences}.</returns>
  34. DisplayPreferences GetDisplayPreferences(Guid displayPreferencesId, Guid userId, string client);
  35. }
  36. }