-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ICRequest } 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 declare function GetCircuitStatus(): ICRequest; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { GetRequest, ICRequest, 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(): ICRequest { | ||
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; | ||
} |