sharee.bike-App/TINKLib/Model/MiniSurvey/MiniSurveyModel.cs
2022-01-04 18:54:03 +01:00

40 lines
998 B
C#

using System.Collections.Generic;
namespace TINK.Model.MiniSurvey
{
/// <summary>
/// Holds mini survey.
/// </summary>
public class MiniSurveyModel
{
public enum Type
{
SingleAnswer,
CustomText
}
public class QuestionModel
{
/// <summary>
/// Holds the query description.
/// </summary>
public string Text { get; set; }
public Type Type { get; set; }
/// <summary>
/// Holds the collection of possible answers.
/// </summary>
public Dictionary<string, string> PossibleAnswers { get; private set; } = new Dictionary<string, string>();
}
public string Title { get; set; }
public string Subtitle { get; set; }
public string Footer { get; set; }
public Dictionary<string, QuestionModel> Questions { get; } = new Dictionary<string, QuestionModel>();
}
}