airship-server
Version:
Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.
23 lines • 611 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const BotOutputMessageContent_1 = require("./BotOutputMessageContent");
class TextContent extends BotOutputMessageContent_1.BotOutputMessageContent {
constructor(text) {
super();
this._text = text;
}
get text() {
return this._text;
}
serialize() {
return {
type: 'text',
text: this._text
};
}
static deserialize(raw) {
return new TextContent(raw['text']);
}
}
exports.default = TextContent;
//# sourceMappingURL=TextContent.js.map