sharee.bike-App/TINKLib/Model/MiniSurvey/MiniSurveyModel.cs

35 lines
951 B
C#
Raw Normal View History

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>
2022-08-30 15:42:25 +02:00
public class MiniSurveyModel : IMiniSurveyModel
2021-08-01 17:24:15 +02:00
{
2022-08-30 15:42:25 +02:00
public MiniSurveyModel(Dictionary<string, IQuestionModel> questions = null)
{
Questions = questions ?? new Dictionary<string, IQuestionModel>();
}
2021-08-01 17:24:15 +02:00
public enum Type
{
SingleAnswer,
CustomText
}
2022-08-30 15:42:25 +02:00
/// <summary> Holds the title of the mini survey. </summary>
2021-08-01 17:24:15 +02:00
public string Title { get; set; }
2022-08-30 15:42:25 +02:00
/// <summary> Holds the sub title of the mini survey. </summary>
2021-08-01 17:24:15 +02:00
public string Subtitle { get; set; }
2022-08-30 15:42:25 +02:00
/// <summary> Holds the footer of the mini survey. </summary>
2021-08-01 17:24:15 +02:00
public string Footer { get; set; }
2022-08-30 15:42:25 +02:00
/// <summary> Holds the questions. </summary>
public IDictionary<string, IQuestionModel> Questions { get; }
2021-08-01 17:24:15 +02:00
}
}