UNPKG

homebridge-virtual-accessories

Version:
22 lines 628 B
/* eslint-disable curly */ import { Utils } from '../../utils/utils.js'; /** * */ export class MicrophoneConfiguration { volume; errorFields = []; fieldNames = Utils.proxiedPropertiesOf(this); isValid(prefix) { const isValidVolume = (Utils.required(this.volume) && Utils.isPercentage(this.volume)); // Store fields failing validation if (!isValidVolume) this.errorFields.push(prefix + '.' + this.fieldNames.volume); return [ (isValidVolume), this.errorFields, ]; } } //# sourceMappingURL=configurationMicrophone.js.map