SEBSLI-9 change record 'UsernamePasswordView' to class
This commit is contained in:
parent
afb2685664
commit
ee6a46907c
1 changed files with 15 additions and 2 deletions
|
@ -125,8 +125,21 @@ public class LightController {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
record UsernamePasswordView(String username, String password) {
|
class UsernamePasswordView{
|
||||||
|
private final String username;
|
||||||
|
private final String password;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
UsernamePasswordView {
|
public UsernamePasswordView(String username, String password) {
|
||||||
|
this.username = username;
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsername() {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue