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 ClientAnswer
ClientAnswer.AnswerOrigin -
Constructor Summary
Constructors -
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 inPredefinedAnswersandDefaultClientAnswerSupplier, so we can make sure their origin is always set correctly, so useClientAnswer.AnswerOrigin.USERas fallbackvoidsetOrigin(ClientAnswer.AnswerOrigin answerOrigin) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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 inPredefinedAnswersandDefaultClientAnswerSupplier, so we can make sure their origin is always set correctly, so useClientAnswer.AnswerOrigin.USERas fallback- Specified by:
getOriginin interfaceClientAnswer- Returns:
- the origin of the answer,
ClientAnswer.AnswerOrigin.USERif none set
-
setOrigin
-