package ru.nbch.credit_tracker.config.settings;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("file:credit-tracker.properties")
@ConfigurationProperties(prefix = "ct")
@Getter
@Setter
public class CreditTrackerSettings {
    @NestedConfigurationProperty
    private DataSourceSettings indicDataSourceSettings;
    @NestedConfigurationProperty
    private DataSourceSettings signalDataSourceSettings;
    @NestedConfigurationProperty
    private DataSourceSettings scoringDataSourceSettings;
    @NestedConfigurationProperty
    private XsdValidation xsdValidation;

    private String signalsRootUri;
    private String signalsToken;
    private String signalsuser;

    private Long maxXmlFileSize;
    private String loadDir;
    private Long monitoringInterval;
    private Long updateFlagsInterval;
    private Long daysToUpdateFlags;

    private String encoding;
}
