public class DefaultUpdateParser extends AbstractUpdateParser
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultUpdateParser.APIConstant
默认接口的API常量
|
static interface |
DefaultUpdateParser.APIKeyLower
默认接口的API Key【所有接口字段首字母小写】
|
static interface |
DefaultUpdateParser.APIKeyUpper
默认接口的API Key【所有接口字段首字母大写】
|
| Constructor and Description |
|---|
DefaultUpdateParser() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
checkCurrentVersionCode(int updateStatus,
int versionCode)
本地校验版本。当最新版本小于等于应用当前的版本时,不需要更新。
|
UpdateEntity |
parseJson(java.lang.String json)
[同步解析方法]
|
isAsyncParser, parseJsonpublic UpdateEntity parseJson(java.lang.String json) throws java.lang.Exception
IUpdateParser将请求的json结果解析为版本更新信息实体
java.lang.Exceptionprotected int checkCurrentVersionCode(int updateStatus,
int versionCode)
updateStatus - 更新状态versionCode - 云端获取的版本号