2013-02-21 01:33:05 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2013-10-04 17:04:18 +00:00
|
|
|
|
using System;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2013-03-02 02:44:46 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Library
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class BaseIntroProvider
|
|
|
|
|
/// </summary>
|
2013-02-21 06:52:27 +00:00
|
|
|
|
public interface IIntroProvider
|
2013-02-21 01:33:05 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the intros.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
2013-10-04 17:04:18 +00:00
|
|
|
|
IEnumerable<IntroInfo> GetIntros(BaseItem item, User user);
|
2013-10-04 15:22:03 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-10-04 17:04:18 +00:00
|
|
|
|
/// Gets all intro files.
|
2013-10-04 15:22:03 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>IEnumerable{System.String}.</returns>
|
2013-10-04 17:04:18 +00:00
|
|
|
|
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; }
|
2013-02-21 01:33:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|