package com.zksy.visualization.domain.request;

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

@Data
@ApiModel(description = "云台镜头控制请求参数")
public class CameraControlRequest {

    @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 = "操作类型：1=变倍，2=变焦，3=光圈", required = true, allowableValues = "1,2,3")
        private String operateType;

        @ApiModelProperty(value = "方向：1=增加，2=减小", required = true, allowableValues = "1,2")
        private String direct;

        @ApiModelProperty(value = "转动速度（1-8的整数），越大代表越快", required = true, allowableValues = "1,2,3,4,5,6,7,8")
        private String step;

        @ApiModelProperty(value = "命令：0=停止动作，1=开启动作；注意事项：停止动作需与开启动作时的其他参数需保持一致，否则无法停止", required = true, allowableValues = "0,1")
        private String command;

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