b.smali
.class public final Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/b;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "ChestTaskItemViewModel.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;->M()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/ChestTaskRewardResponse;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;)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/page/task/b;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
invoke-direct {p0}, Lcom/sandboxol/common/base/web/OnResponseListener;-><init>()V
return-void
.end method
# virtual methods
.method public a(Lcom/sandboxol/halloween/entity/ChestTaskRewardResponse;)V
.registers 7
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/b;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;->b(Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;)V
.line 2
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/b;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;->a(Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;)Landroid/content/Context;
move-result-object v0
.line 3
iget-object v1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/b;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
invoke-static {v1}, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;->a(Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;)Landroid/content/Context;
move-result-object v1
const-string v2, "context"
invoke-static {v1, v2}, Lkotlin/jvm/internal/i;->b(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
.line 4
sget v2, Lcom/sandboxol/halloween/R$string;->halloween_receive_candy_tips:I
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
if-eqz p1, :cond_2a
.line 5
invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/ChestTaskRewardResponse;->getAcquireCoin()I
move-result p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
goto :goto_2b
:cond_2a
const/4 p1, 0x0
:goto_2b
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const/4 v4, 0x0
aput-object p1, v3, v4
.line 6
invoke-virtual {v1, v2, v3}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
.line 7
invoke-static {v0, p1}, Lcom/sandboxol/common/utils/AppToastUtils;->showLongPositiveTipToast(Landroid/content/Context;Ljava/lang/String;)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/page/task/b;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
invoke-static {p2}, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;->a(Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;)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 3
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/b;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;
invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;->a(Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/ChestTaskItemViewModel;)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/ChestTaskRewardResponse;
invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/view/template/fragment/chest/page/task/b;->a(Lcom/sandboxol/halloween/entity/ChestTaskRewardResponse;)V
return-void
.end method