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