giteaCICD
This commit is contained in:
36
TechHelper.Client/Exam/QuestionSimple.cs
Normal file
36
TechHelper.Client/Exam/QuestionSimple.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace TechHelper.Client.Exam.QuestionSimple
|
||||
{
|
||||
|
||||
[XmlRoot("QG")]
|
||||
public class QuestionGroup
|
||||
{
|
||||
[XmlElement("T")]
|
||||
public string Title { get; set; }
|
||||
[XmlElement("QR")]
|
||||
public string QuestionReference { get; set; } = "";
|
||||
[XmlArray("SQs")]
|
||||
[XmlArrayItem("SQ")]
|
||||
public List<SubQuestion> SubQuestions { get; set; } = new List<SubQuestion>();
|
||||
[XmlArray("SQGs")]
|
||||
[XmlArrayItem("QG")]
|
||||
public List<QuestionGroup> SubQuestionGroups { get; set; } = new List<QuestionGroup>();
|
||||
}
|
||||
public class SubQuestion
|
||||
{
|
||||
[XmlElement("T")]
|
||||
public string Stem { get; set; }
|
||||
[XmlArray("Os")]
|
||||
[XmlArrayItem("O")]
|
||||
public List<Option> Options { get; set; } = new List<Option>();
|
||||
[XmlElement("SA")]
|
||||
public string SampleAnswer { get; set; } = "";
|
||||
}
|
||||
public class Option
|
||||
{
|
||||
[XmlAttribute("V")]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user