using System;
using System.Threading;
using MediaBrowser.Model.SyncPlay;
using MediaBrowser.Controller.Session;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class QueueGroupRequest.
///
public class QueueGroupRequest : IPlaybackGroupRequest
{
///
/// Gets or sets the items to queue.
///
/// The items to queue.
public Guid[] ItemIds { get; set; }
///
/// Gets or sets the mode in which to add the new items.
///
/// The mode.
public string Mode { get; set; }
///
public PlaybackRequestType GetRequestType()
{
return PlaybackRequestType.Queue;
}
///
public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken);
}
}
}