Package org.motechproject.mots.domain
Class MultipleChoiceQuestion
- java.lang.Object
-
- org.motechproject.mots.domain.BaseEntity
-
- org.motechproject.mots.domain.BaseTimestampedEntity
-
- org.motechproject.mots.domain.IvrObject
-
- org.motechproject.mots.domain.CallFlowElement
-
- org.motechproject.mots.domain.MultipleChoiceQuestion
-
@Entity public class MultipleChoiceQuestion extends CallFlowElement
This class represents IVR activity that contains a question with multipleChoices.
-
-
Constructor Summary
Constructors Constructor Description MultipleChoiceQuestion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipleChoiceQuestioncopyAsNewDraft(Unit unit)Create a copy of Multiple Choice Question.voidsetChoices(java.util.List<Choice> choices)Update list content.
-
-
-
Method Detail
-
setChoices
public void setChoices(java.util.List<Choice> choices)
Update list content.- Parameters:
choices- list of new Choices
-
copyAsNewDraft
public MultipleChoiceQuestion copyAsNewDraft(Unit unit)
Create a copy of Multiple Choice Question.- Specified by:
copyAsNewDraftin classCallFlowElement- Returns:
- copied question
-
-