Version 3.0.338

This commit is contained in:
Anja Müller-Meißner 2022-09-06 16:08:19 +02:00 committed by Anja
parent 573fe77e12
commit 0468955d49
751 changed files with 62747 additions and 60672 deletions

View file

@ -2,18 +2,18 @@
namespace TINK.Model.MiniSurvey
{
public interface IMiniSurveyModel
{
/// <summary> Holds the title of the mini survey. </summary>
string Title { get; set; }
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 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 footer of the mini survey. </summary>
string Footer { get; set; }
/// <summary> Holds the questions. </summary>
IDictionary<string, IQuestionModel> Questions { get; }
}
/// <summary> Holds the questions. </summary>
IDictionary<string, IQuestionModel> Questions { get; }
}
}

View file

@ -2,15 +2,15 @@
namespace TINK.Model.MiniSurvey
{
public interface IQuestionModel
{
/// <summary> Holds the query description. </summary>
string Text { get; set; }
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 type of the question. </summary>
MiniSurveyModel.Type Type { get; set; }
/// <summary>Holds the collection of possible answers.</summary>
Dictionary<string, string> PossibleAnswers { get; }
}
/// <summary>Holds the collection of possible answers.</summary>
Dictionary<string, string> PossibleAnswers { get; }
}
}

View file

@ -3,32 +3,32 @@
namespace TINK.Model.MiniSurvey
{
/// <summary>
/// Holds mini survey.
/// </summary>
public class MiniSurveyModel : IMiniSurveyModel
{
public MiniSurveyModel(Dictionary<string, IQuestionModel> questions = null)
{
Questions = questions ?? new Dictionary<string, IQuestionModel>();
}
/// <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
}
public enum Type
{
SingleAnswer,
CustomText
}
/// <summary> Holds the title of the mini survey. </summary>
public string Title { get; set; }
/// <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 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 footer of the mini survey. </summary>
public string Footer { get; set; }
/// <summary> Holds the questions. </summary>
public IDictionary<string, IQuestionModel> Questions { get; }
}
/// <summary> Holds the questions. </summary>
public IDictionary<string, IQuestionModel> Questions { get; }
}
}

View file

@ -2,15 +2,15 @@
namespace TINK.Model.MiniSurvey
{
public class QuestionModel : IQuestionModel
{
/// <summary> Holds the query description. </summary>
public string Text { get; set; }
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 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>();
}
/// <summary>Holds the collection of possible answers.</summary>
public Dictionary<string, string> PossibleAnswers { get; private set; } = new Dictionary<string, string>();
}
}