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


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


# instance fields
.field final synthetic a:Z

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


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

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

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

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

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

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 149
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity$3;->b:Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;

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

    invoke-virtual {v0, p1, v1}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->a(Lcom/moji/http/mqn/entity/TopicSquareList;Z)V

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

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

    move-result v0

    const/16 v1, 0x14

    const/4 v2, 0x0

    if-lt v0, v1, :cond_1

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

    invoke-static {v0, v2}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->a(Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;Z)Z

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

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

    move-result p1

    if-nez p1, :cond_3

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

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

    move-result-object p1

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

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

    invoke-virtual {p1}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

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

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

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

    invoke-static {v0}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->h(Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;)Ljava/lang/String;

    move-result-object v0

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

    move-result p1

    if-eqz p1, :cond_2

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

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

    move-result-object p1

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

    invoke-virtual {v0}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/moji/forum/R$string;->square_topic_hot_empty_info:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

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

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

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

    move-result-object p1

    const/16 v0, 0x8

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

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

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

    move-result-object p1

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

    return-void
.end method

.method protected a(Lcom/moji/requestcore/entity/IResult;)V
    .locals 3

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

    invoke-static {p1}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->f(Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;)Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

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

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

    move-result-object p1

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

    move-result p1

    const/4 v0, 0x0

    if-nez p1, :cond_2

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

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

    move-result-object p1

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

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

    invoke-virtual {p1}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v1, Lcom/moji/forum/R$string;->hot_topic_list:I

    invoke-virtual {p1, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

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

    invoke-static {v1}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->h(Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;)Ljava/lang/String;

    move-result-object v1

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

    move-result p1

    if-eqz p1, :cond_1

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

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

    move-result-object p1

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

    invoke-virtual {v1}, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Lcom/moji/forum/R$string;->square_topic_hot_empty_info:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 170
    :cond_1
    iget-object p1, p0, Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity$3;->b:Lcom/moji/forum/ui/SquareTopicEssenceOrHotActivity;

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

    move-result-object p1

    const/16 v1, 0x8

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

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

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

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

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

    move-result-object p1

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

    return-void
.end method

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

    return-void
.end method

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

    .line 144
    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList;

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

    return-void
.end method
