lessonContent.cs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 LESSON
  10. {
  11. [JsonProperty("ID")]
  12. public string ID { get; set; }
  13. [JsonProperty("COURSE_ID")]
  14. public string COURSE_ID { get; set; }
  15. [JsonProperty("CODE")]
  16. public string CODE { get; set; }
  17. [JsonProperty("NAME")]
  18. public string NAME { get; set; }
  19. [JsonProperty("DESCRIPTION")]
  20. public string DESCRIPTION { get; set; }
  21. [JsonProperty("INTRODUCTION")]
  22. public string INTRODUCTION { get; set; }
  23. [JsonProperty("ICON_PATH")]
  24. public string ICON_PATH { get; set; }
  25. [JsonProperty("LOGO_PAHT")]
  26. public string LOGO_PAHT { get; set; }
  27. public override string ToString()
  28. {
  29. return JsonConvert.SerializeObject(this);
  30. }
  31. }
  32. public class COURSE
  33. {
  34. [JsonProperty("ID")]
  35. public string ID { get; set; }
  36. [JsonProperty("CATEGORY_ID")]
  37. public string CATEGORY_ID { get; set; }
  38. [JsonProperty("CODE")]
  39. public string CODE { get; set; }
  40. [JsonProperty("NAME")]
  41. public string NAME { get; set; }
  42. [JsonProperty("DESCRIPTION")]
  43. public string DESCRIPTION { get; set; }
  44. [JsonProperty("INTRODUCTION")]
  45. public string INTRODUCTION { get; set; }
  46. [JsonProperty("IS_LEARN")]
  47. public string IS_LEARN { get; set; }
  48. [JsonProperty("EXP_DATE")]
  49. public string EXP_DATE { get; set; }
  50. [JsonProperty("ICON_PATH")]
  51. public string ICON_PATH { get; set; }
  52. [JsonProperty("LOGO_PAHT")]
  53. public string LOGO_PAHT { get; set; }
  54. [JsonProperty("LIST_LESSON")]
  55. public LESSON[] LIST_LESSON { get; set; }
  56. public override string ToString()
  57. {
  58. return JsonConvert.SerializeObject(this);
  59. }
  60. }
  61. public class COURSE_HIS : COURSE
  62. {
  63. [JsonProperty("TOTAL_LESSON")]
  64. public string TOTAL_LESSON { get; set; }
  65. [JsonProperty("TOTAL_LESSON_LEARN")]
  66. public string TOTAL_LESSON_LEARN { get; set; }
  67. [JsonProperty("PERCENT")]
  68. public string PERCENT { get; set; }
  69. public override string ToString()
  70. {
  71. return JsonConvert.SerializeObject(this);
  72. }
  73. }
  74. public class COURSE_HIS_LIST
  75. {
  76. [JsonProperty("status")]
  77. public string status { get; set; }
  78. [JsonProperty("message")]
  79. public string message { get; set; }
  80. [JsonProperty("LIST_COURSE_HIS")]
  81. public COURSE_HIS[] LIST_COURSE_HIS { get; set; }
  82. }
  83. public class RANKING
  84. {
  85. [JsonProperty("SEQ")]
  86. public string SEQ { get; set; }
  87. [JsonProperty("USERS_ID")]
  88. public string USERS_ID { get; set; }
  89. [JsonProperty("USERS")]
  90. public string USERS { get; set; }
  91. [JsonProperty("MSISDN")]
  92. public string MSISDN { get; set; }
  93. [JsonProperty("SERVICE_ID")]
  94. public string SERVICE_ID { get; set; }
  95. [JsonProperty("FULLNAME")]
  96. public string FULLNAME { get; set; }
  97. [JsonProperty("BIRTHDAY")]
  98. public string BIRTHDAY { get; set; }
  99. [JsonProperty("PICTURE")]
  100. public string PICTURE { get; set; }
  101. [JsonProperty("TOTAL_SCORE")]
  102. public string TOTAL_SCORE { get; set; }
  103. public override string ToString()
  104. {
  105. return JsonConvert.SerializeObject(this);
  106. }
  107. }
  108. public class RANKING_LIST
  109. {
  110. [JsonProperty("status")]
  111. public string status { get; set; }
  112. [JsonProperty("message")]
  113. public string message { get; set; }
  114. [JsonProperty("LIST_RANKING")]
  115. public RANKING[] LIST_RANKING { get; set; }
  116. }
  117. public class CATEGORY
  118. {
  119. [JsonProperty("ID")]
  120. public string ID { get; set; }
  121. [JsonProperty("CODE")]
  122. public string CODE { get; set; }
  123. [JsonProperty("NAME")]
  124. public string NAME { get; set; }
  125. [JsonProperty("DESCRIPTION")]
  126. public string DESCRIPTION { get; set; }
  127. [JsonProperty("INTRODUCTION")]
  128. public string INTRODUCTION { get; set; }
  129. [JsonProperty("ICON_PATH")]
  130. public string ICON_PATH { get; set; }
  131. [JsonProperty("LOGO_PAHT")]
  132. public string LOGO_PAHT { get; set; }
  133. [JsonProperty("SERVICE_ID")]
  134. public string SERVICE_ID { get; set; }
  135. [JsonProperty("LIST_COURSE")]
  136. public COURSE[] LIST_COURSE { get; set; }
  137. public override string ToString()
  138. {
  139. return JsonConvert.SerializeObject(this);
  140. }
  141. }
  142. public class LESSONOFCATEGORY
  143. {
  144. [JsonProperty("status")]
  145. public string status { get; set; }
  146. [JsonProperty("message")]
  147. public string message { get; set; }
  148. [JsonProperty("LIST_CATEGORY")]
  149. public CATEGORY[] LIST_CATEGORY { get; set; }
  150. public override string ToString()
  151. {
  152. return JsonConvert.SerializeObject(this);
  153. }
  154. }
  155. }