h.smali

.class Lcom/sandboxol/halloween/view/template/fragment/wish/h;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "WishFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;->a(Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;)V
.end annotation

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

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


# instance fields
.field final synthetic a:Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;

.field final synthetic b:Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;


# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;)V
    .registers 3

    .line 1
    iput-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/wish/h;->b:Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;

    iput-object p2, p0, Lcom/sandboxol/halloween/view/template/fragment/wish/h;->a: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/WishInfo;)V
    .registers 4

    if-eqz p1, :cond_32

    .line 1
    invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/WishInfo;->getRewardList()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_32

    .line 2
    invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/WishInfo;->getRewardList()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x3

    if-ne v0, v1, :cond_32

    iget-object v0, p0, Lcom/sandboxol/halloween/view/template/fragment/wish/h;->b:Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;

    invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;->a(Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;)Lcom/sandboxol/common/base/viewmodel/ViewModel;

    move-result-object v0

    if-eqz v0, :cond_32

    .line 3
    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/WishInfo;)V

    .line 4
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/wish/h;->a:Lcom/sandboxol/halloween/view/template/BaseEventTemplateFragment$a;

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

    .line 5
    iget-object p1, p0, Lcom/sandboxol/halloween/view/template/fragment/wish/h;->b:Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;

    invoke-static {p1}, Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;->b(Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;)Lcom/sandboxol/common/base/viewmodel/ViewModel;

    move-result-object p1

    check-cast p1, Lcom/sandboxol/halloween/view/template/fragment/wish/l;

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

    :cond_32
    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/wish/h;->b:Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;

    invoke-static {p2}, Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;->c(Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;)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/wish/h;->b:Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;

    invoke-static {v0}, Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;->d(Lcom/sandboxol/halloween/view/template/fragment/wish/WishFragment;)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/WishInfo;

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

    return-void
.end method