| 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 | ( | T | result,
|  | Cache.Entry | cacheEntry
| ) |  |
| inline private

com.ab.network.toolbox.Response< T >.Response | ( | VolleyError | error | ) |
| inline private

## 成员函数说明

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

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 | ( | T | result,
|  | Cache.Entry | cacheEntry
| ) |  |
| inline static

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.

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

- src/com/ab/network/toolbox/Response.java