vocabularyContent.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Newtonsoft.Json;
  6. namespace ResfullApi.Models.edu
  7. {
  8. [Serializable]
  9. public class VOCABULARY
  10. {
  11. [JsonProperty("ID")]
  12. public string ID { get; set; }
  13. [JsonProperty("NAME_GLOBAL")]
  14. public string NAME_GLOBAL { get; set; }
  15. [JsonProperty("NAME_LOCAL")]
  16. public string NAME_LOCAL { get; set; }
  17. [JsonProperty("DESCRIPTION_GLOBAL")]
  18. public string DESCRIPTION_GLOBAL { get; set; }
  19. [JsonProperty("DESCRIPTION_LOCAL")]
  20. public string DESCRIPTION_LOCAL { get; set; }
  21. [JsonProperty("INTRODUCTION_GLOBAL")]
  22. public string INTRODUCTION_GLOBAL { get; set; }
  23. [JsonProperty("INTRODUCTION_LOCAL")]
  24. public string INTRODUCTION_LOCAL { get; set; }
  25. [JsonProperty("CONTENT")]
  26. public string CONTENT { get; set; }
  27. [JsonProperty("CONTENT_TYPE")]
  28. public string CONTENT_TYPE { get; set; }
  29. [JsonProperty("EXAMPLE")]
  30. public string EXAMPLE { get; set; }
  31. [JsonProperty("SPELL")]
  32. public string SPELL { get; set; }
  33. [JsonProperty("PICTURE")]
  34. public string PICTURE { get; set; }
  35. [JsonProperty("LESSON_ID")]
  36. public string LESSON_ID { get; set; }
  37. public override string ToString()
  38. {
  39. return JsonConvert.SerializeObject(this);
  40. }
  41. }
  42. public class VOCABULARY_LIST
  43. {
  44. [JsonProperty("status")]
  45. public string status { get; set; }
  46. [JsonProperty("message")]
  47. public string message { get; set; }
  48. [JsonProperty("LIST_VOCABULARY")]
  49. public VOCABULARY[] LIST_VOCABULARY { get; set; }
  50. public override string ToString()
  51. {
  52. return JsonConvert.SerializeObject(this);
  53. }
  54. }
  55. }