Exemplo n.º 1
0
 public IActionResult RemoveSongFromAlbum([FromBody] AlbumSongRemote albumSongRemote)
 {
     RestInitializer.RemoteProvider.RemoveSongFromAlbum(albumSongRemote);
     return(Ok());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Inserts or appends to the queue the given song list.
 /// </summary>
 /// <param name="insert">Whether to insert or append to the queue.</param>
 /// <param name="albumSong">A song to be appended or inserted into the queue.</param>
 /// <returns>A list of queued songs in the current album.</returns>
 public async Task <List <AlbumSongRemote> > Queue(bool insert, AlbumSongRemote albumSong)
 {
     return(await Queue(insert, new List <AlbumSongRemote>(new[] { albumSong })));
 }