Convert Comments to record
This commit is contained in:
1 file changed
+1
-6
@@ -16,12 +16,7 @@ import java.util.Base64;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public class Comments {
|
public record Comments(GDAPI gdapi) {
|
||||||
private final GDAPI gdapi;
|
|
||||||
|
|
||||||
public Comments(GDAPI gdapi) {
|
|
||||||
this.gdapi = gdapi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int uploadLevelComment(String comment, int levelID, int completionPercent) throws UnknownErrorException, InvalidResponseException, RequestFailedException {
|
public int uploadLevelComment(String comment, int levelID, int completionPercent) throws UnknownErrorException, InvalidResponseException, RequestFailedException {
|
||||||
String encodedComment = Base64.getEncoder().encodeToString(comment.getBytes(StandardCharsets.UTF_8));
|
String encodedComment = Base64.getEncoder().encodeToString(comment.getBytes(StandardCharsets.UTF_8));
|
||||||
|
|||||||
Reference in new issue
Block a user