DeviceChannel.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. import lombok.Data;
  3. @Data
  4. public class DeviceChannel {
  5. /**
  6. * 通道id
  7. */
  8. private String channelId;
  9. /**
  10. * 通道名
  11. */
  12. private String name;
  13. /**
  14. * 生产厂商
  15. */
  16. private String manufacture;
  17. /**
  18. * 型号
  19. */
  20. private String model;
  21. /**
  22. * 设备归属
  23. */
  24. private String owner;
  25. /**
  26. * 行政区域
  27. */
  28. private String civilCode;
  29. /**
  30. * 警区
  31. */
  32. private String block;
  33. /**
  34. * 安装地址
  35. */
  36. private String address;
  37. /**
  38. * 是否有子设备 1有, 0没有
  39. */
  40. private int parental;
  41. /**
  42. * 父级id
  43. */
  44. private String parentId;
  45. /**
  46. * 信令安全模式 缺省为0; 0:不采用; 2: S/MIME签名方式; 3: S/ MIME加密签名同时采用方式; 4:数字摘要方式
  47. */
  48. private int safetyWay;
  49. /**
  50. * 注册方式 缺省为1;1:符合IETFRFC3261标准的认证注册模 式; 2:基于口令的双向认证注册模式; 3:基于数字证书的双向认证注册模式
  51. */
  52. private int registerWay;
  53. /**
  54. * 证书序列号
  55. */
  56. private String certNum;
  57. /**
  58. * 证书有效标识 缺省为0;证书有效标识:0:无效1: 有效
  59. */
  60. private int certifiable;
  61. /**
  62. * 证书无效原因码
  63. */
  64. private int errCode;
  65. /**
  66. * 证书终止有效期
  67. */
  68. private String endTime;
  69. /**
  70. * 保密属性 缺省为0; 0:不涉密, 1:涉密
  71. */
  72. private String secrecy;
  73. /**
  74. * IP地址
  75. */
  76. private String ipAddress;
  77. /**
  78. * 端口号
  79. */
  80. private int port;
  81. /**
  82. * 密码
  83. */
  84. private String password;
  85. /**
  86. * 云台类型
  87. */
  88. private int PTZType;
  89. /**
  90. * 云台类型描述字符串
  91. */
  92. private String PTZTypeText;
  93. /**
  94. * 在线/离线
  95. * 1在线,0离线
  96. * 默认在线
  97. * 信令:
  98. * <Status>ON</Status>
  99. * <Status>OFF</Status>
  100. * 遇到过NVR下的IPC下发信令可以推流, 但是 Status 响应 OFF
  101. */
  102. private int status;
  103. /**
  104. * 经度
  105. */
  106. private double longitude;
  107. /**
  108. * 纬度
  109. */
  110. private double latitude;
  111. /**
  112. * 子设备数
  113. */
  114. private int subCount;
  115. /**
  116. * 流唯一编号,存在表示正在直播
  117. */
  118. private String ssrc;
  119. /**
  120. * 是否含有音频
  121. */
  122. private boolean hasAudio;
  123. /**
  124. * 是否正在播放
  125. */
  126. private boolean play;
  127. public void setPTZType(int PTZType) {
  128. this.PTZType = PTZType;
  129. switch (PTZType) {
  130. case 0:
  131. this.PTZTypeText = "未知";
  132. break;
  133. case 1:
  134. this.PTZTypeText = "球机";
  135. break;
  136. case 2:
  137. this.PTZTypeText = "半球";
  138. break;
  139. case 3:
  140. this.PTZTypeText = "固定枪机";
  141. break;
  142. case 4:
  143. this.PTZTypeText = "遥控枪机";
  144. break;
  145. }
  146. }
  147. }