a.smali

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;->a(Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;)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/ChestBoxInfo;",
        ">;"
    }
.end annotation


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

.field final synthetic b:Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;


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

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

    iput-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/a;->b:Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;

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

    return-void
.end method


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

    if-eqz p1, :cond_21

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

    invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;->b(Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;)Lcom/sandboxol/halloween/view/template/fragment/chest/j;

    move-result-object v0

    if-eqz v0, :cond_21

    .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/ChestBoxInfo;)V

    .line 3
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/a;->b:Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;

    if-eqz p1, :cond_18

    invoke-interface {p1}, Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;->onFinished()V

    .line 4
    :cond_18
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/chest/a;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;

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

    move-result-object p1

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

    :cond_21
    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/a;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;

    invoke-static {p2}, Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;->a(Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;)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/a;->a:Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;

    invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;->a(Lcom/sandboxol/halloween/view/template/fragment/chest/ChestFragment;)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/ChestBoxInfo;

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

    return-void
.end method