TextualAnswer
public struct TextualAnswer : Answer
-
The string used as an answer to the
QuestionDeclaration
Swift
public let value: String -
The identifier of the
QuestionDeclaration
Swift
public let questionId: String -
The string used as an answer to the
QuestionDeclaration
Swift
public var codedValue: String { get } -
Initializes a
TextualAnswergiven the string andQuestion- value: The actual answer string
question: The
Questionthis answers
Throws
AnswerError.unacceptableif the question is not a string typeDeclaration
Swift
public init(_ value: String, question: Question) throwsReturn Value
A
TextualAnswerrepresenting anAnswerto the string type question
TextualAnswer Structure Reference