RemoveFromPlaylistGroupRequest.cs 975 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Threading;
  3. using MediaBrowser.Controller.Session;
  4. using MediaBrowser.Model.SyncPlay;
  5. namespace MediaBrowser.Controller.SyncPlay
  6. {
  7. /// <summary>
  8. /// Class RemoveFromPlaylistGroupRequest.
  9. /// </summary>
  10. public class RemoveFromPlaylistGroupRequest : IGroupPlaybackRequest
  11. {
  12. /// <summary>
  13. /// Gets the playlist identifiers ot the items.
  14. /// </summary>
  15. /// <value>The playlist identifiers ot the items.</value>
  16. public List<string> PlaylistItemIds { get; } = new List<string>();
  17. /// <inheritdoc />
  18. public PlaybackRequestType Type { get; } = PlaybackRequestType.RemoveFromPlaylist;
  19. /// <inheritdoc />
  20. public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
  21. {
  22. state.HandleRequest(context, state.Type, this, session, cancellationToken);
  23. }
  24. }
  25. }