PollOption

data class PollOption(text: String, voterCount: Int)

This object contains information about one answer option in a poll.

Parameters

text

Option text, 1-100 characters

voterCount

Number of users that voted for this option

Constructors

PollOption
Link copied to clipboard
common
fun PollOption(text: String, voterCount: Int)
Option text, 1-100 characters

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): Int
copy
Link copied to clipboard
common
fun copy(text: String, voterCount: Int): PollOption
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

text
Link copied to clipboard
common
val text: String
Option text, 1-100 characters
voterCount
Link copied to clipboard
common
val voterCount: Int
Number of users that voted for this option