package com.inspect.metadata.eqpbook.domain.vo;

import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Setter
@Getter
public class BasedataEqpBookChannelQueryVo extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long channelId;
    @Excel(
            name = "通道编码"
    )
    private String channelCode;
    @Excel(
            name = "通道名称"
    )
    private String channelName;
    @Excel(
            name = "上级通道id，保留字段"
    )
    private String parentChannelId;
    @Excel(
            name = "设备ID"
    )
    private Long eqpBookId;
    @Excel(
            name = "设备名称"
    )
    private String eqpBookName;
    @Excel(
            name = "通道类型：vl可见光，ir红外，ptz云台，ng导航，取自数据字典"
    )
    private String channelType;
    @Excel(
            name = "状态，1：在线；0：离线，字段保留,数据大多来源于缓存数据库"
    )
    private String onlineState;
    @Excel(
            name = "通道具体内容，不同通道，里面的具体内容是不一样的，比如调焦，变倍，云台，都是不同的"
    )
    private String channelContent;
    @Excel(
            name = "接入方式",
            readConverterExp = "保=留字段"
    )
    private String provider;
    @Excel(
            name = "地址,如果需要对方提供一体ip和端口使用"
    )
    private String address;
    @Excel(
            name = "主机ip"
    )
    private String host;
    @Excel(
            name = "端口"
    )
    private String port;
    private String deleteFlag;
    @Excel(
            name = "设备编号"
    )
    private String patrolDeviceCode;
    @Excel(
            name = "用户"
    )
    private String username;
    @Excel(
            name = "密码"
    )
    private String password;
    @Excel(
            name = "视频所属nvr编码"
    )
    private String videoNvrCode;

    public String toString() {
        return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)).append("channelId", this.getChannelId()).append("channelCode", this.getChannelCode()).append("channelName", this.getChannelName()).append("parentChannelId", this.getParentChannelId()).append("eqpbookId", this.getEqpBookId()).append("channelType", this.getChannelType()).append("onlineState", this.getOnlineState()).append("channelContent", this.getChannelContent()).append("provider", this.getProvider()).append("address", this.getAddress()).append("host", this.getHost()).append("port", this.getPort()).append("createBy", this.getCreateBy()).append("createTime", this.getCreateTime()).append("updateBy", this.getUpdateBy()).append("updateTime", this.getUpdateTime()).append("deleteFlag", this.getDeleteFlag()).append("patroldeviceCode", this.getPatrolDeviceCode()).append("username", this.getUsername()).append("password", this.getPassword()).toString();
    }
}
