using System;
using System.Collections.Generic;
using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class RemoveFromPlaylistGroupRequest.
///
public class RemoveFromPlaylistGroupRequest : IGroupPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// The playlist ids of the items to remove.
public RemoveFromPlaylistGroupRequest(string[] items)
{
PlaylistItemIds = items ?? Array.Empty();
}
///
/// Gets the playlist identifiers ot the items.
///
/// The playlist identifiers ot the items.
public IReadOnlyList PlaylistItemIds { get; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.RemoveFromPlaylist;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}