| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using Newtonsoft.Json;
- namespace ResfullApi.Models.edu
- {
- [Serializable]
- public class QUESTION
- {
- [JsonProperty("ID")]
- public string ID { get; set; }
- [JsonProperty("NAME")]
- public string NAME { get; set; }
-
- [JsonProperty("DESCRIPTION")]
- public string DESCRIPTION { get; set; }
- [JsonProperty("ICON_PATH")]
- public string ICON_PATH { get; set; }
- [JsonProperty("CONTENT")]
- public string CONTENT { get; set; }
- [JsonProperty("CONTENT_TYPE")]
- public string CONTENT_TYPE { get; set; }
- [JsonProperty("QUESTION_TYPE")]
- public string QUESTION_TYPE { get; set; }
- [JsonProperty("ANSWER_TRUE")]
- public string ANSWER_TRUE { get; set; }
- [JsonProperty("ANSWER1")]
- public string ANSWER1 { get; set; }
- [JsonProperty("ANSWER2")]
- public string ANSWER2 { get; set; }
- [JsonProperty("ANSWER3")]
- public string ANSWER3 { get; set; }
- [JsonProperty("ANSWER4")]
- public string ANSWER4 { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
-
- public class QUESTION_LIST
- {
- [JsonProperty("status")]
- public string status { get; set; }
- [JsonProperty("message")]
- public string message { get; set; }
- [JsonProperty("LIST_QUESTION")]
- public QUESTION[] LIST_QUESTION { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class ANSWER
- {
- [JsonProperty("QUESTION_ID")]
- public string QUESTION_ID { get; set; }
- [JsonProperty("ANSWER")]
- public string ANSWERS { get; set; }
- [JsonProperty("RESULT")]
- public string RESULT { get; set; }
- [JsonProperty("TIME")]
- public string TIME { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class ANSWER_RESULT
- {
- [JsonProperty("users")]
- public string users { get; set; }
- [JsonProperty("serviceId")]
- public string serviceId { get; set; }
- [JsonProperty("LESSON_ID")]
- public string LESSON_ID { get; set; }
- [JsonProperty("ANSWER_LIST")]
- public ANSWER[] ANSWER_LIST { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- }
|