Poll

class Poll(val id: String, val question: String, val anonymous: Boolean, val hideVotes: Boolean, val createdBy: String, val options: List<PollOption>, val voted: List<String>)

RealtimeKit poll message which contains the poll details

Constructors

Link copied to clipboard
constructor(id: String, question: String, anonymous: Boolean, hideVotes: Boolean, createdBy: String, options: List<PollOption>, voted: List<String>)

Properties

Link copied to clipboard

If the poll is anonymous

Link copied to clipboard

Created by user id

Link copied to clipboard

If the votes are hidden

Link copied to clipboard
val id: String

Poll id

Link copied to clipboard

List of poll options of type PollOption

Link copied to clipboard

Poll question

Link copied to clipboard

List of unique user ids who voted

Functions

Link copied to clipboard
fun toMap(): Map<String, Any?>