hikvision-video-api/src/main/java/com/hikvision/video/model/CaptureTask.java

53 lines
1.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.hikvision.video.model;
import lombok.Data;
/**
* 定时抓图任务配置
*/
@Data
public class CaptureTask {
/** 任务唯一IDUUID */
private String id;
/** 监控点编码 */
private String cameraIndexCode;
/** 监控点名称(展示用) */
private String cameraName;
/**
* 抓图间隔(秒),最小 10
*/
private int intervalSeconds = 60;
/**
* 最大抓图次数0 = 无限
*/
private int maxCaptures = 0;
/**
* 任务状态
* STOPPED - 已停止 / 未启动
* RUNNING - 运行中
* ERROR - 上次执行出错(仍在运行)
*/
private String status = "STOPPED";
/** 任务创建时间 */
private String createTime;
/** 最近一次抓图时间 */
private String lastCaptureTime;
/** 累计抓图次数 */
private int captureCount = 0;
/** 最近一次错误信息 */
private String lastError;
/** 最近一次成功抓图的本地 URL */
private String lastCaptureUrl;
}