Device.java 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. /**
  4. * 国标设备/平台
  5. * @author lin
  6. */
  7. @Schema(description = "国标设备/平台")
  8. public class Device {
  9. /**
  10. * 设备国标编号
  11. */
  12. @Schema(description = "设备国标编号")
  13. private String deviceId;
  14. /**
  15. * 设备名
  16. */
  17. @Schema(description = "名称")
  18. private String name;
  19. /**
  20. * 生产厂商
  21. */
  22. @Schema(description = "生产厂商")
  23. private String manufacturer;
  24. /**
  25. * 型号
  26. */
  27. @Schema(description = "型号")
  28. private String model;
  29. /**
  30. * 固件版本
  31. */
  32. @Schema(description = "固件版本")
  33. private String firmware;
  34. /**
  35. * 传输协议
  36. * UDP/TCP
  37. */
  38. @Schema(description = "传输协议(UDP/TCP)")
  39. private String transport;
  40. /**
  41. * 数据流传输模式
  42. * UDP:udp传输
  43. * TCP-ACTIVE:tcp主动模式
  44. * TCP-PASSIVE:tcp被动模式
  45. */
  46. @Schema(description = "数据流传输模式")
  47. private String streamMode;
  48. /**
  49. * wan地址_ip
  50. */
  51. @Schema(description = "IP")
  52. private String ip;
  53. /**
  54. * wan地址_port
  55. */
  56. @Schema(description = "端口")
  57. private int port;
  58. /**
  59. * wan地址
  60. */
  61. @Schema(description = "wan地址")
  62. private String hostAddress;
  63. /**
  64. * 在线
  65. */
  66. @Schema(description = "是否在线,true为在线,false为离线")
  67. private boolean onLine;
  68. /**
  69. * 注册时间
  70. */
  71. @Schema(description = "注册时间")
  72. private String registerTime;
  73. /**
  74. * 心跳时间
  75. */
  76. @Schema(description = "心跳时间")
  77. private String keepaliveTime;
  78. /**
  79. * 心跳间隔
  80. */
  81. @Schema(description = "心跳间隔")
  82. private int keepaliveIntervalTime;
  83. /**
  84. * 通道个数
  85. */
  86. @Schema(description = "通道个数")
  87. private int channelCount;
  88. /**
  89. * 注册有效期
  90. */
  91. @Schema(description = "注册有效期")
  92. private int expires;
  93. /**
  94. * 创建时间
  95. */
  96. @Schema(description = "创建时间")
  97. private String createTime;
  98. /**
  99. * 更新时间
  100. */
  101. @Schema(description = "更新时间")
  102. private String updateTime;
  103. /**
  104. * 设备使用的媒体id, 默认为null
  105. */
  106. @Schema(description = "设备使用的媒体id, 默认为null")
  107. private String mediaServerId;
  108. /**
  109. * 字符集, 支持 UTF-8 与 GB2312
  110. */
  111. @Schema(description = "符集, 支持 UTF-8 与 GB2312")
  112. private String charset ;
  113. /**
  114. * 目录订阅周期,0为不订阅
  115. */
  116. @Schema(description = "目录订阅周期,o为不订阅")
  117. private int subscribeCycleForCatalog;
  118. /**
  119. * 移动设备位置订阅周期,0为不订阅
  120. */
  121. @Schema(description = "移动设备位置订阅周期,0为不订阅")
  122. private int subscribeCycleForMobilePosition;
  123. /**
  124. * 移动设备位置信息上报时间间隔,单位:秒,默认值5
  125. */
  126. @Schema(description = "移动设备位置信息上报时间间隔,单位:秒,默认值5")
  127. private int mobilePositionSubmissionInterval = 5;
  128. /**
  129. * 报警订阅周期,0为不订阅
  130. */
  131. @Schema(description = "报警心跳时间订阅周期,0为不订阅")
  132. private int subscribeCycleForAlarm;
  133. /**
  134. * 是否开启ssrc校验,默认关闭,开启可以防止串流
  135. */
  136. @Schema(description = "是否开启ssrc校验,默认关闭,开启可以防止串流")
  137. private boolean ssrcCheck = true;
  138. /**
  139. * 地理坐标系, 目前支持 WGS84,GCJ02
  140. */
  141. @Schema(description = "地理坐标系, 目前支持 WGS84,GCJ02")
  142. private String geoCoordSys;
  143. @Schema(description = "密码")
  144. private String password;
  145. @Schema(description = "收流IP")
  146. private String sdpIp;
  147. @Schema(description = "SIP交互IP(设备访问平台的IP)")
  148. private String localIp;
  149. @Schema(description = "是否作为消息通道")
  150. private boolean asMessageChannel;
  151. @Schema(description = "设备注册的事务信息")
  152. private SipTransactionInfo sipTransactionInfo;
  153. public String getDeviceId() {
  154. return deviceId;
  155. }
  156. public void setDeviceId(String deviceId) {
  157. this.deviceId = deviceId;
  158. }
  159. public String getName() {
  160. return name;
  161. }
  162. public void setName(String name) {
  163. this.name = name;
  164. }
  165. public String getManufacturer() {
  166. return manufacturer;
  167. }
  168. public void setManufacturer(String manufacturer) {
  169. this.manufacturer = manufacturer;
  170. }
  171. public String getModel() {
  172. return model;
  173. }
  174. public void setModel(String model) {
  175. this.model = model;
  176. }
  177. public String getFirmware() {
  178. return firmware;
  179. }
  180. public void setFirmware(String firmware) {
  181. this.firmware = firmware;
  182. }
  183. public String getTransport() {
  184. return transport;
  185. }
  186. public void setTransport(String transport) {
  187. this.transport = transport;
  188. }
  189. public String getStreamMode() {
  190. return streamMode;
  191. }
  192. public Integer getStreamModeForParam() {
  193. if (streamMode == null) {
  194. return 0;
  195. }
  196. if (streamMode.equalsIgnoreCase("UDP")) {
  197. return 0;
  198. }else if (streamMode.equalsIgnoreCase("TCP-PASSIVE")) {
  199. return 1;
  200. }else if (streamMode.equalsIgnoreCase("TCP-ACTIVE")) {
  201. return 2;
  202. }
  203. return 0;
  204. }
  205. public void setStreamMode(String streamMode) {
  206. this.streamMode = streamMode;
  207. }
  208. public String getIp() {
  209. return ip;
  210. }
  211. public void setIp(String ip) {
  212. this.ip = ip;
  213. }
  214. public int getPort() {
  215. return port;
  216. }
  217. public void setPort(int port) {
  218. this.port = port;
  219. }
  220. public String getHostAddress() {
  221. return hostAddress;
  222. }
  223. public void setHostAddress(String hostAddress) {
  224. this.hostAddress = hostAddress;
  225. }
  226. public boolean isOnLine() {
  227. return onLine;
  228. }
  229. public void setOnLine(boolean onLine) {
  230. this.onLine = onLine;
  231. }
  232. public int getChannelCount() {
  233. return channelCount;
  234. }
  235. public void setChannelCount(int channelCount) {
  236. this.channelCount = channelCount;
  237. }
  238. public String getRegisterTime() {
  239. return registerTime;
  240. }
  241. public void setRegisterTime(String registerTime) {
  242. this.registerTime = registerTime;
  243. }
  244. public String getKeepaliveTime() {
  245. return keepaliveTime;
  246. }
  247. public void setKeepaliveTime(String keepaliveTime) {
  248. this.keepaliveTime = keepaliveTime;
  249. }
  250. public int getExpires() {
  251. return expires;
  252. }
  253. public void setExpires(int expires) {
  254. this.expires = expires;
  255. }
  256. public String getCreateTime() {
  257. return createTime;
  258. }
  259. public void setCreateTime(String createTime) {
  260. this.createTime = createTime;
  261. }
  262. public String getUpdateTime() {
  263. return updateTime;
  264. }
  265. public void setUpdateTime(String updateTime) {
  266. this.updateTime = updateTime;
  267. }
  268. public String getMediaServerId() {
  269. return mediaServerId;
  270. }
  271. public void setMediaServerId(String mediaServerId) {
  272. this.mediaServerId = mediaServerId;
  273. }
  274. public String getCharset() {
  275. return charset;
  276. }
  277. public void setCharset(String charset) {
  278. this.charset = charset;
  279. }
  280. public int getSubscribeCycleForCatalog() {
  281. return subscribeCycleForCatalog;
  282. }
  283. public void setSubscribeCycleForCatalog(int subscribeCycleForCatalog) {
  284. this.subscribeCycleForCatalog = subscribeCycleForCatalog;
  285. }
  286. public int getSubscribeCycleForMobilePosition() {
  287. return subscribeCycleForMobilePosition;
  288. }
  289. public void setSubscribeCycleForMobilePosition(int subscribeCycleForMobilePosition) {
  290. this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
  291. }
  292. public int getMobilePositionSubmissionInterval() {
  293. return mobilePositionSubmissionInterval;
  294. }
  295. public void setMobilePositionSubmissionInterval(int mobilePositionSubmissionInterval) {
  296. this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
  297. }
  298. public int getSubscribeCycleForAlarm() {
  299. return subscribeCycleForAlarm;
  300. }
  301. public void setSubscribeCycleForAlarm(int subscribeCycleForAlarm) {
  302. this.subscribeCycleForAlarm = subscribeCycleForAlarm;
  303. }
  304. public boolean isSsrcCheck() {
  305. return ssrcCheck;
  306. }
  307. public void setSsrcCheck(boolean ssrcCheck) {
  308. this.ssrcCheck = ssrcCheck;
  309. }
  310. public String getGeoCoordSys() {
  311. return geoCoordSys;
  312. }
  313. public void setGeoCoordSys(String geoCoordSys) {
  314. this.geoCoordSys = geoCoordSys;
  315. }
  316. public String getPassword() {
  317. return password;
  318. }
  319. public void setPassword(String password) {
  320. this.password = password;
  321. }
  322. public String getSdpIp() {
  323. return sdpIp;
  324. }
  325. public void setSdpIp(String sdpIp) {
  326. this.sdpIp = sdpIp;
  327. }
  328. public String getLocalIp() {
  329. return localIp;
  330. }
  331. public void setLocalIp(String localIp) {
  332. this.localIp = localIp;
  333. }
  334. public int getKeepaliveIntervalTime() {
  335. return keepaliveIntervalTime;
  336. }
  337. public void setKeepaliveIntervalTime(int keepaliveIntervalTime) {
  338. this.keepaliveIntervalTime = keepaliveIntervalTime;
  339. }
  340. public boolean isAsMessageChannel() {
  341. return asMessageChannel;
  342. }
  343. public void setAsMessageChannel(boolean asMessageChannel) {
  344. this.asMessageChannel = asMessageChannel;
  345. }
  346. public SipTransactionInfo getSipTransactionInfo() {
  347. return sipTransactionInfo;
  348. }
  349. public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
  350. this.sipTransactionInfo = sipTransactionInfo;
  351. }
  352. /*======================设备主子码流逻辑START=========================*/
  353. @Schema(description = "开启主子码流切换的开关(false-不开启,true-开启)")
  354. private boolean switchPrimarySubStream;
  355. public boolean isSwitchPrimarySubStream() {
  356. return switchPrimarySubStream;
  357. }
  358. public void setSwitchPrimarySubStream(boolean switchPrimarySubStream) {
  359. this.switchPrimarySubStream = switchPrimarySubStream;
  360. }
  361. /*======================设备主子码流逻辑END=========================*/
  362. }