@zenvia/sdk
Version:
This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).
28 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CardContent = void 0;
const abstract_content_1 = require("./abstract-content");
/**
* Implementation of card content.
*/
class CardContent extends abstract_content_1.AbstractContent {
/**
* Returns a new `CardContent` that can be used to send an image, a GIF or a video to your customer.
*
* @param title A title in bold shown above the text of the card.
* @param text A text to be displayed inside the card.
* @param media Object with the media url, disposition and caption.
* @param buttons List of buttons displayed inside a card.
* @param quickReplyButtons Horizontal list of buttons displayed after the content.
*/
constructor(title, text, media, buttons, quickReplyButtons) {
super('card');
this.title = title;
this.text = text;
this.media = media;
this.buttons = buttons;
this.quickReplyButtons = quickReplyButtons;
}
}
exports.CardContent = CardContent;
//# sourceMappingURL=card.js.map