| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using Newtonsoft.Json;
- namespace ResfullApi.Models.edu
- {
- [Serializable]
- public class LESSON
- {
- [JsonProperty("ID")]
- public string ID { get; set; }
- [JsonProperty("COURSE_ID")]
- public string COURSE_ID { get; set; }
- [JsonProperty("CODE")]
- public string CODE { get; set; }
- [JsonProperty("NAME")]
- public string NAME { get; set; }
-
- [JsonProperty("DESCRIPTION")]
- public string DESCRIPTION { get; set; }
-
- [JsonProperty("INTRODUCTION")]
- public string INTRODUCTION { get; set; }
-
- [JsonProperty("ICON_PATH")]
- public string ICON_PATH { get; set; }
- [JsonProperty("LOGO_PAHT")]
- public string LOGO_PAHT { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class COURSE
- {
- [JsonProperty("ID")]
- public string ID { get; set; }
- [JsonProperty("CATEGORY_ID")]
- public string CATEGORY_ID { get; set; }
- [JsonProperty("CODE")]
- public string CODE { get; set; }
- [JsonProperty("NAME")]
- public string NAME { get; set; }
-
- [JsonProperty("DESCRIPTION")]
- public string DESCRIPTION { get; set; }
-
- [JsonProperty("INTRODUCTION")]
- public string INTRODUCTION { get; set; }
- [JsonProperty("IS_LEARN")]
- public string IS_LEARN { get; set; }
- [JsonProperty("EXP_DATE")]
- public string EXP_DATE { get; set; }
-
- [JsonProperty("ICON_PATH")]
- public string ICON_PATH { get; set; }
- [JsonProperty("LOGO_PAHT")]
- public string LOGO_PAHT { get; set; }
- [JsonProperty("LIST_LESSON")]
- public LESSON[] LIST_LESSON { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class COURSE_HIS : COURSE
- {
- [JsonProperty("TOTAL_LESSON")]
- public string TOTAL_LESSON { get; set; }
-
- [JsonProperty("TOTAL_LESSON_LEARN")]
- public string TOTAL_LESSON_LEARN { get; set; }
-
- [JsonProperty("PERCENT")]
- public string PERCENT { get; set; }
-
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class COURSE_HIS_LIST
- {
- [JsonProperty("status")]
- public string status { get; set; }
- [JsonProperty("message")]
- public string message { get; set; }
- [JsonProperty("LIST_COURSE_HIS")]
- public COURSE_HIS[] LIST_COURSE_HIS { get; set; }
- }
- public class RANKING
- {
- [JsonProperty("SEQ")]
- public string SEQ { get; set; }
- [JsonProperty("USERS_ID")]
- public string USERS_ID { get; set; }
- [JsonProperty("USERS")]
- public string USERS { get; set; }
- [JsonProperty("MSISDN")]
- public string MSISDN { get; set; }
- [JsonProperty("SERVICE_ID")]
- public string SERVICE_ID { get; set; }
- [JsonProperty("FULLNAME")]
- public string FULLNAME { get; set; }
- [JsonProperty("BIRTHDAY")]
- public string BIRTHDAY { get; set; }
- [JsonProperty("PICTURE")]
- public string PICTURE { get; set; }
- [JsonProperty("TOTAL_SCORE")]
- public string TOTAL_SCORE { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- public class RANKING_LIST
- {
- [JsonProperty("status")]
- public string status { get; set; }
- [JsonProperty("message")]
- public string message { get; set; }
- [JsonProperty("LIST_RANKING")]
- public RANKING[] LIST_RANKING { get; set; }
- }
-
-
- public class CATEGORY
- {
- [JsonProperty("ID")]
- public string ID { get; set; }
- [JsonProperty("CODE")]
- public string CODE { get; set; }
- [JsonProperty("NAME")]
- public string NAME { get; set; }
-
- [JsonProperty("DESCRIPTION")]
- public string DESCRIPTION { get; set; }
-
- [JsonProperty("INTRODUCTION")]
- public string INTRODUCTION { get; set; }
-
- [JsonProperty("ICON_PATH")]
- public string ICON_PATH { get; set; }
- [JsonProperty("LOGO_PAHT")]
- public string LOGO_PAHT { get; set; }
- [JsonProperty("SERVICE_ID")]
- public string SERVICE_ID { get; set; }
- [JsonProperty("LIST_COURSE")]
- public COURSE[] LIST_COURSE { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
-
- public class LESSONOFCATEGORY
- {
- [JsonProperty("status")]
- public string status { get; set; }
- [JsonProperty("message")]
- public string message { get; set; }
- [JsonProperty("LIST_CATEGORY")]
- public CATEGORY[] LIST_CATEGORY { get; set; }
- public override string ToString()
- {
- return JsonConvert.SerializeObject(this);
- }
- }
- }
|