mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 12:28:19 +02:00
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using MediaBrowser.Controller.Entities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
{
|
|
/// <summary>
|
|
/// Class BaseIntroProvider
|
|
/// </summary>
|
|
public interface IIntroProvider
|
|
{
|
|
/// <summary>
|
|
/// Gets the intros.
|
|
/// </summary>
|
|
/// <param name="item">The item.</param>
|
|
/// <param name="user">The user.</param>
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
|
IEnumerable<IntroInfo> GetIntros(BaseItem item, User user);
|
|
|
|
/// <summary>
|
|
/// Gets all intro files.
|
|
/// </summary>
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
|
IEnumerable<string> GetAllIntroFiles();
|
|
}
|
|
|
|
public class IntroInfo
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the path.
|
|
/// </summary>
|
|
/// <value>The path.</value>
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the item id.
|
|
/// </summary>
|
|
/// <value>The item id.</value>
|
|
public Guid? ItemId { get; set; }
|
|
}
|
|
}
|