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

SubredditData

interface SubredditData : Thing, Created

Properties

created

The unix-time Long representing the creation date of the item.

abstract val created: Long

createdUtc

The unix-time Long representing the UTC creation date of the item.

abstract val createdUtc: Long

displayName

abstract val displayName: String

displayNamePrefixed

abstract val displayNamePrefixed: String

fullname

Fullname of the item, e.g. "t1_c3v7f8u"

abstract val fullname: String

id

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

abstract val id: String

subredditType

abstract val subredditType: String

title

abstract val title: String

url

abstract val url: String

Extension Properties

createdDate

Useful extension to convert the creation date property, from the Long unixtime, to a more practical Date object.

val Created.createdDate: Date

createdUtcDate

Useful extension to convert the utc creation date property, from the Long unixtime, to a more practical Date object.

val Created.createdUtcDate: Date

Inheritors

PrivateSubreddit

data class PrivateSubreddit : SubredditData, Parcelable

Subreddit

data class Subreddit : SubredditData, Parcelable