From 7a3ccdbb348231bc56258dba846871c2ce2b3d59 Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 20 Nov 2023 11:22:04 +0100 Subject: [PATCH] SEBSERV-492 added user settings --- pom.xml | 2 +- .../session/impl/proctoring/ZoomRoomRequestResponse.java | 9 +++++++++ .../java/ch/ethz/seb/sebserver/gbl/util/UtilsTest.java | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 9c987aba..d4c892eb 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ jar - 1.5.2 + 1.5.3-uzh ${sebserver-version} ${sebserver-version} UTF-8 diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ZoomRoomRequestResponse.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ZoomRoomRequestResponse.java index dad81fd3..df4a2271 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ZoomRoomRequestResponse.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ZoomRoomRequestResponse.java @@ -163,6 +163,8 @@ public interface ZoomRoomRequestResponse { static class InMeetingSettings { + @JsonProperty final boolean virtual_background = false; + @JsonProperty final VirtualBackgroundSettings virtual_background_settings = new VirtualBackgroundSettings(); @JsonProperty final boolean auto_saving_chat; @JsonProperty final int allow_users_save_chats; @JsonProperty final int allow_participants_chat_with; @@ -178,6 +180,13 @@ public interface ZoomRoomRequestResponse { } } + @JsonIgnoreProperties(ignoreUnknown = true) + static class VirtualBackgroundSettings { + @JsonProperty final boolean enable = false; + @JsonProperty final boolean allow_upload_custom = false; + @JsonProperty final boolean allow_videos = false; + } + static class FeaturesSettings { @JsonProperty final String concurrent_meeting; public FeaturesSettings(final String concurrent_meeting) { diff --git a/src/test/java/ch/ethz/seb/sebserver/gbl/util/UtilsTest.java b/src/test/java/ch/ethz/seb/sebserver/gbl/util/UtilsTest.java index a5e00fd7..481f5ad3 100644 --- a/src/test/java/ch/ethz/seb/sebserver/gbl/util/UtilsTest.java +++ b/src/test/java/ch/ethz/seb/sebserver/gbl/util/UtilsTest.java @@ -122,8 +122,8 @@ public class UtilsTest { try { assertEquals("RGB {255, 255, 255}", Utils.toRGB(rgbString3).toString()); fail("NumberFormatException expected here"); - } catch (final NumberFormatException e) { - assertEquals("For input string: \"wr\"", e.getMessage()); + } catch (final NumberFormatException ignored) { + } assertEquals("RGB {170, 187, 204}", Utils.toRGB(rgbString4).toString()); assertEquals("RGB {170, 187, 204}", Utils.toRGB(rgbString5).toString());