PollOptionVotesViewState

constructor(option: Option, voteCount: Int, isWinner: Boolean, isLoading: Boolean = true, results: List<Vote> = emptyList(), canLoadMore: Boolean = true, isLoadingMore: Boolean = false)

Parameters

option

The poll option for which vote results are displayed.

voteCount

The total number of votes for this option.

isWinner

True if this option has the highest vote count and is the winner.

isLoading

True if the initial load is in progress. Defaults to true.

results

The list of votes fetched so far. Defaults to an empty list.

canLoadMore

True if there are more votes available to load via pagination. Defaults to true.

isLoadingMore

True if a pagination request is currently in progress. Defaults to false.