You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|