Exemplo n.º 1
0
        internal Tuple <List <SensorHistoryData>, int> GetSensorHistoryInternal(SensorHistoryParameters parameters)
        {
            var raw = ObjectEngine.GetObjectsRaw <SensorHistoryData>(parameters, responseParser: m => ResponseParser.GetSensorHistoryResponse(m, LogLevel, RequestEngine.IsDirty));

            var data = ResponseParser.ParseSensorHistoryResponse(raw.Items, parameters.SensorId);

            return(Tuple.Create(data, raw.TotalCount));
        }
Exemplo n.º 2
0
        internal Tuple <List <SensorHistoryData>, int> GetSensorHistoryInternal(SensorHistoryParameters parameters)
        {
            var raw = ObjectEngine.GetObjectsRaw <SensorHistoryData>(parameters, ResponseParser.ValidateSensorHistoryResponse);

            var data = ResponseParser.ParseSensorHistoryResponse(raw.Items, parameters.SensorId);

            return(Tuple.Create(data, raw.TotalCount));
        }
Exemplo n.º 3
0
        internal int GetSensorHistoryTotals(SensorHistoryParameters parameters)
        {
            parameters.Count = 0;

            var data = ObjectEngine.GetObjectsRaw <SensorHistoryData>(parameters, responseParser: m => ResponseParser.GetSensorHistoryResponse(m, LogLevel, RequestEngine.IsDirty));

            parameters.GetParameters().Remove(Parameter.Count);

            return(Convert.ToInt32(data.TotalCount));
        }
Exemplo n.º 4
0
        internal int GetSensorHistoryTotals(SensorHistoryParameters parameters)
        {
            parameters.Count = 0;

            var data = ObjectEngine.GetObjectsRaw <SensorHistoryData>(parameters, ResponseParser.ValidateSensorHistoryResponse);

            parameters.GetParameters().Remove(Parameter.Count);

            return(Convert.ToInt32(data.TotalCount));
        }