HalloweenService.smali
.class public Lcom/sandboxol/halloween/HalloweenService;
.super Ljava/lang/Object;
.source "HalloweenService.java"
# interfaces
.implements Lcom/sandboxol/center/router/moduleApi/IHalloweenService;
# annotations
.annotation build Lcom/alibaba/android/arouter/facade/annotation/Route;
path = "/halloween/service"
.end annotation
# instance fields
.field private a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private b:Lcom/sandboxol/halloween/entity/AllEventInfoResponse;
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/halloween/HalloweenService;Lcom/sandboxol/halloween/entity/AllEventInfoResponse;)Lcom/sandboxol/halloween/entity/AllEventInfoResponse;
.registers 2
.line 4
iput-object p1, p0, Lcom/sandboxol/halloween/HalloweenService;->b:Lcom/sandboxol/halloween/entity/AllEventInfoResponse;
return-object p1
.end method
.method static synthetic a(Lcom/sandboxol/halloween/HalloweenService;)Ljava/util/List;
.registers 1
.line 1
iget-object p0, p0, Lcom/sandboxol/halloween/HalloweenService;->a:Ljava/util/List;
return-object p0
.end method
.method static synthetic a(Lcom/sandboxol/halloween/HalloweenService;Ljava/util/List;)Ljava/util/List;
.registers 2
.line 2
iput-object p1, p0, Lcom/sandboxol/halloween/HalloweenService;->a:Ljava/util/List;
return-object p1
.end method
.method private a(Landroid/content/Context;)V
.registers 4
.line 6
new-instance v0, Landroid/content/Intent;
const-class v1, Lcom/sandboxol/halloween/view/activity/main/EventMainActivity;
invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 7
invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
return-void
.end method
.method private a(Landroid/content/Context;Ljava/lang/String;)V
.registers 4
.line 5
new-instance v0, Lcom/sandboxol/halloween/h;
invoke-direct {v0, p0, p2, p1}, Lcom/sandboxol/halloween/h;-><init>(Lcom/sandboxol/halloween/HalloweenService;Ljava/lang/String;Landroid/content/Context;)V
invoke-static {p1, v0}, Lcom/sandboxol/halloween/web/x;->s(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/halloween/HalloweenService;Landroid/content/Context;)V
.registers 2
.line 3
invoke-direct {p0, p1}, Lcom/sandboxol/halloween/HalloweenService;->a(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method public enterEventHome(Landroid/content/Context;Ljava/lang/String;)V
.registers 5
.line 1
invoke-static {p2}, Lcom/sandboxol/halloween/view/template/a/a;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "1"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_10
.line 2
invoke-direct {p0, p1, p2}, Lcom/sandboxol/halloween/HalloweenService;->a(Landroid/content/Context;Ljava/lang/String;)V
return-void
.line 3
:cond_10
new-instance v0, Lcom/sandboxol/halloween/g;
invoke-direct {v0, p0, p2, p1}, Lcom/sandboxol/halloween/g;-><init>(Lcom/sandboxol/halloween/HalloweenService;Ljava/lang/String;Landroid/content/Context;)V
invoke-static {p1, v0}, Lcom/sandboxol/halloween/web/x;->s(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public init(Landroid/content/Context;)V
.registers 2
return-void
.end method
.method public isInEvents(Ljava/lang/String;)Z
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/HalloweenService;->a:Ljava/util/List;
if-eqz v0, :cond_c
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_c
const/4 p1, 0x1
goto :goto_d
:cond_c
const/4 p1, 0x0
:goto_d
return p1
.end method
.method public loadEventBgPics(Landroid/content/Context;)V
.registers 3
.line 1
new-instance v0, Lcom/sandboxol/halloween/j;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/halloween/j;-><init>(Lcom/sandboxol/halloween/HalloweenService;Landroid/content/Context;)V
invoke-static {v0}, Lcom/sandboxol/halloween/web/x;->b(Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public openAllEventHome(Landroid/content/Context;)V
.registers 3
.line 1
new-instance v0, Lcom/sandboxol/halloween/f;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/halloween/f;-><init>(Lcom/sandboxol/halloween/HalloweenService;Landroid/content/Context;)V
invoke-static {p1, v0}, Lcom/sandboxol/halloween/web/x;->s(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public stage(Landroid/content/Context;Ljava/lang/String;Lcom/sandboxol/center/listener/OnEventStatusListener;)V
.registers 9
.line 1
iget-object v0, p0, Lcom/sandboxol/halloween/HalloweenService;->a:Ljava/util/List;
const-wide/16 v1, -0x1
const/4 v3, 0x1
if-eqz v0, :cond_76
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_76
iget-object v0, p0, Lcom/sandboxol/halloween/HalloweenService;->a:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_76
.line 2
invoke-static {p2}, Lcom/sandboxol/halloween/view/template/a/a;->d(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v4, "0"
invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_25
.line 3
invoke-interface {p3, v3, v1, v2}, Lcom/sandboxol/center/listener/OnEventStatusListener;->stage(IJ)V
return-void
.line 4
:cond_25
iget-object v0, p0, Lcom/sandboxol/halloween/HalloweenService;->b:Lcom/sandboxol/halloween/entity/AllEventInfoResponse;
if-eqz v0, :cond_6d
invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/AllEventInfoResponse;->getStatusList()Ljava/util/List;
move-result-object v0
if-nez v0, :cond_30
goto :goto_6d
.line 5
:cond_30
iget-object p1, p0, Lcom/sandboxol/halloween/HalloweenService;->b:Lcom/sandboxol/halloween/entity/AllEventInfoResponse;
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_3a
:goto_3a
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_79
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/halloween/entity/EventConfigInfo;
.line 6
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "activity:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getActivityId()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3a
.line 7
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 {p3, v1, v2, v3}, Lcom/sandboxol/center/listener/OnEventStatusListener;->stage(IJ)V
goto :goto_3a
.line 8
:cond_6d
:goto_6d
new-instance v0, Lcom/sandboxol/halloween/k;
invoke-direct {v0, p0, p2, p3}, Lcom/sandboxol/halloween/k;-><init>(Lcom/sandboxol/halloween/HalloweenService;Ljava/lang/String;Lcom/sandboxol/center/listener/OnEventStatusListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/halloween/web/x;->s(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
goto :goto_79
.line 9
:cond_76
invoke-interface {p3, v3, v1, v2}, Lcom/sandboxol/center/listener/OnEventStatusListener;->stage(IJ)V
:cond_79
:goto_79
return-void
.end method