152 lines
4.5 KiB
Smali
152 lines
4.5 KiB
Smali
.class Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;
|
|
.super Lcom/moji/requestcore/MJBaseHttpCallback;
|
|
.source "MsgLiveViewCommentFragment.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;->a(Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;Ljava/lang/String;JJLjava/lang/String;)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/PictureAddCommentResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;
|
|
|
|
.field final synthetic b:Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;)V
|
|
.locals 0
|
|
|
|
.line 128
|
|
iput-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->b:Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;
|
|
|
|
iput-object p2, p0, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->a:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;
|
|
|
|
invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Lcom/moji/http/snsforum/entity/PictureAddCommentResult;)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 131
|
|
invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/PictureAddCommentResult;->OK()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 132
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->b:Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;
|
|
|
|
iget-object v1, p0, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->a:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;
|
|
|
|
invoke-static {p1, v1}, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;->a(Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;)V
|
|
|
|
.line 133
|
|
sget p1, Lcom/moji/newliveview/R$string;->publish_success:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
.line 134
|
|
iget-object p1, p0, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->b:Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;
|
|
|
|
invoke-virtual {p1}, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lcom/moji/credit/CreditTaskType;->MAKE_COMMENT:Lcom/moji/credit/CreditTaskType;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p1, v1, v0, v2}, Lcom/moji/credit/CreditTaskHelper;->a(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;Lcom/moji/tool/ToastTool$AddViewListener;Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 137
|
|
:cond_1
|
|
invoke-virtual {p1}, Lcom/moji/http/snsforum/entity/PictureAddCommentResult;->getDesc()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V
|
|
|
|
.line 138
|
|
invoke-virtual {p0, v0}, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->onFailed(Lcom/moji/requestcore/MJException;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 147
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 148
|
|
sget p1, Lcom/moji/newliveview/R$string;->network_exception:I
|
|
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 150
|
|
: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 128
|
|
check-cast p1, Lcom/moji/http/snsforum/entity/PictureAddCommentResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/user/message/fragment/MsgLiveViewCommentFragment$4;->a(Lcom/moji/http/snsforum/entity/PictureAddCommentResult;)V
|
|
|
|
return-void
|
|
.end method
|