use of cn.eoe.app.entity.BlogsJson in project android-app by eoecn.
the class BlogsDao method mapperJson.
public BlogsResponseEntity mapperJson(boolean useCache) {
BlogsJson blogsJson_;
try {
String result = RequestCacheUtil.getRequestContent(mActivity, Urls.BLOGS_LIST + Utility.getScreenParams(mActivity), Constants.WebSourceType.Json, Constants.DBContentType.Content_list, useCache);
blogsJson_ = mObjectMapper.readValue(result, new TypeReference<BlogsJson>() {
});
if (blogsJson_ == null) {
return null;
}
_blogsResponse = blogsJson_.getResponse();
return _blogsResponse;
} 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