public UipAnswer(UipAnswerType answerType) { if (answerType == UipAnswerType.Custom) { throw new ArgumentException("Must supply text for a custom button"); } _text = answerType.ToString(); _answerType = answerType; }
public UipAnswer AddAnswer(UipAnswerType answerType) { var answer = new UipAnswer(answerType); _possibleAnswers.Add(answer); return answer; }
public UipAnswer(string text) { _text = text; _answerType = UipAnswerType.Custom; }