init
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
using DTS.Common.Utilities;
|
||||
using DTS.Common.Utilities.DotNetProgrammingConstructs;
|
||||
|
||||
namespace DTS.Serialization
|
||||
{
|
||||
public partial class TestSetup : Exceptional
|
||||
{
|
||||
public partial class TestObject : Exceptional
|
||||
{
|
||||
public partial class DASHardware : Exceptional
|
||||
{
|
||||
public partial class DASChannel : Exceptional
|
||||
{
|
||||
public DASChannel()
|
||||
{
|
||||
_location.Value = null;
|
||||
_measurementUnits.Value = null;
|
||||
_name.Value = null;
|
||||
_numberOfSamples.Value = null;
|
||||
_serialNumber.Value = null;
|
||||
_version.Value = "1.0.0.0";
|
||||
}
|
||||
|
||||
public string Location
|
||||
{
|
||||
get => _location.Value;
|
||||
set => _location.Value = value;
|
||||
}
|
||||
private readonly Property<string> _location
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.Location", "", false);
|
||||
|
||||
public string MeasurementUnits
|
||||
{
|
||||
get => _measurementUnits.Value;
|
||||
set => _measurementUnits.Value = value;
|
||||
}
|
||||
private readonly Property<string> _measurementUnits
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.MeasurementUnits", "", false);
|
||||
|
||||
public string Name
|
||||
{
|
||||
get => _name.Value;
|
||||
set => _name.Value = value;
|
||||
}
|
||||
private readonly Property<string> _name
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.Name", "", false);
|
||||
|
||||
public string NumberOfSamples
|
||||
{
|
||||
get => _numberOfSamples.Value;
|
||||
set => _numberOfSamples.Value = value;
|
||||
}
|
||||
private readonly Property<string> _numberOfSamples
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.NumberOfSamples", "", false);
|
||||
|
||||
public string SensorName
|
||||
{
|
||||
get => _sensorName.Value;
|
||||
set => _sensorName.Value = value;
|
||||
}
|
||||
private readonly Property<string> _sensorName
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.SensorName", "", false);
|
||||
|
||||
public string SerialNumber
|
||||
{
|
||||
get => _serialNumber.Value;
|
||||
set => _serialNumber.Value = value;
|
||||
}
|
||||
private readonly Property<string> _serialNumber
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.SerialNumber", "", false);
|
||||
|
||||
public string Version
|
||||
{
|
||||
get => _version.Value;
|
||||
set => _version.Value = value;
|
||||
}
|
||||
private readonly Property<string> _version
|
||||
= new Property<string>(typeof(DASHardware).Namespace + ".DASChannel.Version", "", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user