IHasAlbumArtist.cs 591 B

12345678910111213141516171819202122232425
  1. using MediaBrowser.Controller.Library;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Controller.Entities.Audio
  4. {
  5. public interface IHasAlbumArtist
  6. {
  7. List<string> AlbumArtists { get; set; }
  8. }
  9. public interface IHasArtist
  10. {
  11. List<string> AllArtists { get; }
  12. List<string> Artists { get; set; }
  13. }
  14. public static class HasArtistExtensions
  15. {
  16. public static bool HasAnyArtist(this IHasArtist hasArtist, string artist)
  17. {
  18. return NameExtensions.EqualsAny(hasArtist.AllArtists, artist);
  19. }
  20. }
  21. }