use of org.qii.weiciyuan.bean.ShareListBean in project weiciyuan by qii.
the class ShareShortUrlTimeLineDao method getGSONMsgList.
public ShareListBean getGSONMsgList() throws WeiboException {
String json = getMsgListJson();
Gson gson = new Gson();
ShareListBean value = null;
try {
value = gson.fromJson(json, ShareListBean.class);
} catch (JsonSyntaxException e) {
AppLogger.e(e.getMessage());
}
if (value != null) {
Iterator<MessageBean> iterator = value.getItemList().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.ShareListBean in project weiciyuan by qii.
the class BrowserShareMsgLoader method loadData.
public ShareListBean loadData() throws WeiboException {
ShareShortUrlTimeLineDao dao = new ShareShortUrlTimeLineDao(token, url);
dao.setMaxId(maxId);
ShareListBean result = null;
lock.lock();
try {
result = dao.getGSONMsgList();
} finally {
lock.unlock();
}
return result;
}
Aggregations