summaryrefslogtreecommitdiff
path: root/src/io/Response.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/Response.java')
-rw-r--r--src/io/Response.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/io/Response.java b/src/io/Response.java
index 5cc36e1..92b0f0c 100644
--- a/src/io/Response.java
+++ b/src/io/Response.java
@@ -4,38 +4,38 @@ import com.google.gson.JsonElement;
/**
* A response object with the Jsonelement and rate limit values.
- *
+ *
* @author Maurice Laveaux
*/
public class Response {
-
+
private final JsonElement element;
-
+
private final int rateLimitReset;
-
+
private final int rateLimitRemaining;
-
+
private final int rateLimit;
-
+
public Response(JsonElement resp, int rateLimit, int rateLimitRemaining, int rateLimitReset) {
this.element = resp;
this.rateLimit = rateLimit;
this.rateLimitRemaining = rateLimitRemaining;
this.rateLimitReset = rateLimitReset;
}
-
- public JsonElement getResp() {
+
+ public JsonElement getJson() {
return element;
}
-
+
public int getRateLimit() {
return this.rateLimit;
}
-
+
public int getRateLimitRemaining() {
return this.rateLimitRemaining;
}
-
+
public int getRateLimitReset() {
return this.rateLimitReset;
}