Template.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace HTEXScan.Models
  6. {
  7. /**模板快**/
  8. public class TemplateCell
  9. {
  10. /**x**/
  11. [JsonProperty(PropertyName = "x")]
  12. public int X
  13. {
  14. get;
  15. set;
  16. }
  17. /**y**/
  18. [JsonProperty(PropertyName = "y")]
  19. public int Y
  20. {
  21. get;
  22. set;
  23. }
  24. /**w**/
  25. [JsonProperty(PropertyName = "w")]
  26. public int W
  27. {
  28. get;
  29. set;
  30. }
  31. /**h**/
  32. [JsonProperty(PropertyName = "h")]
  33. public int H
  34. {
  35. get;
  36. set;
  37. }
  38. /**text**/
  39. [JsonProperty(PropertyName = "text")]
  40. public char Text
  41. {
  42. get;
  43. set;
  44. }
  45. /**type**/
  46. [JsonProperty(PropertyName = "type")]
  47. public int Type
  48. {
  49. get;
  50. set;
  51. }
  52. /**text**/
  53. [JsonProperty(PropertyName = "col")]
  54. public int Col
  55. {
  56. get;
  57. set;
  58. }
  59. }
  60. /**模板**/
  61. public class Template
  62. {
  63. /**rw**/
  64. [JsonProperty(PropertyName = "rw")]
  65. public int Rw
  66. {
  67. get;
  68. set;
  69. }
  70. /**rh**/
  71. [JsonProperty(PropertyName = "rh")]
  72. public int Rh
  73. {
  74. get;
  75. set;
  76. }
  77. /**w**/
  78. [JsonProperty(PropertyName = "w")]
  79. public int W
  80. {
  81. get;
  82. set;
  83. }
  84. /**h**/
  85. [JsonProperty(PropertyName = "h")]
  86. public int H
  87. {
  88. get;
  89. set;
  90. }
  91. /**bw**/
  92. [JsonProperty(PropertyName = "bw")]
  93. public int Bw
  94. {
  95. get;
  96. set;
  97. }
  98. /**bh**/
  99. [JsonProperty(PropertyName = "bh")]
  100. public int Bh
  101. {
  102. get;
  103. set;
  104. }
  105. /**bx**/
  106. [JsonProperty(PropertyName = "bx")]
  107. public int Bx
  108. {
  109. get;
  110. set;
  111. }
  112. /**by**/
  113. [JsonProperty(PropertyName = "by")]
  114. public int By
  115. {
  116. get;
  117. set;
  118. }
  119. /**cell**/
  120. [JsonProperty(PropertyName = "cell")]
  121. public List<TemplateCell> Cell
  122. {
  123. get;
  124. set;
  125. }
  126. }
  127. }