Vote

@Immutable
data class Vote(val id: String, val pollId: String, val optionId: String, val createdAt: Date, val updatedAt: Date, val user: User?)

The Vote object represents a vote in a poll.

Constructors

Link copied to clipboard
constructor(id: String, pollId: String, optionId: String, createdAt: Date, updatedAt: Date, user: User?)

Properties

Link copied to clipboard

The creation date of the vote.

Link copied to clipboard
val id: String

The unique identifier of the vote.

Link copied to clipboard

The unique identifier of the voted option.

Link copied to clipboard

The unique identifier of the poll.

Link copied to clipboard

The last update date of the vote.

Link copied to clipboard
val user: User?

The user who cast the vote.