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