k.smali

.class Lcom/sandboxol/halloween/k;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "HalloweenService.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/halloween/HalloweenService;->stage(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/center/listener/OnEventStatusListener;)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/AllEventInfoResponse;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/sandboxol/center/listener/OnEventStatusListener;

.field final synthetic c:Lcom/sandboxol/halloween/HalloweenService;


# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/HalloweenService;Ljava/lang/String;Lcom/sandboxol/center/listener/OnEventStatusListener;)V
    .registers 4

    .line 1
    iput-object p1, p0, Lcom/sandboxol/halloween/k;->c:Lcom/sandboxol/halloween/HalloweenService;

    iput-object p2, p0, Lcom/sandboxol/halloween/k;->a:Ljava/lang/String;

    iput-object p3, p0, Lcom/sandboxol/halloween/k;->b:Lcom/sandboxol/center/listener/OnEventStatusListener;

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

    return-void
.end method


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

    if-eqz p1, :cond_3a

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

    move-result-object v0

    if-eqz v0, :cond_3a

    .line 2
    iget-object v0, p0, Lcom/sandboxol/halloween/k;->c:Lcom/sandboxol/halloween/HalloweenService;

    invoke-static {v0, p1}, Lcom/sandboxol/halloween/HalloweenService;->a(Lcom/sandboxol/halloween/HalloweenService;Lcom/sandboxol/halloween/entity/AllEventInfoResponse;)Lcom/sandboxol/halloween/entity/AllEventInfoResponse;

    .line 3
    invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/AllEventInfoResponse;->getStatusList()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_15
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3a

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/halloween/entity/EventConfigInfo;

    .line 4
    iget-object v1, p0, Lcom/sandboxol/halloween/k;->a:Ljava/lang/String;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getActivityId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_15

    .line 5
    iget-object p1, p0, Lcom/sandboxol/halloween/k;->b:Lcom/sandboxol/center/listener/OnEventStatusListener;

    invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStage()I

    move-result v1

    invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getEndAfter()J

    move-result-wide v2

    invoke-interface {p1, v1, v2, v3}, Lcom/sandboxol/center/listener/OnEventStatusListener;->stage(IJ)V

    :cond_3a
    return-void
.end method

.method public onError(ILjava/lang/String;)V
    .registers 3

    return-void
.end method

.method public onServerError(I)V
    .registers 2

    return-void
.end method

.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
    .registers 2

    .line 1
    check-cast p1, Lcom/sandboxol/halloween/entity/AllEventInfoResponse;

    invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/k;->a(Lcom/sandboxol/halloween/entity/AllEventInfoResponse;)V

    return-void
.end method