From 72c1b36d6d2ece497e032c8434641d6576590f9d Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期日, 03 七月 2022 00:44:36 +0800 Subject: [PATCH] 优化对讲逻辑 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java | 199 ++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 152 insertions(+), 47 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java index 1350341..6345277 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/DeviceChannel.java @@ -2,10 +2,21 @@ public class DeviceChannel { + + /** + * 鏁版嵁搴撹嚜澧濱D + */ + private int id; + /** * 閫氶亾id */ private String channelId; + + /** + * 璁惧id + */ + private String deviceId; /** * 閫氶亾鍚� @@ -111,6 +122,16 @@ * 浜戝彴绫诲瀷鎻忚堪瀛楃涓� */ private String PTZTypeText; + + /** + * 鍒涘缓鏃堕棿 + */ + private String createTime; + + /** + * 鏇存柊鏃堕棿 + */ + private String updateTime; /** * 鍦ㄧ嚎/绂荤嚎 @@ -134,6 +155,26 @@ private double latitude; /** + * 缁忓害 GCJ02 + */ + private double longitudeGcj02; + + /** + * 绾害 GCJ02 + */ + private double latitudeGcj02; + + /** + * 缁忓害 WGS84 + */ + private double longitudeWgs84; + + /** + * 绾害 WGS84 + */ + private double latitudeWgs84; + + /** * 瀛愯澶囨暟 */ private int subCount; @@ -141,17 +182,54 @@ /** * 娴佸敮涓�缂栧彿锛屽瓨鍦ㄨ〃绀烘鍦ㄧ洿鎾� */ - private String ssrc; + private String streamId; /** * 鏄惁鍚湁闊抽 */ - private boolean hasAudio; + private boolean hasAudio; /** - * 鏄惁姝e湪鎾斁 + * 鏍囪閫氶亾鐨勭被鍨嬶紝0->鍥芥爣閫氶亾 1->鐩存挱娴侀�氶亾 2->涓氬姟鍒嗙粍/铏氭嫙缁勭粐/琛屾斂鍖哄垝 */ - private boolean play; + private int channelType; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public void setPTZType(int PTZType) { + this.PTZType = PTZType; + switch (PTZType) { + case 0: + this.PTZTypeText = "鏈煡"; + break; + case 1: + this.PTZTypeText = "鐞冩満"; + break; + case 2: + this.PTZTypeText = "鍗婄悆"; + break; + case 3: + this.PTZTypeText = "鍥哄畾鏋満"; + break; + case 4: + this.PTZTypeText = "閬ユ帶鏋満"; + break; + } + } public String getChannelId() { return channelId; @@ -167,14 +245,6 @@ public void setName(String name) { this.name = name; - } - - public int getStatus() { - return status; - } - - public void setStatus(int status) { - this.status = status; } public String getManufacture() { @@ -321,6 +391,26 @@ this.password = password; } + public int getPTZType() { + return PTZType; + } + + public String getPTZTypeText() { + return PTZTypeText; + } + + public void setPTZTypeText(String PTZTypeText) { + this.PTZTypeText = PTZTypeText; + } + + public int getStatus() { + return status; + } + + public void setStatus(int status) { + this.status = status; + } + public double getLongitude() { return longitude; } @@ -337,41 +427,36 @@ this.latitude = latitude; } - public int getPTZType() { - return PTZType; + public double getLongitudeGcj02() { + return longitudeGcj02; } - public void setPTZType(int PTZType) { - this.PTZType = PTZType; - switch (PTZType) { - case 0: - this.PTZTypeText = "鏈煡"; - break; - case 1: - this.PTZTypeText = "鐞冩満"; - break; - case 2: - this.PTZTypeText = "鍗婄悆"; - break; - case 3: - this.PTZTypeText = "鍥哄畾鏋満"; - break; - case 4: - this.PTZTypeText = "閬ユ帶鏋満"; - break; - } + public void setLongitudeGcj02(double longitudeGcj02) { + this.longitudeGcj02 = longitudeGcj02; } - public String getPTZTypeText() { - return PTZTypeText; + public double getLatitudeGcj02() { + return latitudeGcj02; } - public String getSsrc() { - return ssrc; + public void setLatitudeGcj02(double latitudeGcj02) { + this.latitudeGcj02 = latitudeGcj02; } - public void setSsrc(String ssrc) { - this.ssrc = ssrc; + public double getLongitudeWgs84() { + return longitudeWgs84; + } + + public void setLongitudeWgs84(double longitudeWgs84) { + this.longitudeWgs84 = longitudeWgs84; + } + + public double getLatitudeWgs84() { + return latitudeWgs84; + } + + public void setLatitudeWgs84(double latitudeWgs84) { + this.latitudeWgs84 = latitudeWgs84; } public int getSubCount() { @@ -382,10 +467,6 @@ this.subCount = subCount; } - public void setPTZTypeText(String PTZTypeText) { - this.PTZTypeText = PTZTypeText; - } - public boolean isHasAudio() { return hasAudio; } @@ -394,11 +475,35 @@ this.hasAudio = hasAudio; } - public boolean isPlay() { - return play; + public String getStreamId() { + return streamId; } - public void setPlay(boolean play) { - this.play = play; + public void setStreamId(String streamId) { + this.streamId = streamId; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public int getChannelType() { + return channelType; + } + + public void setChannelType(int channelType) { + this.channelType = channelType; } } -- Gitblit v1.8.0