using System.Collections; using SpotifyAPI.Web; namespace Mixonomer.Playlist; public class PlaylistGeneratingContext { public IList> PartTracks { get; set; } public IList LibraryTracks { get; set; } public IEnumerable ToCommonTracks() => PartTracks.Select(x => (CommonTrack)x) .Concat(LibraryTracks.Select(x => (CommonTrack)x)); }