Ejemplo n.º 1
0
 public ActionResult RemoveFromPlaylist([FromRoute] string?playlistId, [FromQuery] string?entryIds)
 {
     _playlistManager.RemoveFromPlaylist(playlistId, RequestHelpers.Split(entryIds, ',', true));
     return(NoContent());
 }
 private void RemoveFromPlaylist(LibraryUserPlaylist playlist, BaseItem[] itemsToRemove)
 {
     _playlistManager.RemoveFromPlaylist(playlist.InternalId,
                                         itemsToRemove.Select(x => x.ListItemEntryId).ToArray());
 }
Ejemplo n.º 3
0
        public void Delete(RemoveFromPlaylist request)
        {
            var task = _playlistManager.RemoveFromPlaylist(request.Id, request.EntryIds.Split(','));

            Task.WaitAll(task);
        }
Ejemplo n.º 4
0
 public void Delete(RemoveFromPlaylist request)
 {
     _playlistManager.RemoveFromPlaylist(request.Id, request.EntryIds.Split(','));
 }