Files
jellyfin-jellyfin-1/MediaBrowser.Controller/Entities/Audio/IHasAlbumArtist.cs

26 lines
591 B
C#
Raw Normal View History

2015-04-09 17:11:57 -04:00
using MediaBrowser.Controller.Library;
2015-03-13 13:25:28 -04:00
using System.Collections.Generic;
namespace MediaBrowser.Controller.Entities.Audio
{
public interface IHasAlbumArtist
{
2014-06-23 12:05:19 -04:00
List<string> AlbumArtists { get; set; }
}
public interface IHasArtist
{
List<string> AllArtists { get; }
2014-09-04 23:48:53 -04:00
2015-03-13 13:25:28 -04:00
List<string> Artists { get; set; }
}
public static class HasArtistExtensions
{
public static bool HasAnyArtist(this IHasArtist hasArtist, string artist)
{
2015-04-09 17:11:57 -04:00
return NameExtensions.EqualsAny(hasArtist.AllArtists, artist);
2015-03-13 13:25:28 -04:00
}
}
}