You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.1 KiB
100 lines
2.1 KiB
package com.qniao.rootcloudevent;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
|
import lombok.Data;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author Lzk
|
|
* @date 2022/10/17
|
|
**/
|
|
@Data
|
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
|
|
public class AIRootCloudWarningDataReceivedEvent implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String payloadId;
|
|
private Long eventId;
|
|
private Payload payload;
|
|
private Long publishTimestamp;
|
|
private String tenantId;
|
|
private String action;
|
|
private Long timestamp;
|
|
|
|
@Data
|
|
public static class Payload {
|
|
private String code;
|
|
|
|
private Long cts;
|
|
|
|
private Long oriTs;
|
|
|
|
private Long tgTs;
|
|
|
|
private String eventType;
|
|
/**
|
|
* 设备的UUID
|
|
*/
|
|
private String deviceId;
|
|
|
|
private Info info;
|
|
|
|
private Long ts;
|
|
}
|
|
|
|
@Data
|
|
public static class Info {
|
|
/**
|
|
* 摄像头id
|
|
*/
|
|
private Long cameraId;
|
|
|
|
/**
|
|
* 摄像头所属区域
|
|
*/
|
|
private String cameraPosition;
|
|
|
|
private List<Alarm> alarmList;
|
|
|
|
private String cameraName;
|
|
}
|
|
|
|
@Data
|
|
public static class Alarm {
|
|
/**
|
|
* 图片地址
|
|
*/
|
|
private String picUrl;
|
|
/**
|
|
* 缩略图
|
|
*/
|
|
private String thumbnail;
|
|
private Extention extention;
|
|
/**
|
|
* 告警时间
|
|
*/
|
|
private Long alarmTime;
|
|
/**
|
|
* 2 = 人员逗留
|
|
* 5 = 人员入侵
|
|
* 9 = 吸烟
|
|
* 10 = 火苗烟雾
|
|
*/
|
|
private Integer aiType;
|
|
private Long alarmId;
|
|
/**
|
|
* 告警级别 1:严重;2:普通;3:通知;4:仅记录;
|
|
*/
|
|
private Integer alarmLevel;
|
|
private Long channelId;
|
|
private String events;
|
|
}
|
|
|
|
@Data
|
|
public static class Extention {
|
|
|
|
}
|
|
}
|