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 VideoContent extends BotOutputMessageContent_1.BotOutputMessageContent { constructor(ownerId, videoId) { super(); this._ownerId = ownerId; this._videoId = videoId; } get ownerId() { return this._ownerId; } get videoId() { return this._videoId; } serialize() { return { type: 'video', ownerId: this._ownerId, videoId: this._videoId }; } static deserialize(raw) { return new VideoContent(raw['ownerId'], raw['videoId']); } } exports.default = VideoContent; //# sourceMappingURL=VideoContent.js.map