using System;
using System.Threading;
using MediaBrowser.Model.SyncPlay;
using MediaBrowser.Controller.Session;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class PlayGroupRequest.
///
public class PlayGroupRequest : IPlaybackGroupRequest
{
///
/// Gets or sets the playing queue.
///
/// The playing queue.
public Guid[] PlayingQueue { get; set; }
///
/// 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 GetRequestType()
{
return PlaybackRequestType.Play;
}
///
public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken);
}
}
}