PollOption

data class PollOption

Class representing a poll option. A poll options can be created by Poll.create and GroupChannel.addPollOption. text is the only field set by the client. Other fields can be set by the server and voting.

A latest poll option instance can be fetched using Poll.get and a poll option can be updated using GroupChannel.updatePoll.

Since

4.1.0

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Unix timestamp at which the poll option is created.

Link copied to clipboard

UserId of the poll option creator.

Link copied to clipboard
val id: Long

A unique identifier for this poll option.

Link copied to clipboard

A unique identifier for the poll which contains this poll option.

Link copied to clipboard

Representing text of this poll option.

Link copied to clipboard

Unix timestamp at which the poll option is updated.

Link copied to clipboard

Voter count of this poll option.

Functions

Link copied to clipboard

Serializes the PollOption instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.