using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class MovePlaylistItemGroupRequest.
///
public class MovePlaylistItemGroupRequest : IGroupPlaybackRequest
{
///
/// Gets or sets the playlist identifier of the item.
///
/// The playlist identifier of the item.
public string PlaylistItemId { get; set; }
///
/// Gets or sets the new position.
///
/// The new position.
public int NewIndex { get; set; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.MovePlaylistItem;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}