using System.Collections.Generic;
namespace TINK.ViewModel.MiniSurvey.Question
{
public class FreeTextViewModel : IMiniSurveyQuestion
{
/// Constructs object.
/// Holds the question with key asked to user.
/// Holds the list of possible answers with their option keys.
public FreeTextViewModel(
KeyValuePair question)
{
Question = question;
}
/// Holds the question with key asked to user.
public KeyValuePair Question { get; }
/// Holds the question with key asked to user exposed to GUI.
public string QuestionText => Question.Value;
/// Holds the users selected answer with its option key.
public KeyValuePair Answer { get; private set; }
/// Holds the list of possible answers exposed to GUI.
public string AnswerText
{
get => null;
set => Answer = new KeyValuePair(value, null);
}
}
}