mirror of
https://github.com/kaboomserver/extras.git
synced 2025-02-11 03:29:50 +00:00
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;
|
package pw.kaboom.extras.skin.response;
|
||||||
|
|
||||||
public class ProfileResponse {
|
public record ProfileResponse(String name, String id) {}
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue