lib / com.kirkbushman.araw.models / Comment / <init>

<init>

Comment(@Json("id") id: String, @Json("name") fullname: String, @Json("all_awardings") allAwarding: List<Awarding>?, @Json("author") author: String, @Json("body") body: String, @Json("body_html") bodyHtml: String, @Json("can_gild") canGild: Boolean, @Json("created") created: Long, @Json("created_utc") createdUtc: Long, @Json("edited") editedRaw: Any, @Json("depth") depth: Int = 0, @Json("distinguished") distinguishedRaw: String?, @Json("archived") isArchived: Boolean, @Json("locked") isLocked: Boolean, @Json("saved") isSaved: Boolean, @Json("score_hidden") isScoreHidden: Boolean, @Json("stickied") isStickied: Boolean, @Json("is_submitter") isSubmitter: Boolean, @Json("likes") likes: Boolean?, @Json("link_title") linkTitle: String?, @Json("link_author") linkAuthor: String?, @Json("link_id") linkId: String?, @Json("link_url") linkUrl: String?, @Json("link_permalink") linkPermalink: String?, @Json("gildings") gildings: Gildings, @Json("parent_id") parentId: String, @Json("permalink") permalink: String, @Json("replies") repliesRaw: EnvelopedCommentDataListing?, replies: List<CommentData>? = repliesRaw?.data?.children?.map { it.data }?.toList(), parentFullname: String = parentId, @Json("score") score: Int, @Json("subreddit") subreddit: String, @Json("subreddit_id") subredditId: String, @Json("subreddit_name_prefixed") subredditNamePrefixed: String)

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

Instances of this class along with the class MoreComments is organized in a tree structure, that composes a Submission comments section.