using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class NextTrackGroupRequest.
///
public class NextTrackGroupRequest : IGroupPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// The playing item identifier.
public NextTrackGroupRequest(string playlistItemId)
{
PlaylistItemId = playlistItemId;
}
///
/// Gets the playing item identifier.
///
/// The playing item identifier.
public string PlaylistItemId { get; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.NextTrack;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}