mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 20:56:19 -08:00
23 lines
653 B
TypeScript
23 lines
653 B
TypeScript
import { Params } from '@angular/router';
|
|
|
|
export abstract class DataService {
|
|
get isElectron(): boolean {
|
|
return !!(window && window.process && (window.process as any).type);
|
|
}
|
|
get remote() {
|
|
return null;
|
|
}
|
|
get ipcRenderer() {
|
|
return null;
|
|
}
|
|
abstract getAppVersion(): string;
|
|
abstract sendIpcEvent(type: string, payload?: unknown);
|
|
abstract removeAllListeners(type: string): void;
|
|
abstract fetchData(url: string, queryParams: Params): any;
|
|
abstract listenOn(
|
|
command: string,
|
|
callback: (...args: any[]) => void
|
|
): void;
|
|
abstract getAppEnvironment(): string;
|
|
}
|