mirror of
https://github.com/parnic/node-intellicenter.git
synced 2025-06-17 02:21:53 -05:00
46 lines
816 B
TypeScript
46 lines
816 B
TypeScript
import { GetRequest, ICRequest, ICRequestObj } from "./request.js";
|
|
|
|
/**
|
|
* Requests information about this controller such as owner, address, etc.
|
|
*
|
|
* @returns the object used to issue this request
|
|
*/
|
|
export function GetSystemInformation(): ICRequest {
|
|
const req = GetRequest();
|
|
req.command = "GETPARAMLIST";
|
|
req.condition = "";
|
|
req.objectList = [];
|
|
|
|
const reqObj = new ICRequestObj();
|
|
reqObj.objnam = "_5451";
|
|
reqObj.keys = [
|
|
"VER",
|
|
"MODE",
|
|
"ZIP",
|
|
"TIMZON",
|
|
"PROPNAME",
|
|
"NAME",
|
|
"ADDRESS",
|
|
"CITY",
|
|
"STATE",
|
|
"PHONE",
|
|
"PHONE2",
|
|
"EMAIL",
|
|
"EMAIL2",
|
|
"COUNTRY",
|
|
"PHONE",
|
|
"LOCX",
|
|
"LOCY",
|
|
"AVAIL",
|
|
"SERVICE",
|
|
"UPDATE",
|
|
"PROGRESS",
|
|
"IN",
|
|
"VALVE",
|
|
"HEATING",
|
|
];
|
|
req.objectList.push(reqObj);
|
|
|
|
return req;
|
|
}
|