mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-05-02 17:06:30 +02:00
Version 3.0.381
This commit is contained in:
parent
f963c0a219
commit
3a363acf3a
1525 changed files with 60589 additions and 125098 deletions
19
SharedBusinessLogic/Model/MiniSurvey/IMiniSurveyModel.cs
Normal file
19
SharedBusinessLogic/Model/MiniSurvey/IMiniSurveyModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
16
SharedBusinessLogic/Model/MiniSurvey/IQuestionModel.cs
Normal file
16
SharedBusinessLogic/Model/MiniSurvey/IQuestionModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
34
SharedBusinessLogic/Model/MiniSurvey/MiniSurveyModel.cs
Normal file
34
SharedBusinessLogic/Model/MiniSurvey/MiniSurveyModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
16
SharedBusinessLogic/Model/MiniSurvey/QuestionModel.cs
Normal file
16
SharedBusinessLogic/Model/MiniSurvey/QuestionModel.cs
Normal 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>();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue