.class Lcom/moji/forum/ui/TopicActivity$21;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "TopicActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/TopicActivity;->b(J)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/requestcore/entity/MJBaseRespRc;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:J

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


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

    .line 1488
    iput-object p1, p0, Lcom/moji/forum/ui/TopicActivity$21;->b:Lcom/moji/forum/ui/TopicActivity;

    iput-wide p2, p0, Lcom/moji/forum/ui/TopicActivity$21;->a:J

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

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/requestcore/entity/IResult;)V
    .locals 2

    .line 1503
    sget-object p1, Lcom/moji/forum/common/ForumUtil;->a:Landroid/content/Context;

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

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void
.end method

.method protected a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V
    .locals 6

    .line 1491
    sget-object p1, Lcom/moji/forum/common/ForumUtil;->a:Landroid/content/Context;

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

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    .line 1492
    :goto_0
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$21;->b:Lcom/moji/forum/ui/TopicActivity;

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

    move-result-object p1

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

    move-result p1

    if-ge v1, p1, :cond_1

    .line 1493
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$21;->b:Lcom/moji/forum/ui/TopicActivity;

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

    move-result-object p1

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicComment;

    iget-wide v2, p1, Lcom/moji/http/mqn/entity/TopicComment;->id:J

    iget-wide v4, p0, Lcom/moji/forum/ui/TopicActivity$21;->a:J

    cmp-long p1, v2, v4

    if-nez p1, :cond_0

    .line 1494
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$21;->b:Lcom/moji/forum/ui/TopicActivity;

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

    move-result-object p1

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

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1498
    :cond_1
    :goto_1
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$21;->b:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/TopicActivity;->x(Lcom/moji/forum/ui/TopicActivity;)Lcom/moji/forum/ui/CommentAdapter;

    move-result-object p1

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

    return-void
.end method

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

    .line 1508
    sget-object p1, Lcom/moji/forum/common/ForumUtil;->a:Landroid/content/Context;

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

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void
.end method

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

    .line 1488
    check-cast p1, Lcom/moji/requestcore/entity/MJBaseRespRc;

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicActivity$21;->a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V

    return-void
.end method
