-
public final class PollResultsViewStateRepresents the state of the poll results view.
Contains the poll name and a list of result items, where each item represents one poll option with its vote count, winner status, preview of votes, and whether to show the "Show All" button.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPollResultsViewState.ResultItemRepresents a single poll result item for one option.
Contains the option details, vote count, winner status, a preview of votes (typically limited to a few votes), and a flag indicating whether to show the "Show All" button to navigate to the detailed view.
-
Field Summary
Fields Modifier and Type Field Description private final StringpollNameprivate final List<PollResultsViewState.ResultItem>results
-
Constructor Summary
Constructors Constructor Description PollResultsViewState(String pollName, List<PollResultsViewState.ResultItem> results)
-
Method Summary
Modifier and Type Method Description final StringgetPollName()final List<PollResultsViewState.ResultItem>getResults()-
-
Constructor Detail
-
PollResultsViewState
PollResultsViewState(String pollName, List<PollResultsViewState.ResultItem> results)
- Parameters:
pollName- The name of the poll.results- The list of poll result items, typically sorted by vote count in descending order.
-
-
Method Detail
-
getPollName
final String getPollName()
-
getResults
final List<PollResultsViewState.ResultItem> getResults()
-
-
-
-