15 lines
388 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.
2024-12-22 16:24:48 +00:00
public enum VoteState: Int, Hashable, Sendable {
2024-12-10 18:12:13 +00:00
/// 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
}