czt
9 天以前 db67639449287bcec461916a7dca6003ee5dd03c
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
package com.fzzy.igds.data;
 
import lombok.Data;
 
/**
 * @Description 视频播放封装信息
 * @Author CZT
 * @Date 2024/12/11 09:59
 */
@Data
public class ApiCameraResp {
 
 
    public static String CODE_SUCCESS = "SUCCESS";
    public static String CODE_ERROR = "ERROR";
 
    private String code = CODE_SUCCESS;
 
    private String msg;
 
    /**
     * 播放信息
     */
    private String cameraId;  //监控ID
    private String cameraName;  //视频名称
    private String playUrl;  //播放地址
    private String playType; //播放方式
    private String snapType; //播放方式
    private String appkey; //安防平台appKey
    private String secret; //安防平台秘钥
    private String ip;     //设备IP
    private Integer port;   //设备端口
    private String sn;     //设备序列号
 
    /**
     * 抓拍附件名称
     */
    private String fileName;
 
    public ApiCameraResp() {
    }
 
    public ApiCameraResp(String playUrl) {
        this.code = CODE_SUCCESS;
        this.msg = "成功";
        this.playUrl = playUrl;
    }
 
    public ApiCameraResp(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public ApiCameraResp(String appkey, String secret, String ip, Integer port, String sn) {
        this.code = CODE_SUCCESS;
        this.msg = "成功";
        this.appkey = appkey;
        this.secret = secret;
        this.ip = ip;
        this.port = port;
        this.sn = sn;
    }
}