---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk-predictions/interfaces/Comment.md
---
[Reference](../../../index.md) / [@getenginex/sdk-predictions](../index.md) / 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`](../type-aliases/CommentStatus.md)

Moderation status.

***

### updatedAt?

> `optional` **updatedAt?**: `string`

Last update (ISO 8601).

***

### userId

> **userId**: `string`

Author id.

***

### username

> **username**: `string`

Author's display name.
