public static interface

Survey.Question

implements Parcelable Serializable
com.glia.androidsdk.engagement.Survey.Question

Class Overview

Survey question details.

Summary

Nested Classes
interface Survey.Question.Option Options for the question with type SINGLE_CHOICE
enum Survey.Question.QuestionType Defines the possible types of the survey Question. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
abstract String getId()
abstract String getName()
abstract List<Survey.Question.Option> getOptions()
In case the question type is SINGLE_CHOICE then the options attribute is required.
abstract int getPosition()
abstract String getSiteId()
abstract String getText()
abstract Survey.Question.QuestionType getType()
abstract boolean isRequired()
[Expand]
Inherited Methods
From interface android.os.Parcelable

Public Methods

public abstract String getId ()

Returns
  • question ID.

public abstract String getName ()

Returns
  • the question's descriptive name.

public abstract List<Survey.Question.Option> getOptions ()

In case the question type is SINGLE_CHOICE then the options attribute is required.

Returns
  • the single choice options.

public abstract int getPosition ()

Returns
  • the position of the question in the question list of the survey.

public abstract String getSiteId ()

Returns
  • the ID of the site the question is associated with.

public abstract String getText ()

Returns
  • question text.

public abstract Survey.Question.QuestionType getType ()

Returns
  • the type of the question.

public abstract boolean isRequired ()

Returns
  • true if the question requires an answer.