package com.njcn.csharmonic.offline.log.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class NewTaglogbuffer implements Serializable {
    private NewHeadTaglogbuffer newHeadTaglogbuffer;
    private List<NewBodyTaglogbuffer> newBodyTaglogbuffers;
    //事件起始事件
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private LocalDateTime start;
    //事件结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private LocalDateTime end;
    //事件对应波形文件名称
    private String path = "";

    public NewTaglogbuffer(NewHeadTaglogbuffer head, ArrayList<NewBodyTaglogbuffer> body) {
        newHeadTaglogbuffer = head;
        newBodyTaglogbuffers = body;
    }
}
