QuantityAnswer
public struct QuantityAnswer : Answer
-
The number that was selected
Declaration
Swift
public let value: Int -
The identifier of the
QuestionDeclaration
Swift
public let questionId: String -
The string represntation of the number
Declaration
Swift
public var codedValue: String { get } -
Initializes a
QuantityAnswergiven the number andQuestion- value: The number represnting the answer
question: The
Questionthis answers
Throws
AnswerError.unacceptableif the question is not a quantity type or if the number is less than 0Declaration
Swift
public init(_ value: Int, question: Question) throwsReturn Value
A
QuantityAnswerrepresenting anAnswerto the quantity type question
QuantityAnswer Structure Reference