MutablePoll - daneden/Twift GitHub Wiki
MutablePoll
A mutable Poll object for posting polls with MutableTweet
public struct MutablePoll: Codable
Inheritance
Codable
Initializers
init(options:durationMinutes:)
Initialize a new MutablePoll
with the specified options and duration. This initializer throws if there are less than 2 or more than 4 poll options.
public init(options: [String], durationMinutes: Int = 60 * 24) throws
Properties
durationMinutes
Duration of the poll in minutes for a Tweet with a poll.
public var durationMinutes: Int
options
A list of poll options for a Tweet with a poll.
public var options: [String]