类 | |
| 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 |
|
inlineprivate |
|
inlineprivate |
|
inlinestatic |
Returns a failed response containing the given error code and an optional localized message displayed to the user.
|
inline |
Returns whether this response is considered successful.
|
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.
1.8.8