aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Audio/IHasAlbumArtist.cs
blob: a7c914664e251f777215cf936aedf8602ec044ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using MediaBrowser.Controller.Library;
using System.Collections.Generic;

namespace MediaBrowser.Controller.Entities.Audio
{
    public interface IHasAlbumArtist
    {
        List<string> AlbumArtists { get; set; }
    }

    public interface IHasArtist
    {
        List<string> AllArtists { get; }

        List<string> Artists { get; set; }
    }

    public static class HasArtistExtensions
    {
        public static bool HasAnyArtist(this IHasArtist hasArtist, string artist)
        {
            return NameExtensions.EqualsAny(hasArtist.AllArtists, artist);
        }
    }
}