LmxProxy is no longer needed. Moved the entire lmxproxy/ workspace, DCL adapter files, and related docs to deprecated/. Removed LmxProxy registration from DataConnectionFactory, project reference from DCL, protocol option from UI, and cleaned up all requirement docs.
13 lines
619 B
C#
13 lines
619 B
C#
namespace ZB.MOM.WW.LmxProxy.Client.Domain;
|
|
|
|
/// <summary>Value, Timestamp, and Quality for SCADA data.</summary>
|
|
public readonly record struct Vtq(object? Value, DateTime Timestamp, Quality Quality)
|
|
{
|
|
public static Vtq Good(object value) => new(value, DateTime.UtcNow, Quality.Good);
|
|
public static Vtq Bad(object? value = null) => new(value, DateTime.UtcNow, Quality.Bad);
|
|
public static Vtq Uncertain(object value) => new(value, DateTime.UtcNow, Quality.Uncertain);
|
|
|
|
public override string ToString() =>
|
|
$"{{Value={Value}, Timestamp={Timestamp:yyyy-MM-dd HH:mm:ss.fff}, Quality={Quality}}}";
|
|
}
|