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