using System; using System.Threading; using MediaBrowser.Model.SyncPlay; using MediaBrowser.Controller.Session; namespace MediaBrowser.Controller.SyncPlay { /// /// Class BufferGroupRequest. /// public class BufferGroupRequest : 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 client playback status. /// /// 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 GetRequestType() { return PlaybackRequestType.Buffer; } /// public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken) { state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken); } } }