Search in sources :

Example 6 with Friendship

use of org.aisen.weibo.sina.sinasdk.bean.Friendship in project AisenWeiBo by wangdan.

the class FollowersDB method findCacheData.

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public IResult findCacheData(Setting action, Params params) {
    List<WeiBoUser> userList = selectAll();
    if (userList.size() > 0) {
        Friendship users = new Friendship();
        users.setUsers(userList);
        users.setFromCache(true);
        users.setOutofdate(CacheTimeUtils.isOutofdate("Followers", AppContext.getAccount().getUser()));
        users.setNext_cursor(ActivityHelper.getIntShareData(GlobalContext.getInstance(), "Followers" + AppContext.getAccount().getUser().getIdstr(), 0));
        return users;
    }
    return null;
}
Also used : Friendship(org.aisen.weibo.sina.sinasdk.bean.Friendship) WeiBoUser(org.aisen.weibo.sina.sinasdk.bean.WeiBoUser)

Aggregations

Friendship (org.aisen.weibo.sina.sinasdk.bean.Friendship)6 WeiBoUser (org.aisen.weibo.sina.sinasdk.bean.WeiBoUser)3