cn.jpush.api.common.resp
类 BaseResult

java.lang.Object
  继承者 cn.jpush.api.common.resp.BaseResult
所有已实现的接口:
IRateLimiting
直接已知子类:
AliasDeviceListResult, DefaultResult, MessagesResult, PushResult, ReceivedsResult, TagAliasResult, TagListResult, UsersResult

public abstract class BaseResult
extends Object
implements IRateLimiting


字段摘要
protected static com.google.gson.Gson _gson
           
static int ERROR_CODE_NONE
           
static int ERROR_CODE_OK
           
static String ERROR_MESSAGE_NONE
           
protected static int RESPONSE_OK
           
 
构造方法摘要
BaseResult()
           
 
方法摘要
static
<T extends BaseResult>
T
fromResponse(ResponseWrapper responseWrapper, Class<T> clazz)
           
 String getOriginalContent()
           
 int getRateLimitQuota()
           
 int getRateLimitRemaining()
           
 int getRateLimitReset()
           
 boolean isResultOK()
           
 void setResponseWrapper(ResponseWrapper responseWrapper)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

ERROR_CODE_NONE

public static final int ERROR_CODE_NONE
另请参见:
常量字段值

ERROR_CODE_OK

public static final int ERROR_CODE_OK
另请参见:
常量字段值

ERROR_MESSAGE_NONE

public static final String ERROR_MESSAGE_NONE
另请参见:
常量字段值

RESPONSE_OK

protected static final int RESPONSE_OK
另请参见:
常量字段值

_gson

protected static com.google.gson.Gson _gson
构造方法详细信息

BaseResult

public BaseResult()
方法详细信息

setResponseWrapper

public void setResponseWrapper(ResponseWrapper responseWrapper)

getOriginalContent

public String getOriginalContent()

isResultOK

public boolean isResultOK()

fromResponse

public static <T extends BaseResult> T fromResponse(ResponseWrapper responseWrapper,
                                                    Class<T> clazz)

getRateLimitQuota

public int getRateLimitQuota()
指定者:
接口 IRateLimiting 中的 getRateLimitQuota

getRateLimitRemaining

public int getRateLimitRemaining()
指定者:
接口 IRateLimiting 中的 getRateLimitRemaining

getRateLimitReset

public int getRateLimitReset()
指定者:
接口 IRateLimiting 中的 getRateLimitReset

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2014. All Rights Reserved.