Answer

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

The Answer object represents an answer in a poll.

Constructors

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

Properties

Link copied to clipboard

The creation date of the answer.

Link copied to clipboard
val id: String

The unique identifier of the answer.

Link copied to clipboard

The unique identifier of the poll.

Link copied to clipboard

The text of the answer.

Link copied to clipboard

The last update date of the answer.

Link copied to clipboard
val user: User?

The user who sent the answer.