jellyfin/MediaBrowser.Controller/Chapters/IChapterManager.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2016-10-05 07:15:29 +00:00
using System.Collections.Generic;
2014-06-09 19:16:14 +00:00
using System.Threading;
using System.Threading.Tasks;
2014-06-29 17:35:05 +00:00
using MediaBrowser.Model.Configuration;
2014-06-10 17:36:06 +00:00
using MediaBrowser.Model.Entities;
2014-06-09 19:16:14 +00:00
namespace MediaBrowser.Controller.Chapters
{
/// <summary>
/// Interface IChapterManager
/// </summary>
public interface IChapterManager
{
2014-06-10 17:36:06 +00:00
/// <summary>
/// Gets the chapters.
/// </summary>
/// <param name="itemId">The item identifier.</param>
/// <returns>List{ChapterInfo}.</returns>
IEnumerable<ChapterInfo> GetChapters(string itemId);
/// <summary>
/// Saves the chapters.
/// </summary>
/// <param name="itemId">The item identifier.</param>
/// <param name="chapters">The chapters.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
2016-06-11 20:12:01 +00:00
Task SaveChapters(string itemId, List<ChapterInfo> chapters, CancellationToken cancellationToken);
2014-06-10 17:36:06 +00:00
2014-06-29 17:35:05 +00:00
/// <summary>
/// Gets the configuration.
/// </summary>
/// <returns>ChapterOptions.</returns>
ChapterOptions GetConfiguration();
2014-06-09 19:16:14 +00:00
}
}