Package 

Class PollOptionVotesViewState


  • 
    public final class PollOptionVotesViewState
    
                        

    Represents 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.

    • 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.