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

Editable

interface Editable

Base interface to keep track of when a Thing was edited.

Properties

editedRaw

false if not edited, edit date in UTC epoch-seconds otherwise. NOTE: for some old edited comments on reddit.com, this will be set to true instead of edit date. Since this field can be a Boolean or a Long value, it's kept as Any, use the field in the Editable interface to get a nullable Long version, which is more practical to use.

abstract val editedRaw: Any

Extension Properties

edited

val Editable.edited: Date

hasEdited

val Editable.hasEdited: Boolean

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

Submission

This class represents a user post in a specific Subreddit, this class can be replied to, in a form of a comment section.

data class Submission : Contribution, Votable, Saveable, Created, Editable, Distinguishable, Gildable, Replyable, Parcelable