package io; 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() { return element; } public int getRateLimit() { return this.rateLimit; } public int getRateLimitRemaining() { return this.rateLimitRemaining; } public int getRateLimitReset() { return this.rateLimitReset; } }