jellyfin/MediaBrowser.Providers/Chapters/ChapterManager.cs

27 lines
655 B
C#
Raw Normal View History

2020-02-23 09:53:51 +00:00
#pragma warning disable CS1591
using System;
using System.Collections.Generic;
using MediaBrowser.Controller.Chapters;
2014-06-10 17:36:06 +00:00
using MediaBrowser.Controller.Persistence;
using MediaBrowser.Model.Entities;
2014-06-09 19:16:14 +00:00
namespace MediaBrowser.Providers.Chapters
{
public class ChapterManager : IChapterManager
{
2014-06-10 17:36:06 +00:00
private readonly IItemRepository _itemRepo;
2014-06-09 19:16:14 +00:00
2020-02-23 09:53:51 +00:00
public ChapterManager(IItemRepository itemRepo)
2014-06-09 19:16:14 +00:00
{
2014-06-10 17:36:06 +00:00
_itemRepo = itemRepo;
2014-06-09 19:16:14 +00:00
}
2020-02-23 09:53:51 +00:00
/// <inheritdoc />
public void SaveChapters(Guid itemId, IReadOnlyList<ChapterInfo> chapters)
2014-06-10 17:36:06 +00:00
{
2020-02-23 09:53:51 +00:00
_itemRepo.SaveChapters(itemId, chapters);
2014-06-10 17:36:06 +00:00
}
2014-06-09 19:16:14 +00:00
}
}