This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-predictions / Comment

Comment ​

Comment on a market.

Properties ​

content ​

content: string

Text.


createdAt? ​

optional createdAt?: 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? ​

optional rejectionReason?: string

Reason, when the comment was rejected.


replies? ​

optional replies?: Comment[]

Nested replies (the gateway loads them on root comments).


repliesCount ​

repliesCount: number

Replies.


status ​

status: CommentStatus

Moderation status.


updatedAt? ​

optional updatedAt?: string

Last update (ISO 8601).


userId ​

userId: string

Author id.


username ​

username: string

Author's display name.