// <copyright file="IMediaStreamRepository.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;

/// <summary>
/// Provides methods for accessing MediaStreams.
/// </summary>
public interface IMediaStreamRepository
{
    /// <summary>
    /// Gets the media streams asynchronously.
    /// </summary>
    /// <param name="filter">The query.</param>
    /// <param name="cancellationToken">The cancellation token.</param>
    /// <returns>IReadOnlyList{MediaStream}.</returns>
    Task<IReadOnlyList<MediaStream>> GetMediaStreamsAsync(MediaStreamQuery filter, CancellationToken cancellationToken = default);

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