2020-05-07 21:55:45 +08:00
|
|
|
package com.genersoft.iot.vmp.conf;
|
|
|
|
|
2020-10-16 16:49:41 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
import org.springframework.stereotype.Component;
|
2020-05-07 21:55:45 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
@Component
|
|
|
|
@ConfigurationProperties(prefix = "sip", ignoreInvalidFields = true)
|
2020-05-07 21:55:45 +08:00
|
|
|
public class SipConfig {
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
private String ip;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
|
|
|
/**
|
2021-08-10 15:42:15 +08:00
|
|
|
* 默认使用 0.0.0.0
|
2021-06-04 16:31:45 +08:00
|
|
|
*/
|
2021-08-10 15:42:15 +08:00
|
|
|
private String monitorIp = "0.0.0.0";
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
private Integer port;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
private String domain;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
private String id;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
private String password;
|
2020-05-07 21:55:45 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
Integer ptzSpeed = 50;
|
2020-05-07 21:55:45 +08:00
|
|
|
|
2021-11-10 17:08:52 +08:00
|
|
|
Integer keepaliveTimeOut = 255;
|
2021-06-07 15:11:53 +08:00
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
Integer registerTimeInterval = 60;
|
|
|
|
|
|
|
|
public void setIp(String ip) {
|
|
|
|
this.ip = ip;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMonitorIp(String monitorIp) {
|
|
|
|
this.monitorIp = monitorIp;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPort(Integer port) {
|
|
|
|
this.port = port;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDomain(String domain) {
|
|
|
|
this.domain = domain;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPassword(String password) {
|
|
|
|
this.password = password;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPtzSpeed(Integer ptzSpeed) {
|
|
|
|
this.ptzSpeed = ptzSpeed;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setKeepaliveTimeOut(Integer keepaliveTimeOut) {
|
|
|
|
this.keepaliveTimeOut = keepaliveTimeOut;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRegisterTimeInterval(Integer registerTimeInterval) {
|
|
|
|
this.registerTimeInterval = registerTimeInterval;
|
|
|
|
}
|
2021-06-08 15:49:40 +08:00
|
|
|
|
2021-06-04 16:31:45 +08:00
|
|
|
public String getMonitorIp() {
|
|
|
|
return monitorIp;
|
|
|
|
}
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
public String getIp() {
|
|
|
|
return ip;
|
2020-10-16 16:49:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
public Integer getPort() {
|
|
|
|
return port;
|
2020-10-16 16:49:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
public String getDomain() {
|
|
|
|
return domain;
|
2020-10-16 16:49:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
public String getId() {
|
|
|
|
return id;
|
2020-10-16 16:49:41 +08:00
|
|
|
}
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
public String getPassword() {
|
|
|
|
return password;
|
2020-10-16 16:49:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-10 15:42:15 +08:00
|
|
|
public Integer getPtzSpeed() {
|
|
|
|
return ptzSpeed;
|
2020-10-16 16:49:41 +08:00
|
|
|
}
|
|
|
|
|
2021-06-07 15:11:53 +08:00
|
|
|
public Integer getKeepaliveTimeOut() {
|
|
|
|
return keepaliveTimeOut;
|
|
|
|
}
|
2021-06-07 15:42:01 +08:00
|
|
|
|
2021-06-08 15:49:40 +08:00
|
|
|
public Integer getRegisterTimeInterval() {
|
|
|
|
return registerTimeInterval;
|
|
|
|
}
|
2020-05-07 21:55:45 +08:00
|
|
|
}
|