Restore SEBPatch
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event handler used to indicate that a lock screen instruction has been received.
|
||||
/// </summary>
|
||||
public delegate void LockScreenRequestedEventHandler(string message);
|
||||
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all parameters for a proctoring instruction received by the <see cref="IServerProxy"/>.
|
||||
/// </summary>
|
||||
public abstract class InstructionEventArgs
|
||||
{
|
||||
public InstructionMethod Method { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all possible methods for a proctoring instruction.
|
||||
/// </summary>
|
||||
public enum InstructionMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// Instructs to start proctoring resp. join a proctoring event or session.
|
||||
/// </summary>
|
||||
Join,
|
||||
|
||||
/// <summary>
|
||||
/// Instructs to stop proctoring resp. leave a proctoring event or session.
|
||||
/// </summary>
|
||||
Leave
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the parameters of a proctoring instruction for provider Jitsi Meet.
|
||||
/// </summary>
|
||||
public class JitsiMeetInstruction : InstructionEventArgs
|
||||
{
|
||||
public string RoomName { get; set; }
|
||||
public string ServerUrl { get; set; }
|
||||
public string Token { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Event handler used to indicate that proctoring configuration data has been received.
|
||||
/// </summary>
|
||||
public delegate void ProctoringConfigurationReceivedEventHandler(bool allowChat, bool receiveAudio, bool receiveVideo);
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Event handler used to indicate that a proctoring instruction has been received.
|
||||
/// </summary>
|
||||
public delegate void ProctoringInstructionReceivedEventHandler(InstructionEventArgs args);
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the parameters of a proctoring instruction for the screen proctoring implementation.
|
||||
/// </summary>
|
||||
public class ScreenProctoringInstruction : InstructionEventArgs
|
||||
{
|
||||
public string ClientId { get; set; }
|
||||
public string ClientSecret { get; set; }
|
||||
public string GroupId { get; set; }
|
||||
public string ServiceUrl { get; set; }
|
||||
public string SessionId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events.Proctoring
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the parameters of a proctoring instruction for provider Zoom.
|
||||
/// </summary>
|
||||
public class ZoomInstruction : InstructionEventArgs
|
||||
{
|
||||
public string MeetingNumber { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string SdkKey { get; set; }
|
||||
public string Signature { get; set; }
|
||||
public string Subject { get; set; }
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// The default event handler for server events.
|
||||
/// </summary>
|
||||
public delegate void ServerEventHandler();
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2024 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/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Server.Contracts.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event handler used to indicate that a termination instruction has been detected.
|
||||
/// </summary>
|
||||
public delegate void TerminationRequestedEventHandler();
|
||||
}
|
Reference in New Issue
Block a user