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

35 lines
822 B
C#
Raw Normal View History

2021-08-01 17:24:15 +02:00
using System.Collections.Generic;
namespace TINK.Model.MiniSurvey
{
2022-09-06 16:08:19 +02:00
/// <summary>
/// Holds mini survey.
/// </summary>
public class MiniSurveyModel : IMiniSurveyModel
{
public MiniSurveyModel(Dictionary<string, IQuestionModel> questions = null)
{
Questions = questions ?? new Dictionary<string, IQuestionModel>();
}
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
public enum Type
{
SingleAnswer,
CustomText
}
2021-08-01 17:24:15 +02:00
2022-09-06 16:08:19 +02:00
/// <summary> Holds the title of the mini survey. </summary>
public string Title { get; set; }
2021-08-01 17:24:15 +02:00
2022-09-06 16:08:19 +02:00
/// <summary> Holds the sub title of the mini survey. </summary>
public string Subtitle { get; set; }
2021-08-01 17:24:15 +02:00
2022-09-06 16:08:19 +02:00
/// <summary> Holds the footer of the mini survey. </summary>
public string Footer { get; set; }
2021-08-01 17:24:15 +02:00
2022-09-06 16:08:19 +02:00
/// <summary> Holds the questions. </summary>
public IDictionary<string, IQuestionModel> Questions { get; }
}
2021-08-01 17:24:15 +02:00
}