use of org.qii.weiciyuan.bean.TopicResultListBean in project weiciyuan by qii.
the class SearchTopicDao method getGSONMsgList.
public TopicResultListBean getGSONMsgList() throws WeiboException {
String json = getMsgListJson();
Gson gson = new Gson();
TopicResultListBean value = null;
try {
value = gson.fromJson(json, TopicResultListBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
return null;
}
if (value != null && value.getStatuses() != null && value.getStatuses().size() > 0) {
List<MessageBean> msgList = value.getStatuses();
Iterator<MessageBean> iterator = msgList.iterator();
while (iterator.hasNext()) {
MessageBean msg = iterator.next();
if (msg.getUser() == null) {
iterator.remove();
} else {
msg.getListViewSpannableString();
TimeUtility.dealMills(msg);
}
}
}
return value;
}
use of org.qii.weiciyuan.bean.TopicResultListBean in project weiciyuan by qii.
the class SearchTopicByNameLoader method loadData.
public TopicResultListBean loadData() throws WeiboException {
SearchTopicDao dao = new SearchTopicDao(token, searchWord);
dao.setPage(page);
TopicResultListBean result = null;
lock.lock();
try {
result = dao.getGSONMsgList();
} finally {
lock.unlock();
}
return result;
}
Aggregations