using System.Threading;
using MediaBrowser.Model.SyncPlay;
using MediaBrowser.Controller.Session;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class UpdatePingGroupRequest.
///
public class PingGroupRequest : IPlaybackGroupRequest
{
///
/// Gets or sets the ping time.
///
/// The ping time.
public long Ping { get; set; }
///
public PlaybackRequestType GetRequestType()
{
return PlaybackRequestType.Ping;
}
///
public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken);
}
}
}