VoteChangedEvent

data class VoteChangedEvent(val type: String, val createdAt: Date, val rawCreatedAt: String?, val cid: String, val channelType: String, val channelId: String, val poll: Poll, val channelLastMessageAt: Date?, val newVote: Vote) : CidEvent, HasPoll

Triggered when a vote is changed.

Constructors

Link copied to clipboard
constructor(type: String, createdAt: Date, rawCreatedAt: String?, cid: String, channelType: String, channelId: String, poll: Poll, channelLastMessageAt: Date?, newVote: Vote)

Properties

Link copied to clipboard
open override val channelId: String
Link copied to clipboard
open override val channelLastMessageAt: Date?
Link copied to clipboard
open override val channelType: String
Link copied to clipboard
open override val cid: String
Link copied to clipboard
open override val createdAt: Date
Link copied to clipboard
Link copied to clipboard
open override val poll: Poll
Link copied to clipboard
open override val rawCreatedAt: String?
Link copied to clipboard
open override val type: String

Inherited properties

Link copied to clipboard
val seq: Int

Inherited functions

Link copied to clipboard
Link copied to clipboard
fun VoteChangedEvent.processPoll(currentUserId: String?, getOldPoll: (String) -> Poll?): Poll