Esempio n. 1
0
        public Task ModifyQueueAsync(RearrangeQueueRequest request)
        {
            QueuedTrack songToBeMoved = Queue[request.OldTrackIndex];

            Queue.RemoveAt(request.OldTrackIndex);
            Queue.Insert(request.NewTrackIndex, songToBeMoved);

            return(Task.CompletedTask);
        }
Esempio n. 2
0
 public async Task ModifyPlaylistAsync(RearrangeQueueRequest request)
 {
     await Playlist.ModifyQueueAsync(request);
 }