.class Lcom/moji/mjsnowmodule/ShortSnowDataModel$2;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "ShortSnowDataModel.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjsnowmodule/ShortSnowDataModel;->a(IDDILcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;)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/snow/bean/SnowDetailResp;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;

.field final synthetic b:Lcom/moji/mjsnowmodule/ShortSnowDataModel;


# direct methods
.method constructor <init>(Lcom/moji/mjsnowmodule/ShortSnowDataModel;Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;)V
    .locals 0

    .line 59
    iput-object p1, p0, Lcom/moji/mjsnowmodule/ShortSnowDataModel$2;->b:Lcom/moji/mjsnowmodule/ShortSnowDataModel;

    iput-object p2, p0, Lcom/moji/mjsnowmodule/ShortSnowDataModel$2;->a:Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;

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

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/http/snow/bean/SnowDetailResp;)V
    .locals 1

    .line 62
    invoke-static {}, Lcom/moji/mjsnowmodule/ShortSnowDataModel;->c()Lcom/moji/http/snow/bean/SnowDetailResp;

    move-result-object v0

    if-nez v0, :cond_0

    .line 63
    invoke-static {p1}, Lcom/moji/mjsnowmodule/ShortSnowDataModel;->a(Lcom/moji/http/snow/bean/SnowDetailResp;)Lcom/moji/http/snow/bean/SnowDetailResp;

    .line 65
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/ShortSnowDataModel$2;->a:Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;

    invoke-interface {v0, p1}, Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;->a(Lcom/moji/http/snow/bean/SnowDetailResp;)V

    return-void
.end method

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

    .line 70
    invoke-virtual {p1}, Lcom/moji/requestcore/MJException;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string v1, "Canceled"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 73
    :cond_0
    iget-object v0, p0, Lcom/moji/mjsnowmodule/ShortSnowDataModel$2;->a:Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;

    invoke-interface {v0, p1}, Lcom/moji/mjsnowmodule/ShortSnowDataModel$LoadSnowDataCallBack;->a(Lcom/moji/requestcore/MJException;)V

    return-void
.end method

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

    .line 59
    check-cast p1, Lcom/moji/http/snow/bean/SnowDetailResp;

    invoke-virtual {p0, p1}, Lcom/moji/mjsnowmodule/ShortSnowDataModel$2;->a(Lcom/moji/http/snow/bean/SnowDetailResp;)V

    return-void
.end method
