.class Lcom/moji/mjweather/me/presenter/LoginPresenter$1;
.super Lcom/moji/requestcore/MJBaseHttpCallback;
.source "LoginPresenter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/me/presenter/LoginPresenter;->a(ZI)Lcom/moji/requestcore/MJBaseHttpCallback;
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/requestcore/MJBaseHttpCallback<",
        "Lcom/moji/http/ugc/bean/account/LoginResultEntity;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Z

.field final synthetic b:I

.field final synthetic c:Lcom/moji/mjweather/me/presenter/LoginPresenter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/me/presenter/LoginPresenter;ZI)V
    .locals 0

    .line 56
    iput-object p1, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->c:Lcom/moji/mjweather/me/presenter/LoginPresenter;

    iput-boolean p2, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->a:Z

    iput p3, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->b:I

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

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/http/ugc/bean/account/LoginResultEntity;)V
    .locals 2

    .line 59
    invoke-virtual {p1}, Lcom/moji/http/ugc/bean/account/LoginResultEntity;->OK()Z

    move-result v0

    if-nez v0, :cond_1

    .line 60
    iget-boolean v0, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->a:Z

    if-eqz v0, :cond_0

    .line 61
    invoke-virtual {p1}, Lcom/moji/http/ugc/bean/account/LoginResultEntity;->getDesc()Ljava/lang/String;

    move-result-object p1

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

    :cond_0
    const/4 p1, 0x0

    .line 63
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->onFailed(Lcom/moji/requestcore/MJException;)V

    return-void

    .line 66
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->c:Lcom/moji/mjweather/me/presenter/LoginPresenter;

    invoke-static {v0, p1}, Lcom/moji/mjweather/me/presenter/LoginPresenter;->a(Lcom/moji/mjweather/me/presenter/LoginPresenter;Lcom/moji/http/ugc/bean/account/LoginResultEntity;)Lcom/moji/http/ugc/bean/account/LoginResultEntity;

    .line 67
    iget-object v0, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->c:Lcom/moji/mjweather/me/presenter/LoginPresenter;

    invoke-static {v0}, Lcom/moji/mjweather/me/presenter/LoginPresenter;->a(Lcom/moji/mjweather/me/presenter/LoginPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/view/ILoginView;

    iget v1, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->b:I

    invoke-interface {v0, p1, v1}, Lcom/moji/mjweather/me/view/ILoginView;->onLoginSuccess(Lcom/moji/http/ugc/bean/account/LoginResultEntity;I)V

    return-void
.end method

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

    .line 72
    iget-object p1, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->c:Lcom/moji/mjweather/me/presenter/LoginPresenter;

    invoke-static {p1}, Lcom/moji/mjweather/me/presenter/LoginPresenter;->b(Lcom/moji/mjweather/me/presenter/LoginPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/view/ILoginView;

    invoke-interface {p1}, Lcom/moji/mjweather/me/view/ILoginView;->hideLoading()V

    .line 73
    iget-object p1, p0, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->c:Lcom/moji/mjweather/me/presenter/LoginPresenter;

    invoke-static {p1}, Lcom/moji/mjweather/me/presenter/LoginPresenter;->c(Lcom/moji/mjweather/me/presenter/LoginPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/me/view/ILoginView;

    invoke-interface {p1}, Lcom/moji/mjweather/me/view/ILoginView;->onLoginFailed()V

    return-void
.end method

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

    .line 56
    check-cast p1, Lcom/moji/http/ugc/bean/account/LoginResultEntity;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/presenter/LoginPresenter$1;->a(Lcom/moji/http/ugc/bean/account/LoginResultEntity;)V

    return-void
.end method
