.class Lcom/moji/mjweather/alert/WeatherAlertPresenter$2;
.super Lcom/moji/requestcore/MJBaseHttpCallback;
.source "WeatherAlertPresenter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/alert/WeatherAlertPresenter;->b()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/http/snsforum/entity/PhotoAlertResult;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/alert/WeatherAlertPresenter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/alert/WeatherAlertPresenter;)V
    .locals 0

    .line 109
    iput-object p1, p0, Lcom/moji/mjweather/alert/WeatherAlertPresenter$2;->a:Lcom/moji/mjweather/alert/WeatherAlertPresenter;

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

    return-void
.end method


# virtual methods
.method protected a(Lcom/moji/http/snsforum/entity/PhotoAlertResult;)V
    .locals 2

    if-eqz p1, :cond_0

    .line 112
    invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/PhotoAlertResult;->OK()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 113
    new-instance v0, Lcom/google/gson/Gson;

    invoke-direct {v0}, Lcom/google/gson/Gson;-><init>()V

    .line 114
    new-instance v1, Lcom/moji/preferences/DefaultPrefer;

    invoke-direct {v1}, Lcom/moji/preferences/DefaultPrefer;-><init>()V

    invoke-virtual {v0, p1}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/moji/preferences/DefaultPrefer;->d(Ljava/lang/String;)V

    .line 115
    iget-object v0, p0, Lcom/moji/mjweather/alert/WeatherAlertPresenter$2;->a:Lcom/moji/mjweather/alert/WeatherAlertPresenter;

    invoke-static {v0}, Lcom/moji/mjweather/alert/WeatherAlertPresenter;->a(Lcom/moji/mjweather/alert/WeatherAlertPresenter;)Lcom/moji/mjweather/alert/WeatherAlertPresenter$WeatherAlertCallback;

    move-result-object v0

    invoke-interface {v0, p1}, Lcom/moji/mjweather/alert/WeatherAlertPresenter$WeatherAlertCallback;->a(Lcom/moji/http/snsforum/entity/PhotoAlertResult;)V

    :cond_0
    return-void
.end method

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

    return-void
.end method

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

    .line 109
    check-cast p1, Lcom/moji/http/snsforum/entity/PhotoAlertResult;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/alert/WeatherAlertPresenter$2;->a(Lcom/moji/http/snsforum/entity/PhotoAlertResult;)V

    return-void
.end method
