getServiceCapabilities method
Returns the capabilities of the PTZ service. The result is returned in a typed answer.
ACCESS CLASS: PRE_AUTH
Implementation
Future<Capabilities> getServiceCapabilities() async {
loggy.debug('getServiceCapabilities');
final responseEnvelope = await transport.request(
uri,
soap.Body(
request: PtzRequest.getServiceCapabilities(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetServiceCapabilitiesResponse.fromJson(
responseEnvelope.body.response!)
.capabilities;
}