package com.clx.performance.vo.pc;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;


/**
 * 司机通知配置
 * @author jiangwujie
 */
@Getter
@Setter
@ToString
public class DriverNoticeConfigVO {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty("配置名称")
    private String name;
    
    @ApiModelProperty(value = "通知触发距离：默认1.5，最大9999.9")
    private BigDecimal noticeTriggerDistance;

    @ApiModelProperty(value = "启用状态：0禁用 1启用")
    private Integer status;

    public Integer getNoticeTriggerDistanceMeter() {
        return noticeTriggerDistance != null ? noticeTriggerDistance.multiply(new BigDecimal(1000)).intValue() : 0;
    }
}
