forked from kaboomserver/extras
Make ProfileResponse a record class
This commit is contained in:
parent
23f20226ec
commit
41f0a14d0f
1 changed files with 1 additions and 18 deletions
|
@ -1,20 +1,3 @@
|
|||
package pw.kaboom.extras.skin.response;
|
||||
|
||||
public class ProfileResponse {
|
||||
|
||||
public ProfileResponse(String name, String id) {
|
||||
this.name = name;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
private final String name;
|
||||
private final String id;
|
||||
|
||||
public String name() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String id() {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
public record ProfileResponse(String name, String id) {}
|
||||
|
|
Loading…
Reference in a new issue