switch adaptor

This commit is contained in:
2018-05-24 23:42:07 +02:00
parent f75de912ba
commit e413f2871c
6 changed files with 109 additions and 3 deletions

3
dist/Forwarder.js vendored
View File

@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
const AItem_1 = require("./AItem");
const MqttDispatcher_1 = require("./MqttDispatcher");
class Forwarder extends AItem_1.AItem {
getInTopic() {
return this.inTopic;
}
constructor(floor, room, item, topicLastPart, label, targetTopics) {
super(floor, room, item, label);
this.inTopic = `${this.topicFirstPart}/${topicLastPart}`;