SDK Reference v2.0.0 / SurveyTask
SurveyTask
struct SurveyTask : Identifiable, Decodable
A single survey task assigned to a participant.
ID
typealias MyDataHelpsKit.SurveyTask.ID = ScopedIdentifier<SurveyTask, String>
Auto-generated, globally-unique identifier for a SurveyTask.
id
let id: ID
Auto-generated, globally-unique identifier.
surveyID
let surveyID: Survey.ID
Auto-generated, globally-unique identifier for the survey which this task assigns.
surveyName
let surveyName: String
Internal name for the survey in MyDataHelps which this task assigns.
surveyDisplayName
let surveyDisplayName: String
Name of the survey displayed to the participant, which this task assigns.
surveyDescription
let surveyDescription: String
Brief explanation of the survey provided to the participant.
startDate
let startDate: Date?
Initial time the task is available to the participant.
endDate
let endDate: Date?
Time at which the task becomes unavailable to the participant, because it was completed or closed.
status
let status: SurveyTaskStatus
Describes the status of the survey task.
hasSavedProgress
let hasSavedProgress: Bool
Indicates that the participant has opened the assigned survey and submitted at least one answer, without completing the task.
dueDate
let dueDate: Date?
Time that the survey becomes past due and closed.
insertedDate
let insertedDate: Date
Date when the survey task was first created.
modifiedDate
let modifiedDate: Date
Date when the survey task was last modified.