using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
namespace MediaBrowser.Controller.Entities.Audio
{
///
/// Class MusicAlbum
///
public class MusicAlbum : Folder, IHasAlbumArtist, IHasArtist, IHasMusicGenres, IHasLookupInfo
{
public List SoundtrackIds { get; set; }
public MusicAlbum()
{
SoundtrackIds = new List();
Artists = new List();
AlbumArtists = new List();
}
[IgnoreDataMember]
public override bool SupportsAddingToPlaylist
{
get { return true; }
}
[IgnoreDataMember]
public MusicArtist MusicArtist
{
get
{
return Parents.OfType().FirstOrDefault();
}
}
[IgnoreDataMember]
public List AllArtists
{
get
{
var list = AlbumArtists.ToList();
list.AddRange(Artists);
return list;
}
}
[IgnoreDataMember]
public string AlbumArtist
{
get { return AlbumArtists.FirstOrDefault(); }
}
public List AlbumArtists { get; set; }
///
/// Gets the tracks.
///
/// The tracks.
public IEnumerable