AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
| Public 成员函数 | 静态 Public 成员函数 | Public 属性 | Private 成员函数 | 所有成员列表
com.ab.network.toolbox.Response< T >类 参考

interface  ErrorListener
 
interface  Listener< T >
 

Public 成员函数

boolean isSuccess ()
 

静态 Public 成员函数

static< T > Response< T > success (T result, Cache.Entry cacheEntry)
 
static< T > Response< T > error (VolleyError error)
 

Public 属性

final T result
 
final Cache.Entry cacheEntry
 
final VolleyError error
 
boolean intermediate = false
 

Private 成员函数

 Response (T result, Cache.Entry cacheEntry)
 
 Response (VolleyError error)
 

详细描述

Encapsulates a parsed response for delivery.

参数
<T>Parsed type of this response

构造及析构函数说明

com.ab.network.toolbox.Response< T >.Response ( result,
Cache.Entry  cacheEntry 
)
inlineprivate
com.ab.network.toolbox.Response< T >.Response ( VolleyError  error)
inlineprivate

成员函数说明

static <T> Response<T> com.ab.network.toolbox.Response< T >.error ( VolleyError  error)
inlinestatic

Returns a failed response containing the given error code and an optional localized message displayed to the user.

boolean com.ab.network.toolbox.Response< T >.isSuccess ( )
inline

Returns whether this response is considered successful.

static <T> Response<T> com.ab.network.toolbox.Response< T >.success ( result,
Cache.Entry  cacheEntry 
)
inlinestatic

Returns a successful response containing the parsed result.

类成员变量说明

final Cache.Entry com.ab.network.toolbox.Response< T >.cacheEntry

Cache metadata for this response, or null in the case of error.

final VolleyError com.ab.network.toolbox.Response< T >.error

Detailed error information if errorCode != OK.

boolean com.ab.network.toolbox.Response< T >.intermediate = false

True if this response was a soft-expired one and a second one MAY be coming.

final T com.ab.network.toolbox.Response< T >.result

Parsed response, or null in the case of error.


该类的文档由以下文件生成: