IRateLimiting, java.io.SerializableDefaultResultpublic abstract class BaseResult extends java.lang.Object implements IRateLimiting, java.io.Serializable
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
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 |
| 构造器 | 说明 |
|---|---|
BaseResult() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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 在接口中 IRateLimitingpublic int getRateLimitRemaining()
getRateLimitRemaining 在接口中 IRateLimitingpublic int getRateLimitReset()
getRateLimitReset 在接口中 IRateLimitingpublic java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2018. All Rights Reserved.