"use strict"; /** * Value object for asset item. * * @constructor */ function ChatMessageDataVO() { // database fields this.text = ""; this.created = null; this.author = ""; this.data = []; this.type = ""; this.fromHistory = ""; this.chatWindow = {}; } // inherit BaseVO ChatMessageDataVO.prototype = new BaseVO(); // correct the constructor pointer ChatMessageDataVO.prototype.constructor = ChatMessageDataVO; /** * @override * @return {Array} */ ChatMessageDataVO.prototype.getProps = function () { return ["text", "created", "author", "data", "type", "fromHistory", "chatWindow"]; }; /** * @override */ ChatMessageDataVO.prototype.postBuild = function () { this.created = this.created ? new Date(this.created).getTime() : new Date().getTime(); };