Convert Comments to record

This commit is contained in:
Lncvrt committed 2025-09-21 13:16:00 -07:00
1 parent 7bfa492c02
commit eba02820ca
1 file changed
+1 -6
+1 -6
View File
@@ -16,12 +16,7 @@ import java.util.Base64;
import java.util.List;
@SuppressWarnings("unused")
public class Comments {
private final GDAPI gdapi;
public Comments(GDAPI gdapi) {
this.gdapi = gdapi;
}
public record Comments(GDAPI gdapi) {
public int uploadLevelComment(String comment, int levelID, int completionPercent) throws UnknownErrorException, InvalidResponseException, RequestFailedException {
String encodedComment = Base64.getEncoder().encodeToString(comment.getBytes(StandardCharsets.UTF_8));