setGeoLocation method
This operation sets the geo location on the device.
Access Class: WRITE_SYSTEM
Implementation
Future<bool> setGeoLocation(List<LocationEntity> locations) async {
loggy.debug('setGeoLocation');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(request: DeviceManagementRequest.setGeoLocation(locations)),
);
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return true;
}