package com.sandu.ximon.admin.dto.nova;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
import lombok.Data;
|
import lombok.NoArgsConstructor;
|
|
import java.util.List;
|
|
/**
|
* @author LiuHaoNan
|
* @date 2022/8/1
|
*/
|
@NoArgsConstructor
|
@Data
|
public class WeatherDto {
|
|
private String name;
|
|
private List<WidgetsDTO> widgets;
|
|
@NoArgsConstructor
|
@Data
|
public static class WidgetsDTO {
|
|
private Integer zIndex;
|
|
private String type;
|
|
private String address;
|
|
private Double latitude;
|
|
private Double longitude;
|
|
private Integer width;
|
|
private Integer height;
|
|
private Integer refreshPeriod;
|
|
private Integer fontSize;
|
|
private Boolean bold;
|
|
private Boolean italic;
|
|
private Boolean underline;
|
|
private String color;
|
|
private Integer tempUnit;
|
|
private Integer unitSymbol;
|
|
private Boolean weatherEnable;
|
|
private Boolean tempEnable;
|
|
private Boolean windEnable;
|
|
private Boolean humidEnable;
|
|
private Boolean currentTempEnable;
|
|
private Boolean isShowInOneLine;
|
|
private Integer duration;
|
|
private LayoutDTO layout;
|
|
@NoArgsConstructor
|
@Data
|
public static class LayoutDTO {
|
|
private String x;
|
|
private String y;
|
|
private String width;
|
|
private String height;
|
}
|
}
|
}
|