Polling.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace UAS_DeviceMonitor.Entity
  6. {
  7. class Polling
  8. {
  9. private string code;
  10. private string deviceCode;
  11. private string iP;
  12. private string port;
  13. private int interval;
  14. private int id;
  15. private bool enable;
  16. public string DeviceCode
  17. {
  18. get
  19. {
  20. return deviceCode;
  21. }
  22. set
  23. {
  24. deviceCode = value;
  25. }
  26. }
  27. public string IP
  28. {
  29. get
  30. {
  31. return iP;
  32. }
  33. set
  34. {
  35. iP = value;
  36. }
  37. }
  38. public string Port
  39. {
  40. get
  41. {
  42. return port;
  43. }
  44. set
  45. {
  46. port = value;
  47. }
  48. }
  49. public int Interval
  50. {
  51. get
  52. {
  53. return interval;
  54. }
  55. set
  56. {
  57. interval = value;
  58. }
  59. }
  60. public bool Enable
  61. {
  62. get
  63. {
  64. return enable;
  65. }
  66. set
  67. {
  68. enable = value;
  69. }
  70. }
  71. public string Code
  72. {
  73. get
  74. {
  75. return code;
  76. }
  77. set
  78. {
  79. code = value;
  80. }
  81. }
  82. public int Id
  83. {
  84. get
  85. {
  86. return id;
  87. }
  88. set
  89. {
  90. id = value;
  91. }
  92. }
  93. }
  94. }