using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class PingGroupRequest.
///
public class PingGroupRequest : IGroupPlaybackRequest
{
///
/// Gets or sets the ping time.
///
/// The ping time.
public long Ping { get; set; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.Ping;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}