UNPKG

homebridge-boschcontrolpanel_bgseries

Version:
43 lines 1.62 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BGPoint = exports.BGPointStatus = void 0; var BGPointStatus; (function (BGPointStatus) { BGPointStatus[BGPointStatus["Unassigned"] = 0] = "Unassigned"; BGPointStatus[BGPointStatus["Short"] = 1] = "Short"; BGPointStatus[BGPointStatus["Open"] = 2] = "Open"; BGPointStatus[BGPointStatus["Normal"] = 3] = "Normal"; BGPointStatus[BGPointStatus["Missing"] = 4] = "Missing"; BGPointStatus[BGPointStatus["Resistor2"] = 5] = "Resistor2"; BGPointStatus[BGPointStatus["Resistor4"] = 6] = "Resistor4"; BGPointStatus[BGPointStatus["Unknown"] = 255] = "Unknown"; })(BGPointStatus = exports.BGPointStatus || (exports.BGPointStatus = {})); class BGPoint { constructor(PointNumber, AreaNumber) { this.PointText = ''; this.PointStatus = BGPointStatus.Unknown; this.Bypassable = false; this.PointCode = 0; this.PointCondition = 0; this.PointNumber = PointNumber; this.AreaNumber = AreaNumber; } UpdateStatus(NewStatus) { if (NewStatus !== this.PointStatus) { this.PointStatus = NewStatus; return true; } return false; } UpdatePoint(PointStatus, Bypassable, PointCode, PointCondition) { this.PointStatus = PointStatus; this.Bypassable = Bypassable; this.PointCode = PointCode; this.PointCondition = PointCondition; } UpdatePointShort(PointStatus) { this.PointStatus = PointStatus; } } exports.BGPoint = BGPoint; //# sourceMappingURL=BGPoint.js.map