node-firewalla
Version:
Package to talk your firewalla box & API
22 lines (21 loc) • 804 B
JavaScript
import { FWGroupApi } from "../api/index.js";
import { FWGetMessage } from "../models/index.js";
import { FWGroupService } from "./FWGroupService.js";
export class BoxService extends FWGroupService {
async shutdown() {
let msg = new FWGetMessage("shutdown");
return FWGroupApi.sendMessageToBox(this.fwGroup, msg);
}
async shutdownCancel() {
let msg = new FWGetMessage("shutdownCancel");
return FWGroupApi.sendMessageToBox(this.fwGroup, msg);
}
async reboot() {
let msg = new FWGetMessage("shutdownCancel");
return FWGroupApi.sendMessageToBox(this.fwGroup, msg);
}
async upgrade() {
let msg = new FWGetMessage("shutdownCancel");
return FWGroupApi.sendMessageToBox(this.fwGroup, msg);
}
}