public static SensorHistoryItem Convert(SensorHistoryMessage historyMessage) { SensorHistoryItem result = new SensorHistoryItem(); result.Time = historyMessage.Time.ToDateTime(); result.Type = Convert(historyMessage.Type); result.SensorValue = historyMessage.TypedData; return(result); }
public DefaultSensorModel(SensorHistoryItem item) { _item = item; }