DeviceChannel.java 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  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. * 经度
  158. */
  159. @Schema(description = "自定义经度")
  160. private double customLongitude;
  161. /**
  162. * 纬度
  163. */
  164. @Schema(description = "自定义纬度")
  165. private double customLatitude;
  166. /**
  167. * 经度 GCJ02
  168. */
  169. @Schema(description = "GCJ02坐标系经度")
  170. private double longitudeGcj02;
  171. /**
  172. * 纬度 GCJ02
  173. */
  174. @Schema(description = "GCJ02坐标系纬度")
  175. private double latitudeGcj02;
  176. /**
  177. * 经度 WGS84
  178. */
  179. @Schema(description = "WGS84坐标系经度")
  180. private double longitudeWgs84;
  181. /**
  182. * 纬度 WGS84
  183. */
  184. @Schema(description = "WGS84坐标系纬度")
  185. private double latitudeWgs84;
  186. /**
  187. * 子设备数
  188. */
  189. @Schema(description = "子设备数")
  190. private int subCount;
  191. /**
  192. * 流唯一编号,存在表示正在直播
  193. */
  194. @Schema(description = "流唯一编号,存在表示正在直播")
  195. private String streamId;
  196. /**
  197. * 是否含有音频
  198. */
  199. @Schema(description = "是否含有音频")
  200. private Boolean hasAudio;
  201. /**
  202. * 标记通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划
  203. */
  204. @Schema(description = "标记通道的类型,0->国标通道 1->直播流通道 2->业务分组/虚拟组织/行政区划")
  205. private int channelType;
  206. /**
  207. * 业务分组
  208. */
  209. @Schema(description = "业务分组")
  210. private String businessGroupId;
  211. /**
  212. * GPS的更新时间
  213. */
  214. @Schema(description = "GPS的更新时间")
  215. private String gpsTime;
  216. @Schema(description = "码流标识,优先级高于设备中码流标识," +
  217. "用于选择码流时组成码流标识。默认为null,不设置。可选值: stream/streamnumber/streamprofile/streamMode")
  218. private String streamIdentification;
  219. public int getId() {
  220. return id;
  221. }
  222. public void setId(int id) {
  223. this.id = id;
  224. }
  225. public String getDeviceId() {
  226. return deviceId;
  227. }
  228. public void setDeviceId(String deviceId) {
  229. this.deviceId = deviceId;
  230. }
  231. public void setPtzType(int ptzType) {
  232. this.ptzType = ptzType;
  233. switch (ptzType) {
  234. case 0:
  235. this.ptzTypeText = "未知";
  236. break;
  237. case 1:
  238. this.ptzTypeText = "球机";
  239. break;
  240. case 2:
  241. this.ptzTypeText = "半球";
  242. break;
  243. case 3:
  244. this.ptzTypeText = "固定枪机";
  245. break;
  246. case 4:
  247. this.ptzTypeText = "遥控枪机";
  248. break;
  249. }
  250. }
  251. public String getChannelId() {
  252. return channelId;
  253. }
  254. public void setChannelId(String channelId) {
  255. this.channelId = channelId;
  256. }
  257. public String getName() {
  258. return name;
  259. }
  260. public void setName(String name) {
  261. this.name = name;
  262. }
  263. public String getManufacture() {
  264. return manufacture;
  265. }
  266. public void setManufacture(String manufacture) {
  267. this.manufacture = manufacture;
  268. }
  269. public String getModel() {
  270. return model;
  271. }
  272. public void setModel(String model) {
  273. this.model = model;
  274. }
  275. public String getOwner() {
  276. return owner;
  277. }
  278. public void setOwner(String owner) {
  279. this.owner = owner;
  280. }
  281. public String getCivilCode() {
  282. return civilCode;
  283. }
  284. public void setCivilCode(String civilCode) {
  285. this.civilCode = civilCode;
  286. }
  287. public String getBlock() {
  288. return block;
  289. }
  290. public void setBlock(String block) {
  291. this.block = block;
  292. }
  293. public String getAddress() {
  294. return address;
  295. }
  296. public void setAddress(String address) {
  297. this.address = address;
  298. }
  299. public int getParental() {
  300. return parental;
  301. }
  302. public void setParental(int parental) {
  303. this.parental = parental;
  304. }
  305. public String getParentId() {
  306. return parentId;
  307. }
  308. public void setParentId(String parentId) {
  309. this.parentId = parentId;
  310. }
  311. public int getSafetyWay() {
  312. return safetyWay;
  313. }
  314. public void setSafetyWay(int safetyWay) {
  315. this.safetyWay = safetyWay;
  316. }
  317. public int getRegisterWay() {
  318. return registerWay;
  319. }
  320. public void setRegisterWay(int registerWay) {
  321. this.registerWay = registerWay;
  322. }
  323. public String getCertNum() {
  324. return certNum;
  325. }
  326. public void setCertNum(String certNum) {
  327. this.certNum = certNum;
  328. }
  329. public int getCertifiable() {
  330. return certifiable;
  331. }
  332. public void setCertifiable(int certifiable) {
  333. this.certifiable = certifiable;
  334. }
  335. public int getErrCode() {
  336. return errCode;
  337. }
  338. public void setErrCode(int errCode) {
  339. this.errCode = errCode;
  340. }
  341. public String getEndTime() {
  342. return endTime;
  343. }
  344. public void setEndTime(String endTime) {
  345. this.endTime = endTime;
  346. }
  347. public String getSecrecy() {
  348. return secrecy;
  349. }
  350. public void setSecrecy(String secrecy) {
  351. this.secrecy = secrecy;
  352. }
  353. public String getIpAddress() {
  354. return ipAddress;
  355. }
  356. public void setIpAddress(String ipAddress) {
  357. this.ipAddress = ipAddress;
  358. }
  359. public int getPort() {
  360. return port;
  361. }
  362. public void setPort(int port) {
  363. this.port = port;
  364. }
  365. public String getPassword() {
  366. return password;
  367. }
  368. public void setPassword(String password) {
  369. this.password = password;
  370. }
  371. public int getPtzType() {
  372. return ptzType;
  373. }
  374. public String getPtzTypeText() {
  375. return ptzTypeText;
  376. }
  377. public void setPtzTypeText(String ptzTypeText) {
  378. this.ptzTypeText = ptzTypeText;
  379. }
  380. public boolean isStatus() {
  381. return status;
  382. }
  383. public void setStatus(boolean status) {
  384. this.status = status;
  385. }
  386. public double getLongitude() {
  387. return longitude;
  388. }
  389. public void setLongitude(double longitude) {
  390. this.longitude = longitude;
  391. }
  392. public double getLatitude() {
  393. return latitude;
  394. }
  395. public void setLatitude(double latitude) {
  396. this.latitude = latitude;
  397. }
  398. public double getLongitudeGcj02() {
  399. return longitudeGcj02;
  400. }
  401. public void setLongitudeGcj02(double longitudeGcj02) {
  402. this.longitudeGcj02 = longitudeGcj02;
  403. }
  404. public double getLatitudeGcj02() {
  405. return latitudeGcj02;
  406. }
  407. public void setLatitudeGcj02(double latitudeGcj02) {
  408. this.latitudeGcj02 = latitudeGcj02;
  409. }
  410. public double getLongitudeWgs84() {
  411. return longitudeWgs84;
  412. }
  413. public void setLongitudeWgs84(double longitudeWgs84) {
  414. this.longitudeWgs84 = longitudeWgs84;
  415. }
  416. public double getLatitudeWgs84() {
  417. return latitudeWgs84;
  418. }
  419. public void setLatitudeWgs84(double latitudeWgs84) {
  420. this.latitudeWgs84 = latitudeWgs84;
  421. }
  422. public int getSubCount() {
  423. return subCount;
  424. }
  425. public void setSubCount(int subCount) {
  426. this.subCount = subCount;
  427. }
  428. public Boolean getHasAudio() {
  429. return hasAudio;
  430. }
  431. public void setHasAudio(Boolean hasAudio) {
  432. this.hasAudio = hasAudio;
  433. }
  434. public String getStreamId() {
  435. return streamId;
  436. }
  437. public void setStreamId(String streamId) {
  438. this.streamId = streamId;
  439. }
  440. public String getCreateTime() {
  441. return createTime;
  442. }
  443. public void setCreateTime(String createTime) {
  444. this.createTime = createTime;
  445. }
  446. public String getUpdateTime() {
  447. return updateTime;
  448. }
  449. public void setUpdateTime(String updateTime) {
  450. this.updateTime = updateTime;
  451. }
  452. public int getChannelType() {
  453. return channelType;
  454. }
  455. public void setChannelType(int channelType) {
  456. this.channelType = channelType;
  457. }
  458. public String getBusinessGroupId() {
  459. return businessGroupId;
  460. }
  461. public void setBusinessGroupId(String businessGroupId) {
  462. this.businessGroupId = businessGroupId;
  463. }
  464. public String getGpsTime() {
  465. return gpsTime;
  466. }
  467. public void setGpsTime(String gpsTime) {
  468. this.gpsTime = gpsTime;
  469. }
  470. public String getStreamIdentification() {
  471. return streamIdentification;
  472. }
  473. public void setStreamIdentification(String streamIdentification) {
  474. this.streamIdentification = streamIdentification;
  475. }
  476. public double getCustomLongitude() {
  477. return customLongitude;
  478. }
  479. public void setCustomLongitude(double customLongitude) {
  480. this.customLongitude = customLongitude;
  481. }
  482. public double getCustomLatitude() {
  483. return customLatitude;
  484. }
  485. public void setCustomLatitude(double customLatitude) {
  486. this.customLatitude = customLatitude;
  487. }
  488. }