using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
{
///
/// Class IgnoreWaitGroupRequest.
///
public class IgnoreWaitGroupRequest : AbstractPlaybackRequest
{
///
/// Initializes a new instance of the class.
///
/// Whether the client should be ignored.
public IgnoreWaitGroupRequest(bool ignoreWait)
{
IgnoreWait = ignoreWait;
}
///
/// Gets a value indicating whether the client should be ignored.
///
/// The client group-wait status.
public bool IgnoreWait { get; }
///
public override PlaybackRequestType Action { get; } = PlaybackRequestType.IgnoreWait;
///
public override void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(this, context, state.Type, session, cancellationToken);
}
}
}