public abstract class BaseSearchResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
size
本次返回结果数量
|
int |
status
服务器返回状态:返回值说明请见本类中各状态码的说明
|
static int |
STATUS_CODE_NETWORK_ERROR
网络错误:-3
|
static int |
STATUS_CODE_NETWORK_TIME_OUT
网络超时:-2
|
static int |
STATUS_CODE_PARAM_ERROR
参数错误:2
|
static int |
STATUS_CODE_PERMISSION_UNFINISHED
鉴权失败:-4 还未完成鉴权,请在鉴权通过后重试
|
static int |
STATUS_CODE_RESULT_NOTFOUND
未找到结果:-1
|
static int |
STATUS_CODE_SEARVER_ERROR
服务器内部错误:1
|
static int |
STATUS_CODE_SUCCEED
服务器返回状态:0:正常;
|
int |
total
检索结果总数
|
Constructor and Description |
---|
BaseSearchResult() |
Modifier and Type | Method and Description |
---|---|
void |
parseFromJSON(JSONObject jo) |
public static final int STATUS_CODE_SUCCEED
public static final int STATUS_CODE_RESULT_NOTFOUND
public static final int STATUS_CODE_NETWORK_ERROR
public static final int STATUS_CODE_NETWORK_TIME_OUT
public static final int STATUS_CODE_PERMISSION_UNFINISHED
public static final int STATUS_CODE_SEARVER_ERROR
public static final int STATUS_CODE_PARAM_ERROR
public int status
public int size
public int total