public class Response
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBody()
The raw body received from the API.
|
com.google.gson.JsonElement |
getData()
The data extracted from the JSON data - if the body contained JSON.
|
Request |
getRequest()
The actual Request object used to make this API call.
|
com.google.gson.JsonObject |
getResult()
The parsed JSON received from the API, if the result was JSON.
|
int |
getStatusCode()
The HTTP status code for the response, if any.
|
com.google.gson.JsonElement |
getWarnings()
The warnings received from the API call.
|
boolean |
isParsed()
Wether the raw body has been parsed into JSON.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic int getStatusCode()
public boolean isParsed()
public com.google.gson.JsonObject getResult()
public com.google.gson.JsonElement getData()
public com.google.gson.JsonElement getWarnings()
public java.lang.String getBody()
public Request getRequest()