//
// Copyright (c) PlaceholderCompany. All rights reserved.
//
#nullable disable
#pragma warning disable CS1591
using System.Collections.Generic;
using System.Linq;
using MediaBrowser.Controller.Library;
namespace MediaBrowser.Controller.Entities.Audio
{
public interface IHasAlbumArtist
{
IReadOnlyList AlbumArtists { get; set; }
}
public interface IHasArtist
{
///
/// Gets or sets the artists.
///
/// The artists.
IReadOnlyList Artists { get; set; }
}
public static class Extensions
{
public static IEnumerable GetAllArtists(this T item)
where T : IHasArtist, IHasAlbumArtist
{
return item.AlbumArtists.Concat(item.Artists).DistinctNames();
}
}
}