diff --git a/src/AItem.ts b/src/AItem.ts index a7bd0d4..c23504b 100644 --- a/src/AItem.ts +++ b/src/AItem.ts @@ -3,13 +3,14 @@ import { mqttHandler } from './MqttDispatcher' export abstract class AItem { - protected topicFirstPart: string; - protected itemId: string; - private item: string; - private room: string; + protected topicFirstPart: string + protected itemId: string + private item: string + private room: string private floor: string protected subscribeTopics: string[] + constructor(floor: string, room: string, item: string) { this.floor = floor this.room = room