2021-08-01 17:24:15 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace TINK.Model.MiniSurvey
|
|
|
|
|
|
|
|
|
|
{
|
2022-01-04 18:54:03 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds mini survey.
|
|
|
|
|
/// </summary>
|
2021-08-01 17:24:15 +02:00
|
|
|
|
public class MiniSurveyModel
|
|
|
|
|
{
|
|
|
|
|
public enum Type
|
|
|
|
|
{
|
|
|
|
|
SingleAnswer,
|
|
|
|
|
CustomText
|
|
|
|
|
}
|
|
|
|
|
public class QuestionModel
|
|
|
|
|
{
|
2022-01-04 18:54:03 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the query description.
|
|
|
|
|
/// </summary>
|
2021-08-01 17:24:15 +02:00
|
|
|
|
public string Text { get; set; }
|
|
|
|
|
|
|
|
|
|
public Type Type { get; set; }
|
|
|
|
|
|
2022-01-04 18:54:03 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the collection of possible answers.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Dictionary<string, string> PossibleAnswers { get; private set; } = new Dictionary<string, string>();
|
2021-08-01 17:24:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Subtitle { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Footer { get; set; }
|
|
|
|
|
|
2022-01-04 18:54:03 +01:00
|
|
|
|
public Dictionary<string, QuestionModel> Questions { get; } = new Dictionary<string, QuestionModel>();
|
2021-08-01 17:24:15 +02:00
|
|
|
|
}
|
|
|
|
|
}
|