Device.java 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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. /**
  144. * 树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup
  145. */
  146. @Schema(description = "树类型 国标规定了两种树的展现方式 行政区划:CivilCode 和业务分组:BusinessGroup")
  147. private String treeType;
  148. @Schema(description = "密码")
  149. private String password;
  150. @Schema(description = "收流IP")
  151. private String sdpIp;
  152. @Schema(description = "SIP交互IP(设备访问平台的IP)")
  153. private String localIp;
  154. @Schema(description = "是否作为消息通道")
  155. private boolean asMessageChannel;
  156. @Schema(description = "设备注册的事务信息")
  157. private SipTransactionInfo sipTransactionInfo;
  158. public String getDeviceId() {
  159. return deviceId;
  160. }
  161. public void setDeviceId(String deviceId) {
  162. this.deviceId = deviceId;
  163. }
  164. public String getName() {
  165. return name;
  166. }
  167. public void setName(String name) {
  168. this.name = name;
  169. }
  170. public String getManufacturer() {
  171. return manufacturer;
  172. }
  173. public void setManufacturer(String manufacturer) {
  174. this.manufacturer = manufacturer;
  175. }
  176. public String getModel() {
  177. return model;
  178. }
  179. public void setModel(String model) {
  180. this.model = model;
  181. }
  182. public String getFirmware() {
  183. return firmware;
  184. }
  185. public void setFirmware(String firmware) {
  186. this.firmware = firmware;
  187. }
  188. public String getTransport() {
  189. return transport;
  190. }
  191. public void setTransport(String transport) {
  192. this.transport = transport;
  193. }
  194. public String getStreamMode() {
  195. return streamMode;
  196. }
  197. public Integer getStreamModeForParam() {
  198. if (streamMode.equalsIgnoreCase("UDP")) {
  199. return 0;
  200. }else if (streamMode.equalsIgnoreCase("TCP-PASSIVE")) {
  201. return 1;
  202. }else if (streamMode.equalsIgnoreCase("TCP-ACTIVE")) {
  203. return 2;
  204. }
  205. return 0;
  206. }
  207. public void setStreamMode(String streamMode) {
  208. this.streamMode = streamMode;
  209. }
  210. public String getIp() {
  211. return ip;
  212. }
  213. public void setIp(String ip) {
  214. this.ip = ip;
  215. }
  216. public int getPort() {
  217. return port;
  218. }
  219. public void setPort(int port) {
  220. this.port = port;
  221. }
  222. public String getHostAddress() {
  223. return hostAddress;
  224. }
  225. public void setHostAddress(String hostAddress) {
  226. this.hostAddress = hostAddress;
  227. }
  228. public boolean isOnline() {
  229. return online;
  230. }
  231. public void setOnline(boolean online) {
  232. this.online = online;
  233. }
  234. public int getChannelCount() {
  235. return channelCount;
  236. }
  237. public void setChannelCount(int channelCount) {
  238. this.channelCount = channelCount;
  239. }
  240. public String getRegisterTime() {
  241. return registerTime;
  242. }
  243. public void setRegisterTime(String registerTime) {
  244. this.registerTime = registerTime;
  245. }
  246. public String getKeepaliveTime() {
  247. return keepaliveTime;
  248. }
  249. public void setKeepaliveTime(String keepaliveTime) {
  250. this.keepaliveTime = keepaliveTime;
  251. }
  252. public int getExpires() {
  253. return expires;
  254. }
  255. public void setExpires(int expires) {
  256. this.expires = expires;
  257. }
  258. public String getCreateTime() {
  259. return createTime;
  260. }
  261. public void setCreateTime(String createTime) {
  262. this.createTime = createTime;
  263. }
  264. public String getUpdateTime() {
  265. return updateTime;
  266. }
  267. public void setUpdateTime(String updateTime) {
  268. this.updateTime = updateTime;
  269. }
  270. public String getMediaServerId() {
  271. return mediaServerId;
  272. }
  273. public void setMediaServerId(String mediaServerId) {
  274. this.mediaServerId = mediaServerId;
  275. }
  276. public String getCharset() {
  277. return charset;
  278. }
  279. public void setCharset(String charset) {
  280. this.charset = charset;
  281. }
  282. public int getSubscribeCycleForCatalog() {
  283. return subscribeCycleForCatalog;
  284. }
  285. public void setSubscribeCycleForCatalog(int subscribeCycleForCatalog) {
  286. this.subscribeCycleForCatalog = subscribeCycleForCatalog;
  287. }
  288. public int getSubscribeCycleForMobilePosition() {
  289. return subscribeCycleForMobilePosition;
  290. }
  291. public void setSubscribeCycleForMobilePosition(int subscribeCycleForMobilePosition) {
  292. this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
  293. }
  294. public int getMobilePositionSubmissionInterval() {
  295. return mobilePositionSubmissionInterval;
  296. }
  297. public void setMobilePositionSubmissionInterval(int mobilePositionSubmissionInterval) {
  298. this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
  299. }
  300. public int getSubscribeCycleForAlarm() {
  301. return subscribeCycleForAlarm;
  302. }
  303. public void setSubscribeCycleForAlarm(int subscribeCycleForAlarm) {
  304. this.subscribeCycleForAlarm = subscribeCycleForAlarm;
  305. }
  306. public boolean isSsrcCheck() {
  307. return ssrcCheck;
  308. }
  309. public void setSsrcCheck(boolean ssrcCheck) {
  310. this.ssrcCheck = ssrcCheck;
  311. }
  312. public String getGeoCoordSys() {
  313. return geoCoordSys;
  314. }
  315. public void setGeoCoordSys(String geoCoordSys) {
  316. this.geoCoordSys = geoCoordSys;
  317. }
  318. public String getTreeType() {
  319. return treeType;
  320. }
  321. public void setTreeType(String treeType) {
  322. this.treeType = treeType;
  323. }
  324. public String getPassword() {
  325. return password;
  326. }
  327. public void setPassword(String password) {
  328. this.password = password;
  329. }
  330. public String getSdpIp() {
  331. return sdpIp;
  332. }
  333. public void setSdpIp(String sdpIp) {
  334. this.sdpIp = sdpIp;
  335. }
  336. public String getLocalIp() {
  337. return localIp;
  338. }
  339. public void setLocalIp(String localIp) {
  340. this.localIp = localIp;
  341. }
  342. public int getKeepaliveIntervalTime() {
  343. return keepaliveIntervalTime;
  344. }
  345. public void setKeepaliveIntervalTime(int keepaliveIntervalTime) {
  346. this.keepaliveIntervalTime = keepaliveIntervalTime;
  347. }
  348. public boolean isAsMessageChannel() {
  349. return asMessageChannel;
  350. }
  351. public void setAsMessageChannel(boolean asMessageChannel) {
  352. this.asMessageChannel = asMessageChannel;
  353. }
  354. public SipTransactionInfo getSipTransactionInfo() {
  355. return sipTransactionInfo;
  356. }
  357. public void setSipTransactionInfo(SipTransactionInfo sipTransactionInfo) {
  358. this.sipTransactionInfo = sipTransactionInfo;
  359. }
  360. }