// TODO includeWind, indexType public static GetMeasurementByInstallationIdRequest FromCommand(MeasurementGetByInstallationExternalIdCommand command) => GetMeasurementByInstallationIdRequest.Create(command.InstallationExternalId);
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); } )); }