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