mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 15:03:06 +03:00
30 lines
892 B
C#
30 lines
892 B
C#
|
|
#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);
|
||
|
|
}
|