| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace NEducation.Models
- {
- public class Ebook
- {
- public String id { get; set; }
- public String name { get; set; }
- public List<Menu> menus { get; set; } = new List<Menu>();
- public Ebook(String id, String name, List<Menu> menus)
- {
- this.id = id;
- this.name = name;
- this.menus = menus;
- //this.menus.Add(menu);
- }
- }
- public class Video
- {
- public String id { get; set; }
- public String name { get; set; }
- public String link { get; set; }
- public String image { get; set; }
- public Video(String id, String name, String link, String image)
- {
- this.id = id;
- this.name = name;
- this.link = link;
- this.image = image;
- }
- }
- public class Menu
- {
- public String name { get; set; }
- public List<Book> books { get; set; } = new List<Book>();
- public Menu(String name, List<Book> books)
- {
- this.name = name;
- this.books = books;
- //this.books.Add(book);
- }
- }
- public class Book
- {
- public String name { get; set; }
- public List<Description> descriptions { get; set; } = new List<Description>();
- public Book(String name, List<Description> descriptions)
- {
- this.name = name;
- this.descriptions = descriptions;
- //this.descriptions.Add(description);
- }
- }
- public class Description
- {
- public String name { get; set; }
- public List<Download> downloads { get; set; } = new List<Download>();
- public Description(String name, List<Download> downloads)
- {
- this.name = name;
- this.downloads = downloads;
- //this.downloads.Add(download);
- }
- }
- public class Download
- {
- public String name { get; set; }
- public String link { get; set; }
- public Download(String name, String link)
- {
- this.name = name;
- this.link = link;
- }
- }
- }
|