Version 3.0.337

This commit is contained in:
Anja Müller-Meißner 2022-08-30 15:42:25 +02:00
parent fd0e63cf10
commit 573fe77e12
2336 changed files with 33688 additions and 86082 deletions

View file

@ -1,8 +1,8 @@
using Serilog;
using System;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Serilog;
using TINK.Model.Connector;
using TINK.Model.MiniSurvey;
using TINK.MultilingualResources;
@ -53,7 +53,7 @@ namespace TINK.ViewModel.MiniSurvey
MiniSurvey.Questions.Add(
"q1",
new MiniSurveyModel.QuestionModel
new QuestionModel
{
Text = "1. Was war der Hauptzweck dieser Ausleihe?",
Type = MiniSurveyModel.Type.SingleAnswer
@ -61,7 +61,7 @@ namespace TINK.ViewModel.MiniSurvey
MiniSurvey.Questions.Add(
"q2",
new MiniSurveyModel.QuestionModel
new QuestionModel
{
Text = "2. Welches Verkehrsmittel hätten Sie ansonsten benutzt?",
Type = MiniSurveyModel.Type.SingleAnswer
@ -69,7 +69,7 @@ namespace TINK.ViewModel.MiniSurvey
MiniSurvey.Questions.Add(
"q3",
new MiniSurveyModel.QuestionModel
new QuestionModel
{
Text = "3. Haben Sie Anmerkungen oder Anregungen?",
Type = MiniSurveyModel.Type.CustomText
@ -120,7 +120,7 @@ namespace TINK.ViewModel.MiniSurvey
public string Footer { get; set; }
/// <summary> Processes request to perform a copri action (reserve bike and cancel reservation). </summary>
public System.Windows.Input.ICommand OnButtonClicked => new Xamarin.Forms.Command(async () =>
public System.Windows.Input.ICommand OnButtonClicked => new Xamarin.Forms.Command(async () =>
{
Log.ForContext<MiniSurveyViewModel>().Information($"User result {this[0].Answer.Value}, {this[1].Answer.Value}");

View file

@ -12,7 +12,7 @@ namespace TINK.ViewModel.MiniSurvey.Question
KeyValuePair<string, string> question,
Dictionary<string, string> answers)
{
Question = question;
Question = question;
Answers = answers ?? new Dictionary<string, string>();
}

View file

@ -23,7 +23,7 @@ namespace TINK.ViewModel.MiniSurvey.Question
public KeyValuePair<string, string> Answer { get; private set; }
/// <summary> Holds the list of possible answers exposed to GUI. </summary>
public string AnswerText
public string AnswerText
{
get => null;
set => Answer = new KeyValuePair<string, string>(value, null);