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;
|
}
|
}
|