introduce interfaces for state/feedback topics

This commit is contained in:
Wolfgang Hottgenroth
2018-01-11 13:52:09 +01:00
parent c7834fefb1
commit 28eec19e53
7 changed files with 92 additions and 54 deletions

View File

@ -3,6 +3,15 @@ import { mqttHandler } from './MqttDispatcher'
import { ExportType } from './Export'
export interface HasStateTopic {
getStateTopic() : string
}
export interface HasStateAndFeedbackTopic extends HasStateTopic {
getStateFeedbackTopic() : string
}
export abstract class AItem {
protected topicFirstPart: string
protected itemId: string