UNPKG

homebridge-connect-my-pool

Version:
95 lines 3.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AjaxResponse = exports.HeatingResponse = exports.SolarResponse = exports.HeaterResponse = exports.PoolSpaResponse = exports.ZoneResponse = exports.InputResponse = exports.Zone = exports.Controller = exports.FormData = exports.InputField = exports.APIStatus = void 0; class APIStatus { } exports.APIStatus = APIStatus; class InputField { constructor(name, value, id) { this.name = name; this.value = value; this.id = id; } } exports.InputField = InputField; class FormData { } exports.FormData = FormData; ; class Controller { constructor(name) { this.name = name; } } exports.Controller = Controller; class Zone { constructor(name, type) { this.name = name; this.type = type; } } exports.Zone = Zone; class InputResponse { constructor(inputs) { this.inputs = inputs ? inputs : []; } } exports.InputResponse = InputResponse; class ZoneResponse extends InputResponse { constructor(zoneType, inputs) { super(inputs); this.zoneType = zoneType; } } exports.ZoneResponse = ZoneResponse; class PoolSpaResponse extends ZoneResponse { constructor(zoneType, poolSpaMode, poolFilterMode, isPoolFilterRunning, spaBlowerMode, isSpaJetsRunning, spaJetsMode, isSpaBlowerRunning, inputs) { super(zoneType, inputs); this.isPoolFilterRunning = false; this.isSpaJetsRunning = false; this.isSpaBlowerRunning = false; this.poolSpaMode = poolSpaMode; this.poolFilterMode = poolFilterMode; this.isPoolFilterRunning = isPoolFilterRunning; this.spaJetsMode = spaJetsMode; this.isSpaJetsRunning = isSpaJetsRunning; this.spaBlowerMode = spaBlowerMode; this.isSpaBlowerRunning = isSpaBlowerRunning; } } exports.PoolSpaResponse = PoolSpaResponse; class HeaterResponse extends ZoneResponse { constructor(zoneType, status, isRunning, currentTemp, targetTemp, inputs) { super(zoneType, inputs); this.isRunning = false; this.status = status; this.isRunning = isRunning; this.currentTemp = currentTemp; this.targetTemp = targetTemp; } } exports.HeaterResponse = HeaterResponse; class SolarResponse extends HeaterResponse { constructor(zoneType, status, isRunning, currentTemp, targetTemp, roofTemp, inputs) { super(zoneType, status, isRunning, currentTemp, targetTemp, inputs); this.roofTemp = roofTemp; } } exports.SolarResponse = SolarResponse; class HeatingResponse extends HeaterResponse { constructor(zoneType, status, isRunning, currentTemp, targetTemp, heatingMode, inputs) { super(zoneType, status, isRunning, currentTemp, targetTemp, inputs); this.heatingMode = heatingMode; } } exports.HeatingResponse = HeatingResponse; class AjaxResponse extends InputResponse { constructor(statusCode, body, headers) { super(); this.statusCode = statusCode; this.body = body; this.headers = headers; } } exports.AjaxResponse = AjaxResponse; //# sourceMappingURL=ajaxResponse.js.map