package com.zksy.visualization.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "摄像头功能控制请求参数")
public class OperateFunctionRequest {

    @ApiModelProperty(value = "Json对象", required = true)
    private Data data;

    @lombok.Data
    public static class Data {
        @ApiModelProperty(value = "视频通道编码，第一个$后数字代表通道类型，必须是1，且摄像头类型需是球机(cameraType字段必须是2)", required = true)
        private String channelId;

        @ApiModelProperty(value = "操作类型", required = true)
        private String operateType;

        @ApiModelProperty(value = "操作对象：仅当operateType=[14,19,20,21]时有意义，其他情况下为0")
        private String target;

        @ApiModelProperty(value = "命令：0=停止, 1=开启，仅当operateType=[11,12,13,14,15,18,19,20,21]时有意义，其他情况下为0")
        private String command;

        @ApiModelProperty(value = "扩展数据")
        private String extend;
    }
}