221 lines
7.5 KiB
Smali
221 lines
7.5 KiB
Smali
.class Lcom/moji/newliveview/detail/PictureDetailFragment$5;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "PictureDetailFragment.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/newliveview/detail/PictureDetailFragment;->g()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/snsforum/entity/ClickPraiseResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/newliveview/detail/PictureDetailFragment;)V
|
|
.locals 0
|
|
|
|
.line 445
|
|
iput-object p1, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Lcom/moji/http/snsforum/entity/ClickPraiseResult;)V
|
|
.locals 7
|
|
|
|
.line 448
|
|
iget-object v0, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/newliveview/detail/PictureDetailFragment;->c(Lcom/moji/newliveview/detail/PictureDetailFragment;Z)Z
|
|
|
|
.line 449
|
|
invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/ClickPraiseResult;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 450
|
|
invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/ClickPraiseResult;->getDesc()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V
|
|
|
|
.line 451
|
|
invoke-virtual {p0, v2}, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->onFailed(Lcom/moji/requestcore/MJException;)V
|
|
|
|
return-void
|
|
|
|
.line 454
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
iput-boolean v3, v0, Lcom/moji/newliveview/detail/PictureDetailFragment;->i:Z
|
|
|
|
.line 455
|
|
iget-object v0, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
iget v3, p1, Lcom/moji/http/snsforum/entity/ClickPraiseResult;->praise_num:I
|
|
|
|
iput v3, v0, Lcom/moji/newliveview/detail/PictureDetailFragment;->j:I
|
|
|
|
.line 456
|
|
iget-object v0, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
invoke-static {v0}, Lcom/moji/newliveview/detail/PictureDetailFragment;->d(Lcom/moji/newliveview/detail/PictureDetailFragment;)Lcom/moji/newliveview/detail/DetailCommentAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
iget p1, p1, Lcom/moji/http/snsforum/entity/ClickPraiseResult;->praise_num:I
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/newliveview/detail/DetailCommentAdapter;->g(I)V
|
|
|
|
.line 457
|
|
iget-object p1, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
invoke-static {p1}, Lcom/moji/newliveview/detail/PictureDetailFragment;->a(Lcom/moji/newliveview/detail/PictureDetailFragment;)Lcom/moji/newliveview/detail/PictureDetailActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/detail/PictureDetailActivity;->setPraiseNum()V
|
|
|
|
.line 458
|
|
iget-object p1, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
invoke-static {p1}, Lcom/moji/newliveview/detail/PictureDetailFragment;->j(Lcom/moji/newliveview/detail/PictureDetailFragment;)V
|
|
|
|
.line 459
|
|
new-instance p1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {p1}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
:try_start_0
|
|
const-string v0, "property3"
|
|
|
|
.line 461
|
|
iget-object v3, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
iget-wide v3, v3, Lcom/moji/newliveview/detail/PictureDetailFragment;->e:J
|
|
|
|
invoke-virtual {p1, v0, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 464
|
|
:catch_0
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v3, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_PIC_PRAISE:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v5, ""
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v5, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
iget-wide v5, v5, Lcom/moji/newliveview/detail/PictureDetailFragment;->e:J
|
|
|
|
invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0, v3, v4, p1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
|
|
|
|
.line 465
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/moji/newliveview/category/PraiseEvent;
|
|
|
|
iget-object v3, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
iget-wide v3, v3, Lcom/moji/newliveview/detail/PictureDetailFragment;->e:J
|
|
|
|
invoke-direct {v0, v3, v4}, Lcom/moji/newliveview/category/PraiseEvent;-><init>(J)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/bus/Bus;->c(Ljava/lang/Object;)V
|
|
|
|
.line 466
|
|
iget-object p1, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/detail/PictureDetailFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/credit/CreditTaskType;->DAILY_PRAISE:Lcom/moji/credit/CreditTaskType;
|
|
|
|
invoke-static {p1, v0, v2, v1}, Lcom/moji/credit/CreditTaskHelper;->a(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;Lcom/moji/tool/ToastTool$AddViewListener;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 2
|
|
|
|
.line 471
|
|
iget-object v0, p0, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a:Lcom/moji/newliveview/detail/PictureDetailFragment;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/newliveview/detail/PictureDetailFragment;->c(Lcom/moji/newliveview/detail/PictureDetailFragment;Z)Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 475
|
|
:cond_0
|
|
sget p1, Lcom/moji/newliveview/R$string;->network_exception:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic onSuccess(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 445
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/ClickPraiseResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/detail/PictureDetailFragment$5;->a(Lcom/moji/http/snsforum/entity/ClickPraiseResult;)V
|
|
|
|
return-void
|
|
.end method
|