Package 

Class PollOptionVotesViewController


  • 
    public final class PollOptionVotesViewController
    
                        

    Controller responsible for managing the state and events related to poll option votes.

    This controller handles fetching votes for a specific poll option from the API with pagination support. It automatically loads the first page on initialization and supports loading additional pages when PollOptionVotesViewAction.LoadMoreRequested is triggered. The controller emits state updates and error events for the UI to react to.

    • Constructor Detail

      • PollOptionVotesViewController

        PollOptionVotesViewController(Poll poll, Option option, ChatClient chatClient, CoroutineScope scope)
        Parameters:
        poll - The poll containing the option for which votes are displayed.
        option - The specific poll option for which vote results are fetched.
        chatClient - The ChatClient instance used for querying poll votes from the API.
        scope - The CoroutineScope used for launching coroutines.