init
This commit is contained in:
39
Common/DTS.Common/Interface/Sensors/ISensorChange.cs
Normal file
39
Common/DTS.Common/Interface/Sensors/ISensorChange.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using DTS.Common.Enums.Sensors;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
/// <summary>
|
||||
/// the essential part of any sensor chagne (who did it, when, which sensor)
|
||||
/// </summary>
|
||||
public interface ISensorChangeRecord
|
||||
{
|
||||
int RecordId { get; }
|
||||
int SensorId { get; }
|
||||
DateTime TimeStamp { get; }
|
||||
string UserName { get; }
|
||||
}
|
||||
/// <summary>
|
||||
/// what the actual change was (type of change, values)
|
||||
/// there can be up to 4 values that change here for ease and to prevent the need for parsing
|
||||
/// </summary>
|
||||
public interface ISensorChange : ISensorChangeRecord
|
||||
{
|
||||
SensorChangeTypes ChangeType { get; }
|
||||
string Value1 { get; }
|
||||
string Value2 { get; }
|
||||
string Value3 { get; }
|
||||
string Value4 { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// the only type of change we really have right now
|
||||
/// </summary>
|
||||
public interface IOffsetToleranceChange : ISensorChange
|
||||
{
|
||||
double LowMvValue { get; }
|
||||
double HighMvValue { get; }
|
||||
double LowEUValue { get; }
|
||||
double HighEUValue { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user