lib / com.kirkbushman.araw.models / Redditor

Redditor

@JsonClass(true) data class Redditor : RedditorData, Account

This class represents a Redditor, that is not the current logged in one.

Constructors

<init>

This class represents a Redditor, that is not the current logged in one.

Redditor(id: String, fullname: String, awarderKarma: Int?, awardeeKarma: Int?, commentKarma: Int, created: Long, createdUtc: Long, hasVerifiedEmail: Boolean, isEmployee: Boolean, isFriend: Boolean, isGold: Boolean, isHidingFromRobots: Boolean, isMod: Boolean, linkKarma: Int, subreddit: RedditorSubreddit?)

Properties

awardeeKarma

val awardeeKarma: Int?

awarderKarma

val awarderKarma: Int?

commentKarma

karma obtained through submitting a comment.

val commentKarma: Int

created

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

val created: Long

createdUtc

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

val createdUtc: Long

fullname

fullname of this class.

val fullname: String

hasVerifiedEmail

if the user has a verified email.

val hasVerifiedEmail: Boolean

id

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

val id: String

isEmployee

if the user is an employee of Reddit.

val isEmployee: Boolean

isFriend

if the user has been marked as friend by the current logged in user.

val isFriend: Boolean

isGold

if the user has a gold status.

val isGold: Boolean

isHidingFromRobots

val isHidingFromRobots: Boolean

isMod

if the user is Mod.

val isMod: Boolean

linkKarma

karma obtained through submitting a post (Submission).

val linkKarma: Int

subreddit

val subreddit: RedditorSubreddit?

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