PollAnswersViewState

data class PollAnswersViewState(val isLoading: Boolean = true, val results: List<Answer> = emptyList(), val canLoadMore: Boolean = true, val isLoadingMore: Boolean = false)

Represents the state of the paginated list of a poll's answers (comments), newest first.

Parameters

isLoading

True if the initial load is in progress.

results

The answers fetched so far, plus those received live.

canLoadMore

True if there are more answers available to load.

isLoadingMore

True if a pagination request is in progress.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = true, results: List<Answer> = emptyList(), canLoadMore: Boolean = true, isLoadingMore: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard