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

Saveable

interface Saveable

Base interface for all the items that can be saved,

Properties

fullname

Fullname of item, e.g. "t1_c3v7f8u"

abstract val fullname: String

id

This item identifier, e.g. "8xwlg"

abstract val id: String

isSaved

if this item is saved in the current user account

abstract val isSaved: 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