mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
OpenAPI / OpenAPI - HEAD (push) Waiting to run
OpenAPI / OpenAPI - BASE (push) Waiting to run
OpenAPI / OpenAPI - Difference (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
Project Automation / Project board (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Jellyfin.MediaEncoding.Keyframes;
|
|
|
|
namespace MediaBrowser.Controller.Persistence;
|
|
|
|
/// <summary>
|
|
/// Provides methods for accessing keyframe data.
|
|
/// </summary>
|
|
public interface IKeyframeRepository
|
|
{
|
|
/// <summary>
|
|
/// Gets the keyframe data.
|
|
/// </summary>
|
|
/// <param name="itemId">The item id.</param>
|
|
/// <returns>The keyframe data.</returns>
|
|
IReadOnlyList<KeyframeData> GetKeyframeData(Guid itemId);
|
|
|
|
/// <summary>
|
|
/// Saves the keyframe data.
|
|
/// </summary>
|
|
/// <param name="itemId">The item id.</param>
|
|
/// <param name="data">The keyframe data.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>The task object representing the asynchronous operation.</returns>
|
|
Task SaveKeyframeDataAsync(Guid itemId, KeyframeData data, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Deletes the keyframe data.
|
|
/// </summary>
|
|
/// <param name="itemId">The item id.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>The task object representing the asynchronous operation.</returns>
|
|
Task DeleteKeyframeDataAsync(Guid itemId, CancellationToken cancellationToken);
|
|
}
|