getStatus method

Future<PtzStatus> getStatus(
  1. String profileToken
)

Operation to request PTZ status for the Node in the selected profile.

Implementation

Future<PtzStatus> getStatus(String profileToken) async {
  final envelope = await Soap.retrieveEnvlope(
      uri, onvif.secureRequest(SoapRequest.status(profileToken)));

  if (envelope.body.statusResponse == null) throw Exception();

  return envelope.body.statusResponse!.ptzStatus;
}