getDeviceMethods method
Given a device ID, returns the invokable methods associated with the device.
May throw ResourceNotFoundException. May throw InvalidRequestException. May throw InternalFailureException.
Parameter deviceId
:
The unique identifier of the device.
Implementation
Future<GetDeviceMethodsResponse> getDeviceMethods({
required String deviceId,
}) async {
ArgumentError.checkNotNull(deviceId, 'deviceId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/devices/${Uri.encodeComponent(deviceId)}/methods',
exceptionFnMap: _exceptionFns,
);
return GetDeviceMethodsResponse.fromJson(response);
}