package com.yuchen.saas.park.api.vo.park.alarm;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author 颜艺波
 * @date 2021/8/31 15:07
 * @Description
 */
@Data
@AllArgsConstructor
public class AlarmTimeLineVO implements Comparable<AlarmTimeLineVO> {

    /**
     * 时间
     */
    @ApiModelProperty(value = "时间")
    private Integer abscissa;

    /**
     * 次数
     */
    @ApiModelProperty(value = "次数")
    private Integer ordinate;

    @Override
    public int compareTo(AlarmTimeLineVO o) {

        return this.abscissa.compareTo(o.getAbscissa());
    }
}
