"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HuntGroup = void 0;
class HuntGroup {
    constructor(values) {
        Object.assign(this, values);
    }
    mapDevices(deviceList) {
        return this.devices.map((id) => deviceList.find((d) => d.id === id));
    }
    onCompleteDevice(deviceList) {
        return deviceList.find((d) => d.id === this.onComplete);
    }
    onFailDevice(deviceList) {
        return deviceList.find((d) => d.id === this.onFail);
    }
    onNoAnswerDevice(deviceList) {
        return deviceList.find((d) => d.id === this.onNoAnswer);
    }
    onBusyDevice(deviceList) {
        return deviceList.find((d) => d.id === this.onBusy);
    }
}
exports.HuntGroup = HuntGroup;
