UNPKG

airship-server

Version:

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

33 lines 956 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BotOutputMessageContent_1 = require("./BotOutputMessageContent"); class ImageContent extends BotOutputMessageContent_1.BotOutputMessageContent { constructor(ownerId, photoId, accessKey) { super(); this._ownerId = ownerId; this._photoId = photoId; this._accessKey = accessKey; } get ownerId() { return this._ownerId; } get photoId() { return this._photoId; } get accessKey() { return this._accessKey; } serialize() { return { type: 'image', ownerId: this._ownerId, photoId: this._photoId, accessKey: this._accessKey }; } static deserialize(raw) { return new ImageContent(raw['ownerId'], raw['photoId'], raw['accessKey']); } } exports.default = ImageContent; //# sourceMappingURL=ImageContent.js.map