37 lines
879 B
C#
37 lines
879 B
C#
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; }
|
|
}
|
|
|
|
}
|