jellyfin/MediaBrowser.Providers/Chapters/ChapterManager.cs

27 lines
655 B
C#
Raw Normal View History

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