2020-11-13 07:13:32 -07:00
|
|
|
using System.Threading;
|
|
|
|
using MediaBrowser.Controller.Session;
|
|
|
|
using MediaBrowser.Model.SyncPlay;
|
|
|
|
|
2020-11-14 15:40:01 -07:00
|
|
|
namespace MediaBrowser.Controller.SyncPlay.PlaybackRequests
|
2020-11-13 07:13:32 -07:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Class PauseGroupRequest.
|
|
|
|
/// </summary>
|
|
|
|
public class PauseGroupRequest : IGroupPlaybackRequest
|
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
|
|
|
public PlaybackRequestType Type { get; } = PlaybackRequestType.Pause;
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
|
|
|
|
{
|
|
|
|
state.HandleRequest(context, state.Type, this, session, cancellationToken);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|