Polling.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 deviceCode;
  10. private string iP;
  11. private string port;
  12. private int interval;
  13. private bool enable;
  14. public string DeviceCode
  15. {
  16. get
  17. {
  18. return deviceCode;
  19. }
  20. set
  21. {
  22. deviceCode = value;
  23. }
  24. }
  25. public string IP
  26. {
  27. get
  28. {
  29. return iP;
  30. }
  31. set
  32. {
  33. iP = value;
  34. }
  35. }
  36. public string Port
  37. {
  38. get
  39. {
  40. return port;
  41. }
  42. set
  43. {
  44. port = value;
  45. }
  46. }
  47. public int Interval
  48. {
  49. get
  50. {
  51. return interval;
  52. }
  53. set
  54. {
  55. interval = value;
  56. }
  57. }
  58. public bool Enable
  59. {
  60. get
  61. {
  62. return enable;
  63. }
  64. set
  65. {
  66. enable = value;
  67. }
  68. }
  69. }
  70. }