Poll - daneden/Twift GitHub Wiki

Poll

A poll included in a Tweet is not a primary object on any endpoint, but can be found and expanded in the Tweet object.

public struct Poll: Codable, Identifiable 

Inheritance

Codable, Fielded, Identifiable

Nested Type Aliases

ID

public typealias ID = String

Field

public typealias Field = PartialKeyPath<Self>

Properties

id

Unique identifier of the expanded poll.

public let id: ID

options

Contains objects describing each choice in the referenced poll.

public let options: [Option]

durationMinutes

Specifies the total duration of this poll.

public let durationMinutes: Int?

endDatetime

Specifies the end date and time for this poll.

public let endDatetime: Date?

votingStatus

Indicates if this poll is still active and can receive votes, or if the voting is now closed.

public let votingStatus: VotingStatus?
⚠️ **GitHub.com Fallback** ⚠️