unified-plugin
Version:
NPAW's Unified Plugin
37 lines (36 loc) • 1.07 kB
TypeScript
import Loader from '../Loaders/Loader';
/**
* @class
* @description This class reports current pluguin status to the DB
* @exports StatsReportingBusinessObject
*/
export default class StatsReportingBusinessObject {
private static _instance;
private loader;
private started;
private stopped;
private lastCdnStats;
private lastP2pStats;
private host;
private token;
private accountCode;
private profileName;
private resource;
private title;
static getInstance(loader?: Loader): StatsReportingBusinessObject;
constructor(loader: Loader);
updateData(host: string, token: string, accountCode: string, profileName: string | undefined, resource: string, title: string): Promise<void>;
report(): {
timemark: number;
code: string;
sessionRoot: string;
v: string;
pingTime: number | undefined;
token: string;
accountCode: string;
profileName: string;
data: string;
} | undefined;
private hasValuesChanged;
private reportRequest;
}