|
|
|
@ -1,12 +1,22 @@
|
|
|
|
|
namespace Blazor.ViewClasses;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Blazor.ViewClasses;
|
|
|
|
|
|
|
|
|
|
public class Question
|
|
|
|
|
{
|
|
|
|
|
public int Q_id { get; set; }
|
|
|
|
|
public string Q_content { get; set; }
|
|
|
|
|
public int IdChapter { get; set; }
|
|
|
|
|
public int IdAnswerGood { get; set; }
|
|
|
|
|
[JsonPropertyName("q_id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("q_content")]
|
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Difficulty { get; set; }
|
|
|
|
|
public int nbFails { get; set; }
|
|
|
|
|
public int IdChapter { get; set; }
|
|
|
|
|
public string ChapterName { get; set; }
|
|
|
|
|
public int IdAnswerGood { get; set; }
|
|
|
|
|
public int A_id { get; set; }
|
|
|
|
|
public string A_content { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|