SandboxReportService$1$1.smali
.class Lcom/sandboxol/report/SandboxReportService$1$1;
.super Ljava/lang/Object;
.source "SandboxReportService.java"
# interfaces
.implements Lcom/sandboxol/greendao/a/c;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/sandboxol/report/SandboxReportService$1;->onNext(Ljava/lang/Long;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/sandboxol/greendao/a/c<",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/report/EventInfoRequest;",
">;>;"
}
.end annotation
# instance fields
.field final synthetic this$1:Lcom/sandboxol/report/SandboxReportService$1;
# direct methods
.method constructor <init>(Lcom/sandboxol/report/SandboxReportService$1;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1$1;->this$1:Lcom/sandboxol/report/SandboxReportService$1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onError(ILjava/lang/String;)V
.registers 3
.line 1
iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1$1;->this$1:Lcom/sandboxol/report/SandboxReportService$1;
iget-object p1, p1, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;
const/4 p2, 0x1
# setter for: Lcom/sandboxol/report/SandboxReportService;->isReportFinish:Z
invoke-static {p1, p2}, Lcom/sandboxol/report/SandboxReportService;->access$202(Lcom/sandboxol/report/SandboxReportService;Z)Z
return-void
.end method
.method public bridge synthetic onSuccess(Ljava/lang/Object;)V
.registers 2
.line 1
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/sandboxol/report/SandboxReportService$1$1;->onSuccess(Ljava/util/List;)V
return-void
.end method
.method public onSuccess(Ljava/util/List;)V
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/greendao/entity/report/EventInfoRequest;",
">;)V"
}
.end annotation
.line 2
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_64
.line 3
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 4
iget-object v1, p0, Lcom/sandboxol/report/SandboxReportService$1$1;->this$1:Lcom/sandboxol/report/SandboxReportService$1;
iget-object v1, v1, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;
# invokes: Lcom/sandboxol/report/SandboxReportService;->getUserId()J
invoke-static {v1}, Lcom/sandboxol/report/SandboxReportService;->access$300(Lcom/sandboxol/report/SandboxReportService;)J
move-result-wide v1
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
.line 5
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_1b
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_4c
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/greendao/entity/report/EventInfoRequest;
.line 6
invoke-virtual {v2}, Lcom/sandboxol/greendao/entity/report/EventInfoRequest;->getUserId()Ljava/lang/Long;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
move-result-wide v3
const-wide/16 v5, 0x0
cmp-long v7, v3, v5
if-lez v7, :cond_48
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v3
cmp-long v7, v3, v5
if-lez v7, :cond_48
invoke-virtual {v2}, Lcom/sandboxol/greendao/entity/report/EventInfoRequest;->getUserId()Ljava/lang/Long;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/lang/Long;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_48
goto :goto_1b
.line 7
:cond_48
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1b
.line 8
:cond_4c
iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1$1;->this$1:Lcom/sandboxol/report/SandboxReportService$1;
iget-object v1, p1, Lcom/sandboxol/report/SandboxReportService$1;->val$context:Landroid/content/Context;
new-instance v2, Lcom/sandboxol/greendao/entity/report/EventRequest;
iget-object p1, p1, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;
# getter for: Lcom/sandboxol/report/SandboxReportService;->packageName:Ljava/lang/String;
invoke-static {p1}, Lcom/sandboxol/report/SandboxReportService;->access$400(Lcom/sandboxol/report/SandboxReportService;)Ljava/lang/String;
move-result-object p1
invoke-direct {v2, v0, p1}, Lcom/sandboxol/greendao/entity/report/EventRequest;-><init>(Ljava/util/List;Ljava/lang/String;)V
new-instance p1, Lcom/sandboxol/report/SandboxReportService$1$1$1;
invoke-direct {p1, p0, v0}, Lcom/sandboxol/report/SandboxReportService$1$1$1;-><init>(Lcom/sandboxol/report/SandboxReportService$1$1;Ljava/util/List;)V
invoke-static {v1, v2, p1}, Lcom/sandboxol/report/web/ReportInfoApi;->reportSandboxData(Landroid/content/Context;Lcom/sandboxol/greendao/entity/report/EventRequest;Lcom/sandboxol/common/base/web/OnResponseListener;)V
goto :goto_6c
.line 9
:cond_64
iget-object p1, p0, Lcom/sandboxol/report/SandboxReportService$1$1;->this$1:Lcom/sandboxol/report/SandboxReportService$1;
iget-object p1, p1, Lcom/sandboxol/report/SandboxReportService$1;->this$0:Lcom/sandboxol/report/SandboxReportService;
const/4 v0, 0x1
# setter for: Lcom/sandboxol/report/SandboxReportService;->isReportFinish:Z
invoke-static {p1, v0}, Lcom/sandboxol/report/SandboxReportService;->access$202(Lcom/sandboxol/report/SandboxReportService;Z)Z
:goto_6c
return-void
.end method