15 lines
378 B
Swift
Raw Normal View History

2024-12-10 18:12:13 +00:00
/// Represents the different kinds of votes that a rant or comment can have.
public enum VoteState: Int, Hashable {
/// A given ++ vote.
case upvoted = 1
/// No votes given.
case unvoted = 0
/// A given -- vote.
case downvoted = -1
/// Not able to vote (if the rant or comment belongs to the logged in user).
case unvotable = -2
}