// // Copyright (c) PlaceholderCompany. All rights reserved. // #nullable disable #pragma warning disable CS1591 using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using MediaBrowser.Model.Entities; namespace MediaBrowser.Controller.Persistence; public interface IMediaAttachmentRepository { /// /// Gets the media attachments asynchronously. /// /// The query. /// The cancellation token. /// IReadOnlyList{MediaAttachment}. Task> GetMediaAttachmentsAsync(MediaAttachmentQuery filter, CancellationToken cancellationToken = default); /// /// Saves the media attachments asynchronously. /// /// The identifier. /// The attachments. /// The cancellation token. /// A task representing the asynchronous operation. Task SaveMediaAttachmentsAsync(Guid id, IReadOnlyList attachments, CancellationToken cancellationToken = default); }