SandboxReportService$2.smali

.class Lcom/sandboxol/report/SandboxReportService$2;
.super Ljava/lang/Object;
.source "SandboxReportService.java"

# interfaces
.implements Lcom/sandboxol/messager/callback/Action1;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/report/SandboxReportService;->_startReport(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/sandboxol/report/SandboxReportService;


# direct methods
.method constructor <init>(Lcom/sandboxol/report/SandboxReportService;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/sandboxol/report/SandboxReportService$2;->this$0:Lcom/sandboxol/report/SandboxReportService;

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

    return-void
.end method


# virtual methods
.method public onCall(Landroid/os/Message;)V
    .registers 3

    .line 1
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object p1

    const-string v0, "event"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p1

    check-cast p1, Lcom/sandboxol/greendao/entity/report/EventInfoRequest;

    if-eqz p1, :cond_23

    .line 2
    iget-object v0, p0, Lcom/sandboxol/report/SandboxReportService$2;->this$0:Lcom/sandboxol/report/SandboxReportService;

    # getter for: Lcom/sandboxol/report/SandboxReportService;->isReport:Z
    invoke-static {v0}, Lcom/sandboxol/report/SandboxReportService;->access$600(Lcom/sandboxol/report/SandboxReportService;)Z

    move-result v0

    if-eqz v0, :cond_23

    .line 3
    invoke-static {p1}, Lcom/sandboxol/report/TimeManager;->insertExecuteTime(Lcom/sandboxol/greendao/entity/report/EventInfoRequest;)Z

    move-result v0

    if-eqz v0, :cond_23

    .line 4
    invoke-static {}, Lcom/sandboxol/report/helper/SandboxEventReportHelper;->getInstance()Lcom/sandboxol/report/helper/SandboxEventReportHelper;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/sandboxol/report/helper/SandboxEventReportHelper;->insertOrReplace(Lcom/sandboxol/greendao/entity/report/EventInfoRequest;)V

    :cond_23
    return-void
.end method