using System; using System.Collections.Generic; using System.Threading; using MediaBrowser.Controller.Session; using MediaBrowser.Model.SyncPlay; namespace MediaBrowser.Controller.SyncPlay { /// /// Class PlayGroupRequest. /// public class PlayGroupRequest : IGroupPlaybackRequest { /// /// Gets the playing queue. /// /// The playing queue. public List PlayingQueue { get; } = new List(); /// /// Gets or sets the playing item from the queue. /// /// The playing item. public int PlayingItemPosition { get; set; } /// /// Gets or sets the start position ticks. /// /// The start position ticks. public long StartPositionTicks { get; set; } /// public PlaybackRequestType Type { get; } = PlaybackRequestType.Play; /// public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken) { state.HandleRequest(context, state.Type, this, session, cancellationToken); } } }