"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DayOfWeekRoute = void 0;
class DayOfWeekRoute {
    constructor(values) {
        Object.assign(this, values);
    }
    connectToDevice(devices) {
        return devices.find((d) => d.id === this.connectTo);
    }
    onMatchDevice(devices) {
        return devices.find((d) => d.id === this.onMatch);
    }
}
exports.DayOfWeekRoute = DayOfWeekRoute;
