SDK Reference v2.0.0 / SurveyAnswer
SurveyAnswer
struct SurveyAnswer : Identifiable, Decodable
A single survey answer completed by a participant.
ID
typealias MyDataHelpsKit.SurveyAnswer.ID = ScopedIdentifier<SurveyAnswer, String>
Auto-generated, globally-unique identifier for a SurveyAnswer.
id
let id: ID
Auto-generated, globally-unique identifier.
surveyResultID
let surveyResultID: SurveyResult.ID
Auto-generated, globally-unique identifier for the survey submission containing this answer.
surveyID
let surveyID: Survey.ID
Auto-generated, globally-unique identifier for the survey containing the step this answer was provided for.
surveyVersion
let surveyVersion: Int
Version number of the survey that the participant completed.
taskID
let taskID: SurveyTask.ID?
Auto-generated, globally-unique identifier for the task which prompted the participant to complete the survey, if any.
surveyName
let surveyName: String
Internal name for the survey in MyDataHelps.
surveyDisplayName
let surveyDisplayName: String
Name of the survey displayed to the participant.
date
let date: Date?
Date and time at which the survey answer was recorded by the participant.
insertedDate
let insertedDate: Date
Date and time at which the was submitted to the system.
stepIdentifier
let stepIdentifier: String
Identifier for the survey step for which the answer was submitted.
resultIdentifier
let resultIdentifier: String
Identifier for the field on the survey step which contains this survey answer.
answers
let answers: [String]
List of answers contained in the result for this step of the survey.