SEBSLI-9 change record 'UsernamePasswordView' to class

This commit is contained in:
Nadim Ritter 2024-04-03 15:41:14 +02:00
parent afb2685664
commit ee6a46907c

View file

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