g.smali
.class public Lcom/sandboxol/gamedetail/view/fragment/introduce/g;
.super Lcom/sandboxol/common/widget/rv/datarv/DataListModel;
.source "GameDetailIntroduceListModel.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/sandboxol/common/widget/rv/datarv/DataListModel<",
"Lcom/sandboxol/greendao/entity/BannerPic;",
">;"
}
.end annotation
# instance fields
.field private a:Lcom/sandboxol/greendao/entity/Game;
# direct methods
.method public constructor <init>(Landroid/content/Context;ILcom/sandboxol/greendao/entity/Game;)V
.registers 4
.line 1
invoke-direct {p0, p1, p2}, Lcom/sandboxol/common/widget/rv/datarv/DataListModel;-><init>(Landroid/content/Context;I)V
.line 2
iput-object p3, p0, Lcom/sandboxol/gamedetail/view/fragment/introduce/g;->a:Lcom/sandboxol/greendao/entity/Game;
return-void
.end method
# virtual methods
.method public a(Lcom/sandboxol/greendao/entity/BannerPic;)Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/sandboxol/greendao/entity/BannerPic;",
")",
"Lcom/sandboxol/common/base/viewmodel/ListItemViewModel<",
"Lcom/sandboxol/greendao/entity/BannerPic;",
">;"
}
.end annotation
.line 1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/BannerPic;->isFirst()Z
move-result v0
if-eqz v0, :cond_10
.line 2
new-instance v0, Lcom/sandboxol/gamedetail/view/fragment/introduce/m;
iget-object v1, p0, Lcom/sandboxol/common/base/model/DefaultListModel;->context:Landroid/content/Context;
iget-object v2, p0, Lcom/sandboxol/gamedetail/view/fragment/introduce/g;->a:Lcom/sandboxol/greendao/entity/Game;
invoke-direct {v0, v1, p1, v2}, Lcom/sandboxol/gamedetail/view/fragment/introduce/m;-><init>(Landroid/content/Context;Lcom/sandboxol/greendao/entity/BannerPic;Lcom/sandboxol/greendao/entity/Game;)V
return-object v0
.line 3
:cond_10
new-instance v0, Lcom/sandboxol/gamedetail/view/fragment/introduce/f;
iget-object v1, p0, Lcom/sandboxol/common/base/model/DefaultListModel;->context:Landroid/content/Context;
invoke-direct {v0, v1, p1}, Lcom/sandboxol/gamedetail/view/fragment/introduce/f;-><init>(Landroid/content/Context;Lcom/sandboxol/greendao/entity/BannerPic;)V
return-object v0
.end method
.method public bridge synthetic getItemViewModel(Ljava/lang/Object;)Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;
.registers 2
.line 1
check-cast p1, Lcom/sandboxol/greendao/entity/BannerPic;
invoke-virtual {p0, p1}, Lcom/sandboxol/gamedetail/view/fragment/introduce/g;->a(Lcom/sandboxol/greendao/entity/BannerPic;)Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;
move-result-object p1
return-object p1
.end method
.method public getViewTypeCount()I
.registers 2
const/4 v0, 0x2
return v0
.end method
.method public onBind(Lme/tatarka/bindingcollectionadapter2/j;ILcom/sandboxol/common/base/viewmodel/ListItemViewModel;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lme/tatarka/bindingcollectionadapter2/j;",
"I",
"Lcom/sandboxol/common/base/viewmodel/ListItemViewModel<",
"Lcom/sandboxol/greendao/entity/BannerPic;",
">;)V"
}
.end annotation
.line 1
invoke-virtual {p3}, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->getItem()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/sandboxol/greendao/entity/BannerPic;
invoke-virtual {p2}, Lcom/sandboxol/greendao/entity/BannerPic;->isFirst()Z
move-result p2
if-eqz p2, :cond_14
.line 2
sget p2, Lcom/sandboxol/gamedetail/a;->b:I
sget p3, Lcom/sandboxol/gamedetail/R$layout;->item_game_detail_introduce_top:I
invoke-virtual {p1, p2, p3}, Lme/tatarka/bindingcollectionadapter2/j;->a(II)Lme/tatarka/bindingcollectionadapter2/j;
goto :goto_1b
.line 3
:cond_14
sget p2, Lcom/sandboxol/gamedetail/a;->b:I
sget p3, Lcom/sandboxol/gamedetail/R$layout;->item_game_detail_introduce:I
invoke-virtual {p1, p2, p3}, Lme/tatarka/bindingcollectionadapter2/j;->a(II)Lme/tatarka/bindingcollectionadapter2/j;
:goto_1b
return-void
.end method
.method public onLoad(Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/BannerPic;",
">;>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/introduce/g;->a:Lcom/sandboxol/greendao/entity/Game;
if-eqz v0, :cond_18
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/Game;->getWarmUpResponse()Lcom/sandboxol/greendao/entity/GameWarmUpResponse;
move-result-object v0
if-eqz v0, :cond_18
.line 2
iget-object v0, p0, Lcom/sandboxol/gamedetail/view/fragment/introduce/g;->a:Lcom/sandboxol/greendao/entity/Game;
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/Game;->getWarmUpResponse()Lcom/sandboxol/greendao/entity/GameWarmUpResponse;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/greendao/entity/GameWarmUpResponse;->getFeaturedPlay()Ljava/util/List;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/sandboxol/common/base/web/OnResponseListener;->onSuccess(Ljava/lang/Object;)V
goto :goto_20
.line 3
:cond_18
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-virtual {p1, v0}, Lcom/sandboxol/common/base/web/OnResponseListener;->onSuccess(Ljava/lang/Object;)V
:goto_20
return-void
.end method