mirror of
https://github.com/kaboomserver/extras.git
synced 2024-10-31 16:59:24 +00:00
Make ProfileResponse a record class
This commit is contained in:
parent
23f20226ec
commit
41f0a14d0f
|
@ -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