Weather/smali_classes2/com/moji/index/ArticlesPresenter$1.smali
2021-05-10 10:13:34 +02:00

171 lines
4.8 KiB
Smali

.class Lcom/moji/index/ArticlesPresenter$1;
.super Lcom/moji/requestcore/MJHttpCallback;
.source "ArticlesPresenter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/moji/index/ArticlesPresenter;->a(Ljava/lang/String;I)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/index/IndexResp;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/moji/index/ArticlesPresenter;
# direct methods
.method constructor <init>(Lcom/moji/index/ArticlesPresenter;)V
.locals 0
.line 46
iput-object p1, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;-><init>()V
return-void
.end method
# virtual methods
.method protected a(Lcom/moji/http/index/IndexResp;)V
.locals 3
.line 49
iget-object v0, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/moji/index/ArticlesPresenter;->a(Lcom/moji/index/ArticlesPresenter;Z)Z
const-string v0, "ArticlesPresenter"
const-string v2, "onResponseCheckSuccess: "
.line 50
invoke-static {v0, v2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
if-eqz p1, :cond_1
.line 51
iget-object v0, p1, Lcom/moji/http/index/IndexResp;->index_region_list:Ljava/util/List;
if-eqz v0, :cond_1
iget-object v0, p1, Lcom/moji/http/index/IndexResp;->index_region_list:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p1, Lcom/moji/http/index/IndexResp;->index_region_list:Ljava/util/List;
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/moji/http/index/IndexResp$IndexRegionListBean;
iget-object v0, v0, Lcom/moji/http/index/IndexResp$IndexRegionListBean;->index_content_list:Ljava/util/List;
if-nez v0, :cond_0
goto :goto_0
.line 55
:cond_0
iget-object v0, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
const/4 v2, 0x1
invoke-static {v0, v2}, Lcom/moji/index/ArticlesPresenter;->b(Lcom/moji/index/ArticlesPresenter;Z)Z
.line 56
iget-object v0, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
invoke-static {v0}, Lcom/moji/index/ArticlesPresenter;->a(Lcom/moji/index/ArticlesPresenter;)Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
move-result-object v0
iget-object p1, p1, Lcom/moji/http/index/IndexResp;->index_region_list:Ljava/util/List;
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean;
iget-object p1, p1, Lcom/moji/http/index/IndexResp$IndexRegionListBean;->index_content_list:Ljava/util/List;
invoke-interface {v0, p1}, Lcom/moji/index/ArticlesPresenter$ArticlesCallback;->a(Ljava/util/List;)V
return-void
.line 52
:cond_1
:goto_0
iget-object p1, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
invoke-static {p1}, Lcom/moji/index/ArticlesPresenter;->a(Lcom/moji/index/ArticlesPresenter;)Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
move-result-object p1
invoke-interface {p1}, Lcom/moji/index/ArticlesPresenter$ArticlesCallback;->c()V
return-void
.end method
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
.locals 1
.line 61
iget-object p1, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
const/4 v0, 0x0
invoke-static {p1, v0}, Lcom/moji/index/ArticlesPresenter;->a(Lcom/moji/index/ArticlesPresenter;Z)Z
.line 62
iget-object p1, p0, Lcom/moji/index/ArticlesPresenter$1;->a:Lcom/moji/index/ArticlesPresenter;
invoke-static {p1}, Lcom/moji/index/ArticlesPresenter;->a(Lcom/moji/index/ArticlesPresenter;)Lcom/moji/index/ArticlesPresenter$ArticlesCallback;
move-result-object p1
invoke-interface {p1}, Lcom/moji/index/ArticlesPresenter$ArticlesCallback;->b()V
const-string p1, "ArticlesPresenter"
const-string v0, "onRequestFail: "
.line 63
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method protected synthetic onSuccess(Ljava/lang/Object;)V
.locals 0
.line 46
check-cast p1, Lcom/moji/http/index/IndexResp;
invoke-virtual {p0, p1}, Lcom/moji/index/ArticlesPresenter$1;->a(Lcom/moji/http/index/IndexResp;)V
return-void
.end method