Search in sources :

Example 1 with BilateralTimeLineDao

use of org.qii.weiciyuan.dao.maintimeline.BilateralTimeLineDao in project weiciyuan by qii.

the class FriendsMsgLoader method get.

private MessageListBean get(String token, String groupId, String sinceId, String maxId) throws WeiboException {
    MainFriendsTimeLineDao dao;
    if (currentGroupId.equals(FriendsTimeLineFragment.BILATERAL_GROUP_ID)) {
        dao = new BilateralTimeLineDao(token);
    } else if (currentGroupId.equals(FriendsTimeLineFragment.ALL_GROUP_ID)) {
        dao = new MainFriendsTimeLineDao(token);
    } else {
        dao = new FriendGroupTimeLineDao(token, currentGroupId);
    }
    dao.setSince_id(sinceId);
    dao.setMax_id(maxId);
    MessageListBean result = null;
    lock.lock();
    try {
        result = dao.getGSONMsgList();
    } finally {
        lock.unlock();
    }
    return result;
}
Also used : MessageListBean(org.qii.weiciyuan.bean.MessageListBean) MainFriendsTimeLineDao(org.qii.weiciyuan.dao.maintimeline.MainFriendsTimeLineDao) FriendGroupTimeLineDao(org.qii.weiciyuan.dao.maintimeline.FriendGroupTimeLineDao) BilateralTimeLineDao(org.qii.weiciyuan.dao.maintimeline.BilateralTimeLineDao)

Aggregations

MessageListBean (org.qii.weiciyuan.bean.MessageListBean)1 BilateralTimeLineDao (org.qii.weiciyuan.dao.maintimeline.BilateralTimeLineDao)1 FriendGroupTimeLineDao (org.qii.weiciyuan.dao.maintimeline.FriendGroupTimeLineDao)1 MainFriendsTimeLineDao (org.qii.weiciyuan.dao.maintimeline.MainFriendsTimeLineDao)1