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 int realTimeInterval;
|
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 int getRealTimeInterval() {
|
return realTimeInterval;
|
}
|
|
public void setRealTimeInterval(int realTimeInterval) {
|
this.realTimeInterval = realTimeInterval;
|
}
|
|
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;
|
}
|
}
|