.class Lcom/moji/mjweather/tabme/MePresenter$4;
.super Ljava/lang/Object;
.source "MePresenter.java"

# interfaces
.implements Lcom/moji/opevent/MeServiceEntityListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/tabme/MePresenter;->a(Ljava/lang/String;)V
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/moji/opevent/MeServiceEntityListener<",
        "Lcom/moji/http/me/MeServiceEntity;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/tabme/MePresenter;


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

    .line 259
    iput-object p1, p0, Lcom/moji/mjweather/tabme/MePresenter$4;->a:Lcom/moji/mjweather/tabme/MePresenter;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/http/me/MeServiceEntity;)V
    .locals 2

    if-eqz p1, :cond_1

    .line 262
    iget-object v0, p1, Lcom/moji/http/me/MeServiceEntity;->entrance_region_res_list:Ljava/util/List;

    if-eqz v0, :cond_1

    iget-object v0, p1, Lcom/moji/http/me/MeServiceEntity;->entrance_region_res_list:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 267
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/tabme/MePresenter$4;->a:Lcom/moji/mjweather/tabme/MePresenter;

    invoke-static {v0}, Lcom/moji/mjweather/tabme/MePresenter;->b(Lcom/moji/mjweather/tabme/MePresenter;)Lcom/moji/mjweather/tabme/MePresenter$MeCallback;

    move-result-object v0

    iget-object p1, p1, Lcom/moji/http/me/MeServiceEntity;->entrance_region_res_list:Ljava/util/List;

    const/4 v1, 0x0

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;

    invoke-interface {v0, p1}, Lcom/moji/mjweather/tabme/MePresenter$MeCallback;->a(Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;)V

    return-void

    .line 263
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/moji/mjweather/tabme/MePresenter$4;->a:Lcom/moji/mjweather/tabme/MePresenter;

    invoke-static {p1}, Lcom/moji/mjweather/tabme/MePresenter;->b(Lcom/moji/mjweather/tabme/MePresenter;)Lcom/moji/mjweather/tabme/MePresenter$MeCallback;

    move-result-object p1

    invoke-interface {p1}, Lcom/moji/mjweather/tabme/MePresenter$MeCallback;->a()V

    return-void
.end method

.method public a(Lcom/moji/requestcore/MJException;)V
    .locals 3

    const-string v0, "MePresenter"

    .line 272
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onRequestFail: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/moji/requestcore/MJException;->getCode()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 273
    iget-object v0, p0, Lcom/moji/mjweather/tabme/MePresenter$4;->a:Lcom/moji/mjweather/tabme/MePresenter;

    invoke-static {v0}, Lcom/moji/mjweather/tabme/MePresenter;->b(Lcom/moji/mjweather/tabme/MePresenter;)Lcom/moji/mjweather/tabme/MePresenter$MeCallback;

    move-result-object v0

    invoke-virtual {p1}, Lcom/moji/requestcore/MJException;->getCode()I

    move-result p1

    invoke-interface {v0, p1}, Lcom/moji/mjweather/tabme/MePresenter$MeCallback;->a(I)V

    return-void
.end method

.method public bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 259
    check-cast p1, Lcom/moji/http/me/MeServiceEntity;

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/tabme/MePresenter$4;->a(Lcom/moji/http/me/MeServiceEntity;)V

    return-void
.end method
