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