/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.device.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 智能设备实体类
 *
 * @author BladeX
 * @since 2021-12-08
 */
@Data
@TableName("smart_iot_device")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "IotDevice对象", description = "智能设备")
public class IotDevice extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 设备唯一标识
	*/
		@ApiModelProperty(value = "设备唯一标识")
		private String deviceId;
	/**
	* 设备名称
	*/
		@ApiModelProperty(value = "设备名称")
		private String deviceName;
	/**
	* IMEI号
	*/
		@ApiModelProperty(value = "IMEI号")
		private String imei;
	/**
	* 产品ID
	*/
		@ApiModelProperty(value = "产品ID")
		private String productId;
	/**
	* 设备类型
	*/
		@ApiModelProperty(value = "设备类型")
		private String deviceType;
	/**
	* 安装位置
	*/
		@ApiModelProperty(value = "安装位置")
		private String deviceInstallAddress;
	/**
	* 设备状态:0.已注册 1.已激活 2.已注销
	*/
		@ApiModelProperty(value = "设备状态:0.已注册 1.已激活 2.已注销")
		private Integer deviceStatus;
	/**
	* 设备在线状态，1在线，2不在线
	*/
		@ApiModelProperty(value = "设备在线状态，1在线，2不在线")
		private Integer deviceNetStatus;
	/**
	*  设备所在产品协议：	1.T-LINK协议  2.MQTT协议  3.LWM2M协议  4.TUP协议  5.HTTP协议  6.JT/T808  7.TCP协议  8.私有TCP(网关子设备协议)  9.私有UDP(网关子设备协议)  10.网关产品MQTT(网关产品协议)  11.南向云
	*/
		@ApiModelProperty(value = " 设备所在产品协议：	1.T-LINK协议  2.MQTT协议  3.LWM2M协议  4.TUP协议  5.HTTP协议  6.JT/T808  7.TCP协议  8.私有TCP(网关子设备协议)  9.私有UDP(网关子设备协议)  10.网关产品MQTT(网关产品协议)  11.南向云")
		private Integer productProtocol;
	/**
	* 经度
	*/
		@ApiModelProperty(value = "经度")
		private String longitude;
	/**
	* 纬度
	*/
		@ApiModelProperty(value = "纬度")
		private String latitude;
	/**
	* 设备图片
	*/
		@ApiModelProperty(value = "设备图片")
		private String deviceImage;
	/**
	* 区域ID
	*/
		@ApiModelProperty(value = "区域ID")
		private Long residentialId;
	/**
	* 楼栋ID
	*/
		@ApiModelProperty(value = "楼栋ID")
		private Long buildingId;
	/**
	* 单元id
	*/
		@ApiModelProperty(value = "单元id")
		private Long unitId;
	/**
	* 楼层id
	*/
		@ApiModelProperty(value = "楼层id")
		private Long floorId;
	/**
	* 房间id
	*/
		@ApiModelProperty(value = "房间id")
		private Long roomId;
	/**
	* 平台： aep
	*/
		@ApiModelProperty(value = "平台： aep")
		private String platform;
	/**
	* IMSI
	*/
		@ApiModelProperty(value = "IMSI")
		private String imsi;
	/**
	* 激活时间
	*/
		@ApiModelProperty(value = "激活时间")
		private String activeTime;
	/**
	* 设备最后上线时间
	*/
		@ApiModelProperty(value = "设备最后上线时间")
		private String lastOnlineAt;
	/**
	* 设备最后下线时间
	*/
		@ApiModelProperty(value = "设备最后下线时间")
		private String lastOfflineAt;
	/**
	* 园区ID
	*/
		@ApiModelProperty(value = "园区ID")
		private Long agencyId;

	private String enterpriseIds;

	private String tenantId;

	private String orgPosition;

}
