| | |
| | | package com.genersoft.iot.vmp.conf; |
| | | |
| | | import org.junit.jupiter.api.Order; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | */ |
| | | @Component |
| | | @ConfigurationProperties(prefix = "user-settings", ignoreInvalidFields = true) |
| | | @Order(0) |
| | | public class UserSetting { |
| | | |
| | | private Boolean savePositionHistory = Boolean.FALSE; |
| | |
| | | |
| | | private Boolean logInDatebase = Boolean.TRUE; |
| | | |
| | | private Boolean usePushingAsStatus = Boolean.TRUE; |
| | | private Boolean usePushingAsStatus = Boolean.FALSE; |
| | | |
| | | private Boolean useSourceIpAsStreamIp = Boolean.FALSE; |
| | | |
| | |
| | | private Boolean gbSendStreamStrict = Boolean.FALSE; |
| | | |
| | | private Boolean syncChannelOnDeviceOnline = Boolean.FALSE; |
| | | |
| | | private Boolean pushStreamAfterAck = Boolean.FALSE; |
| | | |
| | | private Boolean sipLog = Boolean.FALSE; |
| | | |
| | |
| | | this.syncChannelOnDeviceOnline = syncChannelOnDeviceOnline; |
| | | } |
| | | |
| | | public Boolean getPushStreamAfterAck() { |
| | | return pushStreamAfterAck; |
| | | } |
| | | |
| | | public void setPushStreamAfterAck(Boolean pushStreamAfterAck) { |
| | | this.pushStreamAfterAck = pushStreamAfterAck; |
| | | } |
| | | |
| | | public Boolean getSipUseSourceIpAsRemoteAddress() { |
| | | return sipUseSourceIpAsRemoteAddress; |
| | | } |