#nullable disable
using System;
using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class SetPlaylistItemGroupRequest.
///
public class SetPlaylistItemGroupRequest : AbstractPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// The playlist identifier of the item.
public SetPlaylistItemGroupRequest(Guid playlistItemId)
{
PlaylistItemId = playlistItemId;
}
///
/// Gets the playlist identifier of the playing item.
///
/// The playlist identifier of the playing item.
public Guid PlaylistItemId { get; }
///
public override PlaybackRequestType Action { get; } = PlaybackRequestType.SetPlaylistItem;
///
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(this, context, state.Type, session, cancellationToken);
}
}
}