@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
27 lines (26 loc) • 809 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Message = void 0;
const Mapper_1 = require("../common/Mapper");
const BitmovinResponse_1 = require("./BitmovinResponse");
const Link_1 = require("./Link");
/**
* @export
* @class Message
*/
class Message extends BitmovinResponse_1.default {
constructor(obj) {
super(obj);
if (!obj) {
return;
}
this.type = (0, Mapper_1.map)(obj.type);
this.text = (0, Mapper_1.map)(obj.text);
this.field = (0, Mapper_1.map)(obj.field);
this.links = (0, Mapper_1.mapArray)(obj.links, Link_1.default);
this.more = (0, Mapper_1.map)(obj.more);
this.date = (0, Mapper_1.map)(obj.date, Date);
}
}
exports.Message = Message;
exports.default = Message;