prodap-chatbot-domain
Version:
Classes utilizadas na resposta de todas as Intents do Assistente Virtual
25 lines • 766 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const uuid_1 = require("uuid");
class Message {
constructor(text, type, url, subType, system, style, icon, intent, hideIconInMessage) {
this.createdAt = new Date();
this.hideIconInMessage = hideIconInMessage;
this.icon = icon;
this.id = (0, uuid_1.v4)();
this.isComposite = false;
this.subType = subType;
this.text = text;
this.type = type;
this.url = url || undefined;
this.system = system;
this.style = style;
this.intent = intent;
}
addSubType(subType) {
this.subType = subType;
return this;
}
}
exports.default = Message;
//# sourceMappingURL=Message.js.map