package com.zksy.visualization.domain.request;

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

@Data
@ApiModel(description = "摄像头方向控制请求参数")
public class OperateDirectRequest {

    @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=左，4=右，5=左上，6=左下，7=右上，8=右下", required = true, allowableValues = "1,2,3,4,5,6,7,8")
        private String direct;

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

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

        @ApiModelProperty(value = "命令：0=停止, 1=开启", required = true, allowableValues = "0,1")
        private String command;

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