f.smali

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/halloween/HalloweenService;->openAllEventHome(Landroid/content/Context;)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:Landroid/content/Context;

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


# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/HalloweenService;Landroid/content/Context;)V
    .registers 3

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

    iput-object p2, p0, Lcom/sandboxol/halloween/f;->a:Landroid/content/Context;

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

    return-void
.end method

.method static synthetic a(Lcom/sandboxol/halloween/entity/EventConfigInfo;Lcom/sandboxol/halloween/entity/EventConfigInfo;)I
    .registers 2

    .line 19
    invoke-virtual {p0}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getPriority()I

    move-result p0

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

    move-result p1

    invoke-static {p0, p1}, Ljava/lang/Integer;->compare(II)I

    move-result p0

    neg-int p0, p0

    return p0
.end method


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

    if-eqz p1, :cond_d0

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

    move-result-object v0

    if-eqz v0, :cond_d0

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

    move-result-object v0

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

    move-result v0

    if-lez v0, :cond_d0

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

    move-result-object v0

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_d0

    .line 4
    iget-object v0, p0, Lcom/sandboxol/halloween/f;->b:Lcom/sandboxol/halloween/HalloweenService;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0, v2}, Lcom/sandboxol/halloween/HalloweenService;->a(Lcom/sandboxol/halloween/HalloweenService;Ljava/util/List;)Ljava/util/List;

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

    move-result-object v0

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

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_5d

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

    move-result-object v2

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

    .line 6
    invoke-virtual {v2}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->extractEventIdAndTempNumFromActivityId()V

    .line 7
    iget-object v3, p0, Lcom/sandboxol/halloween/f;->b:Lcom/sandboxol/halloween/HalloweenService;

    invoke-static {v3}, Lcom/sandboxol/halloween/HalloweenService;->a(Lcom/sandboxol/halloween/HalloweenService;)Ljava/util/List;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "activity:"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2f

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

    move-result-object v0

    invoke-static {v0}, Lcom/sandboxol/halloween/c/i;->a(Ljava/util/List;)V

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

    move-result-object v0

    sget-object v2, Lcom/sandboxol/halloween/a;->a:Lcom/sandboxol/halloween/a;

    invoke-static {v0, v2}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 10
    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/AllEventInfoResponse;)V

    .line 11
    invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;

    move-result-object v0

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

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

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

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

    move-result-object v2

    iput-object v2, v0, Lcom/sandboxol/halloween/view/template/c;->a:Ljava/lang/String;

    .line 13
    iget-object v0, p0, Lcom/sandboxol/halloween/f;->a:Landroid/content/Context;

    invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;

    move-result-object v2

    iget-object v2, v2, Lcom/sandboxol/halloween/view/template/c;->a:Ljava/lang/String;

    const-string v3, "openAllEventHome"

    invoke-static {v0, v2, v3}, Lcom/sandboxol/halloween/view/template/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 14
    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_9d
    :goto_9d
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_b4

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

    move-result-object v0

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

    const/4 v2, 0x1

    if-eqz v0, :cond_9d

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

    move-result v0

    if-ne v0, v2, :cond_9d

    const/4 v1, 0x1

    goto :goto_9d

    :cond_b4
    if-eqz v1, :cond_d0

    .line 16
    invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;

    move-result-object p1

    iget-object p1, p1, Lcom/sandboxol/halloween/view/template/c;->a:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_d0

    .line 17
    iget-object p1, p0, Lcom/sandboxol/halloween/f;->b:Lcom/sandboxol/halloween/HalloweenService;

    iget-object v0, p0, Lcom/sandboxol/halloween/f;->a:Landroid/content/Context;

    invoke-static {p1, v0}, Lcom/sandboxol/halloween/HalloweenService;->a(Lcom/sandboxol/halloween/HalloweenService;Landroid/content/Context;)V

    .line 18
    iget-object p1, p0, Lcom/sandboxol/halloween/f;->a:Landroid/content/Context;

    const-string v0, "act_win_time"

    invoke-static {p1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    :cond_d0
    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/f;->a(Lcom/sandboxol/halloween/entity/AllEventInfoResponse;)V

    return-void
.end method