questionContent.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Newtonsoft.Json;
  6. namespace ResfullApi.Models.edu
  7. {
  8. [Serializable]
  9. public class QUESTION
  10. {
  11. [JsonProperty("ID")]
  12. public string ID { get; set; }
  13. [JsonProperty("NAME")]
  14. public string NAME { get; set; }
  15. [JsonProperty("DESCRIPTION")]
  16. public string DESCRIPTION { get; set; }
  17. [JsonProperty("ICON_PATH")]
  18. public string ICON_PATH { get; set; }
  19. [JsonProperty("CONTENT")]
  20. public string CONTENT { get; set; }
  21. [JsonProperty("CONTENT_TYPE")]
  22. public string CONTENT_TYPE { get; set; }
  23. [JsonProperty("QUESTION_TYPE")]
  24. public string QUESTION_TYPE { get; set; }
  25. [JsonProperty("ANSWER_TRUE")]
  26. public string ANSWER_TRUE { get; set; }
  27. [JsonProperty("ANSWER1")]
  28. public string ANSWER1 { get; set; }
  29. [JsonProperty("ANSWER2")]
  30. public string ANSWER2 { get; set; }
  31. [JsonProperty("ANSWER3")]
  32. public string ANSWER3 { get; set; }
  33. [JsonProperty("ANSWER4")]
  34. public string ANSWER4 { get; set; }
  35. public override string ToString()
  36. {
  37. return JsonConvert.SerializeObject(this);
  38. }
  39. }
  40. public class QUESTION_LIST
  41. {
  42. [JsonProperty("status")]
  43. public string status { get; set; }
  44. [JsonProperty("message")]
  45. public string message { get; set; }
  46. [JsonProperty("LIST_QUESTION")]
  47. public QUESTION[] LIST_QUESTION { get; set; }
  48. public override string ToString()
  49. {
  50. return JsonConvert.SerializeObject(this);
  51. }
  52. }
  53. public class ANSWER
  54. {
  55. [JsonProperty("QUESTION_ID")]
  56. public string QUESTION_ID { get; set; }
  57. [JsonProperty("ANSWER")]
  58. public string ANSWERS { get; set; }
  59. [JsonProperty("RESULT")]
  60. public string RESULT { get; set; }
  61. [JsonProperty("TIME")]
  62. public string TIME { get; set; }
  63. public override string ToString()
  64. {
  65. return JsonConvert.SerializeObject(this);
  66. }
  67. }
  68. public class ANSWER_RESULT
  69. {
  70. [JsonProperty("users")]
  71. public string users { get; set; }
  72. [JsonProperty("serviceId")]
  73. public string serviceId { get; set; }
  74. [JsonProperty("LESSON_ID")]
  75. public string LESSON_ID { get; set; }
  76. [JsonProperty("ANSWER_LIST")]
  77. public ANSWER[] ANSWER_LIST { get; set; }
  78. public override string ToString()
  79. {
  80. return JsonConvert.SerializeObject(this);
  81. }
  82. }
  83. }