CameraInfo.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. using log4net.Filter;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using TeamAAS_VP.Enums;
  9. namespace TeamAAS_VP.Models
  10. {
  11. public class CameraInfo : BindableBase
  12. {
  13. private Guid _Id;
  14. public Guid Id
  15. {
  16. get { return _Id; }
  17. set { SetProperty(ref _Id, value); }
  18. }
  19. private string _CameraName;
  20. /// <summary>
  21. /// 相机名称
  22. /// </summary>
  23. public string CameraName
  24. {
  25. get { return _CameraName; }
  26. set { SetProperty(ref _CameraName, value); }
  27. }
  28. private string _Model;
  29. /// <summary>
  30. /// 相机型号
  31. /// </summary>
  32. public string Model
  33. {
  34. get { return _Model; }
  35. set { SetProperty(ref _Model, value); }
  36. }
  37. private string _SerialNumber;
  38. /// <summary>
  39. /// 相机序列号
  40. /// </summary>
  41. public string SerialNumber
  42. {
  43. get { return _SerialNumber; }
  44. set { SetProperty(ref _SerialNumber, value); }
  45. }
  46. private string _ManufacturerName;
  47. /// <summary>
  48. /// 厂商名
  49. /// </summary>
  50. public string ManufacturerName
  51. {
  52. get { return _ManufacturerName; }
  53. set { SetProperty(ref _ManufacturerName, value); }
  54. }
  55. private CameraType _CameraType;
  56. /// <summary>
  57. /// 相机类型
  58. /// </summary>
  59. public CameraType CameraType
  60. {
  61. get { return _CameraType; }
  62. set { SetProperty(ref _CameraType, value); }
  63. }
  64. private CameraBrand _CameraBrand;
  65. /// <summary>
  66. /// 相机品牌
  67. /// </summary>
  68. public CameraBrand CameraBrand
  69. {
  70. get { return _CameraBrand; }
  71. set { SetProperty(ref _CameraBrand, value); }
  72. }
  73. private string _CameraIp;
  74. public string CameraIp
  75. {
  76. get { return _CameraIp; }
  77. set { SetProperty(ref _CameraIp, value); }
  78. }
  79. public CameraInfo Copy()
  80. {
  81. return new CameraInfo
  82. {
  83. Id = this.Id,
  84. CameraName = this.CameraName,
  85. Model = this.Model,
  86. SerialNumber = this.SerialNumber,
  87. ManufacturerName = this.ManufacturerName,
  88. CameraType = this.CameraType,
  89. CameraBrand = this.CameraBrand,
  90. CameraIp = this.CameraIp
  91. };
  92. }
  93. }
  94. }