添加项目文件。
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using HardwareControl.Core.Spectrometer;
|
||||
|
||||
namespace HardwareWeb.Models
|
||||
{
|
||||
/// <summary>测量过程中 SDK 上报的单台设备错误。</summary>
|
||||
public sealed record SpectrumDeviceErrorPayload(string SerialNumber, string Message)
|
||||
{
|
||||
public static SpectrumDeviceErrorPayload From(SpectrumDeviceError error) =>
|
||||
new(error.SerialNumber, error.Message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user