Class

Comment

Comment(data)

Comment Model
Constructor

# new Comment(data)

Model constructor
Parameters:
Name Type Description
data CommentLike

View Source model/Comment.js, line 8

Classes

Comment

Members

String

# createdBy

The id of the user who created this object.

View Source model/Comment.js, line 82

String

# createdOn

The date this object was created.

View Source model/Comment.js, line 74

String

# entityId

The id of the entity of the comment. Required.

View Source model/Comment.js, line 58

String

# entityId

uuid

View Source model/Comment.js, line 164

String

# entityName

nullable

View Source model/Comment.js, line 171

String

# entityProjectCompanyProfileImageUrl

nullable

View Source model/Comment.js, line 185

Icon

# entityProjectTypeIcon

nullable

View Source model/Comment.js, line 178

'companies' | 'files' | 'projects' | 'tasks'

# entityType

The type of the entity of the comment. Required.

View Source model/Comment.js, line 66

String

# formattedMessage

The formatted and proccessed version of the comment message. E.g. mentions are in a human readable format. The formatted comment message is styled with html.

View Source model/Comment.js, line 255

String

# id

The id of the comment.

View Source model/Comment.js, line 50

# mentions

A mention is the tag of a user on a specific comment, so the user is notified.

View Source model/Comment.js, line 208

Boolean

# mentionsEveryUserHadPermissions

If every user was able to receive the mention notification. If not, one of the users had no permissions to.

View Source model/Comment.js, line 233

Array.<MentionsUsersObject>

# mentionsUsers

All users, which has been mentioned on the comment.

View Source model/Comment.js, line 225

String

# message

The message of the comment. Required.

View Source model/Comment.js, line 26

String

# plainFormattedMessage

The formatted and proccessed version of the comment message. E.g. mentions are in a human readable format. The formatted comment message is not styled.

View Source model/Comment.js, line 263

Array.<String>

# previews

The preview URLs to show a preview for.

View Source model/Comment.js, line 42

String

# projectId

uuid

View Source model/Comment.js, line 132

String

# projectName

nullable

View Source model/Comment.js, line 139

String

# projectProjectCompanyProfileImageUrl

nullable

View Source model/Comment.js, line 153

Icon

# projectProjectTypeIcon

nullable

View Source model/Comment.js, line 146

Array.<ReactionsObject>

# reactions

The reactions on a comment.

View Source model/Comment.js, line 247

Integer

# resourceVersion

The version of the entity.

View Source model/Comment.js, line 271

String

# updatedBy

The id of the user who last modified this object.

View Source model/Comment.js, line 201

String

# updatedOn

The date this object was last modified.

View Source model/Comment.js, line 193

String

# userFirstName

nullable

View Source model/Comment.js, line 100

Boolean

# userHasImage

View Source model/Comment.js, line 114

String

# userId

The id of the user who created the comment. If not set, defaults to the current user.

View Source model/Comment.js, line 34

String

# userId

uuid

View Source model/Comment.js, line 93

String

# userKey

nullable

View Source model/Comment.js, line 121

String

# userLastName

nullable

View Source model/Comment.js, line 107