using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models.edu { [Serializable] public class GRAMMAR { [JsonProperty("ID")] public string ID { get; set; } [JsonProperty("NAME")] public string NAME { get; set; } [JsonProperty("DESCRIPTION")] public string DESCRIPTION { get; set; } [JsonProperty("INTRODUCTION")] public string INTRODUCTION { get; set; } [JsonProperty("PICTURE")] public string PICTURE { get; set; } [JsonProperty("LESSON_ID")] public string LESSON_ID { get; set; } [JsonProperty("LIST_GRAMMAR_EX")] public GRAMMAR_EX[] LIST_GRAMMAR_EX { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } public class GRAMMAR_EX { [JsonProperty("ID")] public string ID { get; set; } [JsonProperty("NAME")] public string NAME { get; set; } [JsonProperty("DESCRIPTION")] public string DESCRIPTION { get; set; } [JsonProperty("INTRODUCTION")] public string INTRODUCTION { get; set; } [JsonProperty("PICTURE")] public string PICTURE { get; set; } [JsonProperty("CONTENT")] public string CONTENT { get; set; } [JsonProperty("CONTENT_TYPE")] public string CONTENT_TYPE { get; set; } [JsonProperty("GRAMMAR_ID")] public string GRAMMAR_ID { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } public class GRAMMAR_LIST { [JsonProperty("status")] public string status { get; set; } [JsonProperty("message")] public string message { get; set; } [JsonProperty("LIST_GRAMMAR")] public GRAMMAR[] LIST_GRAMMAR { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }