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