Esempio n. 1
0
 public async Task <Measurement> GetMeasurmentByInstallationAsync(int id, bool includeWind = false, IndexQueryType type = IndexQueryType.AirlyCAQI)
 {
     ParamsValidator.ThrowIfNegativeNumber(id);
     return(await Api.Request <Measurement>("measurements/installation", "GET", new
     {
         installationId = id,
         includeWind,
         indexType = ResolveIndexType(type)
     }));
 }
Esempio n. 2
0
 public async Task <Measurement> GetMeasurmentByLocationIdAsync(int locationId, bool includeWind = false, IndexQueryType type = IndexQueryType.AirlyCAQI)
 {
     ParamsValidator.ThrowIfNegativeNumber(locationId);
     return(await Api.Request <Measurement>(end : "measurements/location", "GET", new
     {
         locationId,
         includeWind,
         type = ResolveIndexType(type)
     }));
 }
Esempio n. 3
0
 public async Task <Installation> GetInstallationByIdAsync(int id)
 {
     ParamsValidator.ThrowIfNegativeNumber(id);
     return(await Api.Request <Installation>($"installations/{id}", method : null, options : null));
 }