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

public class ConfirmClientAnswer extends ClientAnswerWithOrigin
  • Constructor Details

    • ConfirmClientAnswer

      public ConfirmClientAnswer()
    • ConfirmClientAnswer

      public ConfirmClientAnswer(Boolean answer, String questionId)
  • Method Details

    • setAnswer

      public void setAnswer(Boolean answer)
    • getAnswer

      public Boolean 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

      public void setQuestionId(String id)
    • getQuestionId

      public String getQuestionId()
      Returns:
      the id-String of the question this answer is associated with.
    • yes

      public static ConfirmClientAnswer yes()
    • no

      public static ConfirmClientAnswer no()