/// <summary> /// Initializes a new instance of the <see cref="PacketType1"/> class. /// </summary> /// <param name="measurement">Object that implements the <see cref="IMeasurement"/> interface.</param> public PacketType1(IMeasurement measurement) : this() { HistorianID = (int)measurement.Key.ID; Time = new TimeTag((DateTime)measurement.Timestamp); Value = (float)measurement.AdjustedValue; Quality = measurement.HistorianQuality(); }
/// <summary> /// Initializes a new instance of the <see cref="PacketType1"/> class. /// </summary> /// <param name="measurement">Object that implements the <see cref="IMeasurement"/> interface.</param> public PacketType1(IMeasurement measurement) : this() { HistorianID = (int)measurement.Key.ID; Time = new TimeTag((DateTime)measurement.Timestamp); Value = (float)measurement.AdjustedValue; Quality = measurement.HistorianQuality(); }
/// <summary> /// Initializes a new instance of the <see cref="ArchiveDataPoint"/> class from a <see cref="IMeasurement"/> value. /// </summary> /// <param name="measurement">Object that implements the <see cref="IMeasurement"/> interface.</param> public ArchiveDataPoint(IMeasurement measurement) : this(measurement, measurement.HistorianQuality()) { }
/// <summary> /// Initializes a new instance of the <see cref="ArchiveDataPoint"/> class from a <see cref="IMeasurement"/> value. /// </summary> /// <param name="measurement">Object that implements the <see cref="IMeasurement"/> interface.</param> public ArchiveDataPoint(IMeasurement measurement) : this(measurement, measurement.HistorianQuality()) { }