Example #1
0
        internal async Task <List <SensorHistoryRecord> > GetSensorHistoryInternalAsync(SensorHistoryParameters parameters, CancellationToken token)
        {
            var items = await ObjectEngine.GetObjectsAsync <SensorHistoryRecord>(parameters, responseParser : m => ResponseParser.GetSensorHistoryResponseAsync(m, LogLevel, RequestEngine.IsDirty), token : token).ConfigureAwait(false);

            return(ResponseParser.ParseSensorHistoryResponse(items, parameters.SensorId));
        }