2021与蓝度共同重构项目,服务端
liuhaonan
2022-09-15 60fc84976142a9019effbbb79c4d43bc4a4a3b36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
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<String> 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<WidgetsDTO> 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<LinesDTO> 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<TextAttributesDTO> 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);
    }
}