Class ConfirmClientAnswer
java.lang.Object
ch.tocco.nice2.web.core.api.clientquestion.ClientAnswerWithOrigin
ch.tocco.nice2.web.core.api.clientquestion.ConfirmClientAnswer
- All Implemented Interfaces:
ClientAnswer
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.web.core.api.clientquestion.ClientAnswer
ClientAnswer.AnswerOrigin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the answer as selected by the user.static ConfirmClientAnswer
no()
void
void
setQuestionId
(String id) static ConfirmClientAnswer
yes()
Methods inherited from class ch.tocco.nice2.web.core.api.clientquestion.ClientAnswerWithOrigin
getOrigin, setOrigin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.web.core.api.clientquestion.ClientAnswer
isUserAnswer
-
Constructor Details
-
ConfirmClientAnswer
public ConfirmClientAnswer() -
ConfirmClientAnswer
-
-
Method Details
-
setAnswer
-
getAnswer
This method returns the answer as selected by the user. Returns true if option "YES" was selected, false otherwise, unless the flow of control did not return to the server.- Returns:
- the answer as selected by the user.
-
setQuestionId
-
getQuestionId
- Returns:
- the id-
String
of the question this answer is associated with.
-
yes
-
no
-