using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Maser.Feanor.Model { public class Result { public Result() { } public Result(Int32 PK, Int32 SensorPK, Double Value, DateTime TimeStamp, Int32 CalibrationPK) { _PK = PK; _SensorPK = SensorPK; _Value = Value; _TimeStamp = TimeStamp; _CalibrationPK = CalibrationPK; } public Int32 PK { set { _PK = value; } get { return _PK; } } private Int32 _PK = -1; public Int32 SensorPK { set { _SensorPK = value; } get { return _SensorPK; } } private Int32 _SensorPK = 0; public Double Value { set { _Value = value; } get { return _Value; } } private Double _Value = 0; public DateTime TimeStamp { set { _TimeStamp = value; } get { return _TimeStamp; } } private DateTime _TimeStamp = DateTime.Now; public Int32 CalibrationPK { set { _CalibrationPK = value; } get { return _CalibrationPK; } } private Int32 _CalibrationPK = 0; // A calibration PK equal to 0 means no calibration was applied. } }