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}) {
  builder.element('Stop', nest: () {
    builder.namespace(Xmlns.tptz); //tptz

    ReferenceToken(profileToken).buildXml(builder);

    panTilt.toString().buildXml(builder, tag: 'PanTilt', namespace: Xmlns.tt);

    zoom.toString().buildXml(builder, tag: 'Zoom', namespace: Xmlns.tt);
  });

  return builder.buildFragment();
}