lib / com.kirkbushman.araw.models / Subreddit

Subreddit

@JsonClass(true) data class Subreddit : SubredditData, Parcelable

Constructors

<init>

Subreddit(id: String, fullname: String, accountsActive: Int?, accountsActiveIsFuzzed: Boolean?, allowImages: Boolean?, arePollsAllowed: Boolean?, areVideoAllowed: Boolean?, areVideogifsAllowed: Boolean?, areEmojisEnabled: Boolean?, areSpoilersEnabled: Boolean, communityIcon: String?, created: Long, createdUtc: Long, description: String?, descriptionHtml: String?, displayName: String, displayNamePrefixed: String, headerImg: String?, headerImgSize: List<Int>?, headerTitle: String?, iconImg: String?, iconImgSize: List<Int>?, isBanned: Boolean?, isContributor: Boolean?, isModerator: Boolean?, isMuted: Boolean?, isQuarantined: Boolean?, isSubredditCrosspostable: Boolean?, isSubscriber: Boolean?, isWikiEnabled: Boolean?, lang: String, over18: Boolean, publicDescription: String, publicDescriptionHtml: String?, subredditType: String, subscribers: Int, title: String, url: String)

Properties

accountsActive

val accountsActive: Int?

accountsActiveIsFuzzed

val accountsActiveIsFuzzed: Boolean?

allowImages

val allowImages: Boolean?

areEmojisEnabled

val areEmojisEnabled: Boolean?

arePollsAllowed

val arePollsAllowed: Boolean?

areSpoilersEnabled

val areSpoilersEnabled: Boolean

areVideoAllowed

val areVideoAllowed: Boolean?

areVideogifsAllowed

val areVideogifsAllowed: Boolean?

communityIcon

val communityIcon: String?

created

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

val created: Long

createdUtc

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

val createdUtc: Long

description

val description: String?

descriptionHtml

val descriptionHtml: String?

displayName

val displayName: String

displayNamePrefixed

val displayNamePrefixed: String

fullname

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

val fullname: String

headerImg

val headerImg: String?

headerImgSize

val headerImgSize: List<Int>?

headerTitle

val headerTitle: String?

iconImg

val iconImg: String?

iconImgSize

val iconImgSize: List<Int>?

id

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

val id: String

isBanned

val isBanned: Boolean?

isContributor

val isContributor: Boolean?

isModerator

val isModerator: Boolean?

isMuted

val isMuted: Boolean?

isQuarantined

val isQuarantined: Boolean?

isSubredditCrosspostable

val isSubredditCrosspostable: Boolean?

isSubscriber

val isSubscriber: Boolean?

isWikiEnabled

val isWikiEnabled: Boolean?

lang

val lang: String

over18

val over18: Boolean

publicDescription

val publicDescription: String

publicDescriptionHtml

val publicDescriptionHtml: String?

subredditType

val subredditType: String

subscribers

val subscribers: Int

title

val title: String

url

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