PollAnswer

@Serializable(with = PollAnswer.Companion::class)
sealed interface PollAnswer : FromUser

Inheritors

Types

Link copied to clipboard
@Serializable
data class Anonymous(val pollId: PollId, val voterChat: ChannelChat, val chosen: List<Int>) : PollAnswer
Link copied to clipboard
object Companion : KSerializer<PollAnswer>
Link copied to clipboard
@Serializable
data class Public(val pollId: PollId, val user: User, val chosen: List<Int>) : PollAnswer

Properties

Link copied to clipboard
abstract val chosen: List<Int>
Link copied to clipboard
@Transient
open override val from: User

The source User of this type

Link copied to clipboard
abstract val pollId: PollId
Link copied to clipboard
abstract override val user: User