From cb5afce55eec2badda5090c27564e43f201ac9af Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 12 三月 2024 23:55:00 +0800
Subject: [PATCH] 优化语音对讲定时任务的删除
---
src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java | 45 ++++++++++++++++++++++++---------------------
1 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
index 2d30792..6a6c54f 100644
--- a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
+++ b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
@@ -1,19 +1,18 @@
package com.genersoft.iot.vmp.conf;
+import org.springframework.core.annotation.Order;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "sip", ignoreInvalidFields = true)
+@Order(0)
public class SipConfig {
private String ip;
- /**
- * 榛樿浣跨敤 0.0.0.0
- */
- private String monitorIp = "0.0.0.0";
+ private String showIp;
private Integer port;
@@ -25,16 +24,12 @@
Integer ptzSpeed = 50;
- Integer keepaliveTimeOut = 255;
+ Integer registerTimeInterval = 120;
- Integer registerTimeInterval = 60;
+ private boolean alarm;
public void setIp(String ip) {
this.ip = ip;
- }
-
- public void setMonitorIp(String monitorIp) {
- this.monitorIp = monitorIp;
}
public void setPort(Integer port) {
@@ -57,16 +52,9 @@
this.ptzSpeed = ptzSpeed;
}
- public void setKeepaliveTimeOut(Integer keepaliveTimeOut) {
- this.keepaliveTimeOut = keepaliveTimeOut;
- }
public void setRegisterTimeInterval(Integer registerTimeInterval) {
this.registerTimeInterval = registerTimeInterval;
- }
-
- public String getMonitorIp() {
- return monitorIp;
}
public String getIp() {
@@ -97,11 +85,26 @@
return ptzSpeed;
}
- public Integer getKeepaliveTimeOut() {
- return keepaliveTimeOut;
- }
-
public Integer getRegisterTimeInterval() {
return registerTimeInterval;
}
+
+ public boolean isAlarm() {
+ return alarm;
+ }
+
+ public void setAlarm(boolean alarm) {
+ this.alarm = alarm;
+ }
+
+ public String getShowIp() {
+ if (this.showIp == null) {
+ return this.ip;
+ }
+ return showIp;
+ }
+
+ public void setShowIp(String showIp) {
+ this.showIp = showIp;
+ }
}
--
Gitblit v1.8.0