.class Lcom/moji/mjweather/feed/view/VoteView$4;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "VoteView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/feed/view/VoteView;->a(JI)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:I

.field final synthetic b:Lcom/moji/mjweather/feed/view/VoteView;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/feed/view/VoteView;I)V
    .locals 0

    .line 278
    iput-object p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    iput p2, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->a:I

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

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V
    .locals 5

    if-eqz p1, :cond_1

    .line 281
    invoke-virtual {p1}, Lcom/moji/requestcore/entity/MJBaseRespRc;->OK()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 282
    iget p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->a:I

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    .line 283
    iget-object p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {p1}, Lcom/moji/mjweather/feed/view/VoteView;->e(Lcom/moji/mjweather/feed/view/VoteView;)I

    goto :goto_0

    .line 285
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {p1}, Lcom/moji/mjweather/feed/view/VoteView;->f(Lcom/moji/mjweather/feed/view/VoteView;)I

    .line 287
    :goto_0
    iget-object p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    iget v1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->a:I

    invoke-virtual {p1, v1}, Lcom/moji/mjweather/feed/view/VoteView;->a(I)V

    .line 288
    iget-object p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {p1}, Lcom/moji/mjweather/feed/view/VoteView;->g(Lcom/moji/mjweather/feed/view/VoteView;)V

    .line 289
    iget-object p1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {p1, v0}, Lcom/moji/mjweather/feed/view/VoteView;->a(Lcom/moji/mjweather/feed/view/VoteView;Z)Z

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

    move-result-object p1

    new-instance v0, Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;

    iget-object v1, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {v1}, Lcom/moji/mjweather/feed/view/VoteView;->h(Lcom/moji/mjweather/feed/view/VoteView;)I

    move-result v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {v2}, Lcom/moji/mjweather/feed/view/VoteView;->i(Lcom/moji/mjweather/feed/view/VoteView;)I

    move-result v2

    add-int/2addr v1, v2

    iget-object v2, p0, Lcom/moji/mjweather/feed/view/VoteView$4;->b:Lcom/moji/mjweather/feed/view/VoteView;

    invoke-static {v2}, Lcom/moji/mjweather/feed/view/VoteView;->j(Lcom/moji/mjweather/feed/view/VoteView;)J

    move-result-wide v2

    const/4 v4, 0x0

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;-><init>(IJLjava/lang/String;)V

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

    goto :goto_1

    :cond_1
    if-eqz p1, :cond_2

    .line 293
    invoke-virtual {p1}, Lcom/moji/requestcore/entity/MJBaseRespRc;->getDesc()Ljava/lang/String;

    move-result-object p1

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

    :cond_2
    :goto_1
    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 278
    check-cast p1, Lcom/moji/requestcore/entity/MJBaseRespRc;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/feed/view/VoteView$4;->a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V

    return-void
.end method
