2015-04-09 23:11:57 +02:00
|
|
|
|
using MediaBrowser.Controller.Library;
|
2015-03-13 18:25:28 +01:00
|
|
|
|
using System.Collections.Generic;
|
2014-04-07 04:10:38 +02:00
|
|
|
|
|
2013-09-06 21:17:15 +02:00
|
|
|
|
namespace MediaBrowser.Controller.Entities.Audio
|
|
|
|
|
{
|
|
|
|
|
public interface IHasAlbumArtist
|
|
|
|
|
{
|
2017-08-10 20:01:31 +02:00
|
|
|
|
string[] AlbumArtists { get; set; }
|
2013-09-06 21:17:15 +02:00
|
|
|
|
}
|
2013-09-10 20:56:00 +02:00
|
|
|
|
|
|
|
|
|
public interface IHasArtist
|
|
|
|
|
{
|
2014-04-07 04:10:38 +02:00
|
|
|
|
List<string> AllArtists { get; }
|
2014-09-05 05:48:53 +02:00
|
|
|
|
|
2015-03-13 18:25:28 +01:00
|
|
|
|
List<string> Artists { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class HasArtistExtensions
|
|
|
|
|
{
|
|
|
|
|
public static bool HasAnyArtist(this IHasArtist hasArtist, string artist)
|
|
|
|
|
{
|
2015-04-09 23:11:57 +02:00
|
|
|
|
return NameExtensions.EqualsAny(hasArtist.AllArtists, artist);
|
2015-03-13 18:25:28 +01:00
|
|
|
|
}
|
2013-09-10 20:56:00 +02:00
|
|
|
|
}
|
2013-09-06 21:17:15 +02:00
|
|
|
|
}
|