.class public Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;
.super Landroid/support/v7/widget/RecyclerView$Adapter;
.source "BaseRecyclerAdapter.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/DynamicBean;",
            ">;"
        }
    .end annotation
.end field

.field private c:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/UserBean;",
            ">;"
        }
    .end annotation
.end field

.field private d:I

.field private e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

.field private f:I

.field private g:I

.field private h:I

.field private i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;)V
    .locals 1

    .line 49
    invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$Adapter;-><init>()V

    .line 40
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    .line 41
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    const/4 v0, 0x0

    .line 42
    iput v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d:I

    const/4 v0, 0x1

    .line 45
    iput v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g:I

    .line 50
    iput-object p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    .line 51
    iput-object p2, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

    .line 52
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object p1

    invoke-virtual {p1, p0}, Lorg/greenrobot/eventbus/EventBus;->a(Ljava/lang/Object;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;I)I
    .locals 0

    .line 37
    iput p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g:I

    return p1
.end method

.method static synthetic a(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;)V
    .locals 0

    .line 37
    invoke-direct {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g()V

    return-void
.end method

.method static synthetic b(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;)Ljava/util/ArrayList;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;)I
    .locals 2

    .line 37
    iget v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g:I

    return v0
.end method

.method static synthetic d(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;)Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;
    .locals 0

    .line 37
    iget-object p0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    return-object p0
.end method

.method private f()Z
    .locals 4

    .line 276
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/ugc/bean/UserBean;

    .line 277
    iget-boolean v2, v2, Lcom/moji/http/ugc/bean/UserBean;->is_following:Z

    if-nez v2, :cond_0

    goto :goto_1

    :cond_0
    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    move v1, v2

    :goto_1
    return v1
.end method

.method private g()V
    .locals 4

    .line 347
    new-instance v0, Lcom/moji/http/ugc/DynamicListResquest;

    iget v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g:I

    const/16 v2, 0x14

    const/4 v3, 0x1

    invoke-direct {v0, v1, v2, v3}, Lcom/moji/http/ugc/DynamicListResquest;-><init>(IIZ)V

    .line 348
    new-instance v1, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter$2;

    invoke-direct {v1, p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter$2;-><init>(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;)V

    invoke-virtual {v0, v1}, Lcom/moji/http/ugc/DynamicListResquest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 133
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public a(I)I
    .locals 3

    .line 138
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eqz v0, :cond_0

    const/16 p1, 0x62

    return p1

    :cond_0
    if-nez p1, :cond_1

    .line 140
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_1

    const/4 p1, 0x0

    return p1

    .line 143
    :cond_1
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/ugc/bean/DynamicBean;

    .line 144
    iget v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->type:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_3

    iget v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->type:I

    const/4 v2, 0x3

    if-ne v0, v2, :cond_2

    goto :goto_0

    .line 157
    :cond_2
    iget p1, p1, Lcom/moji/http/ugc/bean/DynamicBean;->type:I

    return p1

    .line 145
    :cond_3
    :goto_0
    invoke-virtual {p1}, Lcom/moji/http/ugc/bean/DynamicBean;->getImageList()Ljava/util/ArrayList;

    move-result-object v0

    const/16 v2, 0xb

    if-eqz v0, :cond_7

    .line 146
    invoke-virtual {p1}, Lcom/moji/http/ugc/bean/DynamicBean;->getImageList()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eqz v0, :cond_6

    invoke-virtual {p1}, Lcom/moji/http/ugc/bean/DynamicBean;->getImageList()Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ne v0, v1, :cond_4

    goto :goto_1

    .line 148
    :cond_4
    invoke-virtual {p1}, Lcom/moji/http/ugc/bean/DynamicBean;->getImageList()Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    const/4 v0, 0x2

    if-ne p1, v0, :cond_5

    const/16 p1, 0xc

    return p1

    :cond_5
    const/16 p1, 0xd

    return p1

    :cond_6
    :goto_1
    return v2

    :cond_7
    return v2
.end method

.method public a(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 3

    const/4 v0, 0x0

    const/16 v1, 0xb

    if-ne p2, v1, :cond_0

    .line 96
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/DynamicHolder;

    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Lcom/moji/user/R$layout;->item_friend_dynamics_one_pic:I

    invoke-virtual {v1, v2, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

    invoke-direct {p2, p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/DynamicHolder;-><init>(Landroid/view/View;Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;)V

    goto/16 :goto_0

    :cond_0
    const/16 v1, 0xc

    if-ne p2, v1, :cond_1

    .line 98
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/DynamicPic2Holder;

    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Lcom/moji/user/R$layout;->item_friend_dynamics_two_pic:I

    invoke-virtual {v1, v2, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

    invoke-direct {p2, p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/DynamicPic2Holder;-><init>(Landroid/view/View;Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;)V

    goto :goto_0

    :cond_1
    const/16 v1, 0xd

    if-ne p2, v1, :cond_2

    .line 100
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/DynamicPic3Holder;

    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Lcom/moji/user/R$layout;->item_friend_dynamics_more_pic:I

    invoke-virtual {v1, v2, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

    invoke-direct {p2, p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/DynamicPic3Holder;-><init>(Landroid/view/View;Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;)V

    goto :goto_0

    :cond_2
    const/4 v1, 0x2

    if-ne p2, v1, :cond_3

    .line 102
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/RecommendUserHolder;

    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Lcom/moji/user/R$layout;->item_recomend_user_friend_dynamic:I

    invoke-virtual {v1, v2, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

    invoke-direct {p2, p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/RecommendUserHolder;-><init>(Landroid/view/View;Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;)V

    goto :goto_0

    :cond_3
    const/16 v1, 0x63

    if-ne p2, v1, :cond_4

    .line 104
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Lcom/moji/user/R$layout;->header_friend_dynamic_forum_header:I

    invoke-virtual {v1, v2, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->e:Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;

    invoke-direct {p2, p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;-><init>(Landroid/view/View;Lcom/moji/user/frienddynamic/forum/ForumDynamicFragment;)V

    iput-object p2, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    .line 105
    iget-object p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    return-object p1

    :cond_4
    const/16 v1, 0x62

    if-ne p2, v1, :cond_5

    .line 107
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/FooterHolder;

    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    sget v2, Lcom/moji/user/R$layout;->liveview_loading_view:I

    invoke-virtual {v1, v2, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    invoke-direct {p2, p1}, Lcom/moji/user/frienddynamic/forum/holderView/FooterHolder;-><init>(Landroid/view/View;)V

    goto :goto_0

    .line 109
    :cond_5
    new-instance p2, Lcom/moji/user/frienddynamic/forum/holderView/BaseViewHolder;

    new-instance p1, Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a:Landroid/content/Context;

    invoke-direct {p1, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-direct {p2, p1}, Lcom/moji/user/frienddynamic/forum/holderView/BaseViewHolder;-><init>(Landroid/view/View;)V

    :goto_0
    return-object p2
.end method

.method public a(Ljava/lang/String;)Lcom/moji/http/ugc/bean/DynamicBean;
    .locals 3

    .line 232
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/ugc/bean/DynamicBean;

    if-eqz v1, :cond_0

    .line 233
    iget-object v2, v1, Lcom/moji/http/ugc/bean/DynamicBean;->dynamicId:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    return-object v1
.end method

.method public a(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
    .locals 1

    .line 116
    instance-of v0, p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicHolder;

    if-eqz v0, :cond_0

    .line 117
    check-cast p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicHolder;

    .line 118
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/ugc/bean/DynamicBean;

    invoke-virtual {p1, p2}, Lcom/moji/user/frienddynamic/forum/holderView/DynamicHolder;->a(Lcom/moji/http/ugc/bean/DynamicBean;)V

    goto :goto_0

    .line 119
    :cond_0
    instance-of v0, p1, Lcom/moji/user/frienddynamic/forum/holderView/RecommendUserHolder;

    if-eqz v0, :cond_1

    .line 120
    check-cast p1, Lcom/moji/user/frienddynamic/forum/holderView/RecommendUserHolder;

    .line 121
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/ugc/bean/DynamicBean;

    invoke-virtual {p1, p2}, Lcom/moji/user/frienddynamic/forum/holderView/RecommendUserHolder;->a(Lcom/moji/http/ugc/bean/DynamicBean;)V

    goto :goto_0

    .line 122
    :cond_1
    instance-of p2, p1, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    if-eqz p2, :cond_2

    .line 123
    check-cast p1, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    .line 124
    iget-object p2, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    iget v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->f:I

    invoke-virtual {p1, p2, v0}, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;->a(Ljava/util/ArrayList;I)V

    goto :goto_0

    .line 125
    :cond_2
    instance-of p2, p1, Lcom/moji/user/frienddynamic/forum/holderView/FooterHolder;

    if-eqz p2, :cond_3

    .line 126
    check-cast p1, Lcom/moji/user/frienddynamic/forum/holderView/FooterHolder;

    .line 127
    iget p2, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->h:I

    invoke-virtual {p1, p2}, Lcom/moji/user/frienddynamic/forum/holderView/FooterHolder;->c(I)V

    :cond_3
    :goto_0
    return-void
.end method

.method public a(Lcom/moji/http/ugc/bean/DynamicBean;)V
    .locals 2

    .line 224
    iget v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->praiseNum:I

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 225
    iput v1, p1, Lcom/moji/http/ugc/bean/DynamicBean;->praiseNum:I

    goto :goto_0

    .line 227
    :cond_0
    iget v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->praiseNum:I

    add-int/2addr v0, v1

    iput v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->praiseNum:I

    :goto_0
    return-void
.end method

.method public a(Lcom/moji/http/ugc/bean/DynamicListResp;I)V
    .locals 4

    if-eqz p1, :cond_8

    .line 57
    iget v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->fcount:I

    iput v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->f:I

    .line 58
    iget v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d:I

    const/4 v1, 0x1

    if-ne v0, p2, :cond_0

    if-ne p2, v1, :cond_8

    :cond_0
    if-ne p2, v1, :cond_1

    .line 60
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 62
    :cond_1
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_3

    .line 63
    iget-object v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->dynamicBeanList:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    .line 64
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    iget-object v2, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->dynamicBeanList:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 66
    :cond_2
    iget-object v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->userBeanList:Ljava/util/ArrayList;

    if-eqz v0, :cond_4

    iget-object v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->userBeanList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eqz v0, :cond_4

    .line 67
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 68
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    iget-object v2, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->userBeanList:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 69
    new-instance v0, Lcom/moji/http/ugc/bean/DynamicBean;

    invoke-direct {v0}, Lcom/moji/http/ugc/bean/DynamicBean;-><init>()V

    const/16 v2, 0x63

    .line 70
    iput v2, v0, Lcom/moji/http/ugc/bean/DynamicBean;->type:I

    .line 71
    iget-object v2, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    const/4 v3, 0x0

    invoke-virtual {v2, v3, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_0

    .line 74
    :cond_3
    iget-object v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->dynamicBeanList:Ljava/util/ArrayList;

    if-eqz v0, :cond_4

    .line 75
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    iget-object v2, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->dynamicBeanList:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 79
    :cond_4
    :goto_0
    iget-object v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->userBeanList:Ljava/util/ArrayList;

    if-eqz v0, :cond_5

    iget-object v0, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->userBeanList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_5

    .line 80
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 81
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    iget-object p1, p1, Lcom/moji/http/ugc/bean/DynamicListResp;->userBeanList:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 83
    :cond_5
    iput p2, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d:I

    .line 84
    iget p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d:I

    if-eqz p1, :cond_6

    iget p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d:I

    if-ne p1, v1, :cond_7

    .line 85
    :cond_6
    iput v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g:I

    .line 87
    :cond_7
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    :cond_8
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 316
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 319
    :cond_0
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a(Ljava/lang/String;)Lcom/moji/http/ugc/bean/DynamicBean;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 321
    iget-boolean v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->isPraise:Z

    if-nez v0, :cond_1

    .line 322
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a(Lcom/moji/http/ugc/bean/DynamicBean;)V

    :cond_1
    const/4 v0, 0x1

    .line 324
    iput-boolean v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->isPraise:Z

    .line 325
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 326
    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p2

    iput p2, p1, Lcom/moji/http/ugc/bean/DynamicBean;->commentNum:I

    .line 328
    :cond_2
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    :cond_3
    return-void
.end method

.method public b(Ljava/lang/String;)Lcom/moji/http/ugc/bean/DynamicBean;
    .locals 3

    .line 243
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/ugc/bean/DynamicBean;

    if-eqz v1, :cond_0

    .line 244
    iget-object v2, v1, Lcom/moji/http/ugc/bean/DynamicBean;->id:Ljava/lang/String;

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    return-object v1
.end method

.method public c(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/DynamicBean;",
            ">;"
        }
    .end annotation

    .line 253
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 255
    iget-object v1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/ugc/bean/DynamicBean;

    if-eqz v2, :cond_0

    .line 256
    invoke-virtual {v2}, Lcom/moji/http/ugc/bean/DynamicBean;->getSnsId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 258
    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method public d(Ljava/lang/String;)Lcom/moji/http/ugc/bean/UserBean;
    .locals 4

    .line 266
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v1, 0x0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/ugc/bean/UserBean;

    if-eqz v2, :cond_0

    .line 267
    iget-object v3, v2, Lcom/moji/http/ugc/bean/UserBean;->snsId:Ljava/lang/String;

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    move-object v1, v2

    goto :goto_0

    :cond_1
    return-object v1
.end method

.method public d()V
    .locals 1

    .line 167
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lorg/greenrobot/eventbus/EventBus;->c(Ljava/lang/Object;)V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    .line 373
    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/16 v1, 0x32

    if-gt v0, v1, :cond_0

    .line 375
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, ""

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const-string v0, "50+"

    return-object v0
.end method

.method public e(Ljava/lang/String;)V
    .locals 5

    .line 288
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 291
    :cond_0
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 292
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v1, :cond_3

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/ugc/bean/DynamicBean;

    if-eqz v1, :cond_1

    .line 294
    iget-boolean v4, v1, Lcom/moji/http/ugc/bean/DynamicBean;->is_following:Z

    if-eqz v4, :cond_2

    .line 295
    iput-boolean v3, v1, Lcom/moji/http/ugc/bean/DynamicBean;->is_following:Z

    goto :goto_0

    .line 297
    :cond_2
    iput-boolean v2, v1, Lcom/moji/http/ugc/bean/DynamicBean;->is_following:Z

    goto :goto_0

    .line 301
    :cond_3
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d(Ljava/lang/String;)Lcom/moji/http/ugc/bean/UserBean;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 303
    iget-boolean v0, p1, Lcom/moji/http/ugc/bean/UserBean;->is_following:Z

    if-eqz v0, :cond_4

    .line 304
    iput-boolean v3, p1, Lcom/moji/http/ugc/bean/UserBean;->is_following:Z

    goto :goto_1

    .line 306
    :cond_4
    iput-boolean v2, p1, Lcom/moji/http/ugc/bean/UserBean;->is_following:Z

    .line 309
    :cond_5
    :goto_1
    iget-object p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    if-eqz p1, :cond_6

    .line 310
    iget-object p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;->a(Ljava/util/ArrayList;)V

    .line 312
    :cond_6
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    return-void
.end method

.method public eventDoLike(Lcom/moji/user/frienddynamic/forum/holderView/DynamicAction;)V
    .locals 3
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-nez p1, :cond_0

    return-void

    .line 175
    :cond_0
    iget v0, p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicAction;->b:I

    const/4 v1, 0x1

    packed-switch v0, :pswitch_data_0

    goto/16 :goto_1

    .line 217
    :pswitch_0
    invoke-direct {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->g()V

    goto :goto_1

    .line 209
    :pswitch_1
    iget-object p1, p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicAction;->a:Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a(Ljava/lang/String;)Lcom/moji/http/ugc/bean/DynamicBean;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 211
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a(Lcom/moji/http/ugc/bean/DynamicBean;)V

    .line 212
    iput-boolean v1, p1, Lcom/moji/http/ugc/bean/DynamicBean;->isPraise:Z

    .line 214
    :cond_1
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    goto :goto_1

    .line 201
    :pswitch_2
    iget-object p1, p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicAction;->a:Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b(Ljava/lang/String;)Lcom/moji/http/ugc/bean/DynamicBean;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 203
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a(Lcom/moji/http/ugc/bean/DynamicBean;)V

    .line 204
    iput-boolean v1, p1, Lcom/moji/http/ugc/bean/DynamicBean;->hasPraised:Z

    .line 206
    :cond_2
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    goto :goto_1

    .line 177
    :pswitch_3
    iget-object v0, p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicAction;->a:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 178
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_3
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/moji/http/ugc/bean/DynamicBean;

    if-eqz v2, :cond_3

    .line 180
    iput-boolean v1, v2, Lcom/moji/http/ugc/bean/DynamicBean;->is_following:Z

    goto :goto_0

    .line 183
    :cond_4
    iget-object p1, p1, Lcom/moji/user/frienddynamic/forum/holderView/DynamicAction;->a:Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->d(Ljava/lang/String;)Lcom/moji/http/ugc/bean/UserBean;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 185
    iput-boolean v1, p1, Lcom/moji/http/ugc/bean/UserBean;->is_following:Z

    .line 187
    :cond_5
    iget-object p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    if-eqz p1, :cond_6

    .line 188
    iget-object p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->i:Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;

    iget-object v0, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Lcom/moji/user/frienddynamic/forum/holderView/HeadViewHolder;->a(Ljava/util/ArrayList;)V

    .line 190
    :cond_6
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    .line 191
    invoke-direct {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->f()Z

    move-result p1

    if-eqz p1, :cond_7

    .line 192
    new-instance p1, Landroid/os/Handler;

    invoke-direct {p1}, Landroid/os/Handler;-><init>()V

    new-instance v0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter$1;

    invoke-direct {v0, p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter$1;-><init>(Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;)V

    const-wide/16 v1, 0x7d0

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_7
    :goto_1
    return-void

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public f(I)V
    .locals 0

    .line 163
    iput p1, p0, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->h:I

    return-void
.end method

.method public f(Ljava/lang/String;)V
    .locals 1

    .line 333
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 336
    :cond_0
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->b(Ljava/lang/String;)Lcom/moji/http/ugc/bean/DynamicBean;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 338
    iget-boolean v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->hasPraised:Z

    if-nez v0, :cond_1

    .line 339
    invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->a(Lcom/moji/http/ugc/bean/DynamicBean;)V

    :cond_1
    const/4 v0, 0x1

    .line 341
    iput-boolean v0, p1, Lcom/moji/http/ugc/bean/DynamicBean;->hasPraised:Z

    .line 342
    invoke-virtual {p0}, Lcom/moji/user/frienddynamic/forum/BaseRecyclerAdapter;->c()V

    :cond_2
    return-void
.end method
