From ee6a46907c843ab31932a653a8a9e9c90cfec04e Mon Sep 17 00:00:00 2001 From: Nadim Ritter Date: Wed, 3 Apr 2024 15:41:14 +0200 Subject: [PATCH] SEBSLI-9 change record 'UsernamePasswordView' to class --- .../weblayer/api/LightController.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java index 96bf02e5..5ee1b3f7 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java @@ -125,8 +125,21 @@ public class LightController { } -record UsernamePasswordView(String username, String password) { +class UsernamePasswordView{ + private final String username; + private final String password; + @JsonCreator - UsernamePasswordView { + public UsernamePasswordView(String username, String password) { + this.username = username; + this.password = password; + } + + public String getUsername() { + return username; + } + + public String getPassword() { + return password; } } \ No newline at end of file