af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
// <copyright file="KeyframeManager.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Emby.Server.Implementations.Library;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Jellyfin.MediaEncoding.Keyframes;
|
|
using MediaBrowser.Controller.IO;
|
|
using MediaBrowser.Controller.Persistence;
|
|
|
|
/// <summary>
|
|
/// Manager for Keyframe data.
|
|
/// </summary>
|
|
public class KeyframeManager : IKeyframeManager
|
|
{
|
|
private readonly IKeyframeRepository _repository;
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="KeyframeManager"/> class.
|
|
/// </summary>
|
|
/// <param name="repository">The keyframe repository.</param>
|
|
public KeyframeManager(IKeyframeRepository repository)
|
|
{
|
|
_repository = repository;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IReadOnlyList<KeyframeData> GetKeyframeData(Guid itemId)
|
|
{
|
|
return _repository.GetKeyframeData(itemId);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public async Task SaveKeyframeDataAsync(Guid itemId, KeyframeData data, CancellationToken cancellationToken)
|
|
{
|
|
await _repository.SaveKeyframeDataAsync(itemId, data, cancellationToken).ConfigureAwait(false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public async Task DeleteKeyframeDataAsync(Guid itemId, CancellationToken cancellationToken)
|
|
{
|
|
await _repository.DeleteKeyframeDataAsync(itemId, cancellationToken).ConfigureAwait(false);
|
|
}
|
|
}
|