|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.neurowork.mobile.android.fw.levels.impl.QuizController
public class QuizController
Constructor Summary | |
---|---|
QuizController()
|
Method Summary | |
---|---|
void |
addQuiz(QuizLevelDataItem quiz)
|
void |
finish()
Call this method for finish the quiz. |
java.util.List<java.lang.String> |
getAnswers()
Return a list of String with answers of actual question |
java.lang.String |
getImage()
Return the actual question image |
java.lang.String |
getQuestion()
Return the actual question |
Results |
getResult()
Return the actual quiz results. |
boolean |
hasNext()
Return if there is more questions available. |
void |
next()
Skips to the next quiz question and confirms your last answer set with setAnswer() method. |
void |
setAnswer(int index)
Set the answer for the actual question with his index. |
void |
start(int time)
Starts the quiz. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuizController()
Method Detail |
---|
public void addQuiz(QuizLevelDataItem quiz)
public void start(int time)
time
- Time for make the quiz, in secondspublic boolean hasNext()
public void next()
public java.lang.String getQuestion()
public java.lang.String getImage()
public java.util.List<java.lang.String> getAnswers()
public void setAnswer(int index)
index
- Answer index from 0 to getAnswers().size()-1;public Results getResult()
public void finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |