Weather/smali_classes3/com/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5.smali
2021-05-10 10:13:34 +02:00

177 lines
5.6 KiB
Smali

.class Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;
.super Lcom/moji/requestcore/MJBaseHttpCallback;
.source "DynamicCommentPresenter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;->a(Lcom/moji/newliveview/dynamic/DynamicCell;)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/requestcore/entity/MJBaseRespRc;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/moji/newliveview/dynamic/DynamicCell;
.field final synthetic b:Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;
# direct methods
.method constructor <init>(Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;Lcom/moji/newliveview/dynamic/DynamicCell;)V
.locals 0
.line 182
iput-object p1, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->b:Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;
iput-object p2, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->a:Lcom/moji/newliveview/dynamic/DynamicCell;
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
return-void
.end method
# virtual methods
.method protected a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V
.locals 3
.line 185
iget-object v0, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->b:Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;->a(Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;Z)Z
.line 186
invoke-virtual {p1}, Lcom/moji/requestcore/entity/MJBaseRespRc;->OK()Z
move-result v0
if-nez v0, :cond_0
.line 187
invoke-virtual {p1}, Lcom/moji/requestcore/entity/MJBaseRespRc;->getDesc()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V
const/4 p1, 0x0
.line 188
invoke-virtual {p0, p1}, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->onFailed(Lcom/moji/requestcore/MJException;)V
return-void
.line 191
:cond_0
iget-object p1, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->b:Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;
invoke-static {p1}, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;->g(Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;)Z
move-result p1
if-eqz p1, :cond_1
return-void
.line 194
:cond_1
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
move-result-object p1
new-instance v0, Lcom/moji/newliveview/dynamic/AddPraiseEvent;
iget-object v1, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->a:Lcom/moji/newliveview/dynamic/DynamicCell;
invoke-virtual {v1}, Lcom/moji/newliveview/dynamic/DynamicCell;->f()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/moji/http/snsforum/entity/PictureDynamic;
iget-wide v1, v1, Lcom/moji/http/snsforum/entity/PictureDynamic;->dynamic_id:J
invoke-direct {v0, v1, v2}, Lcom/moji/newliveview/dynamic/AddPraiseEvent;-><init>(J)V
invoke-virtual {p1, v0}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V
.line 195
iget-object p1, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->b:Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;
iget-object p1, p1, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;->b:Lcom/moji/base/MJPresenter$ICallback;
check-cast p1, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$DynamicCommentCallback;
iget-object v0, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->a:Lcom/moji/newliveview/dynamic/DynamicCell;
invoke-interface {p1, v0}, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$DynamicCommentCallback;->a(Lcom/moji/newliveview/dynamic/DynamicCell;)V
return-void
.end method
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
.locals 2
.line 200
iget-object v0, p0, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->b:Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;->a(Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter;Z)Z
if-nez p1, :cond_0
return-void
.line 204
:cond_0
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
move-result v0
if-nez v0, :cond_1
.line 205
sget p1, Lcom/moji/newliveview/R$string;->network_exception:I
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
goto :goto_0
.line 207
:cond_1
invoke-virtual {p1}, Lcom/moji/requestcore/MJException;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V
:goto_0
return-void
.end method
.method protected synthetic onSuccess(Ljava/lang/Object;)V
.locals 0
.line 182
check-cast p1, Lcom/moji/requestcore/entity/MJBaseRespRc;
invoke-virtual {p0, p1}, Lcom/moji/newliveview/dynamic/presenter/DynamicCommentPresenter$5;->a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V
return-void
.end method