package com.ruoyi.device.model; import java.util.Objects; /** * 表示检测柜通道上一项 BTS 测试当前可下载的历史数据范围。 */ public record HistoryAvailability( ChannelIdentity channel, String btsTestId, long availableRecordCount, boolean uploadComplete) { public HistoryAvailability { channel = Objects.requireNonNull(channel, "channel"); btsTestId = Objects.requireNonNull(btsTestId, "btsTestId").trim(); if (btsTestId.isEmpty()) throw new IllegalArgumentException("btsTestId must not be blank"); if (availableRecordCount < 0) throw new IllegalArgumentException("availableRecordCount must be non-negative"); } }