package com.se.nsl.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @ConfigurationProperties(prefix = "realtime-simulate-config") public class RealTimeSimulationConfig { private String url; private String token; private Double frameInterval; private int requestOffsetMinutes; //雨量计请求间隔的时间,为了便于获取一个范围内雨量数据 private double offsetDays; public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getToken() { return token; } public void setToken(String token) { this.token = token; } public Double getFrameInterval() { return frameInterval; } public void setFrameInterval(Double frameInterval) { this.frameInterval = frameInterval; } public int getRequestOffsetMinutes() { return requestOffsetMinutes; } public void setRequestOffsetMinutes(int requestOffsetMinutes) { this.requestOffsetMinutes = requestOffsetMinutes; } public double getOffsetDays() { return offsetDays; } public void setOffsetDays(double offsetDays) { this.offsetDays = offsetDays; } }