2
0

IMediaAttachmentRepository.cs 894 B

12345678910111213141516171819202122232425262728
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Threading;
  6. using MediaBrowser.Model.Entities;
  7. namespace MediaBrowser.Controller.Persistence;
  8. public interface IMediaAttachmentRepository
  9. {
  10. /// <summary>
  11. /// Gets the media attachments.
  12. /// </summary>
  13. /// <param name="filter">The query.</param>
  14. /// <returns>IEnumerable{MediaAttachment}.</returns>
  15. IReadOnlyList<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery filter);
  16. /// <summary>
  17. /// Saves the media attachments.
  18. /// </summary>
  19. /// <param name="id">The identifier.</param>
  20. /// <param name="attachments">The attachments.</param>
  21. /// <param name="cancellationToken">The cancellation token.</param>
  22. void SaveMediaAttachments(Guid id, IReadOnlyList<MediaAttachment> attachments, CancellationToken cancellationToken);
  23. }