46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
using DTS.Common.Interface.DASFactory.Diagnostics;
|
|
using DTS.Common.Interface.Sensors.AnalogDiagnostics;
|
|
|
|
namespace DTS.Common.Classes.DASFactory
|
|
{
|
|
public class TCDiagnosticResult : Base.BasePropertyChanged, ITCDiagnosticResult
|
|
{
|
|
private string _channelName = string.Empty;
|
|
public string ChannelName
|
|
{
|
|
get => _channelName;
|
|
set => SetProperty(ref _channelName, value);
|
|
}
|
|
|
|
private int _channelIndex;
|
|
public int ChannelIndex
|
|
{
|
|
get => _channelIndex;
|
|
set => SetProperty(ref _channelIndex, value);
|
|
}
|
|
|
|
private double? _currentReading = null;
|
|
public double? CurrentReading { get => _currentReading; set => SetProperty(ref _currentReading, value); }
|
|
|
|
private DiagnosticStatus _status = DiagnosticStatus.Untested;
|
|
public DiagnosticStatus Status
|
|
{
|
|
get => _status;
|
|
set => SetProperty(ref _status, value);
|
|
}
|
|
private ConnectionStatuses _connectionStatus = ConnectionStatuses.NotTested;
|
|
public ConnectionStatuses ConnectionStatus
|
|
{
|
|
get => _connectionStatus;
|
|
set => SetProperty(ref _connectionStatus, value);
|
|
}
|
|
public void Copy(ITCDiagnosticResult source)
|
|
{
|
|
ChannelName = source.ChannelName;
|
|
CurrentReading = source.CurrentReading;
|
|
Status = source.Status;
|
|
ConnectionStatus = source.ConnectionStatus;
|
|
}
|
|
}
|
|
}
|