.class Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$1;
.super Lcom/moji/requestcore/MJBaseHttpCallback;
.source "SnowEditSubscribePresenter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;->a(IDDLjava/lang/String;Ljava/lang/String;)V
.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/requestcore/entity/MJBaseRespRc;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;


# direct methods
.method constructor <init>(Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;)V
    .locals 0

    .line 26
    iput-object p1, p0, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$1;->a:Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;

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

    return-void
.end method


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

    .line 29
    invoke-virtual {p1}, Lcom/moji/requestcore/entity/MJBaseRespRc;->getCode()I

    move-result v0

    if-nez v0, :cond_0

    .line 30
    iget-object v0, p0, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$1;->a:Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;->a(Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;)Lcom/moji/base/MJPresenter$ICallback;

    move-result-object v0

    check-cast v0, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$EditSubscribeCallback;

    invoke-interface {v0, p1}, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$EditSubscribeCallback;->openSuccess(Lcom/moji/requestcore/entity/MJBaseRespRc;)V

    goto :goto_0

    :cond_0
    const-string p1, "\u8ba2\u9605\u5931\u8d25"

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

    :goto_0
    return-void
.end method

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

    .line 38
    iget-object v0, p0, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$1;->a:Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;

    invoke-static {v0}, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;->b(Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter;)Lcom/moji/base/MJPresenter$ICallback;

    move-result-object v0

    check-cast v0, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$EditSubscribeCallback;

    invoke-interface {v0, p1}, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$EditSubscribeCallback;->openFailed(Lcom/moji/requestcore/MJException;)V

    return-void
.end method

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

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

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/presenter/SnowEditSubscribePresenter$1;->a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V

    return-void
.end method
