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

138 lines
3.2 KiB
Smali

.class Lcom/moji/index/TidePresenter$2$1;
.super Lcom/moji/requestcore/MJBaseHttpCallback;
.source "TidePresenter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/moji/index/TidePresenter$2;->run()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/moji/requestcore/MJBaseHttpCallback<",
"Ljava/lang/String;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/moji/index/TidePresenter$2;
# direct methods
.method constructor <init>(Lcom/moji/index/TidePresenter$2;)V
.locals 0
.line 93
iput-object p1, p0, Lcom/moji/index/TidePresenter$2$1;->a:Lcom/moji/index/TidePresenter$2;
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
return-void
.end method
# virtual methods
.method protected a(Ljava/lang/String;)V
.locals 1
.line 96
invoke-super {p0, p1}, Lcom/moji/requestcore/MJBaseHttpCallback;->onConvertNotUI(Ljava/lang/Object;)V
.line 99
:try_start_0
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
const-string v0, "TidePresenter"
.line 101
invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_0
const-string p1, "ranges"
.line 103
invoke-virtual {v0, p1}, Lorg/json/JSONObject;->opt(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_0
.line 104
iget-object p1, p0, Lcom/moji/index/TidePresenter$2$1;->a:Lcom/moji/index/TidePresenter$2;
iget-object p1, p1, Lcom/moji/index/TidePresenter$2;->b:Lcom/moji/index/TidePresenter;
invoke-virtual {p1, v0}, Lcom/moji/index/TidePresenter;->a(Lorg/json/JSONObject;)V
:cond_0
return-void
.end method
.method protected b(Ljava/lang/String;)V
.locals 0
return-void
.end method
.method protected synthetic onConvertNotUI(Ljava/lang/Object;)V
.locals 0
.line 93
check-cast p1, Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/moji/index/TidePresenter$2$1;->a(Ljava/lang/String;)V
return-void
.end method
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
.locals 1
.line 114
iget-object p1, p0, Lcom/moji/index/TidePresenter$2$1;->a:Lcom/moji/index/TidePresenter$2;
iget-object p1, p1, Lcom/moji/index/TidePresenter$2;->b:Lcom/moji/index/TidePresenter;
invoke-static {p1}, Lcom/moji/index/TidePresenter;->d(Lcom/moji/index/TidePresenter;)Landroid/os/Handler;
move-result-object p1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z
return-void
.end method
.method protected synthetic onSuccess(Ljava/lang/Object;)V
.locals 0
.line 93
check-cast p1, Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/moji/index/TidePresenter$2$1;->b(Ljava/lang/String;)V
return-void
.end method