From 8fb5519f4d39f3bb0470dd0cfe04d7a1d21a31e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Wed, 14 Jul 2021 11:59:06 +0200 Subject: [PATCH] SEBWIN-450: Added missing mapping for receive audio and video configuration values. --- .../DataMapping/ProctoringDataMapper.cs | 22 +++++++++++++++++++ .../ConfigurationData/Keys.cs | 2 ++ 2 files changed, 24 insertions(+) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs index c270a095..77f600f2 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataMapping/ProctoringDataMapper.cs @@ -101,6 +101,12 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping case Keys.Proctoring.Zoom.MeetingNumber: MapZoomMeetingNumber(settings, value); break; + case Keys.Proctoring.Zoom.ReceiveAudio: + MapZoomReceiveAudio(settings, value); + break; + case Keys.Proctoring.Zoom.ReceiveVideo: + MapZoomReceiveVideo(settings, value); + break; case Keys.Proctoring.Zoom.SendAudio: MapZoomSendAudio(settings, value); break; @@ -365,6 +371,22 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping } } + private void MapZoomReceiveAudio(AppSettings settings, object value) + { + if (value is bool receive) + { + settings.Proctoring.Zoom.ReceiveAudio = receive; + } + } + + private void MapZoomReceiveVideo(AppSettings settings, object value) + { + if (value is bool receive) + { + settings.Proctoring.Zoom.ReceiveVideo = receive; + } + } + private void MapZoomSendAudio(AppSettings settings, object value) { if (value is bool send) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs index 52d3cde4..44eb3188 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs @@ -259,6 +259,8 @@ namespace SafeExamBrowser.Configuration.ConfigurationData internal const string AudioMuted = "zoomAudioMuted"; internal const string Enabled = "zoomEnable"; internal const string MeetingNumber = "zoomRoom"; + internal const string ReceiveAudio = "zoomReceiveAudio"; + internal const string ReceiveVideo = "zoomReceiveVideo"; internal const string SendAudio = "zoomSendAudio"; internal const string SendVideo = "zoomSendVideo"; internal const string Signature = "zoomToken";