public class APINode extends Object implements APIResponse
| Modifier and Type | Field and Description |
|---|---|
protected APIContext |
context |
protected String |
rawValue |
| Constructor and Description |
|---|
APINode() |
| Modifier and Type | Method and Description |
|---|---|
APIContext |
getContext() |
APIException |
getException() |
String |
getId() |
String |
getRawResponse() |
com.google.gson.JsonObject |
getRawResponseAsJsonObject() |
String |
getRawValue() |
APINode |
head() |
static APINode |
loadJSON(String json,
APIContext context) |
static APINodeList<APINode> |
parseResponse(String json,
APIContext context,
APIRequest<APINode> request) |
void |
setContext(APIContext context) |
String |
toString() |
protected APIContext context
protected String rawValue
public static APINode loadJSON(String json, APIContext context)
public APIContext getContext()
public void setContext(APIContext context)
public String getId()
public String getRawValue()
public String getRawResponse()
getRawResponse in interface APIResponsepublic com.google.gson.JsonObject getRawResponseAsJsonObject()
getRawResponseAsJsonObject in interface APIResponsepublic APINode head()
head in interface APIResponsepublic static APINodeList<APINode> parseResponse(String json, APIContext context, APIRequest<APINode> request) throws APIException.MalformedResponseException
public APIException getException()
getException in interface APIResponseCopyright © 2018. All rights reserved.