public class APIResponse
extends java.lang.Object
Constructor and Description |
---|
APIResponse(java.lang.String jsonContent,
java.lang.String lastModified,
int responseCode)
Creates an APIResponse object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJson()
|
java.lang.String |
getLastModified()
|
int |
getResponseCode()
|
public APIResponse(java.lang.String jsonContent, java.lang.String lastModified, int responseCode)
jsonContent
- JSON data returned by the APIlastModified
- The Last-Modified
response headerresponseCode
- The HTTP response codepublic java.lang.String getJson()
responseCode
is not 200.
public java.lang.String getLastModified()
public int getResponseCode()
If-Modified-Since
header is used, 401 if no TBA com.thebluealliance.api.v3 API Key was provided,
or it is not valid, or 404 if
the URL or parameter(s) provided is invalid