h.smali
.class Lcom/sandboxol/halloween/h;
.super Lcom/sandboxol/common/base/web/OnResponseListener;
.source "HalloweenService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/halloween/HalloweenService;->a(Landroid/content/Context;Ljava/lang/String;)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:Landroid/content/Context;
.field final synthetic c:Lcom/sandboxol/halloween/HalloweenService;
# direct methods
.method constructor <init>(Lcom/sandboxol/halloween/HalloweenService;Ljava/lang/String;Landroid/content/Context;)V
.registers 4
.line 1
iput-object p1, p0, Lcom/sandboxol/halloween/h;->c:Lcom/sandboxol/halloween/HalloweenService;
iput-object p2, p0, Lcom/sandboxol/halloween/h;->a:Ljava/lang/String;
iput-object p3, p0, Lcom/sandboxol/halloween/h;->b: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 28
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 9
if-eqz p1, :cond_f3
.line 1
invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/AllEventInfoResponse;->getStatusList()Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_f3
.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_f3
.line 3
invoke-virtual {p1}, Lcom/sandboxol/halloween/entity/AllEventInfoResponse;->getStatusList()Ljava/util/List;
move-result-object v0
sget-object v1, Lcom/sandboxol/halloween/c;->a:Lcom/sandboxol/halloween/c;
invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
.line 4
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_23
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_33
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/sandboxol/halloween/entity/EventConfigInfo;
.line 5
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->extractEventIdAndTempNumFromActivityId()V
goto :goto_23
.line 6
:cond_33
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
:cond_3b
:goto_3b
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
const/4 v2, 0x0
const/4 v3, 0x1
if-eqz v1, :cond_ea
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/sandboxol/halloween/entity/EventConfigInfo;
if-eqz v1, :cond_3b
.line 7
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getActivityId()Ljava/lang/String;
move-result-object v4
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-nez v4, :cond_dd
.line 8
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getActivityId()Ljava/lang/String;
move-result-object v4
iget-object v5, p0, Lcom/sandboxol/halloween/h;->a:Ljava/lang/String;
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_3b
.line 9
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStage()I
move-result v0
const/4 v4, 0x2
if-nez v0, :cond_92
.line 10
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStartAfter()J
move-result-wide v5
invoke-static {v5, v6}, Lcom/sandboxol/halloween/c/j;->a(J)I
move-result p1
.line 11
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStartAfter()J
move-result-wide v0
invoke-static {v0, v1}, Lcom/sandboxol/halloween/c/j;->b(J)I
move-result v0
.line 12
iget-object v1, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
sget v5, Lcom/sandboxol/halloween/R$string;->event_not_start_tips:I
new-array v4, v4, [Ljava/lang/Object;
.line 13
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
aput-object p1, v4, v2
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
aput-object p1, v4, v3
.line 14
invoke-virtual {v1, v5, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
.line 15
invoke-static {v1, p1}, Lcom/sandboxol/common/utils/AppToastUtils;->showShortNegativeTipToast(Landroid/content/Context;Ljava/lang/String;)V
goto :goto_db
.line 16
:cond_92
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStage()I
move-result v0
const/4 v2, 0x3
if-ne v0, v2, :cond_a1
.line 17
iget-object p1, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
sget v0, Lcom/sandboxol/halloween/R$string;->halloween_error_8006:I
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showShortNegativeTipToast(Landroid/content/Context;I)V
goto :goto_db
.line 18
:cond_a1
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStage()I
move-result v0
if-eq v0, v3, :cond_ad
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getStage()I
move-result v0
if-ne v0, v4, :cond_db
.line 19
:cond_ad
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 20
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 21
invoke-static {}, Lcom/sandboxol/halloween/view/template/c;->d()Lcom/sandboxol/halloween/view/template/c;
move-result-object p1
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getEventId()Ljava/lang/String;
move-result-object v0
iput-object v0, p1, Lcom/sandboxol/halloween/view/template/c;->a:Ljava/lang/String;
.line 22
iget-object p1, p0, Lcom/sandboxol/halloween/h;->c:Lcom/sandboxol/halloween/HalloweenService;
iget-object v0, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
invoke-static {p1, v0}, Lcom/sandboxol/halloween/HalloweenService;->a(Lcom/sandboxol/halloween/HalloweenService;Landroid/content/Context;)V
.line 23
iget-object p1, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
.line 24
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getEventId()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/sandboxol/halloween/view/template/a/a;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "act_show_time"
.line 25
invoke-static {p1, v1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
:cond_db
:goto_db
const/4 v2, 0x1
goto :goto_ea
.line 26
:cond_dd
iget-object v2, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
invoke-virtual {v1}, Lcom/sandboxol/halloween/entity/EventConfigInfo;->getEventId()Ljava/lang/String;
move-result-object v1
const-string v3, "enterSevenDayTaskHome"
invoke-static {v2, v1, v3}, Lcom/sandboxol/halloween/view/template/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_3b
:cond_ea
:goto_ea
if-nez v2, :cond_f3
.line 27
iget-object p1, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
sget v0, Lcom/sandboxol/halloween/R$string;->halloween_error_8006:I
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/AppToastUtils;->showShortNegativeTipToast(Landroid/content/Context;I)V
:cond_f3
return-void
.end method
.method public onError(ILjava/lang/String;)V
.registers 3
.line 1
iget-object p2, p0, Lcom/sandboxol/halloween/h;->b:Landroid/content/Context;
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/h;->b:Landroid/content/Context;
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/AllEventInfoResponse;
invoke-virtual {p0, p1}, Lcom/sandboxol/halloween/h;->a(Lcom/sandboxol/halloween/entity/AllEventInfoResponse;)V
return-void
.end method