package com.zksy.visualization.domain.request;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(description = "RTSP URL 请求")
public class RtspUrlRequest {

        @ApiModelProperty(value = "请求数据对象", required = true)
        private DataRequest data;

        @Data
        @JsonInclude(JsonInclude.Include.NON_NULL)
        @ApiModel(description = "视频通道数据请求")
        public static class DataRequest {
                @ApiModelProperty(value = "视频通道编码，第一个$后数字代表通道类型，必须是1;\n" +
                        "方式一：调设备通道分页查询接口 ，unitTypeList送1;\n" +
                        "方式二：调设备树查询接口，type送;;1", required = true, example = "1000018$1$0$0")
                private String channelId;

                @ApiModelProperty(value = "视频类型：1=视频", required = true, example = "1")
                private String dataType;

                @ApiModelProperty(value = "码流类型：1=主码流，2=辅码流，3=辅码流2", required = true, example = "1")
                private String streamType;
        }
}