#nullable disable
using System;
using System.Collections.Generic;
using System.Threading;
using MediaBrowser.Controller.Session;
using MediaBrowser.Controller.SyncPlay.Requests;
using MediaBrowser.Model.SyncPlay;
namespace MediaBrowser.Controller.SyncPlay
{
///
/// Interface ISyncPlayManager.
///
public interface ISyncPlayManager
{
///
/// Creates a new group.
///
/// The session that's creating the group.
/// The request.
/// The cancellation token.
void NewGroup(SessionInfo session, NewGroupRequest request, CancellationToken cancellationToken);
///
/// Adds the session to a group.
///
/// The session.
/// The request.
/// The cancellation token.
void JoinGroup(SessionInfo session, JoinGroupRequest request, CancellationToken cancellationToken);
///
/// Removes the session from a group.
///
/// The session.
/// The request.
/// The cancellation token.
void LeaveGroup(SessionInfo session, LeaveGroupRequest request, CancellationToken cancellationToken);
///
/// Gets list of available groups for a session.
///
/// The session.
/// The request.
/// The list of available groups.
List ListGroups(SessionInfo session, ListGroupsRequest request);
///
/// Handle a request by a session in a group.
///
/// The session.
/// The request.
/// The cancellation token.
void HandleRequest(SessionInfo session, IGroupPlaybackRequest request, CancellationToken cancellationToken);
///
/// Checks whether a user has an active session using SyncPlay.
///
/// The user identifier to check.
/// true if the user is using SyncPlay; false otherwise.
bool IsUserActive(Guid userId);
}
}