use of org.qii.weiciyuan.support.error.WeiboException in project weiciyuan by qii.
the class MainFriendsTimeLineDao method getGSONMsgList.
public MessageListBean getGSONMsgList() throws WeiboException {
String json = getMsgListJson();
Gson gson = new Gson();
MessageListBean value = null;
try {
value = gson.fromJson(json, MessageListBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
throw new WeiboException(e.getMessage());
}
if (value != null && value.getItemList().size() > 0) {
TimeLineUtility.filterMessage(value);
TimeLineUtility.filterHomeTimeLineSinaWeiboAd(value);
}
return value;
}
Aggregations