unified-plugin
Version:
NPAW's Unified Plugin
23 lines (22 loc) • 963 B
TypeScript
import FastDataService from '../FastDataService';
import CoreDatabase from '../storage/CoreDatabase';
import CoreStorage from '../storage/CoreStorage';
import { Method } from '../../common/Constants';
import CoreOptions from '../CoreOptions';
import { Service } from './Services';
export default class NQSAnalyticsService {
private coreStorage;
private timeOfLastSentRequest?;
private freshRequests;
private retryRequests;
private options;
private coreDatabase;
private fastDataService;
private timeWhenLastSentFromDatabase?;
private databaseSendingInterval;
constructor(options: CoreOptions, coreStorage: CoreStorage, coreDatabase: CoreDatabase, fastDataService: FastDataService);
destroy(): void;
send(service: Service, method: Method, params: any, body?: any, onSuccessCallback?: () => void, onFailCallback?: () => void): void;
getTimeOfLastSentRequest(): number | undefined;
private _processRequests;
}