f.smali

.class public final Lcom/sandboxol/halloween/view/template/fragment/chest/f;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "ChestViewModel.kt"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a(Ljava/lang/Long;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/sandboxol/common/base/web/OnResponseListener<",
        "Lcom/sandboxol/halloween/entity/ChestExchangeResponse;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;


# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/view/template/fragment/chest/g;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    invoke-direct {p0}, Lcom/sandboxol/common/base/web/OnResponseListener;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/sandboxol/halloween/entity/ChestExchangeResponse;)V
    .registers 4

    if-eqz p1, :cond_b

    .line 1
    invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/ChestExchangeResponse;->getNeedUpdate()I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    goto :goto_c

    :cond_b
    const/4 p1, 0x0

    :goto_c
    if-nez p1, :cond_f

    goto :goto_26

    .line 2
    :cond_f
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_26

    invoke-static {}, Lcom/sandboxol/center/router/manager/BillingManager;->getInstance()Lcom/sandboxol/center/router/manager/BillingManager;

    move-result-object p1

    iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object v0, v0, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->m()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/sandboxol/center/router/manager/BillingManager;->updateUserMoney(Landroid/content/Context;)V

    goto :goto_68

    :cond_26
    :goto_26
    if-nez p1, :cond_29

    goto :goto_40

    .line 3
    :cond_29
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_40

    invoke-static {}, Lcom/sandboxol/center/router/manager/BillingManager;->getInstance()Lcom/sandboxol/center/router/manager/BillingManager;

    move-result-object p1

    iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object v0, v0, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->m()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/sandboxol/center/router/manager/BillingManager;->updateVipInfo(Landroid/content/Context;)V

    goto :goto_68

    :cond_40
    :goto_40
    if-nez p1, :cond_43

    goto :goto_68

    .line 4
    :cond_43
    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    const/4 v0, 0x3

    if-ne p1, v0, :cond_68

    .line 5
    invoke-static {}, Lcom/sandboxol/center/router/manager/BillingManager;->getInstance()Lcom/sandboxol/center/router/manager/BillingManager;

    move-result-object p1

    iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object v0, v0, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->m()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/sandboxol/center/router/manager/BillingManager;->updateUserMoney(Landroid/content/Context;)V

    .line 6
    invoke-static {}, Lcom/sandboxol/center/router/manager/BillingManager;->getInstance()Lcom/sandboxol/center/router/manager/BillingManager;

    move-result-object p1

    iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object v0, v0, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->m()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/sandboxol/center/router/manager/BillingManager;->updateVipInfo(Landroid/content/Context;)V

    .line 7
    :cond_68
    :goto_68
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object p1, p1, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->c(Lcom/sandboxol/halloween/view/template/fragment/chest/j;)V

    const/4 p1, 0x0

    .line 8
    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/c;->a(Z)V

    .line 9
    invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->l()V

    return-void
.end method

.method public onError(ILjava/lang/String;)V
    .registers 3

    .line 1
    iget-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object p2, p2, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-virtual {p2}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->m()Landroid/content/Context;

    move-result-object p2

    invoke-static {p2, p1}, Lcom/sandboxol/halloween/web/y;->a(Landroid/content/Context;I)V

    .line 2
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object p1, p1, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->c(Lcom/sandboxol/halloween/view/template/fragment/chest/j;)V

    const/4 p1, 0x0

    .line 3
    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/c;->a(Z)V

    return-void
.end method

.method public onServerError(I)V
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object v0, v0, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->m()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/sandboxol/common/web/error/ServerOnError;->showOnServerError(Landroid/content/Context;I)V

    .line 2
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/g;

    iget-object p1, p1, Lcom/sandboxol/halloween/view/template/fragment/chest/g;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/fragment/chest/j;->c(Lcom/sandboxol/halloween/view/template/fragment/chest/j;)V

    const/4 p1, 0x0

    .line 3
    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/c;->a(Z)V

    return-void
.end method

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

    .line 1
    check-cast p1, Lcom/sandboxol/halloween/entity/ChestExchangeResponse;

    invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/view/template/fragment/chest/f;->a(Lcom/sandboxol/halloween/entity/ChestExchangeResponse;)V

    return-void
.end method