using System; using System.Collections.Generic; using System.Threading; using MediaBrowser.Controller.Session; using MediaBrowser.Model.SyncPlay; namespace MediaBrowser.Controller.SyncPlay { /// /// Class QueueGroupRequest. /// public class QueueGroupRequest : IGroupPlaybackRequest { /// /// Gets the items to queue. /// /// The items to queue. public List ItemIds { get; } = new List(); /// /// Gets or sets the mode in which to add the new items. /// /// The mode. public string Mode { get; set; } /// public PlaybackRequestType Type { get; } = PlaybackRequestType.Queue; /// public void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken) { state.HandleRequest(context, state.Type, this, session, cancellationToken); } } }