stop static method

XmlDocumentFragment stop(
  1. String profileToken, {
  2. bool panTilt = false,
  3. bool zoom = false,
})

XML for the stop, requires a profileToken and optionally panTilt and/or zoom

Implementation

static XmlDocumentFragment stop(String profileToken,
    {bool panTilt = false, bool zoom = false}) {
  Transport.builder.element('Stop', nest: () {
    Transport.builder.namespace(Xmlns.tptz); //tptz

    ReferenceToken(profileToken).buildXml(Transport.builder);

    Transport.builder.element('PanTilt', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text('$panTilt');
    });

    Transport.builder.element('Zoom', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text('$zoom');
    });
  });

  return Transport.builder.buildFragment();
}