// TODO includeWind, indexType
 public static GetMeasurementByInstallationIdRequest FromCommand(MeasurementGetByInstallationExternalIdCommand command)
 => GetMeasurementByInstallationIdRequest.Create(command.InstallationExternalId);
Пример #2
0
 public async Task <Either <AirlyClientError, GetMeasurementByInstallationIdResponse> > GetMeasurementByInstallationId(GetMeasurementByInstallationIdRequest request)
 {
     return(await TracedOperation.CallAsync
            (
                "AirlyClient",
                AirlyClientFunction.AirlyClientFunctionType.GetMeasurementByInstallationId,
                request,
                () =>
     {
         string query = AirlyClientUrlBuilder.GetQuery(request.ToQueryParams());
         string url = _options.GetUrl(AirlyClientFunction.GetMeasurementByInstallationId, query);
         return GetHttpResponseAsync <GetMeasurementByInstallationIdResponse>(url);
     }
            ));
 }