public class Response
extends java.lang.Object
Constructor and Description |
---|
Response(com.google.gson.JsonArray httpResponse) |
Response(com.google.gson.JsonObject httpResponse) |
Response(java.lang.String rawReponse) |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonObject |
getJson() |
net.md_5.bungee.api.chat.TextComponent |
getMCJSON() |
java.lang.String |
getMCMessage()
Deprecated.
|
java.lang.String |
getMessage() |
java.lang.Boolean |
getStatus() |
void |
setJson(com.google.gson.JsonObject json) |
void |
setMessage(java.lang.String message) |
void |
setStatus(java.lang.Boolean status) |
public Response(com.google.gson.JsonArray httpResponse)
httpResponse
- A JSON array e.g. multiple results from one callpublic Response(com.google.gson.JsonObject httpResponse)
httpResponse
- A JSON object e.g. a single result from one callpublic Response(java.lang.String rawReponse)
rawReponse
- A raw JSON array in string formatpublic com.google.gson.JsonObject getJson()
public void setJson(com.google.gson.JsonObject json)
public java.lang.Boolean getStatus()
public void setStatus(java.lang.Boolean status)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
@Deprecated public java.lang.String getMCMessage()
public net.md_5.bungee.api.chat.TextComponent getMCJSON()