package com.imdroid.secapi.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * GNSS状态信息
 *
 * @author LiGang
 */
@Data
@TableName(value = "gnssstatus")
public class GnssStatus {
    public static final short STATE_OFFLINE = 0;
    public static final short STATE_ACTIVE = 1;
    public static final short STATE_IDLE = 2;
    public static final short STATE_UPLOADING = 3;

    @TableId(value = "id", type = IdType.AUTO)
    Long id;
    Integer tenantid;
    LocalDateTime updatetime;
    LocalTime devicetime;
    String deviceid;
    String location;

    Float roll;
    Float pitch;
    Float yaw;
    Short rssi;
    Integer voltage;
    Float temperature;
    Float humidity;
    Integer satelliteinuse;
    // 这里的收发都是服务端统计的，终端收发详细统计在msg_trx表里
    Integer txbytes;
    Integer rxbytes;
    Integer b562bytes;
    Integer d3xxbytes;
    Short state;
    Integer warningcode;
    Short warning;
    Integer noreslutcount;
    Double latitude;
    Double longitude;
    Double altitude;
}
