package com.YuyeTech.HeartRate.dto;

import lombok.Data;

/**
 * @author:slambb
 * @date:2020/1/10
 */
@Data
public class LevelConditionDTO {
    private Integer type;
    private String explain;
    private Integer limitType;
    private Boolean isScore;
    private Integer limitScore;
    private Integer limitLevel;

    public LevelConditionDTO(
                         Integer type,
                         String explain,
                         Integer limitType,
                         Integer isScore,
                         Integer limitScore,
                         Integer limitLevel) {
        this.type = type;
        this.explain = explain;
        this.limitType = limitType;
        this.isScore = isScore == 1?true:false;
        this.limitScore = limitScore;
        this.limitLevel = limitLevel;

    }
}
