use of cn.eoe.app.entity.WikiJson in project android-app by eoecn.
the class WikiDao method mapperJson.
public WikiResponseEntity mapperJson(boolean useCache) {
// TODO Auto-generated method stub
WikiJson wikiJson;
try {
String result = RequestCacheUtil.getRequestContent(mActivity, Urls.WIKI_LIST + Utility.getScreenParams(mActivity), Constants.WebSourceType.Json, Constants.DBContentType.Content_list, useCache);
wikiJson = mObjectMapper.readValue(result, new TypeReference<WikiJson>() {
});
if (wikiJson == null) {
return null;
}
this.mWikiResponseEntity = wikiJson.getResponse();
return mWikiResponseEntity;
} catch (JsonParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JsonMappingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
Aggregations