1 2DrawioComment = function(file, id, content, modifiedDate, createdDate, isResolved, user) 3{ 4 // The file having this comment 5 this.file = file; 6 7 // Unique ID 8 this.id = id; 9 10 // Comment contents 11 this.content = content; 12 13 // Comment modified date 14 this.modifiedDate = modifiedDate; 15 16 // Comment created date 17 this.createdDate = createdDate; 18 19 // Is comment resolved 20 this.isResolved = isResolved; 21 22 // User created this comment 23 // Type: DrawioUser 24 this.user = user; 25 26 this.replies = []; 27}; 28 29DrawioComment.prototype.addReplyDirect = function(reply) 30{ 31 if (reply != null) 32 this.replies.push(reply); 33}; 34 35DrawioComment.prototype.addReply = function(reply, success, error, doResolve, doReopen) 36{ 37 //Placeholder 38 success(); 39}; 40 41DrawioComment.prototype.editComment = function(newContent, success, error) 42{ 43 //Placeholder 44 success(); 45}; 46 47DrawioComment.prototype.deleteComment = function(success, error) 48{ 49 //Placeholder 50 success(); 51}; 52