Projektdateien hinzufügen.

This commit is contained in:
BuildTools committed 2024-09-01 21:12:09 +02:00
1 parent 0682df4d16
commit 749bdb5179
142 files changed
+63622

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FWLAZData.Data
{
public class Answer
{
public int Id { get; set; }
public string Text { get; set; } = null!;
public bool IsCorrect { get; set; }
public virtual Question Question { get; set; } = null!;
}
}
+16
View File
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FWLAZData.Data
{
public class Question
{
public int Id { get; set; }
public string Text { get; set; } = null!;
public List<Answer> Answers { get; set; } = new List<Answer>();
public virtual List<QuestionGroup> QuestionGroups { get; set; } = new();
}
}
+19
View File
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FWLAZData.Data
{
/// <summary>
/// Eine Frage kann zu mehreren QuestionGroups gehören (bspw. hat Bronze die Fragen 1-16, Silber die Fragen 1-24 usw.)
/// </summary>
public class QuestionGroup
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public List<Question> Questions { get; set; } = new List<Question>();
public virtual Quiz Quiz { get; set; } = null!;
}
}
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FWLAZData.Data
{
/// <summary>
/// Beispiel:
/// Quiz[0] = Feuerwehr Leistungsabzeichen Rheinland-Pfalz
/// Quiz[1] = Feuerwehr Leistungsabzeichen Baden-Würtemberg
/// </summary>
public class Quiz
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public List<QuestionGroup> Questiongroups { get; set; } = new();
}
}