aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/IMediaAttachmentRepository.cs
blob: 4773f40581501b6830ece605d9bf2e159e58c194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#nullable disable

#pragma warning disable CS1591

using System;
using System.Collections.Generic;
using System.Threading;
using MediaBrowser.Model.Entities;

namespace MediaBrowser.Controller.Persistence;

public interface IMediaAttachmentRepository
{
    /// <summary>
    /// Gets the media attachments.
    /// </summary>
    /// <param name="filter">The query.</param>
    /// <returns>IEnumerable{MediaAttachment}.</returns>
    IReadOnlyList<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery filter);

    /// <summary>
    /// Saves the media attachments.
    /// </summary>
    /// <param name="id">The identifier.</param>
    /// <param name="attachments">The attachments.</param>
    /// <param name="cancellationToken">The cancellation token.</param>
    void SaveMediaAttachments(Guid id, IReadOnlyList<MediaAttachment> attachments, CancellationToken cancellationToken);
}