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 : AbstractPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// The playlist ids of the items to remove.
public RemoveFromPlaylistGroupRequest(IReadOnlyList items)
{
PlaylistItemIds = items ?? Array.Empty();
}
///
/// Gets the playlist identifiers ot the items.
///
/// The playlist identifiers ot the items.
public IReadOnlyList PlaylistItemIds { get; }
///
public override PlaybackRequestType Action { get; } = PlaybackRequestType.RemoveFromPlaylist;
///
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(this, context, state.Type, session, cancellationToken);
}
}
}