public static interface

Survey.Answer

com.glia.androidsdk.engagement.Survey.Answer
Known Indirect Subclasses

Class Overview

Describes the answer to a Survey.Question.

Summary

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.

Public Methods

public abstract String getQuestionId ()

Returns
  • the ID of the question the answer belongs to.

public abstract T getResponse ()

Returns
  • the answer value.

public static abstract Survey.Answer makeAnswer (String questionId, boolean response)

Create an answer with a boolean value.

Parameters
questionId ID of the question to answer.
response The answer, true or false.
Returns

public static abstract Survey.Answer makeAnswer (String questionId, int response)

Create an answer with an integer value.

Parameters
questionId ID of the question to answer.
response The answer as an integer.
Returns

public static abstract Survey.Answer makeAnswer (String questionId, String response)

Create an answer with a string value.

Parameters
questionId ID of the question to answer.
response The answer as a string.
Returns