.class Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;
.super Ljava/lang/Object;
.source "AqiPresenter.java"

# interfaces
.implements Lcom/moji/mvpframe/delegate/ILoadingCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->b(Lcom/moji/http/weather/entity/AqiDetailEntity;)V
.end annotation

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


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Lcom/moji/http/weather/entity/AqiDetailEntity;

.field final synthetic c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;Ljava/util/List;Lcom/moji/http/weather/entity/AqiDetailEntity;)V
    .locals 0

    .line 244
    iput-object p1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iput-object p2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->a:Ljava/util/List;

    iput-object p3, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->b:Lcom/moji/http/weather/entity/AqiDetailEntity;

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

    return-void
.end method


# virtual methods
.method public a()V
    .locals 8

    .line 247
    iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->a:Ljava/util/List;

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

    move-result v0

    if-nez v0, :cond_2

    .line 248
    iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->b:Lcom/moji/http/weather/entity/AqiDetailEntity;

    iget-object v0, v0, Lcom/moji/http/weather/entity/AqiDetailEntity;->result:Ljava/util/List;

    const/4 v1, 0x0

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

    move-result-object v0

    check-cast v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;

    .line 249
    iget-object v2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v2, v2, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    iget-object v3, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;->city_aqi:Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    invoke-static {v2, v3}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->a(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;)Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    .line 250
    iget-object v2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v2, v2, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    iget-object v2, v2, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->a:Lcom/moji/weatherprovider/data/Aqi;

    if-eqz v2, :cond_0

    .line 251
    iget-object v2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v2, v2, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    iget-object v3, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;->city_aqi:Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    iget-object v4, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v4, v4, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    iget-object v4, v4, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->a:Lcom/moji/weatherprovider/data/Aqi;

    invoke-static {v2, v3, v4}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->a(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;Lcom/moji/weatherprovider/data/Aqi;)V

    .line 253
    :cond_0
    iget-object v2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v2, v2, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v2}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->g(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/aqi/view/IAqiView;

    iget-object v3, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;->city_aqi:Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    iget-object v4, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v4, v4, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v4}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->e(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/common/area/AreaInfo;

    move-result-object v4

    iget-object v5, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;->city_aqi:Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    iget-wide v5, v5, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;->public_time:J

    invoke-interface {v2, v3, v4, v5, v6}, Lcom/moji/mjweather/aqi/view/IAqiView;->fillAqiRankView(Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;Lcom/moji/common/area/AreaInfo;J)V

    .line 256
    iget-object v2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v2, v2, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v2}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->h(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object v2

    check-cast v2, Lcom/moji/mjweather/aqi/view/IAqiView;

    iget-object v3, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v3, v3, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->a:Ljava/util/List;

    iget-object v4, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v4, v4, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v4}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->e(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/common/area/AreaInfo;

    move-result-object v4

    const/4 v5, 0x1

    if-eqz v4, :cond_1

    iget-object v4, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v4, v4, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v4}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->e(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/common/area/AreaInfo;

    move-result-object v4

    iget-boolean v4, v4, Lcom/moji/common/area/AreaInfo;->isLocation:Z

    if-eqz v4, :cond_1

    const/4 v1, 0x1

    :cond_1
    invoke-interface {v2, v3, v1}, Lcom/moji/mjweather/aqi/view/IAqiView;->fillPointListView(Ljava/util/List;Z)V

    .line 258
    iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v1, v1, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v1}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->i(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 259
    new-instance v1, Lcom/amap/api/maps2d/model/LatLng;

    iget-object v2, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;->city_aqi:Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    iget-wide v2, v2, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;->latitude:D

    iget-object v0, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean;->city_aqi:Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;

    iget-wide v6, v0, Lcom/moji/http/weather/entity/AqiDetailEntity$ResultBean$CityAqiBean;->longitude:D

    invoke-direct {v1, v2, v3, v6, v7}, Lcom/amap/api/maps2d/model/LatLng;-><init>(DD)V

    .line 260
    iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v0, v0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->j(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/aqi/view/IAqiView;

    invoke-interface {v0, v1, v5}, Lcom/moji/mjweather/aqi/view/IAqiView;->loadCityMap(Lcom/amap/api/maps2d/model/LatLng;Z)V

    .line 263
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v0, v0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->k(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/aqi/view/IAqiView;

    invoke-interface {v0}, Lcom/moji/mjweather/aqi/view/IAqiView;->hadFillAllViews()V

    .line 264
    iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v0, v0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->l(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/aqi/view/IAqiView;

    iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1$1;->c:Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;

    iget-object v1, v1, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$1;->d:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;

    invoke-static {v1}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->i(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Z

    move-result v1

    invoke-interface {v0, v1}, Lcom/moji/mjweather/aqi/view/IAqiView;->showOrHideCamera(Z)V

    return-void
.end method
