2021与蓝度共同重构项目,服务端
liuhaonan
2022-11-21 b9ba1dc1b9e156a52dc978bda76347522bd5bc33
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
package com.sandu.ximon.admin.newnova.vo;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
 
import java.util.List;
 
/**
 * @author LiuHaoNan
 * @date 2022/11/21
 */
@NoArgsConstructor
@Data
public class VideoInfoVO {
 
 
 
    private String type="VIDEO_SOURCE_SWITCH";
 
    /**
     *     下发命令的来源
     */
    private SourceDTO source;
 
    /**
     * 模式,HDMI优先
     */
    private Integer videoMode;
 
    /**
     *视频源
     */
    private Integer videoSource;
 
    /**
     *     是否缩放,true为全屏缩放,false为不缩放
     */
    private Boolean isScale;
 
    /**
     * 偏移X
     */
    private Integer offsetX;
 
    /**
     *     偏移Y
     */
    private Integer offsetY;
 
    /**
     *     任务列表
     */
    private List<ConditionsDTO> conditions;
 
    @NoArgsConstructor
    @Data
    public static class SourceDTO {
 
        /**
         * 1:nova自己的平台,0:第三方平台
         */
        private Integer type;
 
        /**
         *     0:未知,1:移动终端发来的(如手机),2:表示传统电脑,3:表示平板,4:表示web端发来的,5:终端本身
         */
        private Integer platform;
    }
 
    @NoArgsConstructor
    @Data
    public static class ConditionsDTO {
 
        private String cron;
 
        /**
         *     视频源,SOURCE_INSIDE:内部,0;SOURCE_HDMI:HDMI,1
         */
        private Integer source;
 
        /**
         * 该条定时任务是否生效
         */
        private Boolean enable;
    }
}