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