2020-02-23 09:53:51 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:03:10 +00:00
|
|
|
using System;
|
2019-01-13 19:26:31 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|