Search in sources :

Example 21 with WeiBoUser

use of org.aisen.weibo.sina.sinasdk.bean.WeiBoUser 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

WeiBoUser (org.aisen.weibo.sina.sinasdk.bean.WeiBoUser)21 TaskException (org.aisen.android.network.task.TaskException)8 StatusContent (org.aisen.weibo.sina.sinasdk.bean.StatusContent)6 ImageConfig (org.aisen.android.component.bitmaploader.core.ImageConfig)4 View (android.view.View)3 ImageView (android.widget.ImageView)3 TextView (android.widget.TextView)3 Friendship (org.aisen.weibo.sina.sinasdk.bean.Friendship)3 Token (org.aisen.weibo.sina.sinasdk.bean.Token)3 Bitmap (android.graphics.Bitmap)2 BitmapDrawable (android.graphics.drawable.BitmapDrawable)2 NonNull (android.support.annotation.NonNull)2 LayoutInflater (android.view.LayoutInflater)2 FrameLayout (android.widget.FrameLayout)2 DialogAction (com.afollestad.materialdialogs.DialogAction)2 MaterialDialog (com.afollestad.materialdialogs.MaterialDialog)2 FadeInDisplayer (org.aisen.android.component.bitmaploader.display.FadeInDisplayer)2 Extra (org.aisen.android.component.orm.extra.Extra)2 StatusComment (org.aisen.weibo.sina.sinasdk.bean.StatusComment)2 Intent (android.content.Intent)1