IMusicManager.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #nullable disable
  2. #pragma warning disable CA1002, CS1591
  3. using System.Collections.Generic;
  4. using Jellyfin.Data.Entities;
  5. using MediaBrowser.Controller.Dto;
  6. using MediaBrowser.Controller.Entities;
  7. using MediaBrowser.Controller.Entities.Audio;
  8. namespace MediaBrowser.Controller.Library
  9. {
  10. public interface IMusicManager
  11. {
  12. /// <summary>
  13. /// Gets the instant mix from song.
  14. /// </summary>
  15. /// <param name="item">The item to use.</param>
  16. /// <param name="user">The user to use.</param>
  17. /// <param name="dtoOptions">The options to use.</param>
  18. /// <returns>List of items.</returns>
  19. List<BaseItem> GetInstantMixFromItem(BaseItem item, User user, DtoOptions dtoOptions);
  20. /// <summary>
  21. /// Gets the instant mix from artist.
  22. /// </summary>
  23. /// <param name="artist">The artist to use.</param>
  24. /// <param name="user">The user to use.</param>
  25. /// <param name="dtoOptions">The options to use.</param>
  26. /// <returns>List of items.</returns>
  27. List<BaseItem> GetInstantMixFromArtist(MusicArtist artist, User user, DtoOptions dtoOptions);
  28. /// <summary>
  29. /// Gets the instant mix from genre.
  30. /// </summary>
  31. /// <param name="genres">The genres to use.</param>
  32. /// <param name="user">The user to use.</param>
  33. /// <param name="dtoOptions">The options to use.</param>
  34. /// <returns>List of items.</returns>
  35. List<BaseItem> GetInstantMixFromGenres(IEnumerable<string> genres, User user, DtoOptions dtoOptions);
  36. }
  37. }