Class ClientAnswerWithOrigin
java.lang.Object
ch.tocco.nice2.web.core.api.clientquestion.ClientAnswerWithOrigin
- All Implemented Interfaces:
ClientAnswer
- Direct Known Subclasses:
ConfirmClientAnswer
-
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 TypeMethodDescriptionuser answers may arrive in different ways because of legacy and new client, but default and predefined answers are always created inPredefinedAnswers
andDefaultClientAnswerSupplier
, so we can make sure their origin is always set correctly, so useClientAnswer.AnswerOrigin.USER
as fallbackvoid
setOrigin
(ClientAnswer.AnswerOrigin answerOrigin) 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
getQuestionId, isUserAnswer, setQuestionId
-
Constructor Details
-
ClientAnswerWithOrigin
public ClientAnswerWithOrigin()
-
-
Method Details
-
getOrigin
user answers may arrive in different ways because of legacy and new client, but default and predefined answers are always created inPredefinedAnswers
andDefaultClientAnswerSupplier
, so we can make sure their origin is always set correctly, so useClientAnswer.AnswerOrigin.USER
as fallback- Specified by:
getOrigin
in interfaceClientAnswer
- Returns:
- the origin of the answer,
ClientAnswer.AnswerOrigin.USER
if none set
-
setOrigin
-