2021-05-06 22:39:20 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-11-13 14:13:32 +00:00
|
|
|
using System.Threading;
|
|
|
|
using MediaBrowser.Controller.Session;
|
|
|
|
using MediaBrowser.Model.SyncPlay;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.SyncPlay
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Interface IGroupPlaybackRequest.
|
|
|
|
/// </summary>
|
2020-11-28 15:03:02 +00:00
|
|
|
public interface IGroupPlaybackRequest : ISyncPlayRequest
|
2020-11-13 14:13:32 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the playback request type.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The playback request type.</returns>
|
2020-11-28 15:03:02 +00:00
|
|
|
PlaybackRequestType Action { get; }
|
2020-11-13 14:13:32 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Applies the request to a group.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="context">The context of the state.</param>
|
|
|
|
/// <param name="state">The current state.</param>
|
|
|
|
/// <param name="session">The session.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
void Apply(IGroupStateContext context, IGroupState state, SessionInfo session, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|