You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
619 B
22 lines
619 B
namespace Blazor.ViewClasses;
|
|
|
|
public class Question
|
|
{
|
|
public int Id { get; private set; }
|
|
public string Content { get; set; }
|
|
public int IdChapter { get; set; }
|
|
public int IdAnswerGood { get; set; }
|
|
public int Difficulty { get; set; }
|
|
public int nbFails { get; set; }
|
|
|
|
public Question(int id, string content, int idChapter, int idAnswerGood, int difficulty, int nbFails = 0)
|
|
{
|
|
Id = id;
|
|
Content = content;
|
|
IdChapter = idChapter;
|
|
IdAnswerGood = idAnswerGood;
|
|
Difficulty = difficulty;
|
|
this.nbFails = nbFails;
|
|
}
|
|
}
|