n.smali

.class public Lcom/sandboxol/blockymods/view/fragment/partycreate/n;
.super Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;
.source "PartyCreateItemViewModel.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/viewmodel/ListItemViewModel<",
        "Lcom/sandboxol/center/entity/AllGameIdInfo;",
        ">;"
    }
.end annotation


# instance fields
.field public a:Landroidx/databinding/ObservableField;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/databinding/ObservableField<",
            "Lcom/sandboxol/center/entity/AllGameIdInfo;",
            ">;"
        }
    .end annotation
.end field

.field public b:Lcom/sandboxol/common/command/ReplyCommand;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/sandboxol/center/entity/AllGameIdInfo;Landroidx/databinding/ObservableField;Lcom/sandboxol/center/entity/AllGameIdInfo;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/sandboxol/center/entity/AllGameIdInfo;",
            "Landroidx/databinding/ObservableField<",
            "Lcom/sandboxol/center/entity/AllGameIdInfo;",
            ">;",
            "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, Lcom/sandboxol/common/command/ReplyCommand;

    new-instance v0, Lcom/sandboxol/blockymods/view/fragment/partycreate/a;

    invoke-direct {v0, p0}, Lcom/sandboxol/blockymods/view/fragment/partycreate/a;-><init>(Lcom/sandboxol/blockymods/view/fragment/partycreate/n;)V

    invoke-direct {p1, v0}, Lcom/sandboxol/common/command/ReplyCommand;-><init>(Lrx/functions/Action0;)V

    iput-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partycreate/n;->b:Lcom/sandboxol/common/command/ReplyCommand;

    .line 3
    iput-object p3, p0, Lcom/sandboxol/blockymods/view/fragment/partycreate/n;->a:Landroidx/databinding/ObservableField;

    .line 4
    invoke-virtual {p4}, Lcom/sandboxol/center/entity/AllGameIdInfo;->getGameId()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2}, Lcom/sandboxol/center/entity/AllGameIdInfo;->getGameId()Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_22

    .line 5
    invoke-virtual {p3, p4}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V

    :cond_22
    return-void
.end method


# virtual methods
.method public getItem()Lcom/sandboxol/center/entity/AllGameIdInfo;
    .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/center/entity/AllGameIdInfo;

    return-object v0
.end method

.method public bridge synthetic getItem()Ljava/lang/Object;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lcom/sandboxol/blockymods/view/fragment/partycreate/n;->getItem()Lcom/sandboxol/center/entity/AllGameIdInfo;

    move-result-object v0

    return-object v0
.end method

.method public synthetic h()V
    .registers 4

    .line 1
    invoke-static {}, Lcom/sandboxol/common/messenger/Messenger;->getDefault()Lcom/sandboxol/common/messenger/Messenger;

    move-result-object v0

    iget-object v1, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->item:Ljava/lang/Object;

    const-string v2, "party.choose.game"

    invoke-virtual {v0, v1, v2}, Lcom/sandboxol/common/messenger/Messenger;->send(Ljava/lang/Object;Ljava/lang/Object;)V

    .line 2
    iget-object v0, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->context:Landroid/content/Context;

    iget-object v1, p0, Lcom/sandboxol/common/base/viewmodel/ListItemViewModel;->item:Ljava/lang/Object;

    check-cast v1, Lcom/sandboxol/center/entity/AllGameIdInfo;

    invoke-virtual {v1}, Lcom/sandboxol/center/entity/AllGameIdInfo;->getGameId()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v2, v1}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method