mirror of
https://github.com/parnic/node-intellicenter.git
synced 2025-06-16 18:20:14 -05:00
37 lines
884 B
JavaScript
37 lines
884 B
JavaScript
import { GetRequest, ICRequestObj } from "./request.js";
|
|
/**
|
|
* Requests the list of circuits known to this controller.
|
|
*
|
|
* The response contains an `objectList` populated with circuit information.
|
|
*
|
|
* @returns the object used to issue this request
|
|
*/
|
|
export function GetCircuitStatus() {
|
|
const req = GetRequest();
|
|
req.command = "GetParamList";
|
|
req.condition = "OBJTYP = CIRCUIT";
|
|
req.objectList = [];
|
|
const reqObj = new ICRequestObj();
|
|
reqObj.objnam = "ALL";
|
|
reqObj.keys = [
|
|
"OBJNAM",
|
|
"OBJTYP",
|
|
"SUBTYP",
|
|
"STATUS",
|
|
"BODY",
|
|
"SNAME",
|
|
"HNAME",
|
|
"FREEZE",
|
|
"DNTSTP",
|
|
"HNAME",
|
|
"TIME",
|
|
"FEATR",
|
|
"USAGE",
|
|
"LIMIT",
|
|
"USE",
|
|
"SHOMNU",
|
|
];
|
|
req.objectList.push(reqObj);
|
|
return req;
|
|
}
|
|
//# sourceMappingURL=circuit-status.js.map
|