getDeviceValuesWithHttpInfo method

Future<Response> getDeviceValuesWithHttpInfo(
  1. int deviceId,
  2. String channel,
  3. String to, {
  4. bool? manualOnly,
})

Performs an HTTP 'GET /app/metering/{deviceId}/values/{channel}' operation and returns the Response. Parameters:

Implementation

Future<Response> getDeviceValuesWithHttpInfo(int deviceId, String channel, String to, { bool? manualOnly, }) async {
  // ignore: prefer_const_declarations
  final path = r'/app/metering/{deviceId}/values/{channel}'
    .replaceAll('{deviceId}', deviceId.toString())
    .replaceAll('{channel}', channel);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (manualOnly != null) {
    queryParams.addAll(_queryParams('', 'manualOnly', manualOnly));
  }
    queryParams.addAll(_queryParams('', 'to', to));

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}