@corvina/device-client
Version:
Corvina NodeJS Device Client
37 lines • 1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageSubscriber = void 0;
class MessageSubscriber {
_topic;
_modelPath;
_topicType;
_fieldName;
_targetTag;
constructor({ topic, modelPath, topicType, fieldName, targetTag, }) {
this._topic = topic;
this._modelPath = modelPath;
this._topicType = topicType;
this._fieldName = fieldName;
this._targetTag = targetTag;
}
get topic() {
return this._topic;
}
get topicType() {
return this._topicType;
}
get modelPath() {
return this._modelPath;
}
get fieldName() {
return this._fieldName;
}
get targetTag() {
return this._targetTag;
}
toString() {
return `MessageSubscriber@${this._topic} => ${this._modelPath}${this._fieldName ? "." + this._fieldName : ""}`;
}
}
exports.MessageSubscriber = MessageSubscriber;
//# sourceMappingURL=messagesubscriber.js.map