25 lines
694 B
C#
25 lines
694 B
C#
|
using System.Threading;
|
||
|
using MediaBrowser.Model.SyncPlay;
|
||
|
using MediaBrowser.Controller.Session;
|
||
|
|
||
|
namespace MediaBrowser.Controller.SyncPlay
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Class PlayGroupRequest.
|
||
|
/// </summary>
|
||
|
public class PlayGroupRequest : IPlaybackGroupRequest
|
||
|
{
|
||
|
/// <inheritdoc />
|
||
|
public PlaybackRequestType Type()
|
||
|
{
|
||
|
return PlaybackRequestType.Play;
|
||
|
}
|
||
|
|
||
|
/// <inheritdoc />
|
||
|
public bool Apply(ISyncPlayStateContext context, ISyncPlayState state, SessionInfo session, CancellationToken cancellationToken)
|
||
|
{
|
||
|
return state.HandleRequest(context, false, this, session, cancellationToken);
|
||
|
}
|
||
|
}
|
||
|
}
|