Ejemplo n.º 1
0
 public override State Visit(MultipleAnswerAnsweredQuestion state)
 {
     return(new States.MultipleAnswerAnsweredQuestion(
                state.TargetPlayerName,
                state.TargetPlayerAnswerOptionIds,
                state.Text,
                state.Options.Select(option => new States.MultipleAnswerAnsweredQuestion.Option(option.Id, option.Text)),
                state.OtherPlayerAnswers.Select(answer => new States.MultipleAnswerAnsweredQuestion.Answer(answer.OptionIds, answer.PlayerId))));
 }
Ejemplo n.º 2
0
 public abstract T Visit(MultipleAnswerAnsweredQuestion state);