public abstract class BaseResult extends java.lang.Object implements IRateLimiting, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.gson.Gson |
_gson |
static int |
ERROR_CODE_NONE |
static int |
ERROR_CODE_OK |
static java.lang.String |
ERROR_MESSAGE_NONE |
protected static int |
RESPONSE_OK |
| Constructor and Description |
|---|
BaseResult() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends BaseResult> |
fromResponse(ResponseWrapper responseWrapper,
java.lang.Class<T> clazz) |
java.lang.String |
getOriginalContent() |
int |
getRateLimitQuota() |
int |
getRateLimitRemaining() |
int |
getRateLimitReset() |
int |
getResponseCode() |
boolean |
isResultOK() |
void |
setResponseWrapper(ResponseWrapper responseWrapper) |
java.lang.String |
toString() |
public static final int ERROR_CODE_NONE
public static final int ERROR_CODE_OK
public static final java.lang.String ERROR_MESSAGE_NONE
protected static final int RESPONSE_OK
protected static com.google.gson.Gson _gson
public void setResponseWrapper(ResponseWrapper responseWrapper)
public java.lang.String getOriginalContent()
public int getResponseCode()
public boolean isResultOK()
public static <T extends BaseResult> T fromResponse(ResponseWrapper responseWrapper, java.lang.Class<T> clazz)
public int getRateLimitQuota()
getRateLimitQuota in interface IRateLimitingpublic int getRateLimitRemaining()
getRateLimitRemaining in interface IRateLimitingpublic int getRateLimitReset()
getRateLimitReset in interface IRateLimitingpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019. All Rights Reserved.