removePreset method

Future<bool> removePreset(
  1. String profileToken,
  2. {required Preset preset}
)

Operation to remove a PTZ preset for the Node in the selected profile. The operation is supported if the PresetPosition capability exists for the Node in the selected profile.

Implementation

Future<bool> removePreset(String profileToken,
    {required Preset preset}) async {
  loggy.debug('removePreset');

  final envelope = await transport.sendRequest(
      uri,
      transport.securedEnvelope(
          soap.PtzRequest.removePreset(profileToken, preset: preset)));

  return envelope.body.response?.containsKey('RemovePresetResponse') ?? false;
}