Cim.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text;
  5. namespace ProductionLineMonitor.Core.Models
  6. {
  7. /// <summary>
  8. /// Cim电脑
  9. /// </summary>
  10. [Table("Cims")]
  11. public class Cim : Base
  12. {
  13. /// <summary>
  14. /// Topic
  15. /// </summary>
  16. public string Topic { get; set; }
  17. /// <summary>
  18. /// 连接状态
  19. /// </summary>
  20. public bool IsConnected { get; set; }
  21. /// <summary>
  22. /// 推送时间
  23. /// </summary>
  24. public DateTime Time { get; set; }
  25. /// <summary>
  26. /// IP地址
  27. /// </summary>
  28. public string IpAddress { get; set; }
  29. /// <summary>
  30. /// 用户名
  31. /// </summary>
  32. public string User { get; set; }
  33. /// <summary>
  34. /// PLC通讯状态
  35. /// </summary>
  36. public bool PLCIsConnected { get; set; }
  37. /// <summary>
  38. /// EAP通讯状态
  39. /// </summary>
  40. public bool EAPIsConnected { get; set; }
  41. /// <summary>
  42. /// 版本号
  43. /// </summary>
  44. public string Version { get; set; }
  45. /// <summary>
  46. /// EAP IP
  47. /// </summary>
  48. public string EAPIP { get; set; }
  49. /// <summary>
  50. /// EAP Port
  51. /// </summary>
  52. public int EAPPort { get; set; }
  53. }
  54. }