mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
27 lines
686 B
C#
27 lines
686 B
C#
#pragma warning disable CS1591
|
|
#pragma warning disable SA1600
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using MediaBrowser.Controller.Chapters;
|
|
using MediaBrowser.Controller.Persistence;
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
namespace MediaBrowser.Providers.Chapters
|
|
{
|
|
public class ChapterManager : IChapterManager
|
|
{
|
|
private readonly IItemRepository _itemRepo;
|
|
|
|
public ChapterManager(IItemRepository itemRepo)
|
|
{
|
|
_itemRepo = itemRepo;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public void SaveChapters(Guid itemId, IReadOnlyList<ChapterInfo> chapters)
|
|
{
|
|
_itemRepo.SaveChapters(itemId, chapters);
|
|
}
|
|
}
|
|
}
|