PartyGameModelItemModel.smali
.class public Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;
.super Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;
.source "PartyGameModelItemModel.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/sandboxol/common/base/viewmodel/ListItemViewModel<",
"Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;",
">;"
}
.end annotation
# instance fields
.field public game:Landroidx/databinding/ObservableField;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/databinding/ObservableField<",
"Lcom/sandboxol/center/entity/AllGameIdInfo;",
">;"
}
.end annotation
.end field
.field public onSelectCommand:Lcom/sandboxol/common/command/ReplyCommand;
.field public partyGameModeConfig:Landroidx/databinding/ObservableField;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/databinding/ObservableField<",
"Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;Landroidx/databinding/ObservableField;Lcom/sandboxol/center/entity/AllGameIdInfo;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;",
"Landroidx/databinding/ObservableField<",
"Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;",
">;",
"Lcom/sandboxol/center/entity/AllGameIdInfo;",
")V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;-><init>(Landroid/content/Context;Ljava/lang/Object;)V
.line 2
new-instance p1, Landroidx/databinding/ObservableField;
invoke-direct {p1}, Landroidx/databinding/ObservableField;-><init>()V
iput-object p1, p0, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->game:Landroidx/databinding/ObservableField;
.line 3
new-instance p1, Lcom/sandboxol/common/command/ReplyCommand;
new-instance p2, Lcom/sandboxol/center/view/dialog/partygamemode/b;
invoke-direct {p2, p0}, Lcom/sandboxol/center/view/dialog/partygamemode/b;-><init>(Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;)V
invoke-direct {p1, p2}, Lcom/sandboxol/common/command/ReplyCommand;-><init>(Lrx/functions/Action0;)V
iput-object p1, p0, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->onSelectCommand:Lcom/sandboxol/common/command/ReplyCommand;
.line 4
iput-object p3, p0, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->partyGameModeConfig:Landroidx/databinding/ObservableField;
.line 5
iget-object p1, p0, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->game:Landroidx/databinding/ObservableField;
invoke-virtual {p1, p4}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
return-void
.end method
.method public static synthetic a(Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;)V
.registers 1
invoke-direct {p0}, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->onSelect()V
return-void
.end method
.method private onSelect()V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->partyGameModeConfig:Landroidx/databinding/ObservableField;
iget-object v1, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->item:Ljava/lang/Object;
invoke-virtual {v0, v1}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public getItem()Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;
.registers 2
.line 2
invoke-super {p0}, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->getItem()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;
return-object v0
.end method
.method public bridge synthetic getItem()Ljava/lang/Object;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/sandboxol/center/view/dialog/partygamemode/PartyGameModelItemModel;->getItem()Lcom/sandboxol/greendao/entity/PartyCreateGameConfig;
move-result-object v0
return-object v0
.end method