// <copyright file="IMediaAttachmentRepository.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>

#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
{
    /// <summary>
    /// Gets the media attachments asynchronously.
    /// </summary>
    /// <param name="filter">The query.</param>
    /// <param name="cancellationToken">The cancellation token.</param>
    /// <returns>IReadOnlyList{MediaAttachment}.</returns>
    Task<IReadOnlyList<MediaAttachment>> GetMediaAttachmentsAsync(MediaAttachmentQuery filter, CancellationToken cancellationToken = default);

    /// <summary>
    /// Saves the media attachments asynchronously.
    /// </summary>
    /// <param name="id">The identifier.</param>
    /// <param name="attachments">The attachments.</param>
    /// <param name="cancellationToken">The cancellation token.</param>
    /// <returns>A task representing the asynchronous operation.</returns>
    Task SaveMediaAttachmentsAsync(Guid id, IReadOnlyList<MediaAttachment> attachments, CancellationToken cancellationToken = default);
}
