AbnormalGatherAlarmRequest.java 1.61 KB
package cn.com.glsx.schedulerjob.model;

import java.io.Serializable;
import java.util.List;

/**
 * 异常聚集报警接口请求参数对象
 * 对应文档3.10节:设备上报指定日期的异常聚集报警数据(含报警次数、位置、站点等)
 */
public class AbnormalGatherAlarmRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 数据所属日期
     * 必填:是
     * 格式:yyyy-MM-dd
     * 对应文档3.10.2 currentDay字段
     */
    private String currentDay;

    /**
     * 异常聚集报警列表
     * 必填:是
     * 类型:Array(List)
     * 对应文档3.10.2 alarmList字段
     */
    private List<AbnormalGatherAlarmItem> alarmList;

    // 无参构造
    public AbnormalGatherAlarmRequest() {
    }

    // 全参构造
    public AbnormalGatherAlarmRequest(String currentDay, List<AbnormalGatherAlarmItem> alarmList) {
        this.currentDay = currentDay;
        this.alarmList = alarmList;
    }

    // Getter & Setter
    public String getCurrentDay() {
        return currentDay;
    }

    public void setCurrentDay(String currentDay) {
        this.currentDay = currentDay;
    }

    public List<AbnormalGatherAlarmItem> getAlarmList() {
        return alarmList;
    }

    public void setAlarmList(List<AbnormalGatherAlarmItem> alarmList) {
        this.alarmList = alarmList;
    }

    // toString
    @Override
    public String toString() {
        return "AbnormalGatherAlarmRequest{" +
                "currentDay='" + currentDay + '\'' +
                ", alarmList=" + alarmList +
                '}';
    }
}