VotesSnapshot

data class VotesSnapshot(val count: Int, val voters: SortedSet<Long>, val hasFailed: Boolean = false, val isLoading: Boolean = false)

A snapshot of vote details for an answer.

Constructors

Link copied to clipboard
constructor(count: Int, voters: SortedSet<Long>, hasFailed: Boolean = false, isLoading: Boolean = false)

Properties

Link copied to clipboard
val count: Int

Total vote count.

Link copied to clipboard
val hasFailed: Boolean = false

If the previous fetch request has failed.

Link copied to clipboard

Whether or not voters is incomplete.

Link copied to clipboard
val isLoading: Boolean = false

Whether or not there is an ongoing fetch request.

Link copied to clipboard

Whether or not the current user has voted on this answer.

Link copied to clipboard

A (lazy) set of voter user IDs. Count may be different from count, call fetchDetails to fetch more.