QuestionConfig.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Newtonsoft.Json;
  2. using System.Collections.Generic;
  3. namespace DaJiaoYan.Models
  4. {
  5. public class QuestionConfig
  6. {
  7. public class EmptyScore
  8. {
  9. public int Key { get; set; }
  10. public string Label { get; set; }
  11. public float Value { get; set; }
  12. }
  13. [JsonProperty(PropertyName = "label", NullValueHandling = NullValueHandling.Ignore)]
  14. public string Label { get; set; }
  15. /// <summary>
  16. /// 系统题型,如:big_spaces, multiple_one
  17. /// </summary>
  18. [JsonProperty(PropertyName = "question_type")]
  19. public string QuestionType { get; set; }
  20. [JsonProperty(PropertyName = "show_order")]
  21. public int ShowOrder { get; set; }
  22. [JsonProperty(PropertyName = "empty_count")]
  23. public int EmptyCount { get; set; }
  24. [JsonProperty(PropertyName = "option_count")]
  25. public int OptionCount { get; set; }
  26. [JsonProperty(PropertyName = "question_score")]
  27. public float QuestionScore { get; set; }
  28. [JsonProperty(PropertyName = "empty_score")]
  29. public List<EmptyScore> EmptyScores { get; set; }
  30. [JsonProperty(PropertyName = "answer")]
  31. public List<string> Answers { get; set; }
  32. }
  33. }