Esempio n. 1
0
        private static PlaylistProfileEntry MakeTopTracksEntry(int printDepth)
        {
            var entry = new PlaylistProfileEntry
            {
                Name = "UserTopTracks",
                Id   = "UserTopTracks",
                Type = SourceTypes.UserFavorite
            };

            Print(printDepth, "How many songs from this source would you like to add (max 50)?");
            entry.Count = ReadCount(printDepth, 50);
            return(entry);
        }
Esempio n. 2
0
        private async Task <PlaylistProfileEntry> MakeArtistEntryAsync(Func <string, int, int, CancellationToken, Task <SpotifyPageItemReference> > stepFunc, string userId, int printDepth, CancellationToken cancellation)
        {
            var entry  = new PlaylistProfileEntry();
            var artist = await GeneratePagedSelectionMenu(stepFunc, userId, 10, 0, "Select artist to seed from:", printDepth, cancellation);

            if (artist == null)
            {
                return(null);
            }
            entry.Name = artist.Name;
            entry.Id   = artist.Id;
            entry.Type = SourceTypes.Artist;
            Print(printDepth, "How many songs from this source would you like to add (max 10)?");
            entry.Count = ReadCount(printDepth, 10);
            return(entry);
        }