SEBSERV-492 added user settings

This commit is contained in:
anhefti 2023-11-20 11:22:04 +01:00
parent 51033385fd
commit 7a3ccdbb34
3 changed files with 12 additions and 3 deletions

View file

@ -18,7 +18,7 @@
<packaging>jar</packaging>
<properties>
<sebserver-version>1.5.2</sebserver-version>
<sebserver-version>1.5.3-uzh</sebserver-version>
<build-version>${sebserver-version}</build-version>
<revision>${sebserver-version}</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View file

@ -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) {

View file

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