UNPKG

airship-server

Version:

Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.

28 lines 790 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BotOutputMessageContent_1 = require("./BotOutputMessageContent"); class AudioContent extends BotOutputMessageContent_1.BotOutputMessageContent { constructor(ownerId, audioId) { super(); this._ownerId = ownerId; this._audioId = audioId; } get ownerId() { return this._ownerId; } get audioId() { return this._audioId; } serialize() { return { type: 'audio', ownerId: this._ownerId, audioId: this._audioId }; } static deserialize(raw) { return new AudioContent(raw['ownerId'], raw['audioId']); } } exports.default = AudioContent; //# sourceMappingURL=AudioContent.js.map