From df11956c3c203434d3ef54955a502c466f1382dd Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: 星期一, 07 六月 2021 15:42:01 +0800 Subject: [PATCH] 取出错误配置 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java | 86 ++++++++++++++++++++++++++++++++++-------- 1 files changed, 69 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java index de52ac6..a9185e0 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java @@ -1,9 +1,6 @@ package com.genersoft.iot.vmp.gb28181.bean; -import java.util.List; -import java.util.Map; - public class Device { /** @@ -46,23 +43,46 @@ private String streamMode; /** + * wan鍦板潃_ip + */ + private String ip; + + /** + * wan鍦板潃_port + */ + private int port; + + /** * wan鍦板潃 */ - private Host host; + private String hostAddress; /** * 鍦ㄧ嚎 */ private int online; - /** - * 閫氶亾鍒楄〃 - */ -// private Map<String,DeviceChannel> channelMap; + /** + * 娉ㄥ唽鏃堕棿 + */ + private String registerTime; + + + /** + * 蹇冭烦鏃堕棿 + */ + private String keepaliveTime; + + /** + * 閫氶亾涓暟 + */ private int channelCount; - private List<String> channelList; + /** + * 娉ㄥ唽鏈夋晥鏈� + */ + private int expires; public String getDeviceId() { return deviceId; @@ -120,12 +140,28 @@ this.streamMode = streamMode; } - public Host getHost() { - return host; + public String getIp() { + return ip; } - public void setHost(Host host) { - this.host = host; + public void setIp(String ip) { + this.ip = ip; + } + + public int getPort() { + return port; + } + + public void setPort(int port) { + this.port = port; + } + + public String getHostAddress() { + return hostAddress; + } + + public void setHostAddress(String hostAddress) { + this.hostAddress = hostAddress; } public int getOnline() { @@ -144,11 +180,27 @@ this.channelCount = channelCount; } - public List<String> getChannelList() { - return channelList; + public String getRegisterTime() { + return registerTime; } - public void setChannelList(List<String> channelList) { - this.channelList = channelList; + public void setRegisterTime(String registerTime) { + this.registerTime = registerTime; + } + + public String getKeepaliveTime() { + return keepaliveTime; + } + + public void setKeepaliveTime(String keepaliveTime) { + this.keepaliveTime = keepaliveTime; + } + + public int getExpires() { + return expires; + } + + public void setExpires(int expires) { + this.expires = expires; } } -- Gitblit v1.8.0