2024-06-14 07:23:25 +01:00
|
|
|
using System.Collections;
|
2024-01-23 17:43:25 +00:00
|
|
|
using SpotifyAPI.Web;
|
|
|
|
|
|
|
|
namespace Mixonomer.Playlist;
|
|
|
|
|
|
|
|
public class PlaylistGeneratingContext
|
|
|
|
{
|
|
|
|
public IList<PlaylistTrack<IPlayableItem>> PartTracks { get; set; }
|
|
|
|
public IList<SavedTrack> LibraryTracks { get; set; }
|
2024-06-14 07:23:25 +01:00
|
|
|
|
|
|
|
public IEnumerable<CommonTrack> ToCommonTracks() => PartTracks.Select(x => (CommonTrack)x)
|
|
|
|
.Concat(LibraryTracks.Select(x => (CommonTrack)x));
|
2024-01-23 17:43:25 +00:00
|
|
|
}
|