package gc.mda.kcg.config;

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

@Configuration
@ConfigurationProperties(prefix = "app")
@Getter
@Setter
public class AppProperties {

    private Prediction prediction = new Prediction();
    private SignalBatch signalBatch = new SignalBatch();
    private IranBackend iranBackend = new IranBackend();
    private Cors cors = new Cors();
    private Jwt jwt = new Jwt();

    @Getter @Setter
    public static class Prediction {
        private String baseUrl;
    }

    @Getter @Setter
    public static class SignalBatch {
        private String baseUrl;
    }

    @Getter @Setter
    public static class IranBackend {
        private String baseUrl;
    }

    @Getter @Setter
    public static class Cors {
        private String allowedOrigins;
    }

    @Getter @Setter
    public static class Jwt {
        private String secret;
        private long expirationMs;
    }
}
