e.smali
.class public final Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "OnePurchaseViewModel.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->da()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/OnePurchaseInfoResponse;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
iput-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-direct {p0}, Lcom/sandboxol/common/base/web/OnResponseListener;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;)V
.registers 7
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->Z()Landroidx/databinding/ObservableField;
move-result-object v0
const/4 v1, 0x0
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v2
invoke-virtual {v0, v2}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 2
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/sandboxol/halloween/view/template/c;->a(Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;)V
.line 3
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/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->p()Landroid/content/Context;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/sandboxol/center/router/manager/BillingManager;->updateUserMoney(Landroid/content/Context;)V
.line 4
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->Y()Landroidx/databinding/ObservableField;
move-result-object p1
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v0
const-string v2, "EventInfoCacheManager.getInstance()"
invoke-static {v0, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v0
const-string v3, "EventInfoCacheManager.ge\u2026).onePurchaseInfoResponse"
invoke-static {v0, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getPurchaseStatus()I
move-result v0
const/4 v4, 0x1
if-ne v0, v4, :cond_42
const/4 v1, 0x1
:cond_42
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-virtual {p1, v0}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 5
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-static {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->a(Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;)V
.line 6
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->p()Landroid/content/Context;
move-result-object p1
.line 7
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v0
invoke-static {v0, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v0
invoke-static {v0, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getTips()Ljava/lang/String;
move-result-object v0
.line 8
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showShortPositiveTipToast(Landroid/content/Context;Ljava/lang/String;)V
.line 9
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->p()Landroid/content/Context;
move-result-object p1
sget-object v0, Lcom/sandboxol/halloween/a/a;->j:Lcom/sandboxol/halloween/a/a$a;
invoke-virtual {v0}, Lcom/sandboxol/halloween/a/a$a;->a()Ljava/lang/String;
move-result-object v0
invoke-static {p1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
.method public onError(ILjava/lang/String;)V
.registers 4
.line 1
iget-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p2}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->Z()Landroidx/databinding/ObservableField;
move-result-object p2
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-virtual {p2, v0}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 2
iget-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p2}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->p()Landroid/content/Context;
move-result-object p2
invoke-static {p2, p1}, Lcom/sandboxol/halloween/web/y;->a(Landroid/content/Context;I)V
return-void
.end method
.method public onServerError(I)V
.registers 4
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->Z()Landroidx/databinding/ObservableField;
move-result-object v0
const/4 v1, 0x0
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v0, v1}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 2
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->p()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Lcom/sandboxol/common/web/error/ServerOnError;->showOnServerError(Landroid/content/Context;I)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/OnePurchaseInfoResponse;
invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/e;->a(Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;)V
return-void
.end method