| com.glia.androidsdk.engagement.Survey.Answer |
Known Indirect Subclasses
SurveyAnswer<T>
|
Describes the answer to a Survey.Question.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract String | getQuestionId() | ||||||||||
| abstract <T> T | getResponse() | ||||||||||
| abstract static Survey.Answer |
makeAnswer(String questionId, boolean response)
Create an answer with a boolean value.
| ||||||||||
| abstract static Survey.Answer |
makeAnswer(String questionId, int response)
Create an answer with an integer value.
| ||||||||||
| abstract static Survey.Answer |
makeAnswer(String questionId, String response)
Create an answer with a string value.
| ||||||||||
Create an answer with a boolean value.
| questionId | ID of the question to answer. |
|---|---|
| response | The answer, true or false. |
Create an answer with an integer value.
| questionId | ID of the question to answer. |
|---|---|
| response | The answer as an integer. |
Create an answer with a string value.
| questionId | ID of the question to answer. |
|---|---|
| response | The answer as a string. |