public abstract class Response extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
raw |
protected com.google.gson.JsonObject |
result |
Constructor and Description |
---|
Response(String response)
Create a new response from the specified JSON encoded string.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getErrors()
Get any errors returned in the response.
|
protected abstract String |
getRoot()
Get the name of the root JSON result
|
String[] |
getWarnings()
Get any warnings returned in the response.
|
boolean |
wasSuccessful()
Returns whether the response was successful (no errors)
|
protected com.google.gson.JsonObject result
protected String raw
public Response(String response)
response
- the JSON encoded stringpublic boolean wasSuccessful()
public String[] getErrors()
public String[] getWarnings()
protected abstract String getRoot()
Copyright © 2016. All Rights Reserved.