lib / com.kirkbushman.araw.models / SubredditRule

SubredditRule

@JsonClass(true) data class SubredditRule : Parcelable

This class is used to represent a rule element in a Subreddit, the rules are made by mods, and are expressing good/bad behaviour in the sub.

Constructors

<init>

This class is used to represent a rule element in a Subreddit, the rules are made by mods, and are expressing good/bad behaviour in the sub.

SubredditRule(kind: String, description: String, descriptionHtml: String?, shortName: String, violationReason: String, priority: Int, createdUtc: Long)

Properties

createdDate

val createdDate: Date

createdUtc

Date of the creation of this rule, in UTC time.

val createdUtc: Long

description

Description of the rule, formatted in Markdown.

val description: String

descriptionHtml

Description of the rule, formatted in Html.

val descriptionHtml: String?

kind

The scope of the rule.

val kind: String

priority

The position of this rule in relation of other rules in the Subreddit list.

val priority: Int

shortName

Short name of the rule to be used as a title or header.

val shortName: String

violationReason

Reasons of bad beaviour, breaking the rule.

val violationReason: String