package com.junmp.jyzb.api.bean.dto.ChannelDto;

import lombok.Data;

/**
 * <pre>
 *
 * 描述：
 * 版本：1.0.0
 * 日期：2024/9/11 上午11:11
 * 作者：xuzc@junmp.com.cn
 * <br>修改记录
 * <br>修改日期 修改人 修改内容
 *
 * </pre>
 */
@Data
public class ChannelReaderConfigDto
{
    private Integer type;
    private String name;
    private String address;
    private Integer port;
    private Integer readerTime;
    private String gpioAddr;
    private Integer gpioPort;
    private Boolean isCameraSeparate = false;
    private Boolean useSnapshot;
    private Integer camType;
    private String camAddress;
    private Integer camPort;
    private String camUser;
    private String camPwd;
    private Integer camChannel;
    private Boolean useSnapshot2 = false;
    private Integer camType2 = 0;
    private String camAddress2;
    private Integer camPort2 = 0;
    private String camUser2;
    private String camPwd2;
    private Integer camChannel2 = 0;

    public ChannelReaderConfigDto()
    {
    }

    public ChannelReaderConfigDto(Integer type, String name, String address, Integer port, Integer readerTime, String gpioAddr, Integer gpioPort, Boolean isCameraSeparate, Boolean useSnapshot, Integer camType, String camAddress, Integer camPort, String camUser, String camPwd, Integer camChannel)
    {
        this.type = type;
        this.name = name;
        this.address = address;
        this.port = port;
        this.readerTime = readerTime;
        this.gpioAddr = gpioAddr;
        this.gpioPort = gpioPort;
        this.isCameraSeparate = isCameraSeparate;
        this.useSnapshot = useSnapshot;
        this.camType = camType;
        this.camAddress = camAddress;
        this.camPort = camPort;
        this.camUser = camUser;
        this.camPwd = camPwd;
        this.camChannel = camChannel;
    }

    public ChannelReaderConfigDto(String camPwd, Integer type, String name, String address, Integer port, Integer readerTime, String gpioAddr, Integer gpioPort, Boolean isCameraSeparate, Boolean useSnapshot, Integer camType, String camAddress, Integer camPort, String camUser, Integer camChannel, Boolean useSnapshot2, Integer camType2, String camAddress2, Integer camPort2, String camUser2, String camPwd2, Integer camChannel2)
    {
        this.camPwd = camPwd;
        this.type = type;
        this.name = name;
        this.address = address;
        this.port = port;
        this.readerTime = readerTime;
        this.gpioAddr = gpioAddr;
        this.gpioPort = gpioPort;
        this.isCameraSeparate = isCameraSeparate;
        this.useSnapshot = useSnapshot;
        this.camType = camType;
        this.camAddress = camAddress;
        this.camPort = camPort;
        this.camUser = camUser;
        this.camChannel = camChannel;
        this.useSnapshot2 = useSnapshot2;
        this.camType2 = camType2;
        this.camAddress2 = camAddress2;
        this.camPort2 = camPort2;
        this.camUser2 = camUser2;
        this.camPwd2 = camPwd2;
        this.camChannel2 = camChannel2;
    }
}
