.class Lcom/moji/index/IndexFragment$21; .super Lcom/moji/requestcore/MJBaseHttpCallback; .source "IndexFragment.java" # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/moji/index/IndexFragment;->e()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/index/IndexCommerceListResp;", ">;" } .end annotation # instance fields .field final synthetic a:Lcom/moji/index/IndexFragment; # direct methods .method constructor (Lcom/moji/index/IndexFragment;)V .locals 0 .line 1211 iput-object p1, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; invoke-direct {p0}, Lcom/moji/requestcore/MJBaseHttpCallback;->()V return-void .end method # virtual methods .method protected a(Lcom/moji/http/index/IndexCommerceListResp;)V .locals 2 .line 1214 invoke-virtual {p1}, Lcom/moji/http/index/IndexCommerceListResp;->OK()Z move-result v0 if-eqz v0, :cond_0 if-eqz p1, :cond_0 .line 1215 iget-object v0, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; invoke-static {v0, p1}, Lcom/moji/index/IndexFragment;->a(Lcom/moji/index/IndexFragment;Lcom/moji/http/index/IndexCommerceListResp;)Lcom/moji/http/index/IndexCommerceListResp; .line 1216 iget-object v0, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; invoke-static {v0}, Lcom/moji/index/IndexFragment;->v(Lcom/moji/index/IndexFragment;)Landroid/widget/TextView; move-result-object v0 iget-object v1, p1, Lcom/moji/http/index/IndexCommerceListResp;->indexTitle:Ljava/lang/String; invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V .line 1217 iget-object v0, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; new-instance v1, Lcom/moji/index/CommerceListAdapter; invoke-direct {v1, p1}, Lcom/moji/index/CommerceListAdapter;->(Lcom/moji/http/index/IndexCommerceListResp;)V invoke-static {v0, v1}, Lcom/moji/index/IndexFragment;->a(Lcom/moji/index/IndexFragment;Lcom/moji/index/CommerceListAdapter;)Lcom/moji/index/CommerceListAdapter; .line 1218 iget-object p1, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; invoke-static {p1}, Lcom/moji/index/IndexFragment;->x(Lcom/moji/index/IndexFragment;)Landroid/support/v7/widget/RecyclerView; move-result-object p1 iget-object v0, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; invoke-static {v0}, Lcom/moji/index/IndexFragment;->w(Lcom/moji/index/IndexFragment;)Lcom/moji/index/CommerceListAdapter; move-result-object v0 invoke-virtual {p1, v0}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V .line 1219 iget-object p1, p0, Lcom/moji/index/IndexFragment$21;->a:Lcom/moji/index/IndexFragment; invoke-static {p1}, Lcom/moji/index/IndexFragment;->w(Lcom/moji/index/IndexFragment;)Lcom/moji/index/CommerceListAdapter; move-result-object p1 new-instance v0, Lcom/moji/index/IndexFragment$21$1; invoke-direct {v0, p0}, Lcom/moji/index/IndexFragment$21$1;->(Lcom/moji/index/IndexFragment$21;)V invoke-virtual {p1, v0}, Lcom/moji/index/CommerceListAdapter;->a(Lcom/moji/recyclerview/RecyclerAdapter$OnItemClickListener;)V goto :goto_0 .line 1248 :cond_0 invoke-virtual {p1}, Lcom/moji/http/index/IndexCommerceListResp;->getDesc()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 onFailed(Lcom/moji/requestcore/MJException;)V .locals 0 .line 1254 invoke-virtual {p1}, Lcom/moji/requestcore/MJException;->printStackTrace()V const-string p1, "\u5546\u54c1\u5217\u8868\u52a0\u8f7d\u5931\u8d25\uff01" .line 1255 invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V return-void .end method .method protected synthetic onSuccess(Ljava/lang/Object;)V .locals 0 .line 1211 check-cast p1, Lcom/moji/http/index/IndexCommerceListResp; invoke-virtual {p0, p1}, Lcom/moji/index/IndexFragment$21;->a(Lcom/moji/http/index/IndexCommerceListResp;)V return-void .end method