using System;
using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class ReadyGroupRequest.
///
public class ReadyGroupRequest : IGroupPlaybackRequest
{
///
/// Gets or sets when the request has been made by the client.
///
/// The date of the request.
public DateTime When { get; set; }
///
/// Gets or sets the position ticks.
///
/// The position ticks.
public long PositionTicks { get; set; }
///
/// Gets or sets a value indicating whether the client playback is unpaused.
///
/// The client playback status.
public bool IsPlaying { get; set; }
///
/// Gets or sets the playlist item identifier of the playing item.
///
/// The playlist item identifier.
public string PlaylistItemId { get; set; }
///
public PlaybackRequestType Type { get; } = PlaybackRequestType.Ready;
///
public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.Type, this, session, cancellationToken);
}
}
}