public class SMRespondent
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SMRespondent.SMCompletionStatus
An enumeration for the two possible survey completion statuses
|
| Constructor and Description |
|---|
SMRespondent(org.json.JSONObject jsonObject)
The SMRespondent object represents a single survey respondent and can be created by calling the public constructor and passing the JSON returned when a user successfully completes a survey.
|
| Modifier and Type | Method and Description |
|---|---|
SMRespondent.SMCompletionStatus |
getCompletionStatus() |
java.util.Calendar |
getDateModified() |
java.util.Calendar |
getDateStarted() |
java.lang.String |
getDescription() |
java.util.ArrayList |
getQuestionResponses() |
java.lang.String |
getRespondentID() |
public SMRespondent(org.json.JSONObject jsonObject)
The SMRespondent object includes relevant metadata, e.g. survey completion status, as well as an array of SMQuestionResponse objects representing that respondent’s response to the given survey.
jsonObject - The JSON representing a user's response to a survey - returned by the SMFeedbackActivity in onActivityResultSMFeedbackActivitypublic SMRespondent.SMCompletionStatus getCompletionStatus()
public java.util.Calendar getDateModified()
public java.util.Calendar getDateStarted()
public java.lang.String getDescription()
public java.util.ArrayList getQuestionResponses()
public java.lang.String getRespondentID()