package com.mvc.model.ysfx;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mvc.entity.TAiread;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 同一时刻都有数据的存储对象
 */
public class SameTimeDataModel {

    @DateTimeFormat(pattern = "yyyyMMddHHmmss")
    @JsonFormat(pattern = "yyyyMMddHHmmss", timezone="GMT+8")
    private Date startDate;

    @DateTimeFormat(pattern = "yyyyMMddHHmmss")
    @JsonFormat(pattern = "yyyyMMddHHmmss", timezone="GMT+8")
    private Date endDate;
    private List<TStationStructureModel> stationStruViewModels;
    private List<TAiread> startAireadList;
    private List<TAiread> endAireadList;
    private String unitCode;
    private Long intervalDays;

    private String timeFrame;//统计的时间范围

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public List<TStationStructureModel> getStationStruViewModels() {
        return stationStruViewModels;
    }

    public void setStationStruViewModels(List<TStationStructureModel> stationStruViewModels) {
        this.stationStruViewModels = stationStruViewModels;
    }

    public List<TAiread> getStartAireadList() {
        return startAireadList;
    }

    public void setStartAireadList(List<TAiread> startAireadList) {
        this.startAireadList = startAireadList;
    }

    public List<TAiread> getEndAireadList() {
        return endAireadList;
    }

    public void setEndAireadList(List<TAiread> endAireadList) {
        this.endAireadList = endAireadList;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public Long getIntervalDays() {
        return intervalDays;
    }

    public void setIntervalDays(Long intervalDays) {
        this.intervalDays = intervalDays;
    }

    public String getTimeFrame() {
        return timeFrame;
    }

    public void setTimeFrame(String timeFrame) {
        this.timeFrame = timeFrame;
    }
}
