package com.template.model.response;

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

import java.util.Date;


/**
 * 设备统计
 */
@Data
public class statDeviceDetailResponse {
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    private String name;

    @ApiModelProperty(value = "类型 烟感：1；摄像机：2；")
    private Integer type;

    /**
     * 类型名称
     */
    private String typeName;

    @ApiModelProperty(value = "状态 在线：1；离线：2；告警：3")
    private Integer status;

    /**
     * 状态名称
     */
    private String statusName;

    @ApiModelProperty(value = "位置")
    private String address;

    @ApiModelProperty(value = "设备序列号 摄像头填产品编号 烟感填二维码下面的那一串数字")
    private String deviceSn;

    @ApiModelProperty(value = "设备编号")
    private String deviceNo;

    @ApiModelProperty(value = "设备Id")
    private String deviceId;

    @ApiModelProperty(value = "电池电量")
    private Integer batteryValue;

    /**
     * 电池电量名称
     */
    private String batteryName;

    @ApiModelProperty(value = "关联人")
    private Integer userId;

    @ApiModelProperty(value = "关联人名称")
    private String userName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
