159 lines
4.7 KiB
Smali
159 lines
4.7 KiB
Smali
.class Lcom/moji/newliveview/detail/DetailCommentAdapter$6;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "DetailCommentAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/newliveview/detail/DetailCommentAdapter;->a(Lcom/moji/http/snsforum/entity/PictureComment;)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/http/snsforum/entity/PictureComment;
|
|
|
|
.field final synthetic b:Lcom/moji/newliveview/detail/DetailCommentAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/newliveview/detail/DetailCommentAdapter;Lcom/moji/http/snsforum/entity/PictureComment;)V
|
|
.locals 0
|
|
|
|
.line 1192
|
|
iput-object p1, p0, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->b:Lcom/moji/newliveview/detail/DetailCommentAdapter;
|
|
|
|
iput-object p2, p0, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->a:Lcom/moji/http/snsforum/entity/PictureComment;
|
|
|
|
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 4
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1195
|
|
invoke-virtual {p1}, Lcom/moji/requestcore/entity/MJBaseRespRc;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1196
|
|
iget-object p1, p0, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->a:Lcom/moji/http/snsforum/entity/PictureComment;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p1, Lcom/moji/http/snsforum/entity/PictureComment;->is_praise:Z
|
|
|
|
.line 1197
|
|
iget-object p1, p0, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->a:Lcom/moji/http/snsforum/entity/PictureComment;
|
|
|
|
iget v1, p1, Lcom/moji/http/snsforum/entity/PictureComment;->praise_num:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p1, Lcom/moji/http/snsforum/entity/PictureComment;->praise_num:I
|
|
|
|
.line 1198
|
|
iget-object p1, p0, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->b:Lcom/moji/newliveview/detail/DetailCommentAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/newliveview/detail/DetailCommentAdapter;->c()V
|
|
|
|
.line 1199
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_PIC_COMMENT_PRAISE:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, ""
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->b:Lcom/moji/newliveview/detail/DetailCommentAdapter;
|
|
|
|
invoke-static {v2}, Lcom/moji/newliveview/detail/DetailCommentAdapter;->b(Lcom/moji/newliveview/detail/DetailCommentAdapter;)Lcom/moji/http/snsforum/entity/PictureDetail;
|
|
|
|
move-result-object v2
|
|
|
|
iget-wide v2, v2, Lcom/moji/http/snsforum/entity/PictureDetail;->id:J
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 1202
|
|
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
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 1204
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->onFailed(Lcom/moji/requestcore/MJException;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 1213
|
|
: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 1192
|
|
check-cast p1, Lcom/moji/requestcore/entity/MJBaseRespRc;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/newliveview/detail/DetailCommentAdapter$6;->a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V
|
|
|
|
return-void
|
|
.end method
|