mirror of https://github.com/Fabio286/antares.git
21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
|
'use strict';
|
||
|
import { ipcRenderer } from 'electron';
|
||
|
|
||
|
export default class {
|
||
|
static getTriggerInformations (params) {
|
||
|
return ipcRenderer.invoke('get-trigger-informations', params);
|
||
|
}
|
||
|
|
||
|
static dropTrigger (params) {
|
||
|
return ipcRenderer.invoke('drop-trigger', params);
|
||
|
}
|
||
|
|
||
|
static alterTrigger (params) {
|
||
|
return ipcRenderer.invoke('alter-trigger', params);
|
||
|
}
|
||
|
|
||
|
static createTrigger (params) {
|
||
|
return ipcRenderer.invoke('create-trigger', params);
|
||
|
}
|
||
|
}
|