DeviceChannel.java 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. @Schema(description = "通道信息")
  4. public class DeviceChannel {
  5. /**
  6. * 数据库自增ID
  7. */
  8. @Schema(description = "数据库自增ID")
  9. private int id;
  10. /**
  11. * 通道国标编号
  12. */
  13. @Schema(description = "通道国标编号")
  14. private String channelId;
  15. /**
  16. * 设备国标编号
  17. */
  18. @Schema(description = "设备国标编号")
  19. private String deviceId;
  20. /**
  21. * 通道名
  22. */
  23. @Schema(description = "名称")
  24. private String name;
  25. /**
  26. * 生产厂商
  27. */
  28. @Schema(description = "生产厂商")
  29. private String manufacture;
  30. /**
  31. * 型号
  32. */
  33. @Schema(description = "型号")
  34. private String model;
  35. /**
  36. * 设备归属
  37. */
  38. @Schema(description = "设备归属")
  39. private String owner;
  40. /**
  41. * 行政区域
  42. */
  43. @Schema(description = "行政区域")
  44. private String civilCode;
  45. /**
  46. * 警区
  47. */
  48. @Schema(description = "警区")
  49. private String block;
  50. /**
  51. * 安装地址
  52. */
  53. @Schema(description = "安装地址")
  54. private String address;
  55. /**
  56. * 是否有子设备 1有, 0没有
  57. */
  58. @Schema(description = "是否有子设备 1有, 0没有")
  59. private int parental;
  60. /**
  61. * 父级id
  62. */
  63. @Schema(description = "父级id")
  64. private String parentId;
  65. /**
  66. * 信令安全模式 缺省为0; 0:不采用; 2: S/MIME签名方式; 3: S/ MIME加密签名同时采用方式; 4:数字摘要方式
  67. */
  68. @Schema(description = "信令安全模式 缺省为0; 0:不采用; 2: S/MIME签名方式; 3: S/ MIME加密签名同时采用方式; 4:数字摘要方式")
  69. private int safetyWay;
  70. /**
  71. * 注册方式 缺省为1;1:符合IETFRFC3261标准的认证注册模 式; 2:基于口令的双向认证注册模式; 3:基于数字证书的双向认证注册模式
  72. */
  73. @Schema(description = "注册方式 缺省为1;1:符合IETFRFC3261标准的认证注册模 式; 2:基于口令的双向认证注册模式; 3:基于数字证书的双向认证注册模式")
  74. private int registerWay;
  75. /**
  76. * 证书序列号
  77. */
  78. @Schema(description = "证书序列号")
  79. private String certNum;
  80. /**
  81. * 证书有效标识 缺省为0;证书有效标识:0:无效1: 有效
  82. */
  83. @Schema(description = "证书有效标识 缺省为0;证书有效标识:0:无效1: 有效")
  84. private int certifiable;
  85. /**
  86. * 证书无效原因码
  87. */
  88. @Schema(description = "证书无效原因码")
  89. private int errCode;
  90. /**
  91. * 证书终止有效期
  92. */
  93. @Schema(description = "证书终止有效期")
  94. private String endTime;
  95. /**
  96. * 保密属性 缺省为0; 0:不涉密, 1:涉密
  97. */
  98. @Schema(description = "保密属性 缺省为0; 0:不涉密, 1:涉密")
  99. private String secrecy;
  100. /**
  101. * IP地址
  102. */
  103. @Schema(description = "IP地址")
  104. private String ipAddress;
  105. /**
  106. * 端口号
  107. */
  108. @Schema(description = "端口号")
  109. private int port;
  110. /**
  111. * 密码
  112. */
  113. @Schema(description = "密码")
  114. private String password;
  115. /**
  116. * 云台类型
  117. */
  118. @Schema(description = "云台类型")
  119. private int PTZType;
  120. /**
  121. * 云台类型描述字符串
  122. */
  123. @Schema(description = "云台类型描述字符串")
  124. private String PTZTypeText;
  125. /**
  126. * 创建时间
  127. */
  128. @Schema(description = "创建时间")
  129. private String createTime;
  130. /**
  131. * 更新时间
  132. */
  133. @Schema(description = "更新时间")
  134. private String updateTime;
  135. /**
  136. * 在线/离线
  137. * 1在线,0离线
  138. * 默认在线
  139. * 信令:
  140. * <Status>ON</Status>
  141. * <Status>OFF</Status>
  142. * 遇到过NVR下的IPC下发信令可以推流, 但是 Status 响应 OFF
  143. */
  144. @Schema(description = "在线/离线, 1在线,0离线")
  145. private boolean status;
  146. /**
  147. * 经度
  148. */
  149. @Schema(description = "经度")
  150. private double longitude;
  151. /**
  152. * 纬度
  153. */
  154. @Schema(description = "纬度")
  155. private double latitude;
  156. /**
  157. * 经度 GCJ02
  158. */
  159. @Schema(description = "GCJ02坐标系经度")
  160. private double longitudeGcj02;
  161. /**
  162. * 纬度 GCJ02
  163. */
  164. @Schema(description = "GCJ02坐标系纬度")
  165. private double latitudeGcj02;
  166. /**
  167. * 经度 WGS84
  168. */
  169. @Schema(description = "WGS84坐标系经度")
  170. private double longitudeWgs84;
  171. /**
  172. * 纬度 WGS84
  173. */
  174. @Schema(description = "WGS84坐标系纬度")
  175. private double latitudeWgs84;
  176. /**
  177. * 子设备数
  178. */
  179. @Schema(description = "子设备数")
  180. private int subCount;
  181. /**
  182. * 流唯一编号,存在表示正在直播
  183. */
  184. @Schema(description = "流唯一编号,存在表示正在直播")
  185. private String streamId;
  186. /**
  187. * 是否含有音频
  188. */
  189. @Schema(description = "是否含有音频")
  190. private boolean hasAudio;
  191. /**
  192. * 标记通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划
  193. */
  194. @Schema(description = "标记通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划")
  195. private int channelType;
  196. /**
  197. * 业务分组
  198. */
  199. @Schema(description = "业务分组")
  200. private String businessGroupId;
  201. /**
  202. * GPS的更新时间
  203. */
  204. @Schema(description = "GPS的更新时间")
  205. private String gpsTime;
  206. public int getId() {
  207. return id;
  208. }
  209. public void setId(int id) {
  210. this.id = id;
  211. }
  212. public String getDeviceId() {
  213. return deviceId;
  214. }
  215. public void setDeviceId(String deviceId) {
  216. this.deviceId = deviceId;
  217. }
  218. public void setPTZType(int PTZType) {
  219. this.PTZType = PTZType;
  220. switch (PTZType) {
  221. case 0:
  222. this.PTZTypeText = "未知";
  223. break;
  224. case 1:
  225. this.PTZTypeText = "球机";
  226. break;
  227. case 2:
  228. this.PTZTypeText = "半球";
  229. break;
  230. case 3:
  231. this.PTZTypeText = "固定枪机";
  232. break;
  233. case 4:
  234. this.PTZTypeText = "遥控枪机";
  235. break;
  236. }
  237. }
  238. public String getChannelId() {
  239. return channelId;
  240. }
  241. public void setChannelId(String channelId) {
  242. this.channelId = channelId;
  243. }
  244. public String getName() {
  245. return name;
  246. }
  247. public void setName(String name) {
  248. this.name = name;
  249. }
  250. public String getManufacture() {
  251. return manufacture;
  252. }
  253. public void setManufacture(String manufacture) {
  254. this.manufacture = manufacture;
  255. }
  256. public String getModel() {
  257. return model;
  258. }
  259. public void setModel(String model) {
  260. this.model = model;
  261. }
  262. public String getOwner() {
  263. return owner;
  264. }
  265. public void setOwner(String owner) {
  266. this.owner = owner;
  267. }
  268. public String getCivilCode() {
  269. return civilCode;
  270. }
  271. public void setCivilCode(String civilCode) {
  272. this.civilCode = civilCode;
  273. }
  274. public String getBlock() {
  275. return block;
  276. }
  277. public void setBlock(String block) {
  278. this.block = block;
  279. }
  280. public String getAddress() {
  281. return address;
  282. }
  283. public void setAddress(String address) {
  284. this.address = address;
  285. }
  286. public int getParental() {
  287. return parental;
  288. }
  289. public void setParental(int parental) {
  290. this.parental = parental;
  291. }
  292. public String getParentId() {
  293. return parentId;
  294. }
  295. public void setParentId(String parentId) {
  296. this.parentId = parentId;
  297. }
  298. public int getSafetyWay() {
  299. return safetyWay;
  300. }
  301. public void setSafetyWay(int safetyWay) {
  302. this.safetyWay = safetyWay;
  303. }
  304. public int getRegisterWay() {
  305. return registerWay;
  306. }
  307. public void setRegisterWay(int registerWay) {
  308. this.registerWay = registerWay;
  309. }
  310. public String getCertNum() {
  311. return certNum;
  312. }
  313. public void setCertNum(String certNum) {
  314. this.certNum = certNum;
  315. }
  316. public int getCertifiable() {
  317. return certifiable;
  318. }
  319. public void setCertifiable(int certifiable) {
  320. this.certifiable = certifiable;
  321. }
  322. public int getErrCode() {
  323. return errCode;
  324. }
  325. public void setErrCode(int errCode) {
  326. this.errCode = errCode;
  327. }
  328. public String getEndTime() {
  329. return endTime;
  330. }
  331. public void setEndTime(String endTime) {
  332. this.endTime = endTime;
  333. }
  334. public String getSecrecy() {
  335. return secrecy;
  336. }
  337. public void setSecrecy(String secrecy) {
  338. this.secrecy = secrecy;
  339. }
  340. public String getIpAddress() {
  341. return ipAddress;
  342. }
  343. public void setIpAddress(String ipAddress) {
  344. this.ipAddress = ipAddress;
  345. }
  346. public int getPort() {
  347. return port;
  348. }
  349. public void setPort(int port) {
  350. this.port = port;
  351. }
  352. public String getPassword() {
  353. return password;
  354. }
  355. public void setPassword(String password) {
  356. this.password = password;
  357. }
  358. public int getPTZType() {
  359. return PTZType;
  360. }
  361. public String getPTZTypeText() {
  362. return PTZTypeText;
  363. }
  364. public void setPTZTypeText(String PTZTypeText) {
  365. this.PTZTypeText = PTZTypeText;
  366. }
  367. public boolean isStatus() {
  368. return status;
  369. }
  370. public void setStatus(boolean status) {
  371. this.status = status;
  372. }
  373. public double getLongitude() {
  374. return longitude;
  375. }
  376. public void setLongitude(double longitude) {
  377. this.longitude = longitude;
  378. }
  379. public double getLatitude() {
  380. return latitude;
  381. }
  382. public void setLatitude(double latitude) {
  383. this.latitude = latitude;
  384. }
  385. public double getLongitudeGcj02() {
  386. return longitudeGcj02;
  387. }
  388. public void setLongitudeGcj02(double longitudeGcj02) {
  389. this.longitudeGcj02 = longitudeGcj02;
  390. }
  391. public double getLatitudeGcj02() {
  392. return latitudeGcj02;
  393. }
  394. public void setLatitudeGcj02(double latitudeGcj02) {
  395. this.latitudeGcj02 = latitudeGcj02;
  396. }
  397. public double getLongitudeWgs84() {
  398. return longitudeWgs84;
  399. }
  400. public void setLongitudeWgs84(double longitudeWgs84) {
  401. this.longitudeWgs84 = longitudeWgs84;
  402. }
  403. public double getLatitudeWgs84() {
  404. return latitudeWgs84;
  405. }
  406. public void setLatitudeWgs84(double latitudeWgs84) {
  407. this.latitudeWgs84 = latitudeWgs84;
  408. }
  409. public int getSubCount() {
  410. return subCount;
  411. }
  412. public void setSubCount(int subCount) {
  413. this.subCount = subCount;
  414. }
  415. public boolean isHasAudio() {
  416. return hasAudio;
  417. }
  418. public void setHasAudio(boolean hasAudio) {
  419. this.hasAudio = hasAudio;
  420. }
  421. public String getStreamId() {
  422. return streamId;
  423. }
  424. public void setStreamId(String streamId) {
  425. this.streamId = streamId;
  426. }
  427. public String getCreateTime() {
  428. return createTime;
  429. }
  430. public void setCreateTime(String createTime) {
  431. this.createTime = createTime;
  432. }
  433. public String getUpdateTime() {
  434. return updateTime;
  435. }
  436. public void setUpdateTime(String updateTime) {
  437. this.updateTime = updateTime;
  438. }
  439. public int getChannelType() {
  440. return channelType;
  441. }
  442. public void setChannelType(int channelType) {
  443. this.channelType = channelType;
  444. }
  445. public String getBusinessGroupId() {
  446. return businessGroupId;
  447. }
  448. public void setBusinessGroupId(String businessGroupId) {
  449. this.businessGroupId = businessGroupId;
  450. }
  451. public String getGpsTime() {
  452. return gpsTime;
  453. }
  454. public void setGpsTime(String gpsTime) {
  455. this.gpsTime = gpsTime;
  456. }
  457. }