aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/IMediaAttachmentManager.cs
blob: 210d80afa2146b5d365b464e25430d2749c2aad1 (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
29
#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 IMediaAttachmentManager
{

    /// <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);
}