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

35 lines
828 B
C#
Raw Normal View History

2021-08-01 17:24:15 +02:00
using System.Collections.Generic;
2024-04-09 12:53:23 +02:00
namespace ShareeBike.Model.MiniSurvey
2021-08-01 17:24:15 +02:00
{
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
}