.class Lcom/moji/forum/ui/PostListFragment$3;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "PostListFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/PostListFragment;->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/TopicList;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Z

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


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

    .line 165
    iput-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    iput-boolean p2, p0, Lcom/moji/forum/ui/PostListFragment$3;->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/TopicList;)V
    .locals 5

    .line 168
    iget-object v0, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/PostListFragment;->c(Lcom/moji/forum/ui/PostListFragment;)Z

    move-result v0

    if-nez v0, :cond_5

    if-nez p1, :cond_0

    goto :goto_1

    .line 170
    :cond_0
    iget-object v0, p1, Lcom/moji/http/mqn/entity/TopicList;->topic_list:Ljava/util/ArrayList;

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_3

    .line 171
    iget-boolean v0, p0, Lcom/moji/forum/ui/PostListFragment$3;->a:Z

    if-eqz v0, :cond_1

    .line 172
    iget-object v0, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {v0, v1}, Lcom/moji/forum/ui/PostListFragment;->b(Lcom/moji/forum/ui/PostListFragment;Z)Z

    .line 174
    :cond_1
    iget-object v0, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    iget-object v0, v0, Lcom/moji/forum/ui/PostListFragment;->g:Lcom/moji/forum/ui/TopicAdapter;

    iget-object v3, p1, Lcom/moji/http/mqn/entity/TopicList;->topic_list:Ljava/util/ArrayList;

    iget-boolean v4, p0, Lcom/moji/forum/ui/PostListFragment$3;->a:Z

    invoke-virtual {v0, v3, v4}, Lcom/moji/forum/ui/TopicAdapter;->a(Ljava/util/ArrayList;Z)V

    .line 175
    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicList;->topic_list:Ljava/util/ArrayList;

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

    move-result p1

    if-nez p1, :cond_2

    .line 177
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

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

    invoke-static {p1, v0}, Lcom/moji/forum/ui/PostListFragment;->a(Lcom/moji/forum/ui/PostListFragment;I)V

    .line 178
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {p1, v2}, Lcom/moji/forum/ui/PostListFragment;->b(Lcom/moji/forum/ui/PostListFragment;Z)Z

    goto :goto_0

    .line 180
    :cond_2
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {p1}, Lcom/moji/forum/ui/PostListFragment;->d(Lcom/moji/forum/ui/PostListFragment;)I

    goto :goto_0

    .line 183
    :cond_3
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

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

    invoke-static {p1, v0}, Lcom/moji/forum/ui/PostListFragment;->a(Lcom/moji/forum/ui/PostListFragment;I)V

    .line 185
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {p1, v2}, Lcom/moji/forum/ui/PostListFragment;->b(Lcom/moji/forum/ui/PostListFragment;Z)Z

    .line 188
    :goto_0
    iget-boolean p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->a:Z

    if-eqz p1, :cond_4

    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/PostListFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    if-eqz p1, :cond_4

    .line 189
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/PostListFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    iget-object v0, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/PostListFragment;->e(Lcom/moji/forum/ui/PostListFragment;)I

    move-result v0

    invoke-interface {p1, v0}, Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;->a(I)V

    .line 191
    :cond_4
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {p1, v1}, Lcom/moji/forum/ui/PostListFragment;->c(Lcom/moji/forum/ui/PostListFragment;Z)Z

    return-void

    :cond_5
    :goto_1
    return-void
.end method

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

    .line 197
    iget-boolean p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->a:Z

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/PostListFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    if-eqz p1, :cond_0

    .line 198
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    iget-object p1, p1, Lcom/moji/forum/ui/PostListFragment;->e:Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;

    iget-object v0, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/PostListFragment;->e(Lcom/moji/forum/ui/PostListFragment;)I

    move-result v0

    invoke-interface {p1, v0}, Lcom/moji/forum/ui/PostListFragment$OnRefreshListener;->a(I)V

    .line 200
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/PostListFragment$3;->b:Lcom/moji/forum/ui/PostListFragment;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Lcom/moji/forum/ui/PostListFragment;->c(Lcom/moji/forum/ui/PostListFragment;Z)Z

    return-void
.end method

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

    .line 165
    check-cast p1, Lcom/moji/http/mqn/entity/TopicList;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/PostListFragment$3;->a(Lcom/moji/http/mqn/entity/TopicList;)V

    return-void
.end method
