package com.sandu.ximon.admin.vo; import com.sandu.ximon.admin.config.VnnoxConstant; import com.sandu.ximon.admin.utils.request.VnnoxRequest; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; /** * @author LiuHaoNan * @date 2022/9/15 */ @NoArgsConstructor @Data public class NovaWeatherVO implements VnnoxRequest { private List playerIds; private AttributeDTO attribute; private PageDTO page; @NoArgsConstructor @Data public static class AttributeDTO { private String spotsType = "IMMEDIATELY"; private String normalProgramStatus = "PAUSE"; private Long duration; } @Data public static class PageDTO { private String name = "weateher_page"; private List widgets; @NoArgsConstructor @Data public static class WidgetsDTO { private String type = "ARCH_TEXT"; private String displayType = "SCROLL"; private String backgroundColor = "#00000000"; private ScrollAttributeDTO scrollAttribute; private Long duration; private List lines; private LayoutDTO layout; @NoArgsConstructor @Data public static class ScrollAttributeDTO { private String animation = "MARQUEE_UP"; private Integer speed = 1; } @NoArgsConstructor @Data public static class LayoutDTO { private String x = "0%"; private String y = "5%"; private String width = "100%"; private String height = "100%"; } @NoArgsConstructor @Data public static class LinesDTO { private List textAttributes; @NoArgsConstructor @Data public static class TextAttributesDTO { private String content; private Integer fontSize = 15; private String textColor = "#FFFFFF"; private Boolean isUnderline = false; } } } } @Override public String toJson() { return VnnoxConstant.GSON.toJson(this); } }