Quiz weiter gebaut;
This commit is contained in:
16
MultipleChoiceTrainer/Models/DataModels/Evaluation.cs
Normal file
16
MultipleChoiceTrainer/Models/DataModels/Evaluation.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MultipleChoiceTrainer.Models.DataModels
|
||||
{
|
||||
public class Evaluation
|
||||
{
|
||||
public bool Success => RightAnswer == GivenAnswer;
|
||||
public bool RightAnswer { get; set; }
|
||||
public bool GivenAnswer { get; set; }
|
||||
|
||||
public string Text { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user