"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NumberOption = void 0;
class NumberOption {
    constructor(values) {
        Object.assign(this, values);
    }
    get score() {
        return this.option.toString().length;
    }
    connectToDevice(devices) {
        return devices.find((d) => d.id === this.connectTo);
    }
    isActive(str) {
        return this.option.toString() === str;
    }
    isActivePrefix(str) {
        return this.option.toString().startsWith(str);
    }
}
exports.NumberOption = NumberOption;
