.class Lcom/moji/forum/ui/MyCommentFragment$4;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "MyCommentFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/MyCommentFragment;->a(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/requestcore/MJHttpCallback<",
        "Lcom/moji/http/mqn/entity/CommentList;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Z

.field final synthetic b:Lcom/moji/forum/ui/MyCommentFragment;


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/MyCommentFragment;Z)V
    .locals 0

    .line 177
    iput-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    iput-boolean p2, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->a:Z

    invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/http/mqn/entity/CommentList;)V
    .locals 3

    .line 180
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/MyCommentFragment;->c(Lcom/moji/forum/ui/MyCommentFragment;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->G()V

    .line 181
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/moji/forum/ui/MyCommentFragment;->b:Z

    .line 182
    iget-boolean v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->a:Z

    if-eqz v0, :cond_0

    .line 183
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/MyCommentFragment;->d(Lcom/moji/forum/ui/MyCommentFragment;)Lcom/moji/pulltorefresh/PullToFreshContainer;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/pulltorefresh/PullToFreshContainer;->b()V

    :cond_0
    if-eqz p1, :cond_6

    .line 187
    iget-object v0, p1, Lcom/moji/http/mqn/entity/CommentList;->page_cursor:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 188
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    iget-object v2, p1, Lcom/moji/http/mqn/entity/CommentList;->page_cursor:Ljava/lang/String;

    iput-object v2, v0, Lcom/moji/forum/ui/MyCommentFragment;->e:Ljava/lang/String;

    .line 190
    :cond_1
    iget-object v0, p1, Lcom/moji/http/mqn/entity/CommentList;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_3

    .line 191
    iget-boolean v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->a:Z

    if-eqz v0, :cond_2

    .line 192
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/MyCommentFragment;->a(Lcom/moji/forum/ui/MyCommentFragment;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 193
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    iget-boolean v0, v0, Lcom/moji/forum/ui/MyCommentFragment;->c:Z

    if-eqz v0, :cond_2

    .line 194
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    iput-boolean v1, v0, Lcom/moji/forum/ui/MyCommentFragment;->c:Z

    .line 197
    :cond_2
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/MyCommentFragment;->a(Lcom/moji/forum/ui/MyCommentFragment;)Ljava/util/List;

    move-result-object v0

    iget-object v2, p1, Lcom/moji/http/mqn/entity/CommentList;->list:Ljava/util/ArrayList;

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

    .line 200
    :cond_3
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/MyCommentFragment;->e(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 202
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    iget-boolean v0, v0, Lcom/moji/forum/ui/MyCommentFragment;->c:Z

    if-nez v0, :cond_4

    iget-object v0, p1, Lcom/moji/http/mqn/entity/CommentList;->list:Ljava/util/ArrayList;

    if-eqz v0, :cond_4

    iget-object p1, p1, Lcom/moji/http/mqn/entity/CommentList;->list:Ljava/util/ArrayList;

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

    move-result p1

    if-nez p1, :cond_4

    .line 203
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    const/4 v0, 0x1

    iput-boolean v0, p1, Lcom/moji/forum/ui/MyCommentFragment;->c:Z

    .line 205
    :cond_4
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    iget-boolean p1, p1, Lcom/moji/forum/ui/MyCommentFragment;->c:Z

    if-eqz p1, :cond_5

    .line 206
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->e(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/LinearLayout;

    move-result-object p1

    const/4 v0, 0x4

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0

    .line 208
    :cond_5
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->e(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 209
    :goto_0
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->f(Lcom/moji/forum/ui/MyCommentFragment;)Lcom/moji/forum/ui/MyCommentFragment$MyCommentListAdapter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/forum/ui/MyCommentFragment$MyCommentListAdapter;->notifyDataSetChanged()V

    .line 211
    :cond_6
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->a(Lcom/moji/forum/ui/MyCommentFragment;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_7

    .line 212
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->g(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/TextView;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->no_topic:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    goto :goto_1

    .line 214
    :cond_7
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->g(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/TextView;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->no_more:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 215
    :goto_1
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->h(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/ProgressBar;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setVisibility(I)V

    return-void
.end method

.method protected onFailed(Lcom/moji/requestcore/MJException;)V
    .locals 1

    .line 220
    iget-boolean p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->a:Z

    if-eqz p1, :cond_0

    .line 221
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->d(Lcom/moji/forum/ui/MyCommentFragment;)Lcom/moji/pulltorefresh/PullToFreshContainer;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/pulltorefresh/PullToFreshContainer;->b()V

    .line 224
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->a(Lcom/moji/forum/ui/MyCommentFragment;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_1

    .line 225
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->g(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/TextView;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->no_topic:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 227
    :cond_1
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->g(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/TextView;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->no_more:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 228
    :goto_0
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->h(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/ProgressBar;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 229
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    const/4 v0, 0x0

    iput-boolean v0, p1, Lcom/moji/forum/ui/MyCommentFragment;->b:Z

    .line 230
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/MyCommentFragment;->a(Lcom/moji/forum/ui/MyCommentFragment;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-nez p1, :cond_2

    .line 231
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$4;->b:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-virtual {p1}, Lcom/moji/forum/ui/MyCommentFragment;->a()V

    goto :goto_1

    .line 233
    :cond_2
    sget p1, Lcom/moji/forum/R$string;->network_exception:I

    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    :goto_1
    return-void
.end method

.method public synthetic onSuccess(Ljava/lang/Object;)V
    .locals 0

    .line 177
    check-cast p1, Lcom/moji/http/mqn/entity/CommentList;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/MyCommentFragment$4;->a(Lcom/moji/http/mqn/entity/CommentList;)V

    return-void
.end method
