package com.njcn.cloud.pojo.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Description:
 * @return: null
 * @Author: wr
 * @Date: 2023/11/1 9:56
 */
@Data
public class EventMsgDetailVO implements Serializable {
    @ApiModelProperty("未读条数")
    private Integer udState;

    @ApiModelProperty("消息返回体")
    private Page<udState> page;

    @Data
    public static class udState implements Serializable {
        @ApiModelProperty("监测点Id")
        private String lineIndex;

        @ApiModelProperty("监测点名称")
        private String lineName;

        @ApiModelProperty("暂降事件id")
        private String eventDetailIndex;

        @ApiModelProperty("触发时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime timeID;

        @ApiModelProperty("持续时间")
        private Double persistTime;

        @ApiModelProperty("毫秒数")
        private Double ms;

        @ApiModelProperty("特征幅值")
        private Double eventValue;

        @ApiModelProperty("监测点信息")
        private String lineInfo;

        @ApiModelProperty("暂态消息Guid")
        private String eventMsgIndex;

        @ApiModelProperty("读取状态")
        private Integer state;

    }
}