2019-09-19 10:40:16 +09:00
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
|
2019-10-24 15:37:33 +09:00
|
|
|
import { WindowState } from '../types/window-state.type';
|
|
|
|
|
2019-09-18 15:02:21 +09:00
|
|
|
export interface NativeService {
|
2019-11-01 11:25:54 +09:00
|
|
|
showNotify(noti: NotiRequest): void;
|
2019-09-18 15:02:21 +09:00
|
|
|
|
2019-09-19 10:40:16 +09:00
|
|
|
checkForUpdates(): Observable<boolean>;
|
2019-09-18 15:02:21 +09:00
|
|
|
|
|
|
|
showImageViewer(): void;
|
|
|
|
|
2019-11-07 11:37:33 +09:00
|
|
|
saveFile(buffer: Buffer, fileName: string, path?: string): Observable<string>;
|
|
|
|
readFile(path: string): Observable<Buffer>;
|
2019-10-24 15:37:33 +09:00
|
|
|
|
|
|
|
windowStateChanged(): Observable<WindowState>;
|
|
|
|
windowClose(): void;
|
|
|
|
windowMinimize(): void;
|
|
|
|
windowMaximize(): void;
|
2019-09-18 15:02:21 +09:00
|
|
|
}
|
2019-11-01 11:25:54 +09:00
|
|
|
|
|
|
|
export interface NotiRequest {
|
|
|
|
roomSeq: string;
|
|
|
|
title: string;
|
|
|
|
contents: string;
|
|
|
|
image: string;
|
|
|
|
useSound: boolean;
|
|
|
|
interval?: number;
|
|
|
|
}
|