Files
node-intellicenter/src/messages/response.ts
Parnic 617c8df511 Add support for tests
I was trying to make a websocket test, but the "ws" library doesn't appear to be easily mocked and I prefer to use it over the built-in WebSocket. So we'll see what I can do in the future.
2025-01-08 21:04:50 -06:00

18 lines
379 B
TypeScript

import { ICParam } from "./param.js";
export class ICResponseObj {
public objnam = "";
public params?: ICParam;
}
export class ICResponse {
public command = "";
public messageID = "";
public response = "";
public objectList?: ICResponseObj[];
public queryName?: string;
public answer?: ICResponseObj[];
public timeSince?: string;
public timeNow?: string;
}