231 lines
8.2 KiB
Smali
231 lines
8.2 KiB
Smali
.class Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;
|
|
.super Ljava/lang/Object;
|
|
.source "AqiPresenter.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/opevent/OperationEventUpdateListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->a(Lcom/moji/common/area/AreaInfo;I)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
.field final synthetic b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;Lcom/moji/common/area/AreaInfo;)V
|
|
.locals 0
|
|
|
|
.line 297
|
|
iput-object p1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
iput-object p2, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 4
|
|
|
|
.line 301
|
|
new-instance v0, Lcom/moji/opevent/OperationEventPosition;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
iget v1, v1, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
sget-object v2, Lcom/moji/opevent/model/OperationEventPage;->P_AQI:Lcom/moji/opevent/model/OperationEventPage;
|
|
|
|
sget-object v3, Lcom/moji/opevent/model/OperationEventRegion;->R_AQI_BANNER:Lcom/moji/opevent/model/OperationEventRegion;
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Lcom/moji/opevent/OperationEventPosition;-><init>(ILcom/moji/opevent/model/OperationEventPage;Lcom/moji/opevent/model/OperationEventRegion;)V
|
|
|
|
.line 302
|
|
invoke-static {}, Lcom/moji/opevent/OperationEventManager;->a()Lcom/moji/opevent/OperationEventManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/opevent/OperationEventManager;->b(Lcom/moji/opevent/OperationEventPosition;)Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 303
|
|
iget-object v1, v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;->entrance_res_list:Ljava/util/ArrayList;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;->entrance_res_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 304
|
|
iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
invoke-static {v1}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->n(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/mjweather/aqi/view/IAqiView;
|
|
|
|
iget-object v0, v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;->entrance_res_list:Ljava/util/ArrayList;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean$EntranceResListBean;
|
|
|
|
invoke-interface {v1, v0}, Lcom/moji/mjweather/aqi/view/IAqiView;->fillBannerView(Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean$EntranceResListBean;)V
|
|
|
|
.line 305
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->AQI_BANNER_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_0
|
|
|
|
.line 307
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->o(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;->hideBannerView()V
|
|
|
|
.line 311
|
|
:goto_0
|
|
new-instance v0, Lcom/moji/opevent/OperationEventPosition;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->a:Lcom/moji/common/area/AreaInfo;
|
|
|
|
iget v1, v1, Lcom/moji/common/area/AreaInfo;->cityId:I
|
|
|
|
sget-object v2, Lcom/moji/opevent/model/OperationEventPage;->P_AQI:Lcom/moji/opevent/model/OperationEventPage;
|
|
|
|
sget-object v3, Lcom/moji/opevent/model/OperationEventRegion;->R_AQI_LIVE_TIP:Lcom/moji/opevent/model/OperationEventRegion;
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Lcom/moji/opevent/OperationEventPosition;-><init>(ILcom/moji/opevent/model/OperationEventPage;Lcom/moji/opevent/model/OperationEventRegion;)V
|
|
|
|
.line 312
|
|
invoke-static {}, Lcom/moji/opevent/OperationEventManager;->a()Lcom/moji/opevent/OperationEventManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/opevent/OperationEventManager;->b(Lcom/moji/opevent/OperationEventPosition;)Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 313
|
|
iget-object v1, v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;->entrance_res_list:Ljava/util/ArrayList;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v1, v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;->entrance_res_list:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 314
|
|
iget-object v1, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
invoke-static {v1}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->p(Lcom/moji/mjweather/aqi/presenter/AqiPresenter;)Lcom/moji/mvpframe/IMJMvpView;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/mjweather/aqi/view/IAqiView;
|
|
|
|
iget-object v0, v0, Lcom/moji/http/me/MeServiceEntity$EntranceRegionResListBean;->entrance_res_list:Ljava/util/ArrayList;
|
|
|
|
invoke-interface {v1, v0}, Lcom/moji/mjweather/aqi/view/IAqiView;->fillLiveTipView(Ljava/util/List;)V
|
|
|
|
.line 315
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Lcom/moji/statistics/EVENT_TAG;->AQI_SUGGESTION_SHOW:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_1
|
|
|
|
.line 317
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->q(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;->hideLiveTipView()V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
.line 323
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->r(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;->hideBannerView()V
|
|
|
|
.line 324
|
|
iget-object v0, p0, Lcom/moji/mjweather/aqi/presenter/AqiPresenter$2;->b:Lcom/moji/mjweather/aqi/presenter/AqiPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/mjweather/aqi/presenter/AqiPresenter;->s(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;->hideLiveTipView()V
|
|
|
|
return-void
|
|
.end method
|