Make ProfileResponse a record class

This commit is contained in:
Allink 2023-04-02 00:27:41 +01:00
parent 23f20226ec
commit 41f0a14d0f
No known key found for this signature in database

View file

@ -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) {}