lib / com.kirkbushman.araw.models.base / CommentData

CommentData

interface CommentData : Contribution

Base interface for the elements in the comments section of a submission.

Properties

depth

An integer representing the nested level of this comment.

abstract val depth: Int

hasReplies

If the node has children nodes.

abstract val hasReplies: Boolean

parentFullname

Fullname of the thing this comment is a reply to, either the link or a comment in it.

abstract val parentFullname: String

replies

The list of children nodes.

abstract val replies: List<CommentData>?

repliesSize

The number of children nodes.

abstract val repliesSize: Int

Inheritors

Comment

This class can represent a comment on a Submission or a reply to another comment.

data class Comment : CommentData, Votable, Saveable, Created, Editable, Distinguishable, Gildable, Replyable, Parcelable

MoreComments

This class is used to load more comments in the tree, when a comment or a group of comment is too deep.

data class MoreComments : CommentData, Parcelable