648540858
2023-03-14 943f95ba8ce02f8088f2dfcfd83a60391a8a65a6
src/main/java/com/genersoft/iot/vmp/conf/UserSetting.java
@@ -1,5 +1,6 @@
package com.genersoft.iot.vmp.conf;
import org.junit.jupiter.api.Order;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@@ -11,6 +12,7 @@
 */
@Component
@ConfigurationProperties(prefix = "user-settings", ignoreInvalidFields = true)
@Order(0)
public class UserSetting {
    private Boolean savePositionHistory = Boolean.FALSE;
@@ -46,7 +48,7 @@
    private Boolean syncChannelOnDeviceOnline = Boolean.FALSE;
    private Boolean sipLog = Boolean.FALSE;
    private Boolean syncDb = Boolean.TRUE;
    private Boolean sendToPlatformsWhenIdLost = Boolean.FALSE;
    private String serverId = "000000";
@@ -218,11 +220,11 @@
        this.sipLog = sipLog;
    }
    public Boolean getSyncDb() {
        return syncDb;
    public Boolean getSendToPlatformsWhenIdLost() {
        return sendToPlatformsWhenIdLost;
    }
    public void setSyncDb(Boolean syncDb) {
        this.syncDb = syncDb;
    public void setSendToPlatformsWhenIdLost(Boolean sendToPlatformsWhenIdLost) {
        this.sendToPlatformsWhenIdLost = sendToPlatformsWhenIdLost;
    }
}