/*
* Copyright (c) 2025 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using SafeExamBrowser.Server.Contracts.Events;
using SafeExamBrowser.Settings.Server;
namespace SafeExamBrowser.Server.Contracts
{
///
/// Provides invigilation functionality for server sessions.
///
public interface IInvigilator
{
///
/// Indicates whether the hand is currently raised.
///
bool IsHandRaised { get; }
///
/// Fired when the hand has been lowered.
///
event InvigilationEventHandler HandLowered;
///
/// Fired when the hand has been raised.
///
event InvigilationEventHandler HandRaised;
///
/// Initializes the invigilation functionality according to the given settings.
///
void Initialize(InvigilationSettings settings);
///
/// Lowers the hand.
///
void LowerHand();
///
/// Raises the hand, optionally with the given message.
///
void RaiseHand(string message = default);
}
}