-
public final class PollOptionVotesViewStateRepresents the state of the poll option votes view for a specific poll option.
This state is used when displaying all votes for a single poll option in a paginated list. It tracks loading states, pagination status, and the list of votes fetched so far.
-
-
Method Summary
Modifier and Type Method Description final OptiongetOption()final IntegergetVoteCount()final BooleangetIsWinner()final BooleangetIsLoading()final List<Vote>getResults()final BooleangetCanLoadMore()final BooleangetIsLoadingMore()-
-
Constructor Detail
-
PollOptionVotesViewState
PollOptionVotesViewState(Option option, Integer voteCount, Boolean isWinner, Boolean isLoading, List<Vote> results, Boolean canLoadMore, Boolean isLoadingMore)
- 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.results- The list of votes fetched so far.canLoadMore- True if there are more votes available to load via pagination.isLoadingMore- True if a pagination request is currently in progress.
-
-
Method Detail
-
getOption
final Option getOption()
-
getVoteCount
final Integer getVoteCount()
-
getIsWinner
final Boolean getIsWinner()
-
getIsLoading
final Boolean getIsLoading()
-
getResults
final List<Vote> getResults()
-
getCanLoadMore
final Boolean getCanLoadMore()
-
getIsLoadingMore
final Boolean getIsLoadingMore()
-
-
-
-