prodap-chatbot-domain
Version:
Classes utilizadas na resposta de todas as Intents do Assistente Virtual
20 lines • 709 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CardListAction = void 0;
const ActionCard_1 = require("./ActionCard");
const CardAbstract_1 = require("./CardAbstract");
const CardTypes_1 = require("./CardTypes");
class CardListAction extends CardAbstract_1.default {
constructor(message) {
super(message, CardTypes_1.default.LIST_ACTIONS);
this.listAction = [];
const values = message.list;
if (values) {
values.forEach((value) => {
this.listAction.push(new ActionCard_1.ActionCard(value));
});
}
}
}
exports.CardListAction = CardListAction;
//# sourceMappingURL=CardListAction.js.map