.class Lcom/moji/user/frienddynamic/AddFriendAdapter$4; .super Lcom/moji/requestcore/MJHttpCallback; .source "AddFriendAdapter.java" # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/moji/user/frienddynamic/AddFriendAdapter;->b(Lcom/moji/http/ugc/bean/SearchUserResultItem;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/moji/requestcore/MJHttpCallback<", "Lcom/moji/requestcore/entity/MJBaseRespRc;", ">;" } .end annotation # instance fields .field final synthetic a:Lcom/moji/http/ugc/bean/SearchUserResultItem; .field final synthetic b:Lcom/moji/user/frienddynamic/AddFriendAdapter; # direct methods .method constructor (Lcom/moji/user/frienddynamic/AddFriendAdapter;Lcom/moji/http/ugc/bean/SearchUserResultItem;)V .locals 0 .line 215 iput-object p1, p0, Lcom/moji/user/frienddynamic/AddFriendAdapter$4;->b:Lcom/moji/user/frienddynamic/AddFriendAdapter; iput-object p2, p0, Lcom/moji/user/frienddynamic/AddFriendAdapter$4;->a:Lcom/moji/http/ugc/bean/SearchUserResultItem; invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;->()V return-void .end method # virtual methods .method protected a(Lcom/moji/requestcore/entity/IResult;)V .locals 2 .line 232 invoke-super {p0, p1}, Lcom/moji/requestcore/MJHttpCallback;->a(Lcom/moji/requestcore/entity/IResult;)V .line 233 invoke-virtual {p1}, Lcom/moji/requestcore/entity/IResult;->a()I move-result v0 .line 234 invoke-virtual {p1}, Lcom/moji/requestcore/entity/IResult;->b()Ljava/lang/String; move-result-object p1 const/16 v1, 0xc if-eq v0, v1, :cond_1 const/16 v1, 0xd if-eq v0, v1, :cond_1 const/16 v1, 0xe if-ne v0, v1, :cond_0 goto :goto_0 .line 239 :cond_0 sget p1, Lcom/moji/user/R$string;->add_attention_failed:I invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V goto :goto_1 .line 237 :cond_1 :goto_0 invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V :goto_1 return-void .end method .method protected a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V .locals 1 .line 219 iget-object p1, p0, Lcom/moji/user/frienddynamic/AddFriendAdapter$4;->a:Lcom/moji/http/ugc/bean/SearchUserResultItem; const/4 v0, 0x1 iput-boolean v0, p1, Lcom/moji/http/ugc/bean/SearchUserResultItem;->is_followed:Z .line 220 iget-object p1, p0, Lcom/moji/user/frienddynamic/AddFriendAdapter$4;->b:Lcom/moji/user/frienddynamic/AddFriendAdapter; invoke-virtual {p1}, Lcom/moji/user/frienddynamic/AddFriendAdapter;->notifyDataSetChanged()V return-void .end method .method protected onFailed(Lcom/moji/requestcore/MJException;)V .locals 0 .line 225 invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z move-result p1 if-nez p1, :cond_0 .line 226 sget p1, Lcom/moji/user/R$string;->network_exception:I invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V :cond_0 return-void .end method .method protected synthetic onSuccess(Ljava/lang/Object;)V .locals 0 .line 215 check-cast p1, Lcom/moji/requestcore/entity/MJBaseRespRc; invoke-virtual {p0, p1}, Lcom/moji/user/frienddynamic/AddFriendAdapter$4;->a(Lcom/moji/requestcore/entity/MJBaseRespRc;)V return-void .end method