| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using NEducation.Controllers;
- using Newtonsoft.Json.Linq;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace NEducation.Code
- {
- public class Lesson
- {
- public String id { get; set; }
- public String courseId { get; set; }
- public String code { get; set; }
- public String name { get; set; }
- public String description { get; set; }
- public String introduction { get; set; }
- public String iconPath { get; set; }
- public String logoPath { get; set; }
- public Lesson() { }
- public Lesson(string json) : this(JObject.Parse(json))
- { }
- public Lesson(JObject jObject)
- {
- System.Diagnostics.Debug.WriteLine(jObject);
- if (jObject != null)
- {
- id = (string)jObject["ID"];
- code = (string)jObject["CODE"];
- name = (string)jObject["NAME"];
- courseId = (string)jObject["COURSE_ID"];
- description = (string)jObject["DESCRIPTION"];
- introduction = (string)jObject["INTRODUCTION"];
- iconPath = UtilsController.GetContentPath.LessonContentPath + (string)jObject["ICON_PATH"];
- logoPath = UtilsController.GetContentPath.LessonContentPath + (string)jObject["LOGO_PAHT"];
- System.Diagnostics.Debug.WriteLine("path " + iconPath);
- }
- }
- }
- }
|