package com.inspect.patrol.domain;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;

import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class PatrolPresetPos extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private String presetPosId;
    @Excel(
            name = "预置位编码"
    )
    private String presetPosCode;
    @Excel(
            name = "预置位名称"
    )
    private String presetPosName;
    @Excel(
            name = "设备点位",
            readConverterExp = "部=件ID"
    )

    @JsonProperty("patrolpointId")
//    @JsonAlias({"patrolPointId"})
    private Long patrolPointId;
    @Excel(
            name = "通道ID"
    )
    private String channelId;
    @Excel(
            name = "坐标类型(不重要)"
    )
    private String coordinateType;
    @Excel(
            name = "停留时间"
    )
    private Long stopTime;
    @Excel(
            name = "通道快照",
            readConverterExp = "一=张"
    )
    private String channelImg;
    @Excel(
            name = "描述"
    )
    private String description;
    @Excel(
            name = "是否有效 : = 是, : = 否"
    )
    private String isEnable;
    private String algSubtypeCode;
    @JsonProperty("eqpbookId")
//    @JsonAlias({"eqpBookId"})
    private String eqpBookId;
    private String channelCode;
    private String channelType;
//    @JsonProperty("patroldeviceCode")
//    @JsonAlias({"patrolDeviceCode"})
    private String patrolDeviceCode;
//    @JsonProperty("stdparolPointId")
//    @JsonAlias({"stdParolPointId"})
    private String stdParolPointId;
    private String deviceId;
//    @JsonProperty("patroldeviceName")
//    @JsonAlias({"patrolDeviceName"})
    private String patrolDeviceName;
    private String videoNvrCode;
    private List<PatrolPresetAction> presetActionList;
    private List<PatrolPresetParam> presetParamList;

    private String purpose;

    @Override
    public String toString() {
        return "PatrolPresetPos{" +
                "presetPosId='" + presetPosId + '\'' +
                ", presetPosCode='" + presetPosCode + '\'' +
                ", presetPosName='" + presetPosName + '\'' +
                ", patrolPointId=" + patrolPointId +
                ", channelId='" + channelId + '\'' +
                ", coordinateType='" + coordinateType + '\'' +
                ", stopTime=" + stopTime +
                ", channelImg='" + channelImg + '\'' +
                ", description='" + description + '\'' +
                ", isEnable='" + isEnable + '\'' +
                ", algSubtypeCode='" + algSubtypeCode + '\'' +
                ", eqpBookId='" + eqpBookId + '\'' +
                ", channelCode='" + channelCode + '\'' +
                ", channelType='" + channelType + '\'' +
                ", patrolDeviceCode='" + patrolDeviceCode + '\'' +
                ", stdParolPointId='" + stdParolPointId + '\'' +
                ", deviceId='" + deviceId + '\'' +
                ", patrolDeviceName='" + patrolDeviceName + '\'' +
                ", videoNvrCode='" + videoNvrCode + '\'' +
                ", presetActionList=" + presetActionList +
                ", presetParamList=" + presetParamList +
                ", purpose='" + purpose + '\'' +
                '}';
    }
}

//import com.inspect.base.core.annotation.Excel;
//import com.inspect.base.core.web.domain.BaseEntity;
//
//import java.util.List;
//
//import lombok.AllArgsConstructor;
//import lombok.Builder;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//
//@Data
//@Builder
//@NoArgsConstructor
//@AllArgsConstructor
//public class PatrolPresetPos extends BaseEntity {
//    private static final long serialVersionUID = 1L;
//    private String presetPosId;
//    @Excel(
//            name = "预置位编码"
//    )
//    private String presetPosCode;
//    @Excel(
//            name = "预置位名称"
//    )
//    private String presetPosName;
//    @Excel(
//            name = "设备点位",
//            readConverterExp = "部=件ID"
//    )
//    private Long patrolPointId;
//    @Excel(
//            name = "通道ID"
//    )
//    private String channelId;
//    @Excel(
//            name = "坐标类型(不重要)"
//    )
//    private String coordinateType;
//    @Excel(
//            name = "停留时间"
//    )
//    private Long stopTime;
//    @Excel(
//            name = "通道快照",
//            readConverterExp = "一=张"
//    )
//    private String channelImg;
//    @Excel(
//            name = "描述"
//    )
//    private String description;
//    @Excel(
//            name = "是否有效 : = 是, : = 否"
//    )
//    private String isEnable;
//    private String algSubtypeCode;
//    private String eqpBookId;
//    private String channelCode;
//    private String channelType;
//    private String patrolDeviceCode;
//    private String stdParolPointId;
//    private String deviceId;
//    private String patrolDeviceName;
//    private String videoNvrCode;
//    private List<PatrolPresetAction> presetActionList;
//    private List<PatrolPresetParam> presetParamList;
//
//}
