package net.chris54721.openmcauthenticator.responses;

import net.chris54721.openmcauthenticator.OpenMCAuthenticator;

import java.util.Map;

/**
 * Response generated after every request made with private method sendJsonPostRequest.
 * Intended for internal use only.
 *
 * @see OpenMCAuthenticator#sendJsonPostRequest(java.net.URL, String)
 */
public class RequestResponse {

    private int responseCode = -1;
    private Map<String, Object> data;

    public RequestResponse(int responseCode, Map<String, Object> data) {
        this.responseCode = responseCode;
        this.data = data;
    }

    public int getResponseCode() {
        return responseCode;
    }

    public boolean isSuccessful() {
        return responseCode == 200 || responseCode == 204;
    }

    public Map<String, Object> getData() {
        return data;
    }
}

@@ -59,287 +59,60 @@
 ort 
-net.chris54721.openmcauthenticator.OpenMCAuthenticator;%0A%0Aimport java.util.Map;%0A%0A/**%0A * Response generated after every request made with private method sendJsonPostRequest.%0A * Intended for internal use only.%0A *%0A * @see OpenMCAuthenticator#sendJsonPostRequest(java.net.URL, String)
+java.util.Map;%0A%0A/**%0A * Base class for API responses.
 %0A */
@@ -146,18 +146,16 @@
 se %7B%0A%0A  
- 
- 
 private 
@@ -177,18 +177,16 @@
 e = -1;%0A
-  
   privat
@@ -212,26 +212,24 @@
 t%3E data;%0A%0A  
- 
- 
 public Reque
@@ -281,28 +281,24 @@
 ct%3E data) %7B%0A
-    
     this.res
@@ -323,20 +323,16 @@
 seCode;%0A
-    
     this
@@ -345,25 +345,21 @@
 = data;%0A
-  
   %7D%0A%0A
-  
   public
@@ -379,28 +379,24 @@
 nseCode() %7B%0A
-    
     return r
@@ -406,31 +406,27 @@
 onseCode;%0A  
- 
- 
 %7D%0A%0A
-  
   public boo
@@ -443,28 +443,24 @@
 cessful() %7B%0A
-    
     return r
@@ -506,17 +506,13 @@
 04;%0A
-  
   %7D%0A%0A
-  
   pu
@@ -548,20 +548,16 @@
 ata() %7B%0A
-    
     retu
@@ -565,16 +565,14 @@
 n data;%0A
-  
   %7D%0A%7D%0A

Remove unneeded javadoc