k.smali
.class public final Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;
.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;->fa()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<",
"Ljava/lang/Object;",
">;"
}
.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/k;->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 onError(ILjava/lang/String;)V
.registers 4
.line 1
iget-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->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/k;->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/k;->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/k;->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 onSuccess(Ljava/lang/Object;)V
.registers 14
.line 1
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->aa()Landroidx/databinding/ObservableField;
move-result-object p1
const/4 v0, 0x1
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {p1, v1}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 2
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->ba()Landroidx/databinding/ObservableField;
move-result-object p1
invoke-virtual {p1, v1}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 3
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->u()Lcom/sandboxol/halloween/view/dialog/s;
move-result-object p1
if-eqz p1, :cond_22
invoke-virtual {p1}, Lcom/sandboxol/common/dialog/FullScreenDialog;->dismiss()V
.line 4
:cond_22
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
.line 5
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v1
const-string v2, "EventInfoCacheManager.getInstance()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v1
const-string v3, "EventInfoCacheManager.ge\u2026).onePurchaseInfoResponse"
invoke-static {v1, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getPrice()J
move-result-wide v4
const/16 v1, 0xa
int-to-long v6, v1
div-long/2addr v4, v6
.line 6
rem-long/2addr v4, v6
long-to-int v1, v4
.line 7
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v4
invoke-static {v4, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v4
invoke-static {v4, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getDiscountPrice()J
move-result-wide v4
div-long/2addr v4, v6
.line 8
rem-long/2addr v4, v6
long-to-int v5, v4
.line 9
invoke-static {p1, v1, v5}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->a(Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;II)I
move-result p1
.line 10
iget-object v1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
.line 11
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v4
invoke-static {v4, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v4
invoke-static {v4, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getPrice()J
move-result-wide v4
rem-long/2addr v4, v6
long-to-int v5, v4
.line 12
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v4
invoke-static {v4, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v4
invoke-static {v4, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getDiscountPrice()J
move-result-wide v8
rem-long/2addr v8, v6
long-to-int v4, v8
.line 13
invoke-static {v1, v5, v4}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->a(Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;II)I
move-result v1
if-le v1, p1, :cond_8a
goto :goto_8c
:cond_8a
add-int/lit8 v1, v1, 0xa
.line 14
:goto_8c
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v4
invoke-static {v4, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v4
invoke-static {v4, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v4, v0}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->setGuideStatus(I)V
.line 15
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->V()Landroidx/databinding/ObservableField;
move-result-object v0
.line 16
iget-object v4, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
.line 17
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v5
invoke-static {v5, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v5}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v5
invoke-static {v5, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v5}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getPrice()J
move-result-wide v8
const/16 v5, 0x3e8
int-to-long v10, v5
div-long/2addr v8, v10
long-to-int v5, v8
.line 18
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v8
invoke-static {v8, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v8}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v8
invoke-static {v8, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v8}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getDiscountPrice()J
move-result-wide v8
div-long/2addr v8, v10
long-to-int v9, v8
.line 19
invoke-static {v4, v5, v9}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->a(Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;II)I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
.line 20
invoke-virtual {v0, v4}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 21
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->X()Landroidx/databinding/ObservableField;
move-result-object v0
.line 22
iget-object v4, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
.line 23
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v5
invoke-static {v5, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v5}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v5
invoke-static {v5, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v5}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getPrice()J
move-result-wide v8
const/16 v5, 0x64
int-to-long v10, v5
div-long/2addr v8, v10
.line 24
rem-long/2addr v8, v6
long-to-int v5, v8
.line 25
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object v8
invoke-static {v8, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v8}, Lcom/sandboxol/halloween/view/template/c;->f()Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;
move-result-object v2
invoke-static {v2, v3}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lcom/sandboxol/halloween/entity/OnePurchaseInfoResponse;->getDiscountPrice()J
move-result-wide v2
div-long/2addr v2, v10
.line 26
rem-long/2addr v2, v6
long-to-int v3, v2
.line 27
invoke-static {v4, v5, v3}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->a(Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;II)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
.line 28
invoke-virtual {v0, v2}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 29
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {v0}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->W()Landroidx/databinding/ObservableField;
move-result-object v0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {v0, p1}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
.line 30
iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/k;->a:Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;
invoke-virtual {p1}, Lcom/sandboxol/halloween/view/template/fragment/onepurchase/o;->U()Landroidx/databinding/ObservableField;
move-result-object p1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
invoke-virtual {p1, v0}, Landroidx/databinding/ObservableField;->set(Ljava/lang/Object;)V
return-void
.end method