public MultiUnitDeviceMeasurement(DeviceMeasurement unitMeasurement,
                                   IDictionary <int, DeviceMeasurement> unitMeasurementMap)
     : base(string.Empty, null)
 {
     this.UnitMeasurement    = unitMeasurement;
     this.UnitMeasurementMap = unitMeasurementMap;
 }
 /// <summary>
 /// Creates a new device measurement set with a scaled value
 /// </summary>
 /// <param name="measurement">The measurement to set</param>
 /// <param name="value">The scaled value, which will be unscaled when sent</param>
 public DeviceMeasurementSet(DeviceMeasurement measurement, double value)
 {
     this.Measurement = measurement;
     this.Value       = measurement.ReverseScale(value);
 }
 /// <summary>
 /// Creates a new device measurement set
 /// </summary>
 /// <param name="measurement">the measurement to set</param>
 /// <param name="value">the raw value to set it to</param>
 public DeviceMeasurementSet(DeviceMeasurement measurement, int value)
 {
     this.Measurement = measurement;
     this.Value       = value;
 }