package com.ruoyi.web.modules.video;

import com.ruoyi.web.modules.video.domain.BizLivestockMonitor;
import com.ruoyi.web.modules.video.support.LivestockMonitorRules;

/**
 * 畜牧监控测试样本。
 */
public final class LivestockMonitorTestSamples
{
    public static final long PASTURE_OWNER_ID = 101L;

    public static final long MARKET_OWNER_ID = 201L;

    public static final String SAMPLE_MONITOR_ID = "50001";

    private LivestockMonitorTestSamples()
    {
    }

    public static BizLivestockMonitor sampleMinimal()
    {
        BizLivestockMonitor row = new BizLivestockMonitor();
        row.setMonitorId(SAMPLE_MONITOR_ID);
        row.setMonitorName("圈舍监控1");
        row.setVideoSource(LivestockMonitorRules.VIDEO_SOURCE_WVP);
        row.setDelFlag(LivestockMonitorRules.DEL_FLAG_NORMAL);
        return row;
    }

    public static BizLivestockMonitor samplePastureMonitor()
    {
        BizLivestockMonitor row = new BizLivestockMonitor();
        row.setMonitorId(SAMPLE_MONITOR_ID);
        row.setMonitorName("圈舍监控1");
        row.setOwnerType(LivestockMonitorRules.OWNER_TYPE_PASTURE);
        row.setOwnerId(PASTURE_OWNER_ID);
        row.setOwnerName("巴青牧场");
        row.setEnclosureName("1号圈舍");
        row.setInstallLocation("1号圈舍");
        row.setVideoSource(LivestockMonitorRules.VIDEO_SOURCE_WVP);
        row.setDelFlag(LivestockMonitorRules.DEL_FLAG_NORMAL);
        return row;
    }

    public static BizLivestockMonitor sampleWithId(Long id)
    {
        BizLivestockMonitor row = samplePastureMonitor();
        row.setId(id);
        return row;
    }
}
