package com.ruoyi.web.modules.industryservice.domain.dto;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 本地规则分析生成疾病预警时的传输对象。
 * <p>
 * 由 {@link com.ruoyi.web.modules.industryservice.service.YakDiseaseWarningAnalyzer} 组装，
 * 经 {@link com.ruoyi.web.modules.industryservice.service.YakDiseaseWarningSyncTxService} 落库。<br>
 * {@code pastureName} 用于匹配系统牧场；{@code alertMessage} 优先作为入库文案。
 * </p>
 */
public class YakDiseaseWarningDto
{
    /** 第三方农场名 / 拟关联牧场名 */
    private String pastureName;

    /** 预警时间（必填） */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date alertTime;

    /** 预置预警全文；空则由校验类按类型模板生成 */
    private String alertMessage;

    /** 预警类型，见 YakDiseaseWarningRules */
    private Integer warningType;

    private String measuredValue;

    private String referenceRange;

    private String deviceNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date collectTime;

    private String yakAvatarUrl;

    public String getPastureName()
    {
        return pastureName;
    }

    public void setPastureName(String pastureName)
    {
        this.pastureName = pastureName;
    }

    public Date getAlertTime()
    {
        return alertTime;
    }

    public void setAlertTime(Date alertTime)
    {
        this.alertTime = alertTime;
    }

    public String getAlertMessage()
    {
        return alertMessage;
    }

    public void setAlertMessage(String alertMessage)
    {
        this.alertMessage = alertMessage;
    }

    public Integer getWarningType()
    {
        return warningType;
    }

    public void setWarningType(Integer warningType)
    {
        this.warningType = warningType;
    }

    public String getMeasuredValue()
    {
        return measuredValue;
    }

    public void setMeasuredValue(String measuredValue)
    {
        this.measuredValue = measuredValue;
    }

    public String getReferenceRange()
    {
        return referenceRange;
    }

    public void setReferenceRange(String referenceRange)
    {
        this.referenceRange = referenceRange;
    }

    public String getDeviceNo()
    {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo)
    {
        this.deviceNo = deviceNo;
    }

    public Date getCollectTime()
    {
        return collectTime;
    }

    public void setCollectTime(Date collectTime)
    {
        this.collectTime = collectTime;
    }

    public String getYakAvatarUrl()
    {
        return yakAvatarUrl;
    }

    public void setYakAvatarUrl(String yakAvatarUrl)
    {
        this.yakAvatarUrl = yakAvatarUrl;
    }
}
