package com.yuchen.saas.device.api.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

import java.util.Date;

@Data
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@HeadRowHeight(25)
@ContentStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ColumnWidth(12)
@ContentRowHeight(15)
@HeadFontStyle(fontHeightInPoints = 9)
@ExcelIgnoreUnannotated
public class NetDeviceWalkExportExcelVo {

    @ExcelProperty("设备类型")
    private String deviceTypeName;

    @ExcelProperty("产品")
    private String productName;

    @ExcelProperty("设备名称")
    private String deviceAlias;

    @ExcelProperty("设备照片")
    private String filePath;

    @ExcelProperty("设备编码")
    private String deviceName;

    @ExcelProperty("设备状态")
    private String isOnline;

    @ExcelProperty("安装方向")
    private String direction;

    @ExcelProperty("是否支持人脸识别")
    private String isFaceName;
    public String getIsFaceName() {
        return this.isFace == 1 ? "是" : "否";
    }

    @ExcelProperty("是否支持指纹识别")
    private String isFingerprintName;
    public String getIsFingerprintName() {
        return this.isFingerprint == 1 ? "是" : "否";
    }

    @ExcelProperty("是否支持蓝牙识别")
    private String isBluetoothName;
    public String getIsBluetoothName() {
        return this.isBluetooth == 1 ? "是" : "否";
    }


    @ExcelProperty("是否支持二维码识别")
    private String isQrCodeName;
    public String getIsQrCodeName() {
        return this.isQrCode == 1 ? "是" : "否";
    }

    @ExcelProperty("是否有IC卡功能")
    private String hasIcCardName;
    public String getHasIcCardName() {
        return this.hasIcCard == 1 ? "是" : "否";
    }

    @ExcelProperty("设备位置")
    private String location;

    @ExcelProperty("项目")
    private String parkName;

    @ExcelProperty("绑定空间id")
    private String spaceId;

    @ExcelProperty("最后连接时间")
    private Date lastConnectTime;

    @ExcelProperty("最后断开时间")
    private Date lastDisconnectTime;

    @ExcelProperty("备注信息")
    private String remark;

    /**
     * 是否支持人脸识别；0-否，1-是
     */
    private int isFace;
    /**
     * 是否支持指纹识别；0-否，1-是
     */
    private int isFingerprint;
    /**
     * 是否支持蓝牙识别；0-否，1-是
     */
    private int isBluetooth;
    /**
     * 是否支持二维码识别；0-否，1-是
     */
    private int isQrCode;
    /**
     * 是否有IC卡功能；1-是，0-否
     */
    private int hasIcCard;


}
