PollUpdateParams

@objc(SBDPollUpdateParams)
public class PollUpdateParams : NSObject
extension PollUpdateParams: Encodable

An object contains set of options to update Poll

Since

4.1.0
  • Title of this poll

    Declaration

    Swift

    @objc
    public var title: String?
  • An additional text to accompany the poll. Can be used to provide explanations for incorrect quiz answers

    Declaration

    Swift

    @objc
    public var text: String?
  • Whether to make the votes anonymous. Default is false

    Declaration

    Swift

    @objc
    public var isAnonymous: Bool { get set }
  • Whether to allow user-suggested options. Default is false

    Declaration

    Swift

    @objc
    public var allowUserSuggestion: Bool { get set }
  • Whether to allow multiple vote casting. Default is false

    Declaration

    Swift

    @objc
    public var allowMultipleVotes: Bool { get set }
  • Unix timestamp at which the poll has closed or will close (millisecond)

    Declaration

    Swift

    @objc
    public var closeAt: Int64 { get set }
  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance