lib / com.kirkbushman.araw.models / Account

Account

interface Account : Thing, Created, Parcelable

Base interface that groups the common fields between the class Redditor and Me, that has extra fields of the current logged in user.

Properties

commentKarma

karma obtained through submitting a comment.

abstract val commentKarma: Int

created

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

abstract val created: Long

createdUtc

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

abstract val createdUtc: Long

fullname

fullname of this class.

abstract val fullname: String

hasVerifiedEmail

if the user has a verified email.

abstract val hasVerifiedEmail: Boolean

id

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

abstract val id: String

isEmployee

if the user is an employee of Reddit.

abstract val isEmployee: Boolean

isGold

if the user has a gold status.

abstract val isGold: Boolean

isHidingFromRobots

abstract val isHidingFromRobots: Boolean

isMod

if the user is Mod.

abstract val isMod: Boolean

linkKarma

karma obtained through submitting a post (Submission).

abstract val linkKarma: Int

subreddit

abstract 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

Inheritors

Me

This class represent the current logged in user.

data class Me : Account

Redditor

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

data class Redditor : RedditorData, Account