PollAnswer

data class PollAnswer(pollId: String, user: User, optionIds: List<Int>)

This object represents an answer of a user in a non-anonymous poll.

Parameters

pollId

Unique poll identifier

user

The user, who changed the answer to the poll

optionIds

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.

Constructors

PollAnswer
Link copied to clipboard
common
fun PollAnswer(pollId: String, user: User, optionIds: List<Int> = emptyList())
Unique poll identifier

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): User
component3
Link copied to clipboard
common
operator fun component3(): List<Int>
copy
Link copied to clipboard
common
fun copy(pollId: String, user: User, optionIds: List<Int> = emptyList()): PollAnswer
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

optionIds
Link copied to clipboard
common
val optionIds: List<Int>
0-based identifiers of answer options, chosen by the user.
pollId
Link copied to clipboard
common
val pollId: String
Unique poll identifier
user
Link copied to clipboard
common
val user: User
The user, who changed the answer to the poll