Spielablauf umgesetzt
This commit is contained in:
1 parent
749bdb5179
commit
1097ab98fc
29 files changed
+828
-148
No files matched your search
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FWLAZ_Web.Data
|
||||
@@ -13,6 +14,7 @@ namespace FWLAZ_Web.Data
|
||||
public string Text { get; set; } = null!;
|
||||
public bool IsCorrect { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual Question Question { get; set; } = null!;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FWLAZ_Web.Data
|
||||
@@ -12,7 +13,11 @@ namespace FWLAZ_Web.Data
|
||||
public int Number { get; set; }
|
||||
public string Text { get; set; } = null!;
|
||||
public List<Answer> Answers { get; set; } = new List<Answer>();
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual List<QuestionGroup> QuestionGroups { get; set; } = new();
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual Quiz Quiz { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FWLAZ_Web.Data
|
||||
@@ -15,6 +16,8 @@ namespace FWLAZ_Web.Data
|
||||
public string Name { get; set; } = null!;
|
||||
public int Order { get; set; }
|
||||
public List<Question> Questions { get; set; } = new List<Question>();
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual Quiz Quiz { get; set; } = null!;
|
||||
|
||||
public QuestionGroup() { }
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace FWLAZ_Web.Data
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = null!;
|
||||
public bool IsMultipleChoice { get; set; }
|
||||
|
||||
public List<Question> Questions { get; set; } = new();
|
||||
public List<QuestionGroup> Questiongroups { get; set; } = new();
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user