200 lines
6.8 KiB
Smali
200 lines
6.8 KiB
Smali
.class Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "SakuraCountryPresenter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/sakura/presenter/SakuraCountryPresenter;->a(ILjava/lang/String;II)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/sakura/entity/SakuraSpotListInfo;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)V
|
|
.locals 0
|
|
|
|
.line 103
|
|
iput-object p1, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Lcom/moji/http/sakura/entity/SakuraSpotListInfo;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 106
|
|
invoke-virtual {p1}, Lcom/moji/http/sakura/entity/SakuraSpotListInfo;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 110
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
iget v1, p1, Lcom/moji/http/sakura/entity/SakuraSpotListInfo;->page_end:I
|
|
|
|
iput v1, v0, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->c:I
|
|
|
|
.line 111
|
|
iget-object v0, p1, Lcom/moji/http/sakura/entity/SakuraSpotListInfo;->spot_list:Ljava/util/List;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 112
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->b(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 113
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->c(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;
|
|
|
|
iget-object p1, p1, Lcom/moji/http/sakura/entity/SakuraSpotListInfo;->spot_list:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;->loadMore(Ljava/util/List;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 115
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->d(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;
|
|
|
|
iget-object p1, p1, Lcom/moji/http/sakura/entity/SakuraSpotListInfo;->spot_list:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;->loadSuccess(Ljava/util/List;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 118
|
|
:cond_2
|
|
iget-object p1, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->e(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-interface {p1, v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;->loadSuccess(Ljava/util/List;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 107
|
|
:cond_3
|
|
:goto_1
|
|
iget-object p1, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->a(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;
|
|
|
|
new-instance v0, Lcom/moji/requestcore/MJException;
|
|
|
|
const/16 v1, 0x258
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/requestcore/MJException;-><init>(I)V
|
|
|
|
invoke-interface {p1, v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;->loadFailed(Lcom/moji/requestcore/MJException;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 1
|
|
|
|
.line 124
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->b(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 125
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->f(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;->loadMoreFailed(Lcom/moji/requestcore/MJException;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 127
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a:Lcom/moji/sakura/presenter/SakuraCountryPresenter;
|
|
|
|
invoke-static {v0}, Lcom/moji/sakura/presenter/SakuraCountryPresenter;->g(Lcom/moji/sakura/presenter/SakuraCountryPresenter;)Lcom/moji/base/MJPresenter$ICallback;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;
|
|
|
|
invoke-interface {v0, p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$SakuraCountryCallback;->loadFailed(Lcom/moji/requestcore/MJException;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic onSuccess(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 103
|
|
check-cast p1, Lcom/moji/http/sakura/entity/SakuraSpotListInfo;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/sakura/presenter/SakuraCountryPresenter$2;->a(Lcom/moji/http/sakura/entity/SakuraSpotListInfo;)V
|
|
|
|
return-void
|
|
.end method
|