From 534be3f5809f430cb46cb0fcbba99d3d425f2324 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 07 六月 2023 20:58:35 +0800 Subject: [PATCH] 支持redis消息强制关闭流 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/Device.java | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 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 9093970..a364f00 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 @@ -77,8 +77,8 @@ /** * 鍦ㄧ嚎 */ - @Schema(description = "鏄惁鍦ㄧ嚎锛�1涓哄湪绾匡紝0涓虹绾�") - private int online; + @Schema(description = "鏄惁鍦ㄧ嚎锛宼rue涓哄湪绾匡紝false涓虹绾�") + private boolean onLine; /** @@ -140,7 +140,7 @@ /** * 鐩綍璁㈤槄鍛ㄦ湡锛�0涓轰笉璁㈤槄 */ - @Schema(description = "鐩綍璁㈤槄鍛ㄦ湡锛�0涓轰笉璁㈤槄") + @Schema(description = "鐩綍璁㈤槄鍛ㄦ湡锛宱涓轰笉璁㈤槄") private int subscribeCycleForCatalog; /** @@ -247,6 +247,17 @@ return streamMode; } + public Integer getStreamModeForParam() { + if (streamMode.equalsIgnoreCase("UDP")) { + return 0; + }else if (streamMode.equalsIgnoreCase("TCP-PASSIVE")) { + return 1; + }else if (streamMode.equalsIgnoreCase("TCP-ACTIVE")) { + return 2; + } + return 0; + } + public void setStreamMode(String streamMode) { this.streamMode = streamMode; } @@ -275,12 +286,12 @@ this.hostAddress = hostAddress; } - public int getOnline() { - return online; + public boolean isOnLine() { + return onLine; } - public void setOnline(int online) { - this.online = online; + public void setOnLine(boolean onLine) { + this.onLine = onLine; } public int getChannelCount() { -- Gitblit v1.8.0