Reference / @getenginex/sdk-predictions / Comment
Comment
Comment on a market.
Properties
content
content:
string
Text.
createdAt?
optionalcreatedAt?:string
Creation (ISO 8601).
depth
depth:
number
Level: 0 root, 1 reply, 2 reply to a reply (the gateway's maximum).
id
id:
string
Comment id.
likedByMe
likedByMe:
boolean
Whether the logged-in user liked it.
likesCount
likesCount:
number
Likes.
marketId
marketId:
string
Market id.
parentId
parentId:
string
Id of the comment replied to ('' for a root comment).
rejectionReason?
optionalrejectionReason?:string
Reason, when the comment was rejected.
replies?
optionalreplies?:Comment[]
Nested replies (the gateway loads them on root comments).
repliesCount
repliesCount:
number
Replies.
status
status:
CommentStatus
Moderation status.
updatedAt?
optionalupdatedAt?:string
Last update (ISO 8601).
userId
userId:
string
Author id.
username
username:
string
Author's display name.