using System.Threading;
using MediaBrowser.Model.SyncPlay;
using MediaBrowser.Controller.Session;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Class SetRepeatModeGroupRequest.
///
public class SetRepeatModeGroupRequest : IPlaybackGroupRequest
{
///
/// Gets or sets the repeat mode.
///
/// The repeat mode.
public string Mode { get; set; }
///
public PlaybackRequestType GetRequestType()
{
return PlaybackRequestType.SetRepeatMode;
}
///
public void Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
{
state.HandleRequest(context, state.GetGroupState(), this, session, cancellationToken);
}
}
}