#nullable disable
using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class SeekGroupRequest.
///
public class SeekGroupRequest : AbstractPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// The position ticks.
public SeekGroupRequest(long positionTicks)
{
PositionTicks = positionTicks;
}
///
/// Gets the position ticks.
///
/// The position ticks.
public long PositionTicks { get; }
///
public override PlaybackRequestType Action { get; } = PlaybackRequestType.Seek;
///
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(this, context, state.Type, session, cancellationToken);
}
}
}