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