PingReportManager.smali

.class public Lcom/sandboxol/center/router/manager/PingReportManager;
.super Ljava/lang/Object;
.source "PingReportManager.java"


# static fields
.field private static pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    const-string v0, "/ping/report"

    .line 1
    invoke-static {v0}, Lcom/sandboxol/center/router/RouteServiceManager;->provide(Ljava/lang/String;)Lcom/alibaba/android/arouter/facade/template/IProvider;

    move-result-object v0

    check-cast v0, Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    sput-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static getReportInternal()I
    .registers 1

    .line 1
    sget-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    if-eqz v0, :cond_9

    .line 2
    invoke-interface {v0}, Lcom/sandboxol/center/router/moduleApi/IPingReportService;->getReportInternal()I

    move-result v0

    return v0

    :cond_9
    const/4 v0, -0x1

    return v0
.end method

.method public static initService(Landroid/content/Context;)V
    .registers 2

    .line 1
    sget-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    if-eqz v0, :cond_7

    .line 2
    invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IPingReportService;->initService(Landroid/content/Context;)V

    :cond_7
    return-void
.end method

.method public static onFpsEvent(Ljava/lang/String;I)V
    .registers 3

    .line 1
    sget-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    if-eqz v0, :cond_7

    .line 2
    invoke-interface {v0, p0, p1}, Lcom/sandboxol/center/router/moduleApi/IPingReportService;->onFpsEvent(Ljava/lang/String;I)V

    :cond_7
    return-void
.end method

.method public static onNetPingEvent(Ljava/lang/String;I)V
    .registers 3

    .line 1
    sget-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    if-eqz v0, :cond_7

    .line 2
    invoke-interface {v0, p0, p1}, Lcom/sandboxol/center/router/moduleApi/IPingReportService;->onNetPingEvent(Ljava/lang/String;I)V

    :cond_7
    return-void
.end method

.method public static onPingEvent(Ljava/lang/String;I)V
    .registers 3

    .line 1
    sget-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    if-eqz v0, :cond_7

    .line 2
    invoke-interface {v0, p0, p1}, Lcom/sandboxol/center/router/moduleApi/IPingReportService;->onPingEvent(Ljava/lang/String;I)V

    :cond_7
    return-void
.end method

.method public static setReportInternal(I)V
    .registers 2

    .line 1
    sget-object v0, Lcom/sandboxol/center/router/manager/PingReportManager;->pingReportService:Lcom/sandboxol/center/router/moduleApi/IPingReportService;

    if-eqz v0, :cond_7

    .line 2
    invoke-interface {v0, p0}, Lcom/sandboxol/center/router/moduleApi/IPingReportService;->setReportInternal(I)V

    :cond_7
    return-void
.end method