lib / com.kirkbushman.araw.models.enums / Vote

Vote

enum class Vote

This enum defines the possible states of an item the logged in user has voted, represented by the inteface Votable

There are 3 states: UPVOTE, DOWNVOTE and the default NONE,

Enum Values

UPVOTE

DOWNVOTE

NONE

Properties

dir

the vote as seen by the Reddit Api, 1 for UPVOTE, -1 for DOWNVOTE and 0 for NONE

val dir: Int