| 12345678910111213141516171819202122232425262728293031323334353637 |
- using Newtonsoft.Json.Linq;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace NEducation.Code
- {
- public class Tenor
- {
- public string status { get; set; }
- public string message { get; set; }
- public List<Category> listCategory { get; set; }
- public Tenor() { }
- public Tenor(string json) : this(JObject.Parse(json))
- { }
- public Tenor(JObject jObject)
- {
- if (jObject != null)
- {
- status = (string)jObject["status"];
- message = (string)jObject["message"];
- var list = jObject["LIST_CATEGORY"];
- if (list != null && list.HasValues)
- {
- listCategory = new List<Category>();
- JArray a = (JArray)list;
- foreach (JObject o in a.Children<JObject>())
- {
- listCategory.Add(new Category(o));
- }
- }
- }
- }
- }
- }
|