Restore SEBPatch

This commit is contained in:
2025-06-01 11:44:20 +02:00
commit 8c656e3137
1297 changed files with 142172 additions and 0 deletions

View File

@@ -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; }
}
}

View File

@@ -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
}
}

View File

@@ -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; }
}
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}