2021-01-27 15:27:35 +08:00
|
|
|
package com.genersoft.iot.vmp.conf;
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@Component
|
|
|
|
@ConfigurationProperties(prefix = "user-settings", ignoreInvalidFields = true)
|
2021-01-27 15:27:35 +08:00
|
|
|
public class UserSetup {
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
private Boolean savePositionHistory = Boolean.FALSE;
|
|
|
|
|
|
|
|
private Boolean autoApplyPlay = Boolean.FALSE;
|
|
|
|
|
|
|
|
private Boolean seniorSdp = Boolean.FALSE;
|
2021-06-01 17:05:07 +08:00
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
private Long playTimeout = 18000L;
|
2021-06-01 17:05:07 +08:00
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
private Boolean waitTrack = Boolean.FALSE;
|
2021-06-01 17:05:07 +08:00
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
private Boolean interfaceAuthentication = Boolean.TRUE;
|
2021-06-01 17:05:07 +08:00
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
private Boolean recordPushLive = Boolean.FALSE;
|
2021-06-01 17:05:07 +08:00
|
|
|
|
2021-08-07 14:05:42 +08:00
|
|
|
private Boolean logInDatebase = Boolean.TRUE;
|
|
|
|
|
2021-12-20 15:14:34 +08:00
|
|
|
private Boolean redisConfig = Boolean.TRUE;
|
|
|
|
|
2021-11-23 14:51:37 +08:00
|
|
|
private String serverId = "000000";
|
|
|
|
|
2021-12-04 17:27:23 +08:00
|
|
|
private String thirdPartyGBIdReg = "[\\s\\S]*";
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
private List<String> interfaceAuthenticationExcludes = new ArrayList<>();
|
2021-06-01 17:05:07 +08:00
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean getSavePositionHistory() {
|
2021-01-27 15:27:35 +08:00
|
|
|
return savePositionHistory;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean isSavePositionHistory() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return savePositionHistory;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean isAutoApplyPlay() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return autoApplyPlay;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean isSeniorSdp() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return seniorSdp;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Long getPlayTimeout() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return playTimeout;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean isWaitTrack() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return waitTrack;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean isInterfaceAuthentication() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return interfaceAuthentication;
|
|
|
|
}
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
public Boolean isRecordPushLive() {
|
2021-06-01 17:05:07 +08:00
|
|
|
return recordPushLive;
|
2021-01-27 15:27:35 +08:00
|
|
|
}
|
2021-07-06 16:38:31 +08:00
|
|
|
|
|
|
|
public List<String> getInterfaceAuthenticationExcludes() {
|
|
|
|
return interfaceAuthenticationExcludes;
|
|
|
|
}
|
2021-07-07 18:03:05 +08:00
|
|
|
|
|
|
|
public void setSavePositionHistory(Boolean savePositionHistory) {
|
|
|
|
this.savePositionHistory = savePositionHistory;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAutoApplyPlay(Boolean autoApplyPlay) {
|
|
|
|
this.autoApplyPlay = autoApplyPlay;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSeniorSdp(Boolean seniorSdp) {
|
|
|
|
this.seniorSdp = seniorSdp;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPlayTimeout(Long playTimeout) {
|
|
|
|
this.playTimeout = playTimeout;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWaitTrack(Boolean waitTrack) {
|
|
|
|
this.waitTrack = waitTrack;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setInterfaceAuthentication(boolean interfaceAuthentication) {
|
|
|
|
this.interfaceAuthentication = interfaceAuthentication;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRecordPushLive(Boolean recordPushLive) {
|
|
|
|
this.recordPushLive = recordPushLive;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setInterfaceAuthenticationExcludes(List<String> interfaceAuthenticationExcludes) {
|
|
|
|
this.interfaceAuthenticationExcludes = interfaceAuthenticationExcludes;
|
|
|
|
}
|
2021-08-07 14:05:42 +08:00
|
|
|
|
|
|
|
public Boolean getLogInDatebase() {
|
|
|
|
return logInDatebase;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLogInDatebase(Boolean logInDatebase) {
|
|
|
|
this.logInDatebase = logInDatebase;
|
|
|
|
}
|
2021-11-23 14:51:37 +08:00
|
|
|
|
|
|
|
public String getServerId() {
|
|
|
|
return serverId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setServerId(String serverId) {
|
|
|
|
this.serverId = serverId;
|
|
|
|
}
|
2021-12-04 17:27:23 +08:00
|
|
|
|
|
|
|
public String getThirdPartyGBIdReg() {
|
|
|
|
return thirdPartyGBIdReg;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setThirdPartyGBIdReg(String thirdPartyGBIdReg) {
|
|
|
|
this.thirdPartyGBIdReg = thirdPartyGBIdReg;
|
|
|
|
}
|
2021-12-20 15:14:34 +08:00
|
|
|
|
|
|
|
public Boolean getRedisConfig() {
|
|
|
|
return redisConfig;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRedisConfig(Boolean redisConfig) {
|
|
|
|
this.redisConfig = redisConfig;
|
|
|
|
}
|
2021-01-27 15:27:35 +08:00
|
|
|
}
|