using System; using System.Threading; using MediaBrowser.Model.SyncPlay; using MediaBrowser.Controller.Session; namespace MediaBrowser.Controller.SyncPlay { /// /// Class BufferingDoneGroupRequest. /// public class ReadyGroupRequest : IPlaybackGroupRequest { /// /// 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 the playing item id. /// /// The playing item id. public Guid PlayingItemId { get; set; } /// public PlaybackRequestType Type() { return PlaybackRequestType.Ready; } /// public bool Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken) { return state.HandleRequest(context, false, this, session, cancellationToken); } } }