| | |
| | | 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; |
| | | |
| | |
| | | |
| | | Integer ptzSpeed = 50; |
| | | |
| | | Integer keepaliveTimeOut = 255; |
| | | Integer registerTimeInterval = 120; |
| | | |
| | | Integer registerTimeInterval = 60; |
| | | |
| | | private boolean alarm = false; |
| | | private boolean alarm; |
| | | |
| | | public void setIp(String ip) { |
| | | this.ip = ip; |
| | | } |
| | | |
| | | public void setMonitorIp(String monitorIp) { |
| | | this.monitorIp = monitorIp; |
| | | } |
| | | |
| | | public void setPort(Integer port) { |
| | |
| | | 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() { |
| | |
| | | return ptzSpeed; |
| | | } |
| | | |
| | | public Integer getKeepaliveTimeOut() { |
| | | return keepaliveTimeOut; |
| | | } |
| | | |
| | | public Integer getRegisterTimeInterval() { |
| | | return registerTimeInterval; |
| | | } |
| | |
| | | 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; |
| | | } |
| | | } |