Version 3.0.381

This commit is contained in:
Anja 2024-04-09 12:53:23 +02:00
parent f963c0a219
commit 3a363acf3a
1525 changed files with 60589 additions and 125098 deletions

View file

@ -0,0 +1,19 @@
using System.Collections.Generic;
namespace ShareeBike.Model.MiniSurvey
{
public interface IMiniSurveyModel
{
/// <summary> Holds the title of the mini survey. </summary>
string Title { get; set; }
/// <summary> Holds the sub title of the mini survey. </summary>
string Subtitle { get; set; }
/// <summary> Holds the footer of the mini survey. </summary>
string Footer { get; set; }
/// <summary> Holds the questions. </summary>
IDictionary<string, IQuestionModel> Questions { get; }
}
}

View file

@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace ShareeBike.Model.MiniSurvey
{
public interface IQuestionModel
{
/// <summary> Holds the query description. </summary>
string Text { get; set; }
/// <summary> Holds the type of the question. </summary>
MiniSurveyModel.Type Type { get; set; }
/// <summary>Holds the collection of possible answers.</summary>
Dictionary<string, string> PossibleAnswers { get; }
}
}

View file

@ -0,0 +1,34 @@
using System.Collections.Generic;
namespace ShareeBike.Model.MiniSurvey
{
/// <summary>
/// Holds mini survey.
/// </summary>
public class MiniSurveyModel : IMiniSurveyModel
{
public MiniSurveyModel(Dictionary<string, IQuestionModel> questions = null)
{
Questions = questions ?? new Dictionary<string, IQuestionModel>();
}
public enum Type
{
SingleAnswer,
CustomText
}
/// <summary> Holds the title of the mini survey. </summary>
public string Title { get; set; }
/// <summary> Holds the sub title of the mini survey. </summary>
public string Subtitle { get; set; }
/// <summary> Holds the footer of the mini survey. </summary>
public string Footer { get; set; }
/// <summary> Holds the questions. </summary>
public IDictionary<string, IQuestionModel> Questions { get; }
}
}

View file

@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace ShareeBike.Model.MiniSurvey
{
public class QuestionModel : IQuestionModel
{
/// <summary> Holds the query description. </summary>
public string Text { get; set; }
/// <summary> Holds the type of the question. </summary>
public MiniSurveyModel.Type Type { get; set; }
/// <summary>Holds the collection of possible answers.</summary>
public Dictionary<string, string> PossibleAnswers { get; private set; } = new Dictionary<string, string>();
}
}