IIntroProvider.cs 942 B

12345678910111213141516171819202122232425262728293031323334
  1. #nullable disable
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MediaBrowser.Controller.Entities;
  5. namespace MediaBrowser.Controller.Library
  6. {
  7. /// <summary>
  8. /// Class BaseIntroProvider.
  9. /// </summary>
  10. public interface IIntroProvider
  11. {
  12. /// <summary>
  13. /// Gets the intros.
  14. /// </summary>
  15. /// <param name="item">The item.</param>
  16. /// <param name="user">The user.</param>
  17. /// <returns>IEnumerable{System.String}.</returns>
  18. Task<IEnumerable<IntroInfo>> GetIntros(BaseItem item, Jellyfin.Data.Entities.User user);
  19. /// <summary>
  20. /// Gets all intro files.
  21. /// </summary>
  22. /// <returns>IEnumerable{System.String}.</returns>
  23. IEnumerable<string> GetAllIntroFiles();
  24. /// <summary>
  25. /// Gets the name.
  26. /// </summary>
  27. /// <value>The name.</value>
  28. string Name { get; }
  29. }
  30. }